query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
add a new element x at the rear of the queue returns false if the element was not added because the queue is full
boolean offer(T x){ if(tail == queueArray.length){ return false; } queueArray[tail] = x; tail++; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean add(T x) {\n\t if(size==pq.length)\n\t return false;\n\t else {\n\t //add the element\n\t pq[size]=x;\n\t //check if the heap is maintained\n\t percolateUp(size);\n\t //increment the size\n\t size++;\n\t return true;\n\n }\n\n\n }", "@Override\r\n\tpublic boolean enqueue(T element) {\r\n\t\t\r\n\t\t// checking if queue is already full or not\r\n\t\tif (isFull()) {\r\n\t\t\tthrow new AssertionError(\"Queue is full\");\r\n\t\t} else {\r\n\t\t\tif (this.front == -1) {\r\n\t\t\t\tthis.front = 0;\r\n\t\t\t}\r\n\t\t\tthis.rear = (this.rear + 1) % this.size;\r\n\t\t\tthis.array[this.rear] = (Integer)element;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public boolean add(T x) {\n\n\n if (this.size == pq.length) {\n this.resize();\n }\n pq[this.size] = x;\n percolateUp(this.size);\n this.size++;\n System.out.println(\"size is \"+size);\n return true;\n }", "public boolean offer(E element) {\n\t\tif (element == null)\n\t\t\tthrow new NullPointerException();\n\t\twhile (true) {\n\t\t\tlong r = rear.get();\n\t\t\tint i = (int)(r % elements.length());\n\t\t\tE x = elements.get(i);\n\t\t\t//Did rear change while we were reading x?\n\t\t\tif (r != rear.get())\n\t\t\t\tcontinue;\n\t\t\t//Is the queue full?\n\t\t\tif (r == front.get() + elements.length())\n\t\t\t\treturn false; //Don't retry; fail the offer.\n\n\t\t\tif (x == null) {//Is the rear empty?\n\t\t\t\tif (elements.compareAndSet(i, x, element)) {//Try to store an element.\n\t\t\t\t\t//Try to increment rear. If we fail, other threads will\n\t\t\t\t\t//also try to increment before any further insertions, so we\n\t\t\t\t\t//don't need to loop.\n\t\t\t\t\trear.compareAndSet(r, r+1);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else //rear not empty. Try to help other threads.\n\t\t\t\trear.compareAndSet(r, r+1);\n\n\t\t\t//If we get here, we failed at some point. Try again.\n\t\t}\n\t}", "public boolean add(ElementType element){\n if(this.contains(element)){\n return false;\n }\n else{\n if(size==capacity){\n reallocate();\n }\n elements[size]=element;\n size++;\n }\n return true;\n }", "public boolean add(T item) {\n // offer(T e) is used here simply to eliminate exceptions. add returns false only\n // if adding the item would have exceeded the capacity of a bounded queue.\n return q.offer(item);\n }", "@Override\n public final boolean add(final Integer element) {\n // First, check to see that the array can support another element\n ensureCapacity(size);\n // Add the element to the next available slot\n arrayList[size++] = element;\n return true;\n }", "public boolean insert(E object){\r\n if(isFull())\r\n return false;\r\n \r\n //find index to insert object\r\n int loc = findInsertPoint(object, 0, currentSize-1);\r\n\r\n //right shift\r\n for(int i = currentSize-1; i >= loc; i--){\r\n queue[i+1] = queue[i];\r\n }\r\n\r\n queue[loc] = object; //insert object\r\n currentSize++; //accomodate for inserted object by adding to array size\r\n\r\n return true;\r\n }", "public boolean add(T element) {\n if (this.position >= this.container.length) {\n this.enlargeCapacity();\n }\n this.container[this.position++] = element;\n return true;\n }", "@Override\n public boolean add(T e) {\n if (numElements == maxElements) {\n doubleCapacity();\n }\n\n // Add element\n elements[numElements++] = e;\n return true;\n }", "@Override\r\n\tpublic boolean enqueue(T e) throws QueueOverflowException {\r\n\t\tif (this.isFull()) {\r\n\t\t\tthrow new QueueOverflowException(\"The queue is full\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdata.add(data.size(), e);\r\n\t\t}\r\n\t\t// Add element to the end of the Queue\t\t\r\n\t\treturn true;\r\n\t}", "public boolean add( T element )\n {\n // THIS IS AN APPEND TO THE LOGICAL END OF THE ARRAY AT INDEX count\n if (size() == theArray.length) upSize(); // DOUBLES PHYSICAL CAPACITY\n theArray[ count++] = element; // ADD IS THE \"setter\"\n return true; // success. it was added\n }", "private void enqueue(E x) {\n final Object[] items = this.items;\n items[putIndex] = x;\n if (++putIndex == items.length) putIndex = 0;\n count++;\n notEmpty.signal();\n }", "public synchronized boolean add(T obj) throws InterruptedException {\n\t\t\tnotify();\n\t\t\tif (maxSize == queue.size()) {\n\t\t\t\tSystem.out.println(\"Queue is full, producer is waiting.\");\n\t\t\t\twait();\n\t\t\t}\n\t\t\treturn queue.add(obj);\n\t\t}", "public boolean isFull() { return front == (rear + 1) % MAX_QUEUE_SIZE; }", "@Override\n public boolean add(final T element) {\n if (this.size > this.data.length - 1) {\n this.doubleArraySizeBy(2);\n }\n\n this.data[this.size++] = element;\n return true;\n }", "public void add( int item ) \n {\n\t//queue is empty\n\tif ( queue.isEmpty() ) {\n\t queue.add( item );\n\t return;\n\t}\n\t\n\t//queue is not empty\n\telse {\n\t //find spot of insetion\n\t for ( int i = 0; i < queue.size(); i++ ) {\t\t\t \n\t\tif ( (int) queue.get(i) < item ) {\n\t\t queue.add( i, item );\n\t\t return;\n\t\t}\t\t\n\t }\n\t}\n }", "@Override\n public boolean add(E e) {\n notNull(e);\n if (size >= elementData.length) {\n int newCapacity = (elementData.length << 1);\n elementData = Arrays.copyOf(elementData, newCapacity);\n }\n elementData[size++] = e;\n return true;\n }", "@Override\n public boolean offer(E e) {\n if(e== null || (limited && size >= length)) {\n return false;\n }\n queue[size++] = e;\n Arrays.sort(queue, comparator);\n if(size >= queue.length) {\n queueResize();\n }\n return true;\n }", "@Override\n public boolean add(T item) {\n // if the last spot in the array is unoccupied, item is simply added to the first empty spot\n if (arr[arr.length-1]!=null) {\n arr[size + 1] = item;\n size++;\n }\n // if array is full, number of spots is doubled and item is added\n if (arr[arr.length-1]== null){\n grow();\n arr[size+1] = item;\n size++;\n }\n return true;\n }", "public boolean add(E x) {\n\t\taddLast(x);\n\t\treturn true;\n\t}", "public boolean add(E anEntry){\n if (size == capacity){\n reallocate();\n }\n theData[size] = anEntry;\n size++;\n\n return true;\n }", "public boolean add(E[] es){\n long expect = rear;\n int cnt = 0;\n\n // TODO Generate random number, affect performance, close\n // Increase the number of retries periodically to avoid offset\n // if( random.nextInt(maxTryNum)>maxTryNum*maxTryNumProbability){\n // tryNum = maxTryNum;\n // }\n\n int curTryNum = tryNum;\n for(;;) {\n expect = rear;\n boolean check = false;\n if (expect-front+es.length<=max_size) {\n HighPerformanceQueue q = this;\n if (help.compareAndSwapLong(q, rearOffset, expect, expect + es.length)) {\n // TODO Dynamic maintenance retries\n break;\n }\n }\n cnt++;\n if(cnt==tryNum){\n return false;\n }\n }\n for(int i=0;i<es.length;i++){\n int index = (int)((expect+i)&(max_size-1));\n data[index] = es[i];\n available[index] = true;\n }\n return true;\n }", "public boolean offer(E item) {\r\n\r\n int index = -1;\r\n //finding index of item if it is exist\r\n for (int i = 0; i< theData.size() ; i++){\r\n if (theData.get(i).data.equals(item)){\r\n index = i;\r\n break;\r\n }\r\n }\r\n\r\n if (index < 0 ){ // creating and adding new node with element\r\n Node<E> temp = new Node<E>(item);\r\n theData.add(temp);\r\n theData.get(theData.size()-1).count+=1;\r\n fixHeap(theData.size() - 1);\r\n }else{ //increase count because alredy exist\r\n theData.get(index).count+=1;\r\n }\r\n\r\n element_count +=1;\r\n return true;\r\n }", "public void queue(Object newItem){\n if(isFull()){\n System.out.println(\"queue is full\");\n return;\n }\n ArrayQueue[++rear] = newItem;\n if(front == -1)\n front = 0;\n \n }", "@Test\n public void testAdd() throws Exception {\n this.queue = new HeapPriorityQueue<Person>(5); \n this.queue.add(new Person(\"Four\"), 4);\n this.queue.add(new Person(\"Five\"), 5);\n boolean actualResult = this.queue.isEmpty();\n \n boolean expectedResult = false; \n assertEquals(expectedResult, actualResult);\n }", "public boolean enQueue(int value) {\n if (isFull()) {\n return false;\n }\n nums[rear] = value;\n rear = (rear + 1) % n;\n return true;\n }", "public boolean addRear(E temp) {\r\n if (elem.length == 0) {\r\n addFront(temp);\r\n } else {\r\n if (canAdd() == true) {\r\n rear++;\r\n rear = circular(rear);\r\n elem[rear] = temp;\r\n return true;\r\n } else {\r\n reallocate();\r\n addRear(temp);\r\n }\r\n }\r\n return false;\r\n }", "public boolean enQueue(int value) {\n if(!isFull()){\n if(head==-1) head=0;\n this.tail=(this.tail+1)%this.size;\n l.add(tail,value);\n return true;\n }\n return false;\n }", "void add(int list) {\n\t\t\n\t\t// check if element can be added to the queue\n\t\tif (!canPush)\n\t\t\tthrow new IllegalStateException(\"Queue capacity is excided!\");\n\t\t\n\t\t// add element into the cell push-pointer points to and shift pointer\n\t\tqueue[qPush++] = list;\n\t\t\n\t\t// set poll-flag, cuz there's now at least one element in the queue\n\t\tcanPoll = true;\n\t\t\n\t\t/*\n\t\t * If poll pointer went beyond array bounds - return it to the first position\n\t\t */\n\t\t\n\t\tif (qPush == queue.length)\n\t\t\tqPush = 0;\n\t\t\n\t\t/*\n\t\t * If push pointer now points to the poll pointer - then queue is full\n\t\t * Set flag\n\t\t */\n\t\t\n\t\tif (qPush == qPoll)\n\t\t\tcanPush = false;\n\t}", "public boolean enQueue(int value) {\n if (this.count == this.capacity)\n return false;\n this.queue[(this.headIndex + this.count) % this.capacity] = value;\n this.count += 1;\n return true;\n }", "public boolean add(T item) {\n boolean addSuccessful = items.add(item);\n if (addSuccessful) {\n currentSize = -1.0;\n inCapacitySize = -1.0;\n }\n return addSuccessful;\n }", "public boolean enQueue(int value) {\n if (isFull()) {\n return false;\n }\n if (isEmpty()) {\n head = 0;\n tail = 0;\n } else {\n if (tail >= size - 1) {\n tail = 0;\n } else {\n tail++;\n }\n }\n queue[tail] = value;\n return true;\n }", "public boolean enqueue(int item) {\n ListNode node = new ListNode(item);\n if (front == null) {\n front = node;\n rear = node;\n } else {\n rear.next = node;\n rear = node;\n }\n\n count += 1;\n return true;\n }", "public boolean push(Event event) {\n boolean add;\n synchronized (this) {\n if (this.queue.size() >= 180) {\n dispatchCallback(this.queue.flush());\n }\n add = this.queue.add(event);\n }\n return add;\n }", "public boolean push(E element){\r\n\t\t/**If array is full, create an array double the current size*/\r\n\t\tif(top==stack.length-1){\r\n\t\t\tstack = Arrays.copyOf(stack, 2*stack.length);\r\n\t\t}\r\n\t\tstack[++top] = element;\t\r\n\t\treturn true;\r\n\t}", "public boolean push(T x) throws NullPointerException\n\t{\n\t\tcheckNull(x);\n\t\treturn list.add(0, x);\n\t}", "public boolean add(T x) throws NullPointerException\n\t{\n\t\treturn push(x);\n\t}", "boolean addNextWidthTo(SchedulePriorityQueue queue) {\n\t\tif(widthAfterQueue == widths.size()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tList<ScheduleBlock> width = widths.get(widthAfterQueue++);\n\t\t\n\t\tfor(ScheduleBlock block : width) {\n\t\t\tblock.addToQueue(queue);\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "@Override\n public Object enqueue(Object x) {\n if (!isFull() && x != null){ // Pré-condição\n if (++tail >= MAX){\n tail = 0; // MAX-1 é a ultima posição do vetor\n }\n \n if (head == -1){\n head = tail;\n }\n \n memo[tail] = x;\n total++;\n return x;\n }\n else{ // Não pode inserir elemento nulo (x == null)\n return null; // Ou se a FILA estiver cheia\n }\n }", "public boolean enQueue(int value) {\n if (isFull())\n return false;\n if (isEmpty()) {\n b = e = 0;\n buf[0] = value;\n } else {\n e = (e+1)%buf.length;\n buf[e] = value;\n }\n return true;\n }", "@Override\n public boolean add(E e) {\n head++; //Increment the head by one\n if (head == ringArray.length)\n head = 0; //If we get to the end of the ring set the pointer to be 0 again to loop back round\n ringArray[head] = e; //Get the element\n if (elementCount < ringArray.length) //Increase the element count up until the length because at that point the number of elements cant change.\n elementCount++;\n return true;\n }", "public boolean offer(E x) {\n\t\tadd(x);\n\t\treturn true;\n\t}", "public boolean add(E obj)\r\n {\r\n int originalSize = this.size();\r\n listIterator(originalSize).add(obj);\r\n return originalSize != this.size();\r\n }", "public boolean add(E item) {\n if (item == null) { //Checks if the item is null if it is throws a new exception\n throw new IllegalArgumentException(\"Yeah Nah, No thanks null.\");\n }\n\n int index = findIndexOf(item); //For simplification\n\n if (data[index] != null) { //if the item at the index is not null\n if (data[index].equals(item))\n return false;\n }\n for (int i = count; i >= index; i--) { //iterates backward through the collection.\n\n if (i == index || i == 0) { //while iterating it checks if the value i is the same as index or 0, increments count and swaps the item.\n count++;\n ensureCapacity(); //checks capacity works, and if so adds item to and returns true.\n data[i] = item;\n return true;\n }\n data[i] = data[i - 1];\n }\n return false;\n }", "public boolean enQueue(int value) {\n if(tail == head && queue[head] == null){\n queue[head] = value;\n return true;\n }\n int nexttail = tail + 1 == queue.length ? 0 : tail + 1;\n if(nexttail == head){\n return false;\n }\n tail = nexttail;\n queue[tail] = value;\n return true;\n }", "@Override\n\tpublic boolean add(ComparableSimpleEntry e) {\n\t\t// Delete exception and implement here\n\t\tif (elementsLeft > 0) {\n\t\t\telementsLeft--;\n\t\t\tsuper.offer(e);\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\tif (super.peek().compareTo(e) < 0) {\n\t\t\t\tsuper.offer(e);\n\t\t\t\tsuper.poll();\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean putQueue(Object obj)\r\n {\r\n boolean returnval = false;\r\n\r\n try\r\n {\r\n returnval = event_q.add(obj);\r\n } catch (Exception ex)\r\n {\r\n return returnval;\r\n }\r\n\r\n return returnval;\r\n }", "public void insert(int x)\n\t{\n//\t\treturns if queue is full\n\t\tif(isFull())\n\t\t{\n\t\t\tSystem.out.println(\"Queue Overflow\\n\");\n\t\t\treturn;\n\t\t}\n\t\tif(front==-1)\n\t\t\tfront=0;\n//\t\tif rear = last index of array\n\t\tif(rear==queueArray.length-1)\n\t\t\trear=0;\n\t\telse\n//\t\t\tincrements rear\n\t\t\trear=rear+1;\n//\t\tinserts new element in rear of array\n\t\tqueueArray[rear]=x;\n\t}", "public boolean add(Node value) {\n //resize array\n if (size >= heap.length - 1) {\n heap = resize();\n }\n size++;\n int index = size;\n //place at the end\n heap[index] = value;\n\n shiftUp();\n return true;\n }", "@Override\r\n\tpublic void enqueueRear(E element) {\n\t\tif(sizeDeque == CAPACITY) return;\r\n\t\tif(sizeDeque == 0) {\r\n\t\t\tdata[backDeque] = element;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tbackDeque = (backDeque + 1)%CAPACITY;\r\n\t\t\tdata[backDeque] = element;\r\n\t\t}\r\n\t\t\r\n\t\tsizeDeque++;\r\n\t}", "public synchronized boolean addKeepingLast(Cincamimis message) throws QueueException, InterruptedException\r\n {\r\n if(message==null) return false;\r\n if(measurementQueue==null) throw new QueueException(\"CINCAMIMIS Queue not found\");\r\n \r\n boolean rdo=measurementQueue.offer(message);\r\n \r\n while(!rdo)\r\n {\r\n measurementQueue.take();\r\n rdo=measurementQueue.offer(message);\r\n }\r\n \r\n if(rdo)\r\n {\r\n this.notifyObservers();\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "void enqueue(int x)\n\t{\n\t\tif(isFull())\n\t\t{\n\t\t\tSystem.out.println(\"Queue is full!\");\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(isEmpty())\n\t\t\t\tfront++;\n\t\t\tqueue[++rear] = x;\n\t\t}\n\t}", "public boolean insertFront(int value) {\n if (head == tail && size == capacity)\n return false;\n else {\n head = (head + capacity - 1) % capacity;//由于head初始时为0,在最左侧,所以需要先找到双端队列\n //最右侧头端点:head的位置\n elementData[head] = value;//将当前插入的值赋值在head位置处\n size++;//元素个数++;\n return true;\n }\n\n }", "public void testAdd() {\n\ttry {\n SynchronousQueue q = new SynchronousQueue();\n assertEquals(0, q.remainingCapacity());\n q.add(one);\n shouldThrow();\n } catch (IllegalStateException success){\n\t}\n }", "public boolean enQueue(int value) {\n //队列已满\n if (count == capacity) {\n return false;\n }\n\n //队列为空, 重新设置头部\n if (count == 0) {\n head = (head == capacity) ? 0 : head;\n tail = head;\n array[head] = value;\n count++;\n return true;\n }\n\n //队列未满 (有空位)\n if (tail == capacity - 1) {\n //tail 达到 maxIndex, 重置为 0\n tail = 0;\n } else {\n //tail 未达到 maxIndex, tail++\n tail++;\n }\n array[tail] = value;\n count++;\n return true;\n }", "@Override\n\tpublic boolean add(Object e)\n\t{\n\t\tif (size == myArray.length)\n\t\t\tresizeUp();\n\t\tmyArray[size] = e;\n\t\tsize++;\n\t\treturn false;\n\t}", "@Override\n public void add(Integer element) {\n if (this.contains(element) != -1) {\n return;\n }\n // when already in use\n int index = this.getIndex(element);\n if(this.data[index] != null && this.data[index] != this.thumbstone){\n int i = index + 1;\n boolean foundFreePlace = false;\n while(!foundFreePlace && i != index){\n if(this.data[i] == null && this.data[i] == this.thumbstone){\n foundFreePlace = true;\n }else{\n if(i == this.data.length - 1){\n // start at beginning.\n i = 0;\n }else{\n i++;\n }\n }\n }\n if(foundFreePlace){\n this.data[i] = element;\n }else{\n throw new IllegalStateException(\"Data Structre Full\");\n }\n }\n }", "public void enqueue (E element);", "public boolean enqueue(Object c)\r\n\t{\r\n\t\tif (isFull())\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t{\r\n\t\t\ts1.push(c);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean insertLast(int value) {\n if (head == tail && size == capacity)\n return false;\n else {\n elementData[tail] = value;//由于tail初始时为0,在最左侧,即为双端队列\n //最左侧头端点:tail的位置;将value值插入进来后。\n tail = (tail + 1 + capacity) % capacity;//更新尾指针的指向指向前一个位置\n size++;\n return true;\n }\n }", "private Queue<Integer> addToQueue(Queue<Integer> q, int item, int maxLength){\n q.add(item);\n while(q.size() > maxLength){\n q.remove(); //make sure the queue size isn't larger than its supposed to be\n }\n //System.out.println(\"queue_after_added \" + q);\n return q;\n }", "public boolean add(Object x)\n {\n if (loadFactor() > 1)\n {\n resize(nearestPrime(2 * buckets.length - 1));\n }\n\n int h = x.hashCode();\n h = h % buckets.length;\n if (h < 0) { h = -h; }\n\n Node current = buckets[h];\n while (current != null)\n {\n if (current.data.equals(x))\n {\n return false; // Already in the set\n }\n current = current.next;\n }\n Node newNode = new Node();\n newNode.data = x;\n newNode.next = buckets[h];\n buckets[h] = newNode;\n currentSize++;\n return true;\n }", "@Override\r\n\tpublic boolean push(T e) {\r\n\t\tif(!isFull()) {\r\n\t\t\tstack[topIndex + 1] = e;\r\n\t\t\ttopIndex++;\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean offerLast(E x) {\n\t\taddLast(x);\n\t\treturn true;\n\t}", "@Override\n\tpublic void enqueue(E e) {\n\t\tint index = (pos + size) % queue.length;\n\t\tqueue[index] = e;\n\t\tsize++;\n\t}", "public boolean add(T x) {\t// taken from AVLTree\n\t\tEntry<T> newElement = new Entry<T>(x, null, null);\n\n\t\tif (root == null) {\n\t\t\troot = newElement;\n\t\t\tnewElement.parent = null;\n\t\t\t//size++;\n\t\t}\n\n\t\tEntry<T> t = getSplay(find(x));\n\t\tif (t.element.compareTo(x) == 0) {\n\t\t\tt.element = x;\n\t\t\treturn false;\n\t\t} else if (x.compareTo(t.element) < 0) {\n\t\t\tt.left = newElement;\n\t\t\tnewElement.parent = t;\n\n\t\t} else {\n\t\t\tt.right = newElement;\n\t\t\tnewElement.parent = t;\n\t\t}\n\n\t\t//size++;\n\t\tsplay(newElement);\n\t\treturn true;\n\t}", "@Override\n public boolean add(T e) {\n if (elements.add(e)) {\n ordered.add(e);\n return true;\n } else {\n return false;\n }\n }", "public boolean add(T value) {\n if (size == arr.length) {\n final int newSize = arr.length * 3 / 2 + 1;\n T[] newArr = (T[]) new Object[newSize];\n System.arraycopy(arr, 0, newArr, 0, arr.length);\n this.arr = newArr;\n }\n arr[size++] = value;\n return true;\n }", "public boolean add (E item)\n {\n add(size, item); // calling public method add\n return true;\n }", "public void push(int x) {\n int n = queue.size();\n queue.offer(x);\n for (int i = 0; i < n; i++) {\n queue.offer(queue.poll());\n }\n }", "public boolean isFull(){\n return size == arrayQueue.length;\n }", "public boolean add (T obj) {\r\n\t\tboolean result = _list.add (obj);\r\n\t\tHeapSet.siftUp (this, _list.size () - 1);\r\n\t\treturn result;\r\n\t}", "public synchronized void add(Object object) {\n\n if (_queue.size() == 0) {\n // no elements then simply add it here\n _queue.addElement(object);\n } else {\n int start = 0;\n int end = _queue.size() - 1;\n\n if (_comparator.compare(object,\n _queue.firstElement()) < 0) {\n // it need to go before the first element\n _queue.insertElementAt(object, 0);\n } else if (_comparator.compare(object,\n _queue.lastElement()) > 0) {\n // add to the end of the queue\n _queue.addElement(object);\n } else {\n // somewhere in the middle\n while (true) {\n int midpoint = start + (end - start) / 2;\n if (((end - start) % 2) != 0) {\n midpoint++;\n }\n\n int result = _comparator.compare(\n object, _queue.elementAt(midpoint));\n\n if (result == 0) {\n _queue.insertElementAt(object, midpoint);\n break;\n } else if ((start + 1) == end) {\n // if the start and end are next to each other then\n // insert after at the end\n _queue.insertElementAt(object, end);\n break;\n } else {\n if (result > 0) {\n // musty be in the upper half\n start = midpoint;\n } else {\n // must be in the lower half\n end = midpoint;\n }\n }\n }\n }\n }\n }", "public boolean add( Object newVal )\n {\n\t//first expand if necessary\n\tif ( _size >= _data.length )\n\t expand();\n\n\t_data[_size] = newVal;\n\t_size++;\n\n\treturn true;\n }", "@Override\n public boolean hasNext() {\n return !queue.isEmpty();\n }", "public boolean addToSortedQueue(ArrayList<Integer> job) throws RemoteException;", "public boolean offer(T x) {\n\treturn add(x);\n }", "public boolean add(int index, T element) {\n if(index < 0 || index > this.size()) {\n return false;\n } else if (index == 0) {\n addHead(element);\n return true;\n } else if (index == size()) {\n addTail(element);\n return true;\n }\n \n int i = 0;\n Node<T> preTemp = head;\n Node<T> temp = head;\n \n while(i < index) {\n preTemp = temp;\n temp = temp.getNext();\n i++;\n }\n\n Node<T> newNode = new Node<>(element);\n newNode.setNext(preTemp.getNext());\n preTemp.setNext(newNode);\n return true;\n\n }", "public void add(E element){\n\t\tArrayQueue<E> temp = new ArrayQueue<E>();\n\t\ttemp.enqueue(element);\n\t\tQ.enqueue(temp);\n\t}", "public boolean insertLast(int value) {\n if (isFull()) {\n return false;\n } else if (front == 0 && !isEmpty()) {\n int[] newElements = new int[capacitySize];\n System.arraycopy(elements, 0, newElements, 1, last);\n elements = newElements;\n front = 0;\n last++;\n elements[0] = value;\n } else if (front == 0 && isEmpty()) {\n elements[0] = value;\n last++;\n } else {\n elements[--front] = value;\n }\n return true;\n }", "@Override\n public boolean add(E e) {\n if (root != null) {\n if (!root.addElement(e)) {\n return false;\n }\n root = root.balance();\n } else {\n root = new Node(e, null, null, 1);\n }\n size++;\n return true;\n }", "public void push(int x) {\n queue.addLast(x);\n }", "public void push(int x) {\n queue.addLast(x);\n }", "@Override\n public boolean add(T value) {\n if (!this.validate(this.cursor)) {\n this.ensureCapacity();\n }\n this.values[this.cursor++] = value;\n return this.values[this.cursor - 1].equals(value);\n }", "@Override\n\tpublic void addToQueue() {\n\t}", "public boolean add(int key) {\r\n\t\tint i = ArrayUtils.binarySearch(keys, size, key);\r\n\r\n\t\tif (i >= 0) {\r\n\t\t\treturn false; // already in array no need to add again\r\n\t\t} else {\r\n\t\t\ti = ~i;\r\n\r\n\t\t\tif (size >= keys.length) {\r\n\t\t\t\tint n = ArrayUtils.idealArraySize(size + 1);\r\n\r\n\t\t\t\tint[] nkeys = new int[n];\r\n\r\n\t\t\t\tSystem.arraycopy(keys, 0, nkeys, 0, keys.length);\r\n\t\t\t\tkeys = nkeys;\r\n\t\t\t}\r\n\r\n\t\t\tif (size - i != 0) {\r\n\t\t\t\tSystem.arraycopy(keys, i, keys, i + 1, size - i);\r\n\t\t\t}\r\n\r\n\t\t\tkeys[i] = key;\r\n\t\t\tsize++;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t}", "private boolean needToGrow() {\n if(QUEUE[WRITE_PTR] != null) {\n return true;\n }\n else {\n return false;\n }\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void push(Object element) {\n\t\tif(size == capacity) {\n\t\t\tthrow new IllegalArgumentException(\"Capacity has been reached.\");\n\t\t}\n\t\tlist.add(0, (E) element);\n\t\tsize++;\n\t\t\n\t}", "@Override\n\tpublic boolean add(T insertItem) {\n\t\t// TODO Just add the item to the array\n\t\tif (isFull()) {\n\t\t\treturn false;\n\t\t}\n\t\tdata[size++] = insertItem;\n\t\treturn true;\n\t}", "public void push(int x) {\n // Write your code here\n if (queue1.isEmpty() && queue2.isEmpty()) {\n queue1.offer(x);\n } else if (!queue1.isEmpty()) {\n queue1.offer(x);\n } else {\n queue2.offer(x);\n }\n }", "public boolean inputQueuePutBottle(Bottle input) {\n\t\tsynchronized (inputQueue) {\n\t\t\tif (this.inputQueueSize() < 2) {\n\t\t\t\tinputQueue.add(input);\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "public void enqueue(E item) throws IllegalStateException {\n if (size == arrayQueue.length) {\n throw new IllegalStateException(\"Queue is full\");\n }\n int available = (front + size) % arrayQueue.length;\n arrayQueue[available] = item;\n size++;\n }", "public void enqueue(Integer elem) {\n\t\t // add to end of array\n\t\t // increase size\n\t\t // create a recursive helper, percolateUp,\n\t\t // that allows you puts the inserted val \n\t\t // in the right place\n\t\t if(size == capacity) {\n\t\t\t ensureCapacity(size);\n\t\t }\n\t\t data[size] = elem;\n\t\t size++;\n\t\t percolateUp(size-1); \n\t }", "public boolean insertLast(int value) {\n if (isFull()) {\n return false;\n }\n queue[tail] = value;\n tail = moveRight(tail);\n return true;\n }", "public boolean addNewItem(VendItem item) {\n if (itemCount < maxItems) {\n stock[itemCount] = item;\n itemCount++;\n return true;\n } else {\n return false;\n }\n }", "public void push(int x) {\n queue.add(x);\n for (int i = 0; i < queue.size()-1; i++) {\n queue.add(queue.poll());\n }\n }", "@Override\n public boolean add(E e) {\n return offer(e);\n }", "public void enqueue (int elemento) {\n if(!isFull()){\n data[last] = elemento;\n count++;\n if(last == data.length-1) {\n last = 0;\n } else {\n last++;\n }\n }else{\n throw new RuntimeException(\"A fila está cheia\");\n }\n\n }", "public boolean isFull()\n\t{\n\t return (front==0 && rear==queueArray.length-1 || (front==rear+1));\n\t}" ]
[ "0.7698989", "0.7616281", "0.76037276", "0.7419195", "0.7402528", "0.72252077", "0.72056097", "0.71504575", "0.70695686", "0.69989276", "0.6985303", "0.69734186", "0.69621783", "0.6952981", "0.69383353", "0.69173586", "0.6881373", "0.6842868", "0.68312675", "0.6777907", "0.67381465", "0.6722778", "0.67184836", "0.66995794", "0.66961867", "0.6683595", "0.6679294", "0.6672509", "0.6650423", "0.664134", "0.66390145", "0.6633391", "0.66211367", "0.6620001", "0.66160285", "0.66111636", "0.6610591", "0.6605369", "0.6604665", "0.65856874", "0.6548381", "0.6526967", "0.6521541", "0.6521102", "0.65041065", "0.64742815", "0.6470491", "0.6458196", "0.64563286", "0.64560103", "0.6453502", "0.64511216", "0.644181", "0.6432707", "0.64263123", "0.64195126", "0.6413737", "0.63825864", "0.63768816", "0.6371139", "0.63630193", "0.6354688", "0.634335", "0.6332054", "0.63304496", "0.632903", "0.63228816", "0.63220096", "0.63211566", "0.63045925", "0.629036", "0.6288267", "0.62864065", "0.62708634", "0.6255025", "0.6254256", "0.6244618", "0.624181", "0.6234617", "0.6234358", "0.6221873", "0.6219833", "0.6219234", "0.621902", "0.62157977", "0.6209211", "0.62053835", "0.6204683", "0.6197929", "0.6189535", "0.61737126", "0.6171801", "0.6169239", "0.6168154", "0.6164173", "0.6164099", "0.61585575", "0.61538076", "0.6152529", "0.61501145" ]
0.789981
0
void toArray(T[] a):fill user supplied array with the elements of the queue, in queue order
T[] toArray(T[] a){ if(isEmpty()){ return null; } for(int i=0;i<tail;i++){ a[i] = (T) queueArray[i]; } return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toArray(Object[] a) {\n int index = 0;\n int size = count;\n int i = (front + 1) % maxSize;\n while(size > 0){\n a[index++] = queue[i++];\n i %= maxSize;\n size--;\n }\n }", "@Override\n public Object[] toArray() {\n return queue;\n }", "public <T> T[] toArray(T[] a) {\n int k = 0;\n Node<E> p;\n for (p = first(); p != null && k < a.length; p = succ(p)) {\n E item = p.item;\n if (item != null)\n a[k++] = (T)item;\n }\n if (p == null) {\n if (k < a.length)\n a[k] = null;\n return a;\n }\n\n // If won't fit, use ArrayList version\n ArrayList<E> al = new ArrayList<E>();\n for (Node<E> q = first(); q != null; q = succ(q)) {\n E item = q.item;\n if (item != null)\n al.add(item);\n }\n return al.toArray(a);\n }", "public void fixArray(){\n if (size == 0 || queue.length < 1){\n return;\n }\n E[] newer = ((E[])new Comparable[queue.length]);\n\n int x = 0;\n for(Object cur : queue){\n if (cur != null){\n newer[x++] = (E)cur;\n }\n }\n\n this.queue = newer;\n this.size = x;\n\n }", "T[] toArray(T[] a);", "@Override\n public <T> T[] toArray(T[] a) {\n if (a.length < size) {\n return (T[])toArray();\n }\n System.arraycopy(toArray(), 0, a, 0, size);\n if (a.length > size) {\n a[size] = null;\n }\n return a;\n }", "Queue3(char a[]){\n\t\tputloc = 0;\n\t\tgetloc = 0;\n\t\tq = new char[a.length];\n\t\t\n\t\tfor(int i =0; i<a.length;i++)\n\t\t\tput(a[i]);\n\t}", "public Object[] toArray(Object a[]) {\r\n if (a.length < size)\r\n//STUB BEGIN\r\n /*a = (Object[])java.lang.reflect.Array.newInstance(\r\n a.getClass().getComponentType(), size);*/\r\n \ta = new Object[size];\r\n//STUB END\r\n int i = 0;\r\n for (Entry e = header.next; e != header; e = e.next)\r\n a[i++] = e.element;\r\n\r\n if (a.length > size)\r\n a[size] = null;\r\n\r\n return a;\r\n }", "@Override\r\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn set.toArray(a);\r\n\t}", "public void testToArray2() {\n SynchronousQueue q = new SynchronousQueue();\n\tInteger[] ints = new Integer[1];\n assertNull(ints[0]);\n }", "public static void enqueue(ArrayQueueADT queue, Object obj) {\n Objects.requireNonNull(obj);\n ensureCapacity(queue, queue.size + 1);\n queue.elements[(queue.head + queue.size++) % queue.elements.length] = obj;\n }", "public ArrayQueue() {\n Object[] arr = new Object[INITIAL_CAPACITY];\n backingArray = (T[]) arr;\n size = 0;\n front = 0;\n }", "public <Q> Q[] asDataArray(Q[] a);", "public E[] toArray() {\n return (E[]) Arrays.copyOfRange(queue, startPos, queue.length);\n }", "default <T> T[] toArray(T[] a) {\n int size = size();\n\n // It is more efficient to call this method with an empty array of the correct type.\n // See also: https://stackoverflow.com/a/29444594/146622 and https://shipilev.net/blog/2016/arrays-wisdom-ancients/\n @SuppressWarnings(\"unchecked\")\n T[] array = a.length != size ? (T[])java.lang.reflect.Array.newInstance(a.getClass().getComponentType(), size) : a;\n\n // This implementation allocates the iterator object,\n // since collections, in general, do not have random access.\n\n Iterator<E> iterator = this.iterator();\n int i = 0;\n // Copy all the elements from the iterator to the array we allocated\n while (iterator.hasNext() && i < size) {\n @SuppressWarnings(\"unchecked\")\n T element = (T)iterator.next();\n array[i] = element;\n i += 1;\n }\n if (i < size) {\n // Somehow we got less elements from the iterator than expected.\n // Null-terminate the array (seems to be good practice).\n array[i] = null;\n // Copy the interesting part of the array and return it.\n return Arrays.copyOf(array, i);\n }\n else if (iterator.hasNext()) {\n // Somehow there are more elements in the iterator than expected.\n // We'll use an ArrayList for the rest.\n List<T> list = Arrays.asList(array);\n while (iterator.hasNext()) {\n @SuppressWarnings(\"unchecked\")\n T element = (T)iterator.next();\n list.add(element);\n }\n // Here we know the array was too small, so it doesn't matter what we pass.\n return list.toArray(a);\n } else {\n // Happy path: the array's size was just right to get all the elements from the iterator.\n return array;\n }\n }", "@Override // java.util.Collection, java.util.Set\r\n public <T> T[] toArray(T[] array) {\r\n if (array.length < this.f513d) {\r\n array = (Object[]) Array.newInstance(array.getClass().getComponentType(), this.f513d);\r\n }\r\n System.arraycopy(this.f512c, 0, array, 0, this.f513d);\r\n int length = array.length;\r\n int i2 = this.f513d;\r\n if (length > i2) {\r\n array[i2] = null;\r\n }\r\n return array;\r\n }", "@Override\n public void handle(Node[] array) {\n int shiftingIndex = head; // number of elements that the queue should be shifted\n for (int i = 0; i <= tail - head; i++) {\n // If it is the last element this swap should not happen, as it is empty due to the shift.\n array[i] = array[i + shiftingIndex];\n array[i + shiftingIndex] = null;\n }\n // The new tail will be the difference between the last tail and the last head.\n tail = tail - head;\n head = 0;\n }", "public void enqueue(T data) {\n if (data == null) {\n throw new IllegalArgumentException(\"The data you entered is null.\"\n + \" Please enter existing data.\");\n }\n if (size == backingArray.length) {\n T[] oldarray = backingArray;\n Object[] arr = new Object[2 * size];\n backingArray = (T[]) arr;\n int temp = front;\n for (int i = 0; i < oldarray.length - front; i++) {\n backingArray[i] = oldarray[temp];\n temp++;\n }\n temp = 0;\n for (int i = oldarray.length - front; i < oldarray.length; i++) {\n backingArray[i] = oldarray[temp];\n temp++;\n }\n front = 0;\n backingArray[size] = data;\n } else if (backingArray[backingArray.length - 1] != null) {\n int back = (front + size) % backingArray.length;\n backingArray[back] = data;\n\n } else {\n int back = front + size;\n backingArray[back] = data;\n }\n size++;\n\n }", "@Override\n\t\tpublic <T> T[] toArray(T[] a) {\n\t\t\treturn null;\n\t\t}", "@Override\r\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn null;\r\n\t}", "@Override\n public void enqueue(E e) {\n array.addLast(e);\n }", "@Override\r\n\tpublic <T> T[] toArray(T[] a)\r\n\t{\n\t\tthrow new UnsupportedOperationException(\"Series collection doesn't support this operation.\");\r\n\t}", "public void queue(Object newItem){\n if(isFull()){\n System.out.println(\"queue is full\");\n return;\n }\n ArrayQueue[++rear] = newItem;\n if(front == -1)\n front = 0;\n \n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic ArrayQueue() {\r\n a = (Item[]) new Object[2];\r\n n = 0;\r\n head =0;\r\n tail = 0;\r\n }", "public void debugQueue(int[] values){ \r\n\t\tfor (int x = 0; x <=4; x++){\r\n\t\t\tqueue[x] = values[x];\r\n\t\t}\r\n\t}", "PriorityQueueUsingArray(int size) {\n\t\tthis.array = new Nodes[size + 1];\n\t}", "@Override\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn null;\n\t}", "void setUp(Comparable[] input) {\n\n\t\t// Clone input array, to get data from\n\t\tarray = Arrays.copyOf(input, input.length);\n\t\t\n\t\t/*\n\t\t * Initialize arrays:\n\t\t * \"data\" is the array of lists\n\t\t * \"next\" is the array of list tails\n\t\t * \"queue\" is the array for the queue implementation\n\t\t */\n\t\tdata = new int[input.length];\n\t\tnext = new int[input.length];\n\t\tqueue = new int[input.length];\n\t\t\n\t\t// fill array of tail with NIL values\n\t\tArrays.fill(next, NIL);\n\t\t\n\t\t// fill array of lists and queue with indexes\n\t\tfor (int i = 0; i < input.length; i++)\n\t\t\tdata[i] = queue[i] = i;\n\t\t\n\t\t// set queue pointers to the first cell\n\t\tqPush = qPoll = 0;\n\n\t\t/*\n\t\t * At this point queue is full.\n\t\t * So set flags: can poll, but cannot push\n\t\t */\n\t\tcanPush = false;\n\t\tcanPoll = true;\n\t}", "public void enqueue(T item) {\r\n\r\n\t\t++item_count;\r\n\t\tif(item_count==arr.length)\r\n\t\t\tdoubleArray();\r\n\t\tarr[++back%arr.length]=item;\r\n\t}", "public void enqueue(Item item) {\n if (item == null) throw new NullPointerException();\n\n if (size == array.length) {\n Item[] temp = (Item[]) new Object[array.length * 2];\n System.arraycopy( array, 0, temp, 0, array.length);\n array = temp;\n temp = null;\n }\n array[size] = item;\n size++;\n if(size>1) { \n int x=StdRandom.uniform(size);\n Item temp=array[x];\n array[x]=array[size-1];\n array[size-1]=temp;\n }\n\n }", "public T[] toArray(T[] array) {\n\t\tif (array.length < size)\n\t\t\tarray = (T[]) java.lang.reflect.Array.newInstance(\n\t\t\t\t\tarray.getClass().getComponentType(), size);\n\t\tNode<T> curNode = head;\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tarray[i] = curNode.value;\n\t\t\tcurNode = curNode.next;\n\t\t}\n\t\treturn array;\n\t}", "public <T> T[] toArray(T[] arr);", "public ArrayPriorityQueue()\n { \n\tqueue = new ArrayList();\n }", "public BoundedQueue(int size){\n queueArray = (T[]) new Object[size];\n tail = 0;\n }", "public static void main(String[] args) {\n ArrayQueue<String> qu = new ArrayQueue<>();\n\n qu.enqueue(\"this\");\n System.out.println(qu);\n\n qu.enqueue(\"is\");\n System.out.println(qu);\n\n qu.enqueue(\"a\");\n System.out.println(qu);\n\n System.out.println(qu.dequeue());\n System.out.println(qu);\n\n qu.enqueue(\"queue\");\n System.out.println(qu);\n\n qu.enqueue(\"of\");\n System.out.println(qu);\n\n // qu.enqueue(\"strings\");\n // System.out.println(qu);\n\n\n while (!qu.isEmpty()) {\n System.out.println(qu.dequeue());\n System.out.println(qu);\n }\n\n }", "public <T> T[] toArray(T[] userArray) {\n\t\tint k;\n\t\tNode p;\n\t\tObject[] retArray;\n\n\t\tif (mSize > userArray.length)\n\t\t\tretArray = new Object[mSize];\n\t\telse\n\t\t\tretArray = userArray;\n\n\t\tfor (k = 0, p = mHead.next; k < mSize; k++, p = p.next)\n\t\t\tretArray[k] = p.data;\n\n\t\tif (mSize < userArray.length)\n\t\t\tretArray[mSize] = null;\n\n\t\treturn (T[]) userArray;\n\t}", "void clear(){\n this.queueArray = (T[]) new Object[0];\n this.tail = 0;\n }", "E[] toArray();", "@SuppressWarnings(\"unchecked\")\n public E[] toArray(E[] arr) {\n if(arr.length < size) {\n arr = (E[]) Array.newInstance(arr.getClass().getComponentType(), size);\n }\n Node<E> cur = head;\n for(int i = 0; i < size; i++) {\n arr[i] = cur.item;\n cur = cur.next;\n }\n return arr;\n }", "@Override\n public <T> T[] toArray(final T[] array) {\n\n if (array.length < this.size) {\n return (T[]) this.copyArray(this.data, this.size);\n } else if (array.length > this.size) {\n array[this.size] = null;\n }\n\n for (int i = 0; i < this.size; i++) {\n array[i] = (T) this.data[i];\n }\n\n return array;\n }", "private void addToQueue (Parcel[] packagesAssigned){\n\n }", "@Test\n public void testEnqueue() {\n Queue queue = new Queue();\n queue.enqueue(testParams[1]);\n queue.enqueue(testParams[2]);\n queue.enqueue(testParams[3]);\n queue.enqueue(testParams[4]);\n queue.enqueue(testParams[5]);\n\n Object[] expResult = {testParams[1], testParams[2], testParams[3], testParams[4], testParams[5]};\n\n // call tested method\n Object[] actualResult = new Object[queue.getSize()];\n int len = queue.getSize();\n for(int i = 0; i < len; i++){\n actualResult[i] = queue.dequeue();\n }\n\n // compare expected result with actual result\n assertArrayEquals(expResult, actualResult);\n }", "public void enqueue(T element);", "public CircularQueueUsingArray() {\n\t\tarray = new int[size];\n\t}", "public void addAll(T[] arr);", "@Override\n public void sort(Comparable[] a){\n aux = new Comparable[a.length];\n sort(a, 0, a.length - 1);\n }", "static <T> T[] toArray(T... args) {\n return args;\n }", "@Override\n public void enqueue(T value) {\n myQ[myLength] = value;\n myLength++;\n }", "void enqueue(T t);", "public static void main(String[] args) {\n int[] test = {1,2,3,4,5,6,7,8,9,10};\n Queue testing = new Queue(test);\n int[] pulled = new int[3];\n pulled[0] = testing.pop();\n pulled[1] = testing.pop();\n pulled[0] = testing.pop();\n System.out.println(\"pulled \" + pulled[0] + \" \" + pulled[1] + \" \" + pulled[2]);\n testing.push(pulled);\n testing.iter();\n }", "public void enqueue(Item item)\r\n {\r\n if (item == null) throw new NullPointerException(\"Null item\");\r\n if (n == a.length) resize(2 * a.length); // double the size of array if necessary\r\n a[n++] = item;\r\n }", "public DelayedJob[] toArray() {\n final DelayedJob[] jobs = (DelayedJob[]) deque.toArray();\n Arrays.sort(jobs);\n return jobs;\n }", "public synchronized void reSort(int t){\n Process[] newQueue = new Process[queue.length];\n Process temp;\n int k =0;\n for(int i = 0; i<queue.length; i++){\n temp =null;\n for(int j =0; j < pros.proSize(); j++){\n if(queue[j].getArrivalTime() > t){\n\n }else if(queue[j].getArrivalTime() <= t && temp == null){\n temp = new Process(queue[j]);\n }else if (queue[j].getArrivalTime() <= t && temp != null && (t-queue[j].getArrivalTime()) < (t-temp.getArrivalTime())){\n temp = queue[j];\n } else if (queue[j].getArrivalTime() <= t && queue[j].getArrivalTime() == temp.getArrivalTime() && queue[j].getId() < temp.getId()){\n temp = queue[j];\n }\n\n }\n if(temp != null){\n newQueue[k++] = temp;\n pros.remove(temp.getId());\n }\n }\n if(pros.proSize() > 0){\n for(int i=0; k<queue.length; i++){\n if(notInArray(queue[i], newQueue)){\n newQueue[k++] = queue[i];\n pros.remove(queue[i].getId());\n }\n }\n }\n //pass newly organized queue to the queue variable\n queue = newQueue;\n //re-insert processes into the arraylist\n for(int i = 0; i< queue.length; i++){\n pros.addPro(queue[i]);\n }\n }", "@SuppressWarnings(\"unchecked\")\n public ArrayQueue(int initialSize) {\n if (initialSize < 1) initialSize = INITIAL_SIZE;\n store = (T[]) new Object[initialSize];\n frontIndex = 0;\n count = 0;\n }", "Object[] toArray();", "Object[] toArray();", "Object[] toArray();", "public synchronized <T> T[] toArray(T[] a) {\r\n // fall back on teh file\r\n FileReader fr = null;\r\n BufferedReader br = null;\r\n try {\r\n fr = new FileReader(getToggleFile());\r\n br = new BufferedReader(fr);\r\n for (String line = br.readLine(); line != null; line = br.readLine()) {\r\n// String[] parts = line.split(\"~\");\r\n// // make a new pfp\r\n// ProjectFilePart pfp = new ProjectFilePart(parts[0].replace(\"\\\\~\", \"~\"), BigHash.createHashFromString(parts[1]), Base16.decode(parts[2]));\r\n ProjectFilePart pfp = convertToProjectFilePart(line);\r\n // buffer it\r\n buf.add(pfp);\r\n }\r\n } catch (Exception e) {\r\n throw new RuntimeException(e);\r\n } finally {\r\n IOUtil.safeClose(br);\r\n IOUtil.safeClose(fr);\r\n }\r\n return (T[]) buf.toArray(a);\r\n }", "void enqueue(Object elem);", "void writeBack(Comparable[] arr, int list) {\n\n\t\t// Iterate array and put sorted elements in it \n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\t\n\t\t\tarr[i] = this.array[list];\n\t\t\tlist = next[list];\n\t\t}\n\t\t\n\t\t/*\n\t\t * Release resources.\n\t\t */\n\t\t\n\t\tthis.array = null;\n\t\tthis.data = null;\n\t\tthis.next = null;\n\t\tthis.queue = null;\n\t}", "public ResizingArrayQueueOfStrings(){\n s = (Item[]) new Object[2];\n n = 0;\n first = 0;\n last = 0;\n }", "public void enqueue(Integer elem) {\n\t\t // add to end of array\n\t\t // increase size\n\t\t // create a recursive helper, percolateUp,\n\t\t // that allows you puts the inserted val \n\t\t // in the right place\n\t\t if(size == capacity) {\n\t\t\t ensureCapacity(size);\n\t\t }\n\t\t data[size] = elem;\n\t\t size++;\n\t\t percolateUp(size-1); \n\t }", "@Override\n\tpublic void enqueue(E e) {\n\t\tif(size==data.length-1){\n\t\t\tresize();\n\t\t}\n\t\tif(rear==data.length-1){\n\t\t\tdata[rear]=e;\n\t\t\tsize++;\n\t\t\trear=(rear+1)%data.length;\n\t\t}else{\n\t\t\tsize++;\n\t\t\tdata[rear++]=e;\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n\tpublic <T> T[] toArray(T[] a) {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void enqueue(Item item) {\n if (item == null)\n throw new NullPointerException();\n\n // Check if whole array has been filled up, and act accordingly\n if (values.length == elements)\n resize((int) (elements * GROWTH_FACTOR));\n\n // Add element into values array\n values[elements++] = item;\n }", "@Override\r\n\tpublic void enqueue(Item item) {\r\n\t\tif (item == null)\r\n\t\t\tthrow new NullPointerException(\"You cannot put a 'null' element inside the queue\");\r\n\t\tif (count == arr.length)\r\n\t\t\tresize(arr.length * 2);\r\n\t\tarr[count++] = item;\r\n\t}", "public void enqueue (E element);", "public ArrayQueue(int startSize) {\n if (startSize <= 1) startSize = 2;\n this.queue = new Object[startSize];\n this.size = 0;\n this.startPos = 0;\n this.currentPos = 0;\n }", "void enqueue(T x);", "@Override\n public T[] toArray() {\n T[] result = (T[])new Object[numItems];\n for(int i = 0; i < numItems; i++)\n result[i] = arr[i];\n return result;\n }", "public void insertToArray()\n {\n //if the bucket size is not empty, empty out the bucket\n if(zero.size() != 0)\n {\n a[c] = zero.get(0);\n zero.remove(0);\n c++; s++;\n return;\n }\n if(one.size() != 0)\n {\n a[c] = one.get(0);\n one.remove(0);\n c++; s++;\n return;\n }\n if(two.size() != 0)\n {\n a[c] = two.get(0);\n two.remove(0);\n c++; s++;\n return;\n }\n if(three.size() != 0)\n {\n a[c] = three.get(0);\n three.remove(0);\n c++; s++;\n return;\n }\n if(four.size() != 0)\n {\n a[c] = four.get(0);\n four.remove(0);\n c++; s++;\n return;\n }\n if(five.size() != 0)\n {\n a[c] = five.get(0);\n five.remove(0);\n c++; s++;\n return;\n }\n if(six.size() != 0)\n {\n a[c] = six.get(0);\n six.remove(0);\n c++; s++;\n return;\n }\n if(seven.size() != 0)\n {\n a[c] = seven.get(0);\n seven.remove(0);\n c++; s++;\n return;\n }\n if(eight.size() != 0)\n {\n a[c] = eight.get(0);\n eight.remove(0);\n c++; s++;\n return;\n }\n if(nine.size() != 0)\n {\n a[c] = nine.get(0);\n nine.remove(0);\n c++; s++;\n return;\n }\n }", "public Object[] toArray(Object ao[])\n {\n Object[] aoAll = super.toArray(ao);\n int cAll = aoAll.length;\n\n int ofSrc = 0;\n int ofDest = 0;\n while (ofSrc < cAll)\n {\n Entry entry = (Entry) aoAll[ofSrc];\n if (entry == null)\n {\n // this happens when ao is passed in and is larger than\n // the number of entries\n break;\n }\n else if (entry.isExpired())\n {\n removeExpired(entry, true);\n }\n else\n {\n if (ofSrc > ofDest)\n {\n aoAll[ofDest] = aoAll[ofSrc];\n }\n ++ofDest;\n }\n ++ofSrc;\n }\n\n if (ofSrc == ofDest)\n {\n // no entries expired; return the original array\n return aoAll;\n }\n\n if (ao == aoAll)\n {\n // this is the same array as was passed in; per the toArray\n // contract, null the element past the end of the non-expired\n // entries (since we removed at least one entry) and return it\n ao[ofDest] = null;\n return ao;\n }\n\n // resize has to occur because we've removed some of the\n // entries because they were expired\n if (ao == null)\n {\n ao = new Object[ofDest];\n }\n else\n {\n ao = (Object[]) Array.newInstance(ao.getClass().getComponentType(), ofDest);\n }\n\n System.arraycopy(aoAll, 0, ao, 0, ofDest);\n return ao;\n }", "public void sort(int[] a) {\n\t\tqs(a, 0, a.length-1);\n\t}", "void sort(int a[]) throws Exception {\n\n // Make the input into a heap\n for (int i = a.length-1; i >= 0; i--)\n reheap (a, a.length, i);\n\n // Sort the heap\n for (int i = a.length-1; i > 0; i--) {\n int T = a[i];\n a[i] = a[0];\n a[0] = T;\n pause();\n reheap (a, i, 0);\n }\n }", "@Override\n public T[] toArray() {\n return (T[]) array;\n }", "public RandomizedQueue()\r\n {\r\n a = (Item[]) new Object[2];\r\n n = 0;\r\n }", "public static void sort(Comparable[] a){\n for(int i=1;i<a.length;i++){\n // Insert a[i] among a[i-1],a[i-2],a[i-3]...\n for (int j=i;j>0&&less(a[j],a[j-1]);j--){\n exch(a,j,j-1);\n }\n }\n }", "public AddToQueue(PriorityQueue<Passenger> queue, Passenger[] arrivedOrder) {\n\t\tthis.queue = queue;\n\t\tthis.arrivedOrder = arrivedOrder;\n\t\tthis.capacity = arrivedOrder.length;\n\t}", "void enqueue(E el);", "private void queueResize() {\n queue = Arrays.copyOf(queue, queue.length + 1);\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic E[] toArray(E[] e) {\r\n\t\tif (e.length < heap.size()) {\r\n\t\t\te = (E[]) Array.newInstance(e.getClass().getComponentType(), heap.size());\r\n\t\t}\r\n\t\treturn heap.toArray(e);\r\n\t}", "public ArrayDeque() {\n array = (T[]) new Object[8];\n size = 0;\n front = 0;\n rear = 0;\n }", "public void enqueue(Object data){\r\n super.insert(data, 0);//inserts it to the first index everytime (for tostring)\r\n }", "public void enqueue(Item item){\n if (item == null){ throw new NullPointerException(\"Cannot add a null item\"); }\n\n // fill the nulls\n if(itemCount < array.length) {\n for(int i=0;i<array.length;i++) {\n if(array[i] == null) {\n array[i] = item;\n break;\n }\n }\n }\n // resize when too big\n if(itemCount == array.length){\n resize(2*itemCount);\n array[itemCount] = item;\n }\n itemCount++; // Item added!!\n }", "public void enqueue(Comparable item);", "public void enqueue(E e) {\n if (e == null){\n throw new NullPointerException();\n }\n\n int x = size;\n size++;\n\n if (x+1 >= queue.length-1){\n this.queue = resize((E[])queue, queue.length*2);\n }\n //size = size + 1;\n if (x == 0){\n queue[0] = e;\n }else{\n\n if (size == queue.length){\n resize((E[])queue, queue.length*2);\n }\n queue[findNull()] = e;\n shift();\n\n }\n }", "private void expandArray() {\r\n//\t\tSystem.out.println(\"Expanding: current capacity \" + capacity); //Used for debugging\r\n\t\tcapacity = 2 * capacity;\r\n\t\tE[] temp = (E[]) new Object[capacity];\r\n\t\tfor (int i = 0; i < t + 1; i++)\r\n\t\t\ttemp[i] = stack[i];\r\n\t\tstack = temp;\r\n\t}", "void processQueue();", "static double [] quickSort (double a[]){\r\n \tif(a==null||a.length==0) {\r\n \t\tSystem.out.print(\"Array empty\");\r\n \t\treturn null;\r\n \t}\r\n \tdoQuickSort(a,0,a.length-1);\r\n \treturn a;\r\n\r\n }", "public RandomizedQueue() {\n a = (Item[]) new Object[1];\n n = 0;\n }", "void dequeue(){\n if(isEmpty()!=1){\n\n for(int i=0;i<size-1;i++){\n values[i] = values[i+1];\n }\n\n values[size-1] = (-1);\n }\n }", "public ArrayQueue(int capacity){\r\n\t\tq = new String [capacity];\r\n\t\tn = 0;\r\n\t\tfirst = 0;\r\n\t\tlast = 0; \r\n\t}", "public Object[] toArray() {\n\t\tObject[] arg = new Object[size];\r\n\t\t\r\n\t\tNode<E> current = head;\r\n\t\tint i = 0;\r\n\t\twhile(current != null) {\r\n\t\t\targ[i] = current.getData();\r\n\t\t\ti++;\r\n\t\t\tcurrent = current.getNext();;\r\n\t\t}\r\n\t\treturn arg;\r\n\t}", "public void addAll(T[] arr, int from, int length);", "@Override\n public T[] toArray() {\n //create the return array\n T[] result = (T[])new Object[this.getSize()];\n //make a count variable to move through the array and a reference\n //to the first node\n int index = 0;\n Node n = first;\n //copy the node data to the array\n while(n != null){\n result[index++] = n.value;\n n = n.next;\n }\n return result;\n }", "public void sort(E[] array) {\n\t\t\n Qsort(array,0,array.length-1);\n\t}", "void enqueue(E e);", "@SuppressWarnings(\"unchecked\")\n\tQueue(int size){\n\t\tarr = (T[]) new Object[size];\n\t\tcapacity = size;\n\t\tfront = 0;\n\t\trear = -1;\n\t\tcount = 0;\n\t}", "public Queue(int size){\r\n\t\tthis.maxSize = size;\r\n\t\tthis.queueArray = new long[size];\r\n\t\tthis.front = 0; //index pos of the first slot of array\r\n\t\tthis.rear = -1; // there's no item in the array yet to be considered last item.\r\n\t\tthis.nItems = 0; //don't have elements in array yet\r\n\t}", "@Override\r\n\tpublic T[] toArray() {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tT[] result = (T[])new Object[topIndex + 1];\r\n\t\tfor(int index = 0; index < result.length; index ++) {\r\n\t\t\tresult[index] = stack[index];\r\n\t\t}\r\n\treturn result;\r\n\t}" ]
[ "0.79095244", "0.6653741", "0.64721775", "0.64545554", "0.6301585", "0.6200164", "0.61676806", "0.61215156", "0.61184675", "0.61068845", "0.607352", "0.6072903", "0.603604", "0.6013484", "0.5996009", "0.59915465", "0.5981679", "0.5911958", "0.5898158", "0.5887824", "0.5865645", "0.583841", "0.58243513", "0.5818553", "0.5811478", "0.5808707", "0.5807546", "0.5783726", "0.5780746", "0.5767522", "0.5728822", "0.57283795", "0.5722458", "0.5712783", "0.57070136", "0.56746227", "0.5667219", "0.5654668", "0.5653011", "0.56459165", "0.5639327", "0.56248397", "0.5605205", "0.5583543", "0.55796766", "0.557498", "0.5552708", "0.5540954", "0.5534968", "0.5500822", "0.54888934", "0.54877114", "0.5486362", "0.5486067", "0.5484454", "0.5484454", "0.5484454", "0.5477818", "0.5472697", "0.54591835", "0.5457232", "0.5456478", "0.5456297", "0.5453954", "0.5437516", "0.5437211", "0.54329175", "0.543133", "0.5424803", "0.5423311", "0.5417267", "0.5400402", "0.53895634", "0.53781486", "0.53738636", "0.537233", "0.53718966", "0.536472", "0.5362299", "0.53616625", "0.53397006", "0.5339647", "0.5334452", "0.53206986", "0.5318354", "0.5311568", "0.5301165", "0.52804476", "0.52775943", "0.5255327", "0.52530354", "0.5252623", "0.52499664", "0.52452326", "0.5241458", "0.5234777", "0.52315325", "0.52257544", "0.522471", "0.52240884" ]
0.7974152
0
return front element, without removing it (null if queue is empty)
T peek(){ if(isEmpty()){ return null; } return (T)queueArray[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T getFront() throws EmptyQueueException;", "@Override\r\n\tpublic E dequeueFront() {\n\t\tif(isEmpty()) return null;\r\n\t\tE value = data[frontDeque];\r\n\t\tfrontDeque = (frontDeque + 1)% CAPACITY;\r\n\t\tsizeDeque--;\r\n\t\treturn value;\r\n\t}", "public E first(){\n if (isEmpty()) return null;\n return arrayQueue[front];\n }", "public E peek(){\r\n if(isEmpty())\r\n return null;\r\n\r\n return queue[currentSize-1]; //return the object without removing it\r\n }", "public T front() throws EmptyQueueException;", "public static Object peek() {\t \n if(queue.isEmpty()) { \n System.out.println(\"The queue is empty so we can't see the front item of the queue.\"); \n return -1;\n }\t \n else {\n System.out.println(\"The following element is the top element of the queue:\" + queue.getFirst()); \t \n }\n return queue.getFirst();\n }", "public Object getFront() throws Exception {\n if (!isEmpty()) {\n return queue[front];\n } else {\n // 对为空返回null\n return null;\n }\n }", "@Override\n public T peekFront() {\n if (isEmpty()) {\n return null;\n }\n return head.peekFront();\n }", "public int getFront() {\n if(isEmpty()){\n return -1;\n }\n return queue[head];\n }", "public T getFront(){\n if (isEmpty()){\n throw new EmptyQueueException();\n }\n else {\n return firstNode.getData();\n }\n }", "@Override\n\tpublic E first() {\n\t\treturn queue[pos];\n\t}", "public int Front() {\n if(queue[head] == null){\n return -1;\n }else{\n return queue[head];\n }\n }", "public Object peek()\n {\n if(this.isEmpty()){throw new QueueUnderflowException();}\n return front.getData();\n }", "public Country removeFront() {\n\t\tCountry temp = null;\n\t\ttry {\n\t\t\tif (isEmpty()) {\n\t\t\t\tSystem.out.println(\"The queue is empty.\");\n\t\t\t} else if (front != end) {\n\t\t\t\tfront.previous = null;\n\t\t\t\ttemp = front.data;\n\t\t\t\tfront = front.next;\n\t\t\t} else {\n\t\t\t\tfront = end = null;\n\t\t\t\ttemp = front.data;\n\t\t\t}\n\t\t} catch (NullPointerException e) {\n\t\t\t;\n\t\t}\n\t\treturn temp;\n\t}", "public O popFront()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = first;\r\n first = first.getNext();\r\n \r\n count--;\r\n if (isEmpty()) last = null;\r\n else first.setPrevious(null);\r\n \r\n return l.getObject();\r\n } else\r\n return null;\r\n }", "public T peek() {\n if (size == 0) {\n throw new NoSuchElementException(\"The queue is empty\"\n + \". Please add data before attempting to peek.\");\n } else {\n return backingArray[front];\n }\n\n }", "public E peekFront() {\r\n if (front == rear) {\r\n throw new NoSuchElementException();\r\n } else {\r\n return elem[front];\r\n }\r\n }", "public T dequeue(){\n T front = getFront(); // might throw exception, assumes firstNode != null\n firstNode = firstNode.getNext();\n\n if (firstNode == null){\n lastNode = null;\n } // end if\n return front;\n }", "public E removeFront() {\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tE temp = head.value;\n\t\t\thead = head.next;\n\t\t\tcount--;\n\t\t\treturn temp;\n\t\t}\n\t}", "public E removeFront() {\r\n if (elem[front] == null) {\r\n throw new NoSuchElementException();\r\n } else {\r\n E temp = elem[front];\r\n elem[front] = null;\r\n front++;\r\n return temp;\r\n }\r\n }", "@Override\n public E peek() {\n return (E)queue[0];\n }", "public E dequeue() {\n if (isEmpty()) return null; //nothing to remove.\n E item = first.item;\n first = first.next; //will become null if the queue had only one item.\n n--;\n if (isEmpty()) last = null; // special case as the queue is now empty. \n return item;\n }", "@Override\n\tpublic E dequeue() {\n\t\tif (! isEmpty()) {\n\t\t\tNode temp = first;\n\t\t\tE e = temp.element;\n\t\t\tfirst = temp.next;\n\t\t\t\n\t\t\tif (temp == last)\n\t\t\t\tlast = null;\n\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}", "public int Front() {\n if (this.count == 0)\n return -1;\n return this.queue[this.headIndex];\n }", "public T removeFirst(){\n\tT ret = _front.getCargo();\n\t_front = _front.getPrev();\n\t_front.setNext(null);\n\t_size--;\n\treturn ret;\n }", "public T removeFront() {\n\t\tT found = start.value;\n\t\tstart = start.next;\n\t\treturn found;\n\t}", "public int dequeueFront();", "public Object dequeue()\n {\n return queue.removeFirst();\n }", "public DVDPackage front() {\n\t\treturn queue.peek();\n\t}", "public T peek()\n\t{\n\t\tT ret = list.removeFirst();\n\t\tlist.addFirst(ret);\n\t\treturn ret;\n\t}", "public E dequeue() {\n\t\treturn list.removeFirst();\n\t}", "public E dequeue() {\n if (size == 0){\n return null;\n }\n\n\n E result = (E) queue[0];\n queue[0] = null;\n --size;\n\n if (size != 0){\n shift();\n }\n return result;\n }", "public int Front() {\n if (isEmpty()) {\n return -1;\n }\n return queue[head];\n }", "public E element() {\n if (size == 0){\n return null;\n }\n return (E)queue[0];\n }", "@Override\n\tpublic E dequeue() {\n\t\tE temp=null;\n\t\tif(front==data.length-1){\n\t\t\ttemp=data[front];\n\t\t\tsize--;\n\t\t\tfront=(front+1)%data.length;\n\t\t}else{\n\t\t\tsize--;\n\t\t\ttemp=data[front++];\n\t\t}\n\t\treturn temp;\n\t}", "public T poll() {\n if (size == 0) {\n return null;\n }\n\n // set returned value to queue[0]\n T value = (T) array[0];\n\n // decrease size - we are removing element\n size--;\n\n // move queue 1 place left\n System.arraycopy(array, 1, array, 0, size);\n\n // clear last element\n array[size] = null;\n\n return value;\n }", "public Item peek(){\n if(isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\n return first.item;\n }", "public E poll() {\n\t\twhile (true) {\n\t\t\tlong f = front.get();\n\t\t\tint i = (int)(f % elements.length());\n\t\t\tE x = elements.get(i);\n\t\t\t//Did front change while we were reading x?\n\t\t\tif (f != front.get())\n\t\t\t\tcontinue;\n\t\t\t//Is the queue empty?\n\t\t\tif (f == rear.get())\n\t\t\t\treturn null; //Don't retry; fail the poll.\n\n\t\t\tif (x != null) {//Is the front nonempty?\n\t\t\t\tif (elements.compareAndSet(i, x, null)) {//Try to remove an element.\n\t\t\t\t\t//Try to increment front. If we fail, other threads will\n\t\t\t\t\t//also try to increment before any further removals, so we\n\t\t\t\t\t//don't need to loop.\n\t\t\t\t\tfront.compareAndSet(f, f+1);\n\t\t\t\t\treturn x;\n\t\t\t\t}\n\t\t\t} else //front empty. Try to help other threads.\n\t\t\t\tfront.compareAndSet(f, f+1);\n\n\t\t\t//If we get here, we failed at some point. Try again.\n\t\t}\n\t}", "public synchronized Object removeFirstElement() {\n return _queue.remove(0);\n }", "public T removeFirst() {\r\n \r\n if (size == 0) {\r\n return null;\r\n }\r\n \r\n T deleted = front.element;\r\n front = front.next;\r\n size--;\r\n \r\n return deleted;\r\n }", "public E remove(){\r\n if(isEmpty())\r\n return null;\r\n \r\n //since the array is ordered, the highest priority will always be at the end of the queue\r\n //--currentSize will find the last index (highest priority) and remove it\r\n return queue[--currentSize];\r\n }", "public Object firstElement() {\n return _queue.firstElement();\n }", "public Object todequeue() {\n\t\tif(rear == 0)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject to_return = arr[front];\n\t\t\tfront++;\n\t\t\tsize--;\n\t\t\treturn to_return;\n\t\t}\n\t}", "public E dequeue(){\n if (isEmpty()) return null;\n E answer = arrayQueue[front];\n arrayQueue[front] = null;\n front = (front +1) % arrayQueue.length;\n size--;\n return answer;\n }", "@Override\r\n\tpublic T dequeue() {\r\n\t\tT element;\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new AssertionError(\"Queue is empty.\");\r\n\t\telement = arr[front].getData();\r\n\t\tif (front == rear) {\r\n\t\t\tfront = rear = -1;\r\n\t\t} else {\r\n\t\t\tfront++;\r\n\t\t}\r\n\t\treturn element;\r\n\t}", "public IClause uncheckedPopFront() {\n assert back!=front : \"Deque is empty\";\n\n front++;\n if (front >= tab.length)\n front = 0;\n return tab[front];\n }", "@Override\n\tpublic E dequeue() {\n\t\tif(isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tE data = queue[pos];\n\t\tqueue[pos] = null;\n\t\tpos = (pos+1) % queue.length;\n\t\tsize--;\n\t\treturn data;\n\t}", "public T popFront() {\n\t\tif(tamanio==0)\n\t\t\treturn null;\n\t\tNodo<T> aux= inicio.getSiguiente();\n\t\tT dato = inicio.getDato();\n\t\tinicio=null;\n\t\tinicio=aux;\n\t\ttamanio--;\n\t\treturn dato;\n\t}", "int getFront()\n {\n // check whether Deque is empty or not \n if (isEmpty())\n {\n return -1 ;\n }\n return arr[front];\n }", "public T removeFromFront() {\n DoublyLinkedListNode<T> temp = head;\n if (size == 0) {\n throw new NoSuchElementException(\"The list is empty, so there\"\n + \" is nothing to get.\");\n } else {\n if (head == tail) {\n head = tail;\n tail = null;\n return temp.getData();\n } else {\n head = head.getNext();\n head.setPrevious(null);\n size -= 1;\n return temp.getData();\n }\n }\n\n\n }", "@Override\n public E removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n E value = dequeue[head];\n dequeue[head] = null;\n head = ++head % dequeue.length;\n size--;\n if (size < dequeue.length / 2) {\n reduce();\n }\n return value;\n }", "public String dequeue()\n\t{\n\t\tif (!isEmpty())\n\t\t{\n\t\t\tcounter--;\n\t\t\tString temp = list[front];\n\t\t\tfront = next(front);\n\t\t\treturn temp;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"queue is empty\");\n }\n Item a;\n a = first.item;\n first = first.next;\n if (first == null) {\n last = null;\n }\n else first.prev = null;\n size--;\n return a;\n }", "private E remove() {\n if (startPos >= queue.length || queue[startPos] == null) throw new NoSuchElementException();\n size--;\n return (E) queue[startPos++];\n }", "public T peek() {\n if (this.size <= 0)\n return null;\n return (T) pq[0];\n }", "T poll(){\n if(isEmpty()){\n return null;\n }\n T temp = (T) queueArray[0];\n for(int i=0; i<tail-1;i++){\n queueArray[i] = queueArray[i+1];\n }\n tail--;\n return temp;\n }", "@Override\r\n public CustomProcess peekBest() {\r\n if (data[0] == null || isEmpty()) {\r\n throw new NoSuchElementException(\"queue is empty\");\r\n }\r\n return data[0];\r\n }", "public Object peek()\n {\n return queue.peekLast();\n }", "public int top() {\n int size=queue.size();\n for (int i = 0; i < size-1; i++) {\n int temp=queue.poll();\n queue.add(temp);\n }\n int top=queue.poll();\n queue.add(top);\n return top;\n }", "public E peek(){\n return front!=rear?(E) data[(int)((front) & (max_size - 1))]:null;\n }", "public T peek() {\n\t if (size==0)\n\t return null;\n\t else return (T) pq[0];\n }", "private E element() {\n if (startPos >= queue.length || queue[startPos] == null) throw new NoSuchElementException();\n return (E) queue[startPos];\n }", "@Override\n public AmortizedDeque<T> popFront() throws NoSuchElementException {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n return new AmortizedDeque<>(head.popFront(), tail);\n }", "public T dequeue() {\n if (first != null) {\n size--;\n T data = first.data;\n first = first.next;\n\n if (first == null) {\n last = null; // avoid memory leak by removing reference\n }\n\n return data;\n }\n return null;\n }", "public static Object dequeue() {\t \n if(queue.isEmpty()) {\n System.out.println(\"The queue is already empty. No element can be removed from the queue.\"); \n return -1;\n }\n return queue.removeFirst();\n }", "public IClause uncheckedFront() {\n assert back!=front : \"Deque is empty\";\n\n int i = front - 1;\n if (i < 0)\n i = tab.length - 1;\n return tab[i];\n }", "public NodeBase<V> dequeue() {\r\n \tif(!isEmpty()){\r\n \tNodeBase<V> min=queue[0];\r\n \tint j=0;\r\n for(int i=0;i<currentSize;i++){\r\n \t if(min.getPriority()>queue[i].getPriority()){\r\n \t\t min=queue[i];\r\n \t\t j=i;\r\n \t }\r\n }\r\n for(int x=j;x<currentSize-1;x++){\r\n \t queue[x]=queue[x+1];\r\n }\r\n \r\n currentSize--;\r\n \r\n return min;\r\n \t}\r\n \telse{\r\n \t\treturn null;\r\n \t}\r\n }", "public int getFront() {\n if (isEmpty()) {\n return -1;\n }\n return arr[front];\n }", "public T dequeue() {\n if (size == 0) {\n throw new NoSuchElementException(\"The queue is empty\"\n + \". Please add data before attempting to remove.\");\n } else if (front == backingArray.length - 1) {\n int temp = front;\n T data = backingArray[temp];\n backingArray[front] = null;\n front = 0;\n size--;\n return data;\n } else {\n int temp = front;\n T data = backingArray[temp];\n backingArray[front] = null;\n front = temp + 1;\n size--;\n return data;\n }\n }", "public int getFront() {\n return !isEmpty() ? elements[last - 1] : -1;\n }", "@Override\n public E getFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n return dequeue[head];\n }", "public T dequeue()\n\t{\n\t\tNode<T> eliminado = head;\n\t\thead = head.getNext();\n\t\tif(head == null)\n\t\t{\n\t\t\ttail = null;\n\t\t}\n\t\tsize--;\n\t\treturn eliminado.getElement();\n\t}", "@Override\n public T dequeue() {\n if (!isEmpty()) {\n return heap.remove();\n } else {\n throw new NoSuchElementException(\"Priority Queue is null\");\n }\n }", "public T removeFirst() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[front];\n }\n this.checkReSizeDown();\n size--;\n front++;\n this.updatePointer();\n return array[Math.floorMod(front - 1, array.length)];\n }", "public Object dequeue() {\n\t\t\n\t\t// Check: Queue is empty\n\t\tif (isEmpty()) {\n\t\t\tthrow new NoSuchElementException(\"Queue is empty. Cannot dequeue.\");\n\t\t}\n\t\t\n\t\t// Check: one element (tail = head)\n\t\t// If so, set tail to null\n\t\tif (tail == head) tail = null;\n\t\t\n\t\t// Save head's data to return\n\t\tObject first = head.data;\n\t\t\n\t\t// Remove head from queue and re-assign head to head.next\n\t\thead = head.next;\n\t\t\n\t\treturn first;\n\t}", "public Item removeFirst(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[first];\r\n\t\tlist[first++] = null;\r\n\t\tn--;\r\n\t\tprior=first-1;\r\n\t\tif(first==list.length){first=0;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}", "Node dequeue() {\n Node n = queue.removeFirst();\n queueSet.remove(n);\n return n;\n }", "@Override\n\tpublic E deQueue() {\n\t\treturn list.removeFirst();\n\t}", "private T get() {\n Queue<T> h = head;\n Queue<T> first = h.next;\n h.next = h; // help GC\n\n head = first;\n T x = first.item;\n first.item = null;\n return x;\n }", "public E first() { // returns (but does not remove) the first element\n // TODO\n if (isEmpty()) return null;\n return tail.getNext().getElement();\n }", "@Override\r\n\tpublic E peek() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\treturn stack[t];\r\n\t}", "public E peek(int index) {\n\t\t//Because we're the only consumer, we know nothing will be removed while\n\t\t//we're peeking. So we check we have enough elements, then go get what\n\t\t//we want.\n\t\tif (index < size())\n\t\t\treturn elements.get((int)((front.get() + index) % elements.length()));\n\t\treturn null;\n\t}", "@Override\n public Object dequeue() {\n Object objeto;\n if (!isEmpty()){ // Pré-condição\n objeto = memo[head];\n if (++head >= MAX){\n head = 0; // MAX-1 é a ultima posição do vetor\n }\n \n total--;\n if (total == 0){\n head = -1;\n tail = -1;\n }\n \n return objeto; // Retor o objeto que estava na head\n }\n else{\n return null; // Não se retira elemento de FILA vazia\n }\n }", "public E peek() {\n\t\tif (isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn apq.get(1);\n\t}", "public E peekFront();", "public E dequeue() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t}\r\n\t\t\r\n\t\tif (size() != 1) {\r\n\t\t\t//Node p = first; \r\n\t\t\tE item = first.item;\r\n\t\t\tremove(0);\r\n\t\t\t//first = p.next;\r\n\t\t\t//first.prev = null;\r\n\t\t\treturn item;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tE e = last.item;\r\n\t\t\tremove(last.item);\r\n\n\t\t\treturn e;\r\n\t\t}\n\t}", "@Override\n public E poll() {\n E tmp = (E)queue[0];\n System.arraycopy(queue, 1, queue, 0, size - 1);\n size--;\n return tmp;\n }", "public T front();", "public Paciente dequeue() {\r\n\t\tif (this.head == null) {\r\n\t\t\treturn null;\r\n\t\t} else {\r\n\t\t\tPaciente paciente = this.head.getPaciente();\r\n\t\t\tthis.head = this.head.getProximo();\r\n\t\t\treturn paciente;\r\n\t\t}\r\n\t}", "public synchronized Object dequeue() throws EmptyListException {\r\n return removeFromFront();\r\n }", "public E dequeue() {\n\t\tif(isEmpty()){\n\t\t\tSystem.out.println(\"Queue is already empty\");\n\t\t\treturn null;\n\t\t}else{\n\t\t\tif(head.next==tail){\n\t\t\t\ttail=head;\n\t\t\t}\n\t\t\tE e=head.next.e;\n\t\t\thead.next=head.next.next;\n\t\t\treturn e;\n\t\t}\n\t\t\n\t}", "public int peekFront() {\n int x = 0;\n if(head == null) {\n return Integer.MIN_VALUE;\n }\n\n return head.val;\n }", "public E dequeue() {\n return pop();\n }", "public int peek() {\n return queue.firstElement();\n }", "int front()\n {\n if (isEmpty())\n return Integer.MIN_VALUE;\n return this.array[this.front];\n }", "public int queue_top() {\n\t\tif (isEmpty()) error(\"Queue is Empty!\");\n\t\treturn data[(front + 1) % MAX_QUEUE_SIZE];\n\t}", "private E dequeue() {\n final Object[] items = this.items;\n @SuppressWarnings(\"unchecked\")\n E x = (E) items[takeIndex];\n items[takeIndex] = null;\n if (++takeIndex == items.length) takeIndex = 0;\n count--;\n notFull.signal();\n return x;\n }", "public X dequeue() throws NoSuchElementException {\n if (first == null)\n throw new NoSuchElementException();\n if (first.next == null)\n last = null;\n X my_first = first.data;\n first = first.next;\n return my_first;\n }", "public Object getFront() throws Exception {\n\t\tif(data[front]!=null)\n\t\t\n\t\t return data[front];\n\t\treturn null;\n\t}", "public Object peek() {\n\t\t\n\t\t// Check: Queue is empty\n\t\tif (isEmpty()) {\n\t\t\tthrow new NoSuchElementException(\"Queue is empty. Nothing to peek at.\");\n\t\t}\n\t\t\n\t\treturn head.data;\n\t}" ]
[ "0.8192616", "0.81664836", "0.8096295", "0.80859023", "0.80228335", "0.8006954", "0.7979686", "0.79000753", "0.7876345", "0.7777522", "0.7728372", "0.76558894", "0.7627134", "0.76247746", "0.7614012", "0.76100284", "0.7574637", "0.75119495", "0.7511793", "0.749484", "0.7489946", "0.7480829", "0.7471714", "0.74603873", "0.7459124", "0.7452137", "0.7449635", "0.74429184", "0.7441644", "0.74374396", "0.742498", "0.74098116", "0.74080753", "0.73913425", "0.73902595", "0.73721504", "0.73680705", "0.7362373", "0.7362283", "0.73420334", "0.73367584", "0.7335876", "0.73258394", "0.7316904", "0.73079205", "0.7296111", "0.7291623", "0.72565466", "0.72519255", "0.72488254", "0.72450256", "0.72313744", "0.7224586", "0.7212718", "0.7207009", "0.72047603", "0.7185978", "0.71813095", "0.71801335", "0.71764565", "0.7165424", "0.7163462", "0.7145991", "0.71430093", "0.71374", "0.713569", "0.71308094", "0.7129139", "0.7128", "0.71266526", "0.7119446", "0.71153915", "0.71152", "0.71134317", "0.7108715", "0.7087021", "0.7083136", "0.70808387", "0.7059304", "0.7058995", "0.7057978", "0.7054597", "0.70530695", "0.70521986", "0.70520663", "0.7051017", "0.7047929", "0.7038849", "0.70356", "0.7031698", "0.70258236", "0.7022848", "0.7020461", "0.7018366", "0.70178604", "0.7007104", "0.7006941", "0.700046", "0.6992197", "0.69778913" ]
0.79038537
7
remove and return the element at the front of the queue return null if the queue is empty
T poll(){ if(isEmpty()){ return null; } T temp = (T) queueArray[0]; for(int i=0; i<tail-1;i++){ queueArray[i] = queueArray[i+1]; } tail--; return temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public E remove(){\r\n if(isEmpty())\r\n return null;\r\n \r\n //since the array is ordered, the highest priority will always be at the end of the queue\r\n //--currentSize will find the last index (highest priority) and remove it\r\n return queue[--currentSize];\r\n }", "public E peek(){\r\n if(isEmpty())\r\n return null;\r\n\r\n return queue[currentSize-1]; //return the object without removing it\r\n }", "public E dequeue() {\n if (isEmpty()) return null; //nothing to remove.\n E item = first.item;\n first = first.next; //will become null if the queue had only one item.\n n--;\n if (isEmpty()) last = null; // special case as the queue is now empty. \n return item;\n }", "private E remove() {\n if (startPos >= queue.length || queue[startPos] == null) throw new NoSuchElementException();\n size--;\n return (E) queue[startPos++];\n }", "public T poll() {\n if (size == 0) {\n return null;\n }\n\n // set returned value to queue[0]\n T value = (T) array[0];\n\n // decrease size - we are removing element\n size--;\n\n // move queue 1 place left\n System.arraycopy(array, 1, array, 0, size);\n\n // clear last element\n array[size] = null;\n\n return value;\n }", "public Object dequeue()\n {\n return queue.removeFirst();\n }", "public E dequeue() {\n if (size == 0){\n return null;\n }\n\n\n E result = (E) queue[0];\n queue[0] = null;\n --size;\n\n if (size != 0){\n shift();\n }\n return result;\n }", "@Override\n\tpublic E dequeue() {\n\t\tif(isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tE data = queue[pos];\n\t\tqueue[pos] = null;\n\t\tpos = (pos+1) % queue.length;\n\t\tsize--;\n\t\treturn data;\n\t}", "public static Object dequeue() {\t \n if(queue.isEmpty()) {\n System.out.println(\"The queue is already empty. No element can be removed from the queue.\"); \n return -1;\n }\n return queue.removeFirst();\n }", "@Override\r\n\tpublic E dequeueFront() {\n\t\tif(isEmpty()) return null;\r\n\t\tE value = data[frontDeque];\r\n\t\tfrontDeque = (frontDeque + 1)% CAPACITY;\r\n\t\tsizeDeque--;\r\n\t\treturn value;\r\n\t}", "public synchronized Object removeFirstElement() {\n return _queue.remove(0);\n }", "@Override\n\tpublic E deQueue() {\n\t\treturn list.removeFirst();\n\t}", "public E dequeue(){\n if (isEmpty()) return null;\n E answer = arrayQueue[front];\n arrayQueue[front] = null;\n front = (front +1) % arrayQueue.length;\n size--;\n return answer;\n }", "public T dequeue()\n\t{\n\t\tNode<T> eliminado = head;\n\t\thead = head.getNext();\n\t\tif(head == null)\n\t\t{\n\t\t\ttail = null;\n\t\t}\n\t\tsize--;\n\t\treturn eliminado.getElement();\n\t}", "@Override\n\tpublic E dequeue() {\n\t\tif (! isEmpty()) {\n\t\t\tNode temp = first;\n\t\t\tE e = temp.element;\n\t\t\tfirst = temp.next;\n\t\t\t\n\t\t\tif (temp == last)\n\t\t\t\tlast = null;\n\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}", "T peek(){\n if(isEmpty()){\n return null;\n }\n return (T)queueArray[0];\n }", "Node dequeue() {\n Node n = queue.removeFirst();\n queueSet.remove(n);\n return n;\n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"queue is empty\");\n }\n Item a;\n a = first.item;\n first = first.next;\n if (first == null) {\n last = null;\n }\n else first.prev = null;\n size--;\n return a;\n }", "public E dequeue() {\n\t\treturn list.removeFirst();\n\t}", "T getFront() throws EmptyQueueException;", "public T removeFirst() {\r\n \r\n if (size == 0) {\r\n return null;\r\n }\r\n \r\n T deleted = front.element;\r\n front = front.next;\r\n size--;\r\n \r\n return deleted;\r\n }", "@Override\n public T dequeue() {\n if (!isEmpty()) {\n return heap.remove();\n } else {\n throw new NoSuchElementException(\"Priority Queue is null\");\n }\n }", "public T removeFirst(){\n\tT ret = _front.getCargo();\n\t_front = _front.getPrev();\n\t_front.setNext(null);\n\t_size--;\n\treturn ret;\n }", "@Override\n public E removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n E value = dequeue[head];\n dequeue[head] = null;\n head = ++head % dequeue.length;\n size--;\n if (size < dequeue.length / 2) {\n reduce();\n }\n return value;\n }", "private GameAction pull() {\n if (this.queue.size() > 0) {\n return this.queue.remove(0);\n } else {\n return null;\n }\n }", "public E poll() {\n\t\twhile (true) {\n\t\t\tlong f = front.get();\n\t\t\tint i = (int)(f % elements.length());\n\t\t\tE x = elements.get(i);\n\t\t\t//Did front change while we were reading x?\n\t\t\tif (f != front.get())\n\t\t\t\tcontinue;\n\t\t\t//Is the queue empty?\n\t\t\tif (f == rear.get())\n\t\t\t\treturn null; //Don't retry; fail the poll.\n\n\t\t\tif (x != null) {//Is the front nonempty?\n\t\t\t\tif (elements.compareAndSet(i, x, null)) {//Try to remove an element.\n\t\t\t\t\t//Try to increment front. If we fail, other threads will\n\t\t\t\t\t//also try to increment before any further removals, so we\n\t\t\t\t\t//don't need to loop.\n\t\t\t\t\tfront.compareAndSet(f, f+1);\n\t\t\t\t\treturn x;\n\t\t\t\t}\n\t\t\t} else //front empty. Try to help other threads.\n\t\t\t\tfront.compareAndSet(f, f+1);\n\n\t\t\t//If we get here, we failed at some point. Try again.\n\t\t}\n\t}", "public static Object peek() {\t \n if(queue.isEmpty()) { \n System.out.println(\"The queue is empty so we can't see the front item of the queue.\"); \n return -1;\n }\t \n else {\n System.out.println(\"The following element is the top element of the queue:\" + queue.getFirst()); \t \n }\n return queue.getFirst();\n }", "@Override\n\tpublic E dequeue() {\n\t\tE temp=null;\n\t\tif(front==data.length-1){\n\t\t\ttemp=data[front];\n\t\t\tsize--;\n\t\t\tfront=(front+1)%data.length;\n\t\t}else{\n\t\t\tsize--;\n\t\t\ttemp=data[front++];\n\t\t}\n\t\treturn temp;\n\t}", "public Item removeFirst(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[first];\r\n\t\tlist[first++] = null;\r\n\t\tn--;\r\n\t\tprior=first-1;\r\n\t\tif(first==list.length){first=0;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}", "public E element() {\n if (size == 0){\n return null;\n }\n return (E)queue[0];\n }", "public T remove() throws EmptyQueueException;", "public T dequeue() {\n if (first != null) {\n size--;\n T data = first.data;\n first = first.next;\n\n if (first == null) {\n last = null; // avoid memory leak by removing reference\n }\n\n return data;\n }\n return null;\n }", "public T dequeue(){\n T front = getFront(); // might throw exception, assumes firstNode != null\n firstNode = firstNode.getNext();\n\n if (firstNode == null){\n lastNode = null;\n } // end if\n return front;\n }", "public Object dequeue() {\n\t\t\n\t\t// Check: Queue is empty\n\t\tif (isEmpty()) {\n\t\t\tthrow new NoSuchElementException(\"Queue is empty. Cannot dequeue.\");\n\t\t}\n\t\t\n\t\t// Check: one element (tail = head)\n\t\t// If so, set tail to null\n\t\tif (tail == head) tail = null;\n\t\t\n\t\t// Save head's data to return\n\t\tObject first = head.data;\n\t\t\n\t\t// Remove head from queue and re-assign head to head.next\n\t\thead = head.next;\n\t\t\n\t\treturn first;\n\t}", "public T dequeue() {\n if (size == 0) {\n throw new NoSuchElementException(\"The queue is empty\"\n + \". Please add data before attempting to remove.\");\n } else if (front == backingArray.length - 1) {\n int temp = front;\n T data = backingArray[temp];\n backingArray[front] = null;\n front = 0;\n size--;\n return data;\n } else {\n int temp = front;\n T data = backingArray[temp];\n backingArray[front] = null;\n front = temp + 1;\n size--;\n return data;\n }\n }", "public Country removeFront() {\n\t\tCountry temp = null;\n\t\ttry {\n\t\t\tif (isEmpty()) {\n\t\t\t\tSystem.out.println(\"The queue is empty.\");\n\t\t\t} else if (front != end) {\n\t\t\t\tfront.previous = null;\n\t\t\t\ttemp = front.data;\n\t\t\t\tfront = front.next;\n\t\t\t} else {\n\t\t\t\tfront = end = null;\n\t\t\t\ttemp = front.data;\n\t\t\t}\n\t\t} catch (NullPointerException e) {\n\t\t\t;\n\t\t}\n\t\treturn temp;\n\t}", "public E first(){\n if (isEmpty()) return null;\n return arrayQueue[front];\n }", "public String dequeue()\n\t{\n\t\tif (!isEmpty())\n\t\t{\n\t\t\tcounter--;\n\t\t\tString temp = list[front];\n\t\t\tfront = next(front);\n\t\t\treturn temp;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "public Object dequeue() {\n\t\tObject itemToDeq = null;\n\t\tif(this.l.start==null){\n\t\t\tnew QueueUnderflowException(\"No elements in the queue\");\n\t\t}\n\t\telse{\n\t\t\tListNode p = this.l.start;\n\t\t\tif(p.next==null){\n\t\t\t\titemToDeq = p.item;\n\t\t\t\tthis.l.start = null;\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(p.next.next!=null){\n\t\t\t\t\tp = p.next;\n\t\t\t\t}\n\t\t\t\titemToDeq = p.next.item;\n\t\t\t\tp.next=null;\n\t\t\t}\n\t\t\treturn itemToDeq;\n\t\t}\n\t\treturn null;\n\t}", "public void dequeue()\n\t{\n\t\tq.removeFirst();\n\t}", "@Override\n public E poll() {\n E tmp = (E)queue[0];\n System.arraycopy(queue, 1, queue, 0, size - 1);\n size--;\n return tmp;\n }", "public T front() throws EmptyQueueException;", "public NodeBase<V> dequeue() {\r\n \tif(!isEmpty()){\r\n \tNodeBase<V> min=queue[0];\r\n \tint j=0;\r\n for(int i=0;i<currentSize;i++){\r\n \t if(min.getPriority()>queue[i].getPriority()){\r\n \t\t min=queue[i];\r\n \t\t j=i;\r\n \t }\r\n }\r\n for(int x=j;x<currentSize-1;x++){\r\n \t queue[x]=queue[x+1];\r\n }\r\n \r\n currentSize--;\r\n \r\n return min;\r\n \t}\r\n \telse{\r\n \t\treturn null;\r\n \t}\r\n }", "@Override\r\n\tpublic T dequeue() {\r\n\t\tT element;\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new AssertionError(\"Queue is empty.\");\r\n\t\telement = arr[front].getData();\r\n\t\tif (front == rear) {\r\n\t\t\tfront = rear = -1;\r\n\t\t} else {\r\n\t\t\tfront++;\r\n\t\t}\r\n\t\treturn element;\r\n\t}", "public E dequeue() {\n\t\tif(isEmpty()){\n\t\t\tSystem.out.println(\"Queue is already empty\");\n\t\t\treturn null;\n\t\t}else{\n\t\t\tif(head.next==tail){\n\t\t\t\ttail=head;\n\t\t\t}\n\t\t\tE e=head.next.e;\n\t\t\thead.next=head.next.next;\n\t\t\treturn e;\n\t\t}\n\t\t\n\t}", "public synchronized Cincamimis firstAvailableandRemove() throws QueueException\r\n {\r\n if(measurementQueue==null) throw new QueueException(\"CINCAMIMIS Queue not found\");\r\n if(measurementQueue.isEmpty()) return null;\r\n \r\n Cincamimis element=measurementQueue.poll(); \r\n if(element!=null) this.notifyObservers();\r\n \r\n return element; \r\n }", "public int dequeueFront();", "@Override\n public Object dequeue() {\n Object objeto;\n if (!isEmpty()){ // Pré-condição\n objeto = memo[head];\n if (++head >= MAX){\n head = 0; // MAX-1 é a ultima posição do vetor\n }\n \n total--;\n if (total == 0){\n head = -1;\n tail = -1;\n }\n \n return objeto; // Retor o objeto que estava na head\n }\n else{\n return null; // Não se retira elemento de FILA vazia\n }\n }", "public E removeFront() {\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tE temp = head.value;\n\t\t\thead = head.next;\n\t\t\tcount--;\n\t\t\treturn temp;\n\t\t}\n\t}", "public T remove() throws NoSuchElementException {\n\tT result = poll();\n\tif(result == null) {\n\t throw new NoSuchElementException(\"Priority queue is empty\");\n\t} else {\n\t return result;\n\t}\n }", "public long remove(){\n\t\t\r\n\t\t\tlong temp = queueArray[front]; //retrieves and stores the front element\r\n\t\t\tfront++;\r\n\t\t\tif(front == maxSize){ //To set front = 0 and use it again\r\n\t\t\t\tfront = 0;\r\n\t\t\t}\r\n\t\t\tnItems--;\r\n\t\t\treturn temp;\r\n\t\t}", "public int dequeue() {\n\t\tif (isEmpty()) throw new IllegalStateException(\"\\nQueue is empty!\\n\");\n\t\tint removedItem = bq[head];\n\t\tif (head == bq.length - 1) head = 0; // wraparound\n\t\telse head++;\n\t\tsize--;\n\t\treturn removedItem;\t\n\t}", "public void remove() {\n\t\tprocess temp = queue.removeFirst();\n\t}", "public T removeFirst() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[front];\n }\n this.checkReSizeDown();\n size--;\n front++;\n this.updatePointer();\n return array[Math.floorMod(front - 1, array.length)];\n }", "public Object peek()\n {\n if(this.isEmpty()){throw new QueueUnderflowException();}\n return front.getData();\n }", "public Object todequeue() {\n\t\tif(rear == 0)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject to_return = arr[front];\n\t\t\tfront++;\n\t\t\tsize--;\n\t\t\treturn to_return;\n\t\t}\n\t}", "public Object getFront() throws Exception {\n if (!isEmpty()) {\n return queue[front];\n } else {\n // 对为空返回null\n return null;\n }\n }", "T dequeue();", "T dequeue();", "@Override\r\n public CustomProcess removeBest() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException(\"queue is empty, cannot remove from empty queue\");\r\n }\r\n CustomProcess best = data[0]; // process to be removed\r\n data[0] = data[size - 1];\r\n data[size - 1] = null;\r\n minHeapPercolateDown(0); // Percolate down on first index\r\n size--;\r\n return best;\r\n }", "void dequeue() \n { \n // If queue is empty, return NULL. \n if (this.front == null) \n return; \n \n // Store previous front and move front one node ahead \n LinkedListQueue temp = this.front; \n this.front = this.front.next; \n \n // If front becomes NULL, then change rear also as NULL \n if (this.front == null) \n this.rear = null; \n }", "public String pop() {\n if (queue.size() == 0) {\n return null;\n }\n\n String result = top();\n queue.remove(0);\n return result;\n }", "public Bottle inputQueueTakeBottle() {\n\t\tsynchronized (inputQueue) {\n\t\t\tif (this.inputQueueSize() != 0) {\n\t\t\t\treturn inputQueue.remove();\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "E dequeue();", "E dequeue();", "E dequeue();", "private E dequeue() {\n final Object[] items = this.items;\n @SuppressWarnings(\"unchecked\")\n E x = (E) items[takeIndex];\n items[takeIndex] = null;\n if (++takeIndex == items.length) takeIndex = 0;\n count--;\n notFull.signal();\n return x;\n }", "public Item removeFirst(){\n\t\tif(isEmpty()){\n\t\t\tthrow new NoSuchElementException(\"Queue underflow\");\n\t\t}else{\n\t\t\t//save item to return\n\t\t\tItem returnItem = first.item;\n\t\t\t//delete first node\n\t\t\tfirst = first.next;\n\t\t\tn--;\n\t\t\tif(isEmpty()){\n\t\t\t\tlast = null; // to avoid loitering\n\t\t\t}else{\n\t\t\t\tfirst.prev = null;\n\t\t\t}\n\t\t\treturn returnItem;\n\t\t}\n\t}", "public T dequeue();", "@Override\n public E dequeue() {\n if(array.isEmpty()) {\n throw new NoSuchElementException(\"Cannot dequeue from an empty queue.\");\n }\n return array.removeFirst();\n }", "public Object dequeue(){\r\n return super.remove(size()-1);\r\n }", "public T remove() throws NoSuchElementException {\n T result = poll();\n if (result == null) {\n throw new NoSuchElementException(\"Priority queue is empty\");\n } else {\n return result;\n }\n }", "public process dequeue() {\n\t\treturn queue.removeFirst();\n\t}", "@Override\n public E removeLast() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n E value = dequeue[tail];\n dequeue[tail] = null;\n tail--;\n if (tail == -1) {\n tail = dequeue.length - 1;\n }\n size--;\n if (size < dequeue.length / 2) {\n reduce();\n }\n return value;\n }", "public T removeFromFront() {\n DoublyLinkedListNode<T> temp = head;\n if (size == 0) {\n throw new NoSuchElementException(\"The list is empty, so there\"\n + \" is nothing to get.\");\n } else {\n if (head == tail) {\n head = tail;\n tail = null;\n return temp.getData();\n } else {\n head = head.getNext();\n head.setPrevious(null);\n size -= 1;\n return temp.getData();\n }\n }\n\n\n }", "@Override\n public E peek() {\n return (E)queue[0];\n }", "public E dequeue() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t}\r\n\t\t\r\n\t\tif (size() != 1) {\r\n\t\t\t//Node p = first; \r\n\t\t\tE item = first.item;\r\n\t\t\tremove(0);\r\n\t\t\t//first = p.next;\r\n\t\t\t//first.prev = null;\r\n\t\t\treturn item;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tE e = last.item;\r\n\t\t\tremove(last.item);\r\n\n\t\t\treturn e;\r\n\t\t}\n\t}", "public void dequeue() {\n\t\tObject ret_val = todequeue();\n\t\tif(ret_val == null)\n\t\t\tSystem.out.println(\"The queue is empty\");\n\t\telse\n\t\t\tSystem.out.println(\"Removed: \" + ret_val);\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic T dequeue() {\r\n\t\tT data;\r\n\t\t\r\n\t\t// checking if queue is empty or not\r\n\t\tif (isEmtpy()) {\r\n\t\t\tthrow new AssertionError(\"Queue is empty\");\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\t// remove element\r\n\t\t\tdata = (T)(Integer)this.array[this.front];\r\n\t\t\t\r\n\t\t\t// adjust both front and rear of queue\r\n\t\t\tif (this.front == this.rear) {\r\n\t\t\t\tthis.front = this.rear = -1;\r\n\t\t\t} else {\r\n\t\t\t\tthis.front = (this.front + 1) % this.size;\r\n\t\t\t}\r\n\t\t\treturn (T)data;\r\n\t\t}\r\n\t}", "public E removeFront() {\r\n if (elem[front] == null) {\r\n throw new NoSuchElementException();\r\n } else {\r\n E temp = elem[front];\r\n elem[front] = null;\r\n front++;\r\n return temp;\r\n }\r\n }", "public O popFront()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = first;\r\n first = first.getNext();\r\n \r\n count--;\r\n if (isEmpty()) last = null;\r\n else first.setPrevious(null);\r\n \r\n return l.getObject();\r\n } else\r\n return null;\r\n }", "public Object dequeue() {\n\t\tif(isEmpty()) throw new RuntimeException(); \n\t\tObject value = data[0];\n\t\tfor(int i = 0; i < data.length-1; i++) {\n\t\t\tdata[i] = data[i+1];\n\t\t}\n\t\tdata[size()] = null;\n\t\tindx--;\n\t\treturn value;\n\t}", "@Override\n public PaintOrder remove() {\n if (!queue.isEmpty()) {\n var temp = queue.remove();\n processedOrders ++;\n currentOrders --;\n queuedOrders --;\n return temp; \n }\n return null;\n }", "public T poll() {\n if(size==0)\n return null;\n else {\n T temp= (T) pq[0];\n pq[0]=pq[size-1];\n size--;\n percolateDown(0);\n return temp;\n\n\n }\n }", "public E dequeue() {\n return pop();\n }", "public E dequeue();", "public synchronized T dequeue() {\r\n\t\twhile(queue.size()==0){\r\n\t\t\ttry {\r\n\t\t\t\tthis.wait();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tSystem.out.println(\"Problem during dequeue\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tT ans = queue.removeFirst();\r\n\t\tthis.notifyAll();\r\n\t\treturn ans;\r\n\r\n\t}", "Customer removeCustomer()\r\n {\r\n // If queue is empty, return NULL.\r\n if (this.first == null)\r\n return null;\r\n \r\n // Store previous first and move first one node ahead\r\n Customer temp = this.first;\r\n \r\n this.first = this.first.next;\r\n \r\n // If first becomes NULL, then change rear also as NULL\r\n if (this.first == null)\r\n this.last = null;\r\n return temp;\r\n }", "public synchronized Object dequeue() throws EmptyListException {\r\n return removeFromFront();\r\n }", "private E removeFirst ()\n {\n Node<E> temp = head;\n if (head != null) {\n head = head.next;\n size--;\n return temp.data;\n }\n else\n return null;\n }", "public Paciente dequeue() {\r\n\t\tif (this.head == null) {\r\n\t\t\treturn null;\r\n\t\t} else {\r\n\t\t\tPaciente paciente = this.head.getPaciente();\r\n\t\t\tthis.head = this.head.getProximo();\r\n\t\t\treturn paciente;\r\n\t\t}\r\n\t}", "@Override\n\tpublic Node removeNode() {\n\t\tif(isEmpty())\n\t\t\treturn null;\n\t\t// BreadthFirstSearch using a queue, first in first out principle\n\t\treturn frontier.removeFirst();\n\t}", "public E poll() {\n E item;\n try {\n item = remove();\n } catch (NoSuchElementException e) {\n return null;\n }\n return item;\n }", "public int getFront() {\n if(isEmpty()){\n return -1;\n }\n return queue[head];\n }", "Object dequeue();", "Object dequeue();", "public void pop() {\n queue.remove();\n }", "@Override\n\tpublic E first() {\n\t\treturn queue[pos];\n\t}", "public AnyType dequeue() {\n\t\tif (empty()) {\n\t\t\treturn null;\n\t\t}\n\t\tAnyType prevHeader = header.next.data; // assign back to header\n\t\theader.next = header.next.next;\n\t\tif (empty()) {\n\t\t\tback = header.next;\n\t\t}\n\t\treturn prevHeader; // if not return old header, check to see if removed\n\t\t// Running time is θ(1) because it's a constant operation.\n\t}", "public void pop() {\n queue.remove(0);\n }" ]
[ "0.79872274", "0.7833243", "0.7746519", "0.77120566", "0.7699035", "0.7667517", "0.76495254", "0.7641187", "0.7589161", "0.75659287", "0.7534579", "0.75071776", "0.7489748", "0.7479305", "0.7465672", "0.745213", "0.7447138", "0.7445553", "0.74240404", "0.73976547", "0.7389305", "0.73849654", "0.7379747", "0.7344322", "0.7315292", "0.73129797", "0.7294114", "0.7266111", "0.7257244", "0.72533387", "0.7241777", "0.7238394", "0.72354424", "0.7230159", "0.72110605", "0.7209462", "0.7195798", "0.7179605", "0.71745443", "0.71690935", "0.7162228", "0.7161375", "0.7151017", "0.7127462", "0.7124255", "0.7116056", "0.71139574", "0.7107484", "0.71063447", "0.71035683", "0.7084535", "0.7083484", "0.7077491", "0.70730776", "0.70668143", "0.7065482", "0.70639426", "0.7057875", "0.7057875", "0.70558065", "0.7054785", "0.7049733", "0.70478386", "0.70469755", "0.70469755", "0.70469755", "0.7037875", "0.7019514", "0.70142937", "0.70102024", "0.7008771", "0.7007404", "0.69968534", "0.69943106", "0.6993408", "0.6979713", "0.69791466", "0.6978262", "0.69760853", "0.69709104", "0.69699496", "0.6962025", "0.69617635", "0.6961302", "0.69597805", "0.6959778", "0.69548666", "0.6949316", "0.6948829", "0.69424903", "0.69289696", "0.692741", "0.69188344", "0.691701", "0.6912265", "0.6912265", "0.69052476", "0.6902316", "0.69009435", "0.68928254" ]
0.73467636
23
void clear(): clear the queue (size=0)
void clear(){ this.queueArray = (T[]) new Object[0]; this.tail = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear(){\r\n\t\tqueue.clear();\r\n\t}", "public synchronized void clear() {\n _queue.clear();\n }", "public final void clear()\n {\n\t\tcmr_queue_.removeAllElements();\n buffer_size_ = 0;\n }", "public void clearQueue() {\n\tmQueue.clear();\n\tqueueModified();\n }", "public void clear()\n {\n synchronized(mQueue)\n {\n mQueue.clear();\n mCounter.set(0);\n mOverflow.set(false);\n if(mOverflowListener != null)\n {\n mOverflowListener.sourceOverflow(false);\n }\n }\n }", "public void clear() {\n size = 0;\n }", "public void clear() {\r\n\t\tsize = 0;\r\n\t}", "public void clear() {\n\t\tsynchronized (queue) {\n\t\t\tthis.queue.clear();\n\t\t\tthis.totalEvents = 0;\n\t\t}\n\t}", "public void clear() {\n while (refqueue.poll() != null) {\n ;\n }\n\n for (int i = 0; i < entries.length; ++i) {\n entries[i] = null;\n }\n size = 0;\n\n while (refqueue.poll() != null) {\n ;\n }\n }", "@Override\n public void clear() {\n size = 0;\n }", "@Override\n public void clear() {\n size = 0;\n }", "@Override\n public void clear() {\n size = 0;\n }", "public void clear(){\n\t\tclear(0);\n\t}", "public void clear() {\n\t\tthis.set.clear();\n\t\tthis.size = 0;\n\t}", "public void clear(){\r\n currentSize = 0;\r\n }", "public void clear() {\n\t\tcurrentSize = 0;\n\t}", "public void clear()\n {\n current = null;\n size = 0;\n }", "@Override\n public void clear() {\n for (int i = 0; i < size; i++) {\n data[i] = null;\n }\n size = 0;\n }", "public void clear() {\n\t\tif(size == 0) return;\r\n\t\telse {\r\n\t\t\thead.clear();\r\n\t\t\ttail.clear();\r\n\t\t}\r\n\t\tsize = 0;\r\n\t}", "public void clear() {\n final Object[] items = this.items;\n final ReentrantLock lock = this.lock;\n lock.lock();\n try {\n int k = count;\n if (k > 0) {\n final int putIndex = this.putIndex;\n int i = takeIndex;\n do {\n items[i] = null;\n if (++i == items.length)\n i = 0;\n } while (i != putIndex);\n takeIndex = putIndex;\n count = 0;\n for (; k > 0 && lock.hasWaiters(notFull); k--)\n notFull.signal();\n }\n } finally {\n lock.unlock();\n }\n }", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear() {\n\t\tthis.size = 0;\n\t\tthis.elements = new Object[capacity];\n\t}", "public void clear() {\n }", "public void clear() {\n }", "public void clear() {\n }", "public synchronized void clear()\n {\n clear(false);\n }", "public void clear() {\n doClear();\n }", "public void clear() {\n size = 0;\n Arrays.fill(items, null);\n }", "private void clear() {\n }", "public void clear() {\n\t\thead = null;\n\t\tsize = 0;\n\n\t}", "public void clear() {\n\n\t}", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();" ]
[ "0.9023984", "0.8675095", "0.84649295", "0.8350312", "0.82671267", "0.82108915", "0.82002455", "0.8158304", "0.80584675", "0.80536014", "0.80536014", "0.80536014", "0.80427086", "0.7961391", "0.79314566", "0.78255224", "0.7778042", "0.7761408", "0.7748723", "0.7733605", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7731902", "0.7705296", "0.76828134", "0.76828134", "0.76644415", "0.76539284", "0.76404834", "0.7611301", "0.76044875", "0.7589775", "0.758388", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465", "0.757465" ]
0.83613956
3
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_posts, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7249559", "0.7204226", "0.71981144", "0.7180145", "0.7110589", "0.70431244", "0.7041351", "0.70150685", "0.70118093", "0.69832", "0.6947845", "0.69419056", "0.6937257", "0.6920975", "0.6920975", "0.68938893", "0.68867826", "0.6878929", "0.6877472", "0.68656766", "0.68656766", "0.68656766", "0.68656766", "0.68553543", "0.6850232", "0.6822862", "0.68201447", "0.68163574", "0.68163574", "0.6816304", "0.6809227", "0.6803687", "0.6801118", "0.67946446", "0.67919034", "0.67913854", "0.6786644", "0.67618436", "0.6760987", "0.67516655", "0.67475504", "0.67475504", "0.6744612", "0.67433023", "0.6729379", "0.67267543", "0.67261547", "0.67261547", "0.6724336", "0.6714574", "0.67084044", "0.670811", "0.67026806", "0.6701955", "0.670018", "0.6697785", "0.66899645", "0.6687168", "0.6687168", "0.66860044", "0.66835976", "0.6682339", "0.668104", "0.6671387", "0.66706777", "0.6665407", "0.6659777", "0.6659777", "0.6659777", "0.6659032", "0.6658105", "0.6658105", "0.6658105", "0.66553104", "0.6654278", "0.6654054", "0.66521645", "0.6650613", "0.66495895", "0.6649238", "0.66490036", "0.6648245", "0.66481483", "0.6646514", "0.6646321", "0.6645122", "0.66418123", "0.6638334", "0.6636035", "0.6635416", "0.6635416", "0.6635416", "0.6635411", "0.66325295", "0.6631742", "0.66299105", "0.6629049", "0.6627932", "0.66237384", "0.662195", "0.662195" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79046714", "0.78065175", "0.7766765", "0.7727237", "0.76320195", "0.7622174", "0.7585192", "0.75314754", "0.74888134", "0.7458358", "0.7458358", "0.7438547", "0.7421898", "0.7402884", "0.73917156", "0.738695", "0.73795676", "0.73704445", "0.7361756", "0.7356012", "0.7345615", "0.7341667", "0.7331483", "0.73293763", "0.73263687", "0.73189044", "0.73166656", "0.73135996", "0.7304286", "0.7304286", "0.7301858", "0.72982585", "0.7293724", "0.72870094", "0.72835064", "0.7281258", "0.7278845", "0.72600037", "0.7259943", "0.7259943", "0.7259943", "0.7259806", "0.72501236", "0.7224222", "0.7219659", "0.7217153", "0.7204567", "0.7200747", "0.7200617", "0.7194191", "0.7185161", "0.71786165", "0.7168641", "0.71677953", "0.7154376", "0.7154097", "0.7136827", "0.7135085", "0.7135085", "0.7129693", "0.712958", "0.71244156", "0.71234775", "0.7123202", "0.7122462", "0.7117733", "0.711737", "0.711737", "0.711737", "0.711737", "0.7117254", "0.7117077", "0.71151257", "0.7112254", "0.7109952", "0.71089965", "0.71060926", "0.71002764", "0.70987266", "0.7095545", "0.7094154", "0.7094154", "0.70867133", "0.7082234", "0.7081284", "0.7080377", "0.70740104", "0.7068733", "0.706227", "0.7061052", "0.70605934", "0.70518696", "0.70381063", "0.70381063", "0.7036213", "0.7035876", "0.7035876", "0.7033369", "0.70309347", "0.702967", "0.70193934" ]
0.0
-1
attempt authentication against a network service.
@Override protected Boolean doInBackground(Void... params) { List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); nameValuePairs.add(new BasicNameValuePair("tid", getCurrentTopic().toString())); JSONObject responseObj = JSONFunctions.getJSONfromURL("http://webdeck.io/hmapi/posts.php", nameValuePairs); JSONObject postItem; if (responseObj != null) { Log.i("log", responseObj.toString()); try { JSONArray resultPosts = (JSONArray)responseObj.get("posts"); for (int i = 0; i < resultPosts.length(); i++) { postItem = (JSONObject)resultPosts.get(i); // mIdMap.put(topicItem.get("title").toString(), (Integer)topicItem.get("id")); posts.add(postItem.get("title").toString()); contents.add(postItem.get("body").toString()); } Log.i("log", resultPosts.toString()); return (resultPosts.length() > 0); } catch(JSONException e) { Log.e("json", "JSON error: " + e.toString()); return false; } } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean authenticate (HttpRequest request, HttpResponse response) throws UnsupportedEncodingException\n\t{\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\tif(requestSplit.length<2)\n\t\t\treturn false;\n\t\tString serviceName=requestSplit[1];\n\t\tfinal int BASIC_PREFIX_LENGTH=\"BASIC \".length();\n\t\tString userPass=\"\";\n\t\tString username=\"\";\n\t\tString password=\"\";\n\t\t\n\t\t//Check for authentication information in header\n\t\tif(request.hasHeaderField(AUTHENTICATION_FIELD)\n\t\t\t\t&&(request.getHeaderField(AUTHENTICATION_FIELD).length()>BASIC_PREFIX_LENGTH))\n\t\t{\n\t\t\tuserPass=request.getHeaderField(AUTHENTICATION_FIELD).substring(BASIC_PREFIX_LENGTH);\n\t\t\tuserPass=new String(Base64.decode(userPass), \"UTF-8\");\n\t\t\tint separatorPos=userPass.indexOf(':');\n\t\t\t//get username and password\n\t\t\tusername=userPass.substring(0,separatorPos);\n\t\t\tpassword=userPass.substring(separatorPos+1);\n\t\t\t\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tlong userId;\n\t\t\t\tAgent userAgent;\n\t\t\t\t\n\t\t\t\tif ( username.matches (\"-?[0-9].*\") ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tuserId = Long.valueOf(username);\n\t\t\t\t\t} catch ( NumberFormatException e ) {\n\t\t\t\t\t\tthrow new L2pSecurityException (\"The given user does not contain a valid agent id!\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tuserId = l2pNode.getAgentIdForLogin(username);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserAgent = l2pNode.getAgent(userId);\n\t\t\t\t\n\t\t\t\tif ( ! (userAgent instanceof PassphraseAgent ))\n\t\t\t\t\tthrow new L2pSecurityException (\"Agent is not passphrase protected!\");\n\t\t\t\t((PassphraseAgent)userAgent).unlockPrivateKey(password);\n\t\t\t\t_currentUserId=userId;\n\t\t\t\t\n\t\t\t\tif(!_userSessions.containsKey(userId))//if user not registered\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tMediator mediator = l2pNode.getOrRegisterLocalMediator(userAgent);\n\t\t\t\t\t_userSessions.put(userId, new UserSession(mediator));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_userSessions.get(userId).updateServiceTime(serviceName,new Date().getTime());//update last access time for service\n\t\t\t\t\n\t\t\t\tconnector.logMessage(\"Login: \"+username);\n\t\t\t\tconnector.logMessage(\"Sessions: \"+Integer.toString(_userSessions.size()));\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}catch (AgentNotKnownException e) {\n\t\t\t\tsendUnauthorizedResponse(response, null, request.getRemoteAddress() + \": login denied for user \" + username);\n\t\t\t} catch (L2pSecurityException e) {\n\t\t\t\tsendUnauthorizedResponse( response, null, request.getRemoteAddress() + \": unauth access - prob. login problems\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tsendInternalErrorResponse(\n\t\t\t\t\t\tresponse, \n\t\t\t\t\t\t\"The server was unable to process your request because of an internal exception!\", \n\t\t\t\t\t\t\"Exception in processing create session request: \" + e);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresponse.setStatus ( HttpResponse.STATUS_BAD_REQUEST );\n\t\t\tresponse.setContentType( \"text/plain\" );\n\t\t\tresponse.print ( \"No authentication provided!\" );\n\t\t\tconnector.logError( \"No authentication provided!\" );\n\t\t}\n\t\treturn false;\n\t}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n mUsrView.setError(null);\n mPasswordView.setError(null);\n\n String usr = mUsrView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n Tuple<String, String> creds = /*getCredentials()*/ SERVER_CREDENTIALS;\n\n boolean cancel = false;\n View focusView = null;\n\n if (!TextUtils.isEmpty(password)) {\n if (!mPasswordView.getText().toString().equals(creds.y)) {\n if (Util.D) Log.i(\"attemptLogin\", \"pwd was \" + mPasswordView.getText().toString());\n mPasswordView.setError(getString(R.string.error_incorrect_creds));\n cancel = true;\n }\n focusView = mPasswordView;\n }\n\n if (TextUtils.isEmpty(usr)) {\n mUsrView.setError(getString(R.string.error_field_required));\n focusView = mUsrView;\n cancel = true;\n } else if (!usr.equals(creds.x)) {\n mUsrView.setError(getString(R.string.error_incorrect_creds));\n focusView = mUsrView;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n if (prefs != null)\n prefs.edit().putBoolean(getString(R.string.settingAuthorized), true);\n showProgress(true);\n mAuthTask = new UserLoginTask(usr, password);\n mAuthTask.execute((Void) null);\n }\n }", "public Reply login(String hostname) throws ThingsException, InterruptedException;", "public abstract boolean authenticate(ServiceSecurity serviceSecurity, SecurityContext securityContext);", "@Override\n public boolean authenticate() {\n try {\n if (conn != null) {\n return true;\n }\n conn = new Connection(configuration.getHost());\n conn.connect();\n //登陆linux\n boolean isAuthenticated = conn.authenticateWithPassword(configuration.getUsername(),\n configuration.getPassword());\n if (!isAuthenticated) {\n conn.close();\n conn = null;\n throw new UserOrPasswordErrorException(\"账号或密码错误!\");\n }\n return true;\n } catch (IOException e) {\n conn.close();\n conn = null;\n throw new HostCannotConnectException(\"无法连接到主机!\");\n }\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n mEMSIpview.setError(null);\n // Store values at the time of the login attempt.\n final String emsIP = mEMSIpview.getText().toString();\n final String email = mEmailView.getText().toString();\n final String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n if (TextUtils.isEmpty(emsIP)) {\n mEMSIpview.setError(\"Please enter an ems ip\");\n focusView = mEMSIpview;\n cancel = true;\n }\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n performNetworkOperations.doLogin(emsIP, email, password);\n// Toast.makeText(this,token,Toast.LENGTH_SHORT).show();\n// List<String> nodeData = performNetworkOperations.getNodesList(emsIP,token);\n\n }\n }", "public User doAuthentication(String account, String password);", "protected void doLogin(Authentication authentication) throws AuthenticationException {\n \n }", "public void attemptLogin()\n {\n if ( mAuthTask != null )\n {\n return;\n }\n\n // Reset errors.\n mIPView_.setError( null );\n mPortView_.setError( null );\n\n // Store values at the time of the login attempt.\n mIP_ = mIPView_.getText().toString();\n mPort_ = mPortView_.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password.\n if ( TextUtils.isEmpty( mPort_ ) )\n {\n mPortView_\n .setError( getString( R.string.error_field_required ) );\n focusView = mPortView_;\n cancel = true;\n }\n // The port should be four digits long\n else if ( mPort_.length() != 4 )\n {\n mPortView_\n .setError( getString( R.string.error_invalid_server ) );\n focusView = mPortView_;\n cancel = true;\n }\n\n // Check for a valid email address.\n if ( TextUtils.isEmpty( mIP_ ) )\n {\n mIPView_.setError( getString( R.string.error_field_required ) );\n focusView = mIPView_;\n cancel = true;\n }\n\n if ( cancel )\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n }\n else\n {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n mLoginStatusMessageView\n .setText( R.string.login_progress_signing_in );\n showProgress( true );\n\n // Start the asynchronous thread to connect and post to the server\n mAuthTask = new UserLoginTask();\n mAuthTask.execute( (Void) null );\n }\n }", "private void authenticate(String user, String pass) {\n }", "void onNetworkCredentialsRequested();", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mIPView.setError(null);\r\n mPortView.setError(null);\r\n mUsernameView.setError(null);\r\n mPasswordView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String ip = mIPView.getText().toString();\r\n int port = 0;\r\n try {\r\n port = Integer.parseInt(mPortView.getText().toString());\r\n }catch (Exception e){\r\n\r\n }\r\n String username = mUsernameView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid ip address.\r\n if (TextUtils.isEmpty(ip)) {\r\n mIPView.setError(getString(R.string.error_field_required));\r\n focusView = mIPView;\r\n cancel = true;\r\n } else if (!isIPValid(ip)) {\r\n mIPView.setError(getString(R.string.error_invalid_ip));\r\n focusView = mIPView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid port.\r\n if (TextUtils.isEmpty(\"\"+port)) {\r\n mPortView.setError(getString(R.string.error_field_required));\r\n focusView = mPortView;\r\n cancel = true;\r\n }else if(port != (int)port){\r\n mPortView.setError(getString(R.string.error_invalid_port));\r\n focusView = mPortView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid username.\r\n if (TextUtils.isEmpty(username)) {\r\n mUsernameView.setError(getString(R.string.error_field_required));\r\n focusView = mUsernameView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid password, if the user entered one.\r\n if (TextUtils.isEmpty(password)) {\r\n mPasswordView.setError(getString(R.string.error_field_required));\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // Show a progress spinner, and kick off a background task to\r\n // perform the user login attempt.\r\n showProgress(true);\r\n mAuthTask = new UserLoginTask(ip, port, username, password);\r\n mAuthTask.execute((Void) null);\r\n }\r\n }", "private void formAuthenticate(String server) throws Exception{\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tcredsProvider.setCredentials(\n\t\t\t\tnew AuthScope(server, 8081),\n\t\t\t\tnew UsernamePasswordCredentials(\"debug\", \"debuglockss\"));\n\t\tCloseableHttpClient httpclient = HttpClients.custom()\n\t\t\t\t.setDefaultCredentialsProvider(credsProvider)\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tHttpGet httpget = new HttpGet(\"https://\"+ server +\":8081/Home\");\n\n\t\t\tLOGGER.info(\"Executing request \" + httpget.getRequestLine());\n\t\t\tCloseableHttpResponse response = httpclient.execute(httpget);\n\t\t\ttry {\n\t\t\t\tLOGGER.info(\"----------------------------------------\");\n\t\t\t\tLOGGER.info(response.getStatusLine().toString());\n\t\t\t\tLOGGER.info(EntityUtils.toString(response.getEntity()));\n\t\t\t} finally {\n\t\t\t\tresponse.close();\n\t\t\t}\n\t\t} finally {\n\t\t\thttpclient.close();\n\t\t}\n\t}", "public Object getService(String service) {\n try {\n Socket authServer = new Socket(AUTH_ADDRESS, AUTH_PORT); //Connect to authentication server.\n //Set up objects to read and write responses to and from them server.\n ObjectInputStream objIn = new ObjectInputStream(authServer.getInputStream());\n ObjectOutputStream objOut = new ObjectOutputStream(authServer.getOutputStream());\n //Challenge the server and verify it.\n PublicKey serverKey = AuctionSecurity.getPublicKey(\"Server\");\n System.out.print(\"Verifying server.... \");\n if (!AuctionSecurity.initiateChallenge(objIn, objOut, serverKey)) { //If we can't verify, then we exit.\n System.out.println(\"Signature of server does not match nonce challenge, invalid server connection.\");\n return null;\n }\n System.out.println(\"Server verified!\");\n //Identify ourselves with the server\n System.out.print(\"Authenticating credentials.... \");\n objOut.writeObject(this.name); //State who we are to the server\n AuctionSecurity.recieveChallenge(objIn, objOut, privateKey); //Await and deal with our challenge\n if (!objIn.readObject().equals(\"verified\")) { //Check servers result\n System.out.println(\"Server rejected verification of user.\");\n return null;\n }\n System.out.println(\"Credentials confirmed!\");\n objOut.writeObject(service); //Send our service request string.\n return getServiceObject((SealedObject[]) objIn.readObject()); //Retreive our service object the server is sending us.\n } catch (IOException ex) {\n System.out.println(\"Can't aquire service: \" + service + \" from authentication server.\");\n System.exit(1);\n } catch (ClassNotFoundException ex) {\n System.out.println(\"Service not found.\");\n }\n\n return null;\n }", "public void authenticate(LoginCredentials credentials) throws LoginException;", "private synchronized void doConnect() {\n try {\n String host = agent.getHost();\n int port = agent.getPort();\n log.fine(\"Connecting to server \" + host + ':' + port);\n socket = new Socket(host, port);\n input = socket.getInputStream();\n output = new OutputStreamWriter(socket.getOutputStream());\n disconnected = false;\n new Thread(this).start();\n\n // Automatically login! -> give an auth to the agent...\n TACMessage msg = new TACMessage(\"auth\");\n msg.setParameter(\"userName\", agent.getUser());\n msg.setParameter(\"userPW\", agent.getPassword());\n msg.setMessageReceiver(agent);\n sendMessage(msg);\n\n } catch (Exception e) {\n disconnected = true;\n log.log(Level.SEVERE, \"connection to server failed:\", e);\n socket = null;\n }\n }", "boolean authenticate(String userName, String password);", "private void authenticate(NestToken token) {\n mNest.authWithToken(token, new NestListener.AuthListener() {\n\n @Override\n public void onAuthSuccess() {\n Log.v(TAG, \"Authentication succeeded.\");\n fetchData();\n }\n\n @Override\n public void onAuthFailure(NestException exception) {\n Log.e(TAG, \"Authentication failed with error: \" + exception.getMessage());\n Auth.saveAuthToken(mActivity, null);\n mNest.launchAuthFlow(mActivity, AUTH_TOKEN_REQUEST_CODE);\n }\n\n @Override\n public void onAuthRevoked() {\n Log.e(TAG, \"Auth token was revoked!\");\n Auth.saveAuthToken(mActivity, null);\n mNest.launchAuthFlow(mActivity, AUTH_TOKEN_REQUEST_CODE);\n }\n });\n }", "RequestResult loginRequest() throws Exception;", "@Override\n\tpublic void login() {\n\t\tAccountManager accountManager = AccountManager.get(context);\n\t\tAccount[] accounts = accountManager.getAccountsByType(GOOGLE_ACCOUNT_TYPE);\n\t\tif(accounts.length < 1) throw new NotAccountException(\"This device not has account yet\");\n\t\tfinal String userName = accounts[0].name;\n\t\tfinal String accountType = accounts[0].type;\n\t\tBundle options = new Bundle();\n\t\tif(comService.isOffLine()){\n\t\t\tsetCurrentUser(new User(userName, userName, accountType));\n\t\t\treturn;\n\t\t}\n\t\taccountManager.getAuthToken(accounts[0], AUTH_TOKEN_TYPE, options, (Activity)context, \n\t\t\t\tnew AccountManagerCallback<Bundle>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run(AccountManagerFuture<Bundle> future) {\n\t\t\t\t\t\tString token = \"\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tBundle result = future.getResult();\n\t\t\t\t\t\t\ttoken = result.getString(AccountManager.KEY_AUTHTOKEN);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsetCurrentUser(new User(userName, userName, accountType, token));\n\t\t\t\t\t\t} catch (OperationCanceledException e) {\n\t\t\t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(\"Login\", \"Token: \" + token);\n\t\t\t\t\t}\n\t\t\t\t}, new Handler(new Handler.Callback() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean handleMessage(Message msg) {\n\t\t\t\t\t\tLog.d(\"Login\", msg.toString());\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}));\n\t}", "private void attemptToConnect() {\n LOG.warn(\"Attempting to connect....\");\n \n if (// No connection configuration\n getConnectionConfiguration() == null &&\n (getServerHostname() == null || getServerPort() == 0 ||\n getServiceName() == null || getFromAddress() == null ||\n getPassword() == null || getResource() == null)\n \n ||\n \n // Already logged in.\n getConnection() != null && getConnection().isAuthenticated()) {\n \n return;\n }\n \n try {\n if (getConnectionConfiguration() == null) {\n setConnectionConfiguration(new ConnectionConfiguration(\n getServerHostname(), getServerPort(), getServiceName()));\n }\n\n connect();\n }\n catch (Throwable t) {\n LOG.error(t);\n }\n }", "void initiateLogin() {\n\t\tString username = this.mAuthUsername.getText().toString();\n\t\tString password = this.mAuthPassword.getText().toString();\n\t\t\n\t\tfetch();\n\t\tthis.mAuthTask = new AuthenticationTask(this, this, username, password);\n\t\tthis.mAuthTask.execute();\n\t}", "AuthenticationToken authenticate(String username, CharSequence password) throws Exception;", "@Override\n public Authentication attemptAuthentication(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)\n throws AuthenticationException, IOException, ServletException {\n AccountCredentials credentials = new ObjectMapper().readValue(httpServletRequest.getInputStream(), AccountCredentials.class);\n UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(credentials.getUsername(), credentials.getPassword());\n return getAuthenticationManager().authenticate(token);\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mUserNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String userName = mUserNameView.getText().toString();\n String password = mPasswordView.getText().toString();\n UserDetail user = new UserDetail(userName, password);\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n user = null;\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(userName)) {\n mUserNameView.setError(getString(R.string.error_field_required));\n focusView = mUserNameView;\n\n\n }\n else if(user!=null && isNetworkConnected()) {\n getPermissiontoAccessInternet();\n mAuthTask = new UserLoginTask(user);\n mAuthTask.execute((Void) null);\n\n }\n// } else if (!isUserNameValid(userName)) {\n// mUserNameView.setError(getString(R.string.error_invalid_email));\n// focusView = mUserNameView;\n// cancel = true;\n// }\n\n// if (cancel) {\n// // There was an error; don't attempt login and focus the first\n// // form field with an error.\n// focusView.requestFocus();\n// } else {\n// // Show a progress spinner, and kick off a background task to\n// // perform the user login attempt.\n//\n// }\n }", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "private Authentication tryToAuthenticateWithUsernameAndPassword(String username, String password) {\n\t\tUsernamePasswordAuthenticationToken requestAuthentication = new UsernamePasswordAuthenticationToken(username, password);\n\t\treturn tryToAuthenticate(requestAuthentication);\n \n\t}", "public void auth(View view) {\n\n // get UI inputs\n login = (EditText) findViewById(R.id.login);\n password = (EditText) findViewById(R.id.password);\n result = (TextView)findViewById(R.id.result);\n\n // change inputs to strings\n txtLogin = login.getText().toString();\n txtPass = password.getText().toString();\n\n new Thread(){\n @Override\n public void run() { // thread to not disturb the UI thread\n\n URL url = null;\n try {\n url = new URL(\"https://httpbin.org/basic-auth/bob/sympa\");\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n // adding auth headers\n String userAndPassword = txtLogin+\":\"+txtPass; // text values from text fields\n// Log.i(\"USR\", txtLogin);\n// Log.i(\"PWD\", txtPass);\n String basicAuth = \"Basic \"+ Base64.encodeToString(userAndPassword.getBytes(), Base64.NO_WRAP);\n urlConnection.setRequestProperty(\"Authorization\", basicAuth);\n\n try {\n // read the returned HTML\n InputStream in = new BufferedInputStream(urlConnection.getInputStream());\n String s = readStream(in);\n Log.i(\"JFL\", s);\n\n jsonObject = new JSONObject(s); // storing the returned html in JSON form for easy access\n\n boolean res = jsonObject.getBoolean(\"authenticated\");\n// String usr = jsonObject.getString(\"user\");\n runOnUiThread(new Runnable() { // safe way to access the UI thread\n @Override\n public void run() {\n result.setText(\"\"+res);\n }\n });\n\n } catch (JSONException e) {\n e.printStackTrace();\n } finally {\n urlConnection.disconnect();\n }\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }.start();\n\n }", "private void attemptConnect() {\r\n if (mConnectTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mNameView.setError(null);\r\n mKeyView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String name = mNameView.getText().toString();\r\n String key = mKeyView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid name, if the user entered one.\r\n if (TextUtils.isEmpty(name)) {\r\n mNameView.setError(getString(R.string.error_invalid_password));\r\n focusView = mNameView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(key)) {\r\n mKeyView.setError(getString(R.string.error_field_required));\r\n focusView = mKeyView;\r\n cancel = true;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // Show a progress spinner, and kick off a background task to\r\n // perform the user login attempt.\r\n mConnectTask = new ConnectTask(this, name, key);\r\n mConnectTask.execute((Void) null);\r\n }\r\n }", "@Override\n public void doWhenNetworkCame() {\n doLogin();\n }", "public void doLogin() throws IOException {\n if (principal != null) {\n LOG.info(\n \"Attempting to login to KDC using principal: {} keytab: {}\", principal, keytab);\n UserGroupInformation.loginUserFromKeytab(principal, keytab);\n LOG.info(\"Successfully logged into KDC\");\n } else if (!isProxyUser(UserGroupInformation.getCurrentUser())) {\n LOG.info(\"Attempting to load user's ticket cache\");\n UserGroupInformation.loginUserFromSubject(null);\n LOG.info(\"Loaded user's ticket cache successfully\");\n } else {\n throwProxyUserNotSupported();\n }\n }", "private void logIn() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n\n String user = a[0];\n String password = a[1];\n boolean rez = service.checkPassword(user, password);\n if(rez == TRUE)\n System.out.println(\"Ok\");\n else\n System.out.println(\"Not ok\");\n }", "public void authenticate() {\n JSONObject jsonRequest = new JSONObject();\n try {\n jsonRequest.put(\"action\", \"authenticate\");\n jsonRequest.put(\"label\", \"label\");\n JSONObject dataObject = new JSONObject();\n dataObject.put(\"device_token\", CMAppGlobals.TOKEN);\n jsonRequest.put(\"data\", dataObject);\n\n if(CMAppGlobals.DEBUG) Logger.i(TAG, \":: AuthWsManager.authenticate : jsonRequest : \" + jsonRequest);\n\n // send JSON data\n WSManager.getInstance().con(mContext).sendJSONData(jsonRequest);\n\n\n } catch (JSONException e) {\n\n mContext.onWsFailure(e);\n }\n\n }", "@Override\n\tpublic Authentication authenticate(Authentication authentication) throws AuthenticationException {\n\t\tString userId = authentication.getPrincipal().toString();\n\t\tString password = authentication.getCredentials().toString();\n\t\tUserInfo userAuth = Config.getInstance().getUserAuth();\n\t\tuserAuth.setUserEmail(userId);\n\t\tuserAuth.setUserPassword(password);\n\t\tLoginService loginService = Config.getInstance().getLoginService();\n\t\tUserInfo userInfo;\n\t\ttry{\n\t\t\tuserInfo = loginService.authenticateUser(userId,password);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new AuthenticationServiceException(\"1000\");\n\t\t}\n\t\tif (userInfo != null)\n\t\t{\n\t\t\treturn grantNormalRole(userInfo, authentication);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// No user with this banner id found.\n\t\t\tthrow new BadCredentialsException(\"1001\");\n\t\t}\n\t}", "@Override\n\tprotected void sync() {\n\n\t\tString key = null;\n\t\ttry {\n\t\t\tkey = DeviceKeyUtils.getDeviceKey(mContext);\n\t\t} catch (RuntimeException e) {\n\t\t\tUtil.logException(e);\n\t\t\tdoneSyncing();\n\t\t}\n\n\t\t/*\n\t\t * We don't really care about the response... we're not going to retry\n\t\t * if the login fails, since it's really only for tracking usage data.\n\t\t */\n\t\tResponse response = mApiService.login(key);\n\n\t\tdoneSyncing();\n\t}", "public void start_service() throws ConnectionErrorException, FailLoadingServicesException{\r\n\t\tthis.serviceLocator = new LoginServiceLocator();\r\n\t\ttry {\r\n\t\t\tthis.service = (BasicHttpsBinding_ILoginServiceStub) serviceLocator.getBasicHttpsBinding_ILoginService();\r\n\t\t\ttry {\r\n\t\t\t\tthis.services = this.service.loadAllServices();\r\n\t\t\t} catch (RemoteException e) {\r\n\t\t\t\tthrow new FailLoadingServicesException();\r\n\t\t\t}\r\n\t\t} catch (ServiceException e) {\r\n\t\t\tthrow new ConnectionErrorException();\r\n\t\t}//-catch\r\n\t}", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "private void attemptLogin() {\n\n if (!Utils.isNetworkAvailable(mBaseActivity)) {\n Utils.showNetworkAlertDialog(mBaseActivity);\n return;\n }\n if (signInTask != null) {\n return;\n }\n\n // Reset errors.\n binding.email.setError(null);\n binding.password.setError(null);\n\n // Store values at the time of the login attempt.\n String email = binding.email.getText().toString();\n String password = binding.password.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n binding.email.setError(getString(R.string.error_field_required));\n focusView = binding.email;\n cancel = true;\n } else if (TextUtils.isEmpty(password)) {\n binding.password.setError(getString(R.string.error_field_required));\n focusView = binding.password;\n cancel = true;\n } else if (!isEmailValid(email)) {\n binding.email.setError(getString(R.string.error_invalid_email));\n focusView = binding.email;\n cancel = true;\n } else if (!isPasswordValid(password)) {\n binding.password.setError(getString(R.string.error_invalid_password));\n focusView = binding.password;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // perform the user login attempt.\n signInTask = new AsyncTask(mBaseActivity);\n signInTask.execute(email, password);\n }\n }", "private void attemptUsernamePasswordLogin()\n {\n if (mAuthTask != null)\n {\n return;\n }\n\n if(mLogInButton.getText().equals(getResources().getString(R.string.logout)))\n {\n mAuthTask = new RestCallerPostLoginTask(this,mStoredToken,MagazzinoService.getAuthenticationHeader(this),true);\n mAuthTask.execute(MagazzinoService.getLogoutService(this));\n return;\n }\n // Reset errors.\n mUsernameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mUsernameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password))\n {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email))\n {\n mUsernameView.setError(getString(R.string.error_field_required));\n focusView = mUsernameView;\n cancel = true;\n }\n else if (!isUsernameOrEmailValid(email))\n {\n mUsernameView.setError(getString(R.string.error_invalid_email));\n focusView = mUsernameView;\n cancel = true;\n }\n\n if (cancel)\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n return;\n }\n\n mAuthTask = new RestCallerPostLoginTask(this,email, password);\n mAuthTask.execute(MagazzinoService.getLoginService(this));\n\n }", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }", "int authenticateUser(IDAOSession session, String userName, String password);", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mPhoneView.setError(null);\r\n mPasswordView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String phone = mPhoneView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n if (TextUtils.isEmpty(password)) {\r\n mPasswordView.setError(getString(R.string.error_field_required));\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid phone address.\r\n if (TextUtils.isEmpty(phone)) {\r\n mPhoneView.setError(getString(R.string.error_field_required));\r\n focusView = mPhoneView;\r\n cancel = true;\r\n } else if (!isPhoneValid(phone)) {\r\n mPhoneView.setError(getString(R.string.error_invalid_phone));\r\n focusView = mPhoneView;\r\n cancel = true;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // Show a progress spinner, and kick off a background task to\r\n // perform the user login attempt.\r\n showProgress(true);\r\n mAuthTask = new UserLoginTask(phone, password);\r\n mAuthTask.execute((Void) null);\r\n }\r\n }", "public void authenticateUser()\r\n\t{\r\n\t\tsc.nextLine(); \r\n\t\tint index=loginattempt();\r\n\t}", "@Test\n public void AuthenticationShouldFailWithValidIPUser() throws Exception {\n kidozen = new KZApplication(AppSettings.KZ_TENANT, AppSettings.KZ_APP, AppSettings.KZ_KEY, false);\n final CountDownLatch alcd = new CountDownLatch(1);\n kidozen.Authenticate(AppSettings.KZ_USER, AppSettings.KZ_PASS, \"ups!\", new ServiceEventListener() {\n @Override\n public void onFinish(ServiceEvent e) {\n alcd.countDown();\n assertThat(e.StatusCode, equalTo(HttpStatus.SC_UNAUTHORIZED));\n assertTrue(e.Body.toLowerCase().contains(\"unauthorized\".toLowerCase()));\n }\n });\n assertEquals(false, kidozen.UserIsAuthenticated);\n alcd.await(TEST_TIMEOUT_IN_MINUTES, TimeUnit.MINUTES);\n }", "@Override\n public void authenticate(URL url, AuthenticatedURL.Token token)\n throws IOException, AuthenticationException {\n if (!token.isSet()) {\n this.url = url;\n base64 = new Base64(0);\n\n conn = openConnection(url);\n conn.setRequestMethod(AUTH_HTTP_METHOD);\n conn.connect();\n if (isNegotiate()) {\n doSpnegoSequence(token);\n }\n else {\n getFallBackAuthenticator().authenticate(url, token);\n }\n }\n }", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "@Override\n\tpublic boolean managerLogin(Context ctx) {\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.managerLogIn(username, password);\n\t\treturn result;\n\t}", "public abstract void login(String userName, String password) throws RemoteException;", "@ClassVersion(\"$Id: Authenticator.java 16154 2012-07-14 16:34:05Z colin $\")\r\npublic interface Authenticator\r\n{\r\n\r\n /**\r\n * Checks whether the given credentials can be used to initiate a\r\n * new session on behalf of the client with the given context.\r\n *\r\n * @param context The context.\r\n * @param user The user name.\r\n * @param password The password.\r\n *\r\n * @return True if the given credentials are acceptable.\r\n *\r\n * @throws I18NException Thrown if the authenticator encounters an\r\n * error while checking the credentials.\r\n */\r\n\r\n boolean shouldAllow\r\n (StatelessClientContext context,\r\n String user,\r\n char[] password)\r\n throws I18NException;\r\n}", "protected void login(String username, String password) throws Exception {\n final SecurityClient securityClient = SecurityClientFactory.getSecurityClient();\n securityClient.setSimple(username, password);\n securityClient.login();\n }", "public boolean authenticatorRequest(String authURL){\r\n\t\t\r\n\t\tboolean authOK = false;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t logger.finest(authURL);\r\n\t\t\t HttpURLConnection httpConnection = null;\r\n\t if(this.proxyHost.equalsIgnoreCase(\"\") || this.proxyPort.equalsIgnoreCase(\"\")){\r\n\t \t URL restServiceURL = new URL(authURL);\r\n\t \t httpConnection = (HttpURLConnection) restServiceURL.openConnection();\r\n\t } else{\r\n\t \t httpConnection = proxySetup(authURL);\r\n\t }\r\n\t httpConnection.setRequestMethod(\"GET\");\r\n\t \r\n\t if (httpConnection.getResponseCode() != 200) {\r\n\t \t logger.severe(\"Error:\tAuthenticattion failure: \" + httpConnection.getResponseCode());\r\n\t throw new RuntimeException(\"Error:\tAuthenticattion failure: \" + httpConnection.getResponseCode());\r\n\t }\r\n\t else{\r\n\t \t \tauthOK = true;\r\n\t \t \tString header = httpConnection.getHeaderFields().toString();\r\n\t \t \tthis.setjSessionId(header); \r\n\t \r\n\t \t \tString serverCookies = httpConnection.getHeaderField(\"Set-Cookie\");\r\n\t \t \tthis.setAuthHash(serverCookies);\r\n\t }\r\n\t \r\n\t logger.finest(\"Authentication successful: \" + httpConnection.getResponseCode() + \" - OK\");\t \t \t \t \t \r\n\t httpConnection.disconnect();\r\n\t\t} \r\n\t\tcatch (MalformedURLException e1) {\r\n\t e1.printStackTrace();\r\n\t logger.severe(\"Error: connection \" + e1.getMessage());\r\n\t } \r\n\t\tcatch(ConnectException e3){\r\n\t\t\tlogger.severe(\"Error:\tConnection Time out. Please relaunch the console app.\" + e3.getMessage());\r\n\t\t}\r\n\t\tcatch(UnknownHostException e){\r\n\t\t\tlogger.severe(\"Error:\tUnknown host. Please relaunch the console app.\" + e.getMessage());\r\n\t\t}\r\n\t\tcatch (IOException e2) {\r\n\t\t\tlogger.severe(\"Error:\t\" + e2.getMessage() + \"\\n was occured. Please contact the administrator.\");\r\n\t }\t\t\r\n\t\treturn authOK;\r\n\t}", "@Override\n public Principal authenticate(String credentials, String remoteAddr, String httpMethod, StringBuilder errMsg) {\n return null;\n }", "@Override\n public void run() {\n PreferenceManager.getDefaultSharedPreferences(AuthenticatorExample.this)\n .edit().putBoolean(\"is_authenticated\", true).commit();\n // Notify the service that authentication is complete\n notifyAuthenticated();\n // Close the Activity\n finish();\n }", "private void attemptLogin() {\n if (isLoggingIn) {\n return;\n }\n\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!Utils.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n } else if (!Utils.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n if (!HttpUtils.isNetworkAvailable(this.getApplicationContext())) {\n Toast.makeText(this.getApplicationContext(), \"No internet\", Toast.LENGTH_SHORT).show();\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(mPasswordView.getWindowToken(), 0);\n\n LoginApi.executeLogin(this, email, password);\n }\n }", "protected static Service getService() throws AnaplanAPIException, UnknownAuthenticationException {\n if (service != null) {\n return service;\n }\n\n ConnectionProperties props = getConnectionProperties();\n service = DefaultServiceProvider.getService(props, Constants.X_ACONNECT_HEADER_KEY, Constants.X_ACONNECT_HEADER_VALUE);\n service.authenticate();\n return service;\n }", "public void attemptLogin() {\r\n\t\tif (mAuthTask != null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Reset errors.\r\n\t\tmUserView.setError(null);\r\n\t\tmPasswordView.setError(null);\r\n\t\t// Store values at the time of the login attempt.\r\n\t\tmUser = mUserView.getText().toString();\r\n\t\tmPassword = mPasswordView.getText().toString();\r\n\t\tboolean cancel = false;\r\n\t\tView focusView = null;\r\n\t\t// Check for a valid password.\r\n\t\tif (TextUtils.isEmpty(mPassword)) {\r\n\t\t\tmPasswordView.setError(getString(R.string.error_field_required));\r\n\t\t\tfocusView = mPasswordView;\r\n\t\t\tcancel = true;\r\n\t\t} else if (mPassword.length() < 3) {\r\n\t\t\tmPasswordView.setError(getString(R.string.error_invalid_password));\r\n\t\t\tfocusView = mPasswordView;\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\t\t// Check for a valid username address.\r\n\t\tif (TextUtils.isEmpty(mUser)) {\r\n\t\t\tmUserView.setError(getString(R.string.error_field_required));\r\n\t\t\tfocusView = mUserView;\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\t\tif (cancel) {\r\n\t\t\t// There was an error; don't attempt login and focus the first\r\n\t\t\t// form field with an error.\r\n\t\t\tfocusView.requestFocus();\r\n\t\t} else {\r\n\t\t\t// Show a progress spinner, and kick off a background task to\r\n\t\t\t// perform the user login attempt.\r\n\t\t\tmLoginStatusMessageView.setText(R.string.login_progress_signing_in);\r\n\t\t\tmAuthTask = new UserLoginTask(this);\r\n\t\t\tmAuthTask.execute((Void) null);\r\n\t\t}\r\n\t}", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n if(isOnline()){\n try {\n ApiRequests.POST(\"login/\", new Callback() {\n @Override\n public void onFailure(Call call, final IOException e) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Log.e(\"error:\", \"burda\");\n }\n });\n }\n\n @Override\n public void onResponse(Call call, final Response response) throws IOException {\n\n try {\n processTheResponse(response.body().string());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n }, email, password);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n else {\n InternetConnectionError();\n }\n }\n }", "public void establishConnection() {\n httpNetworkService = new HTTPNetworkService(handler);\n }", "public void authentication() throws AuthorizationException {\n\t\tclient = new RennClient(API_KEY, SECRET_KEY);\n\t\tclient.authorizeWithClientCredentials();\n\t}", "public boolean connect() {\n\t\tString name = getUserName();\n\t\tfor (int i = 0; i < name.length(); i++) {\n\t\t\tchar ch = name.charAt(i);\n\t\t\tif (!Character.isLetter(ch) && !Character.isDigit(ch)) {\n\t\t\t\tthrow new IllegalNameException(\"Cannot log in to the server using the name \" + name);\n\t\t\t}\n\t\t}\n\t\tboolean retVal = login();\n\t\tMessageScanner rms = MessageScanner.getInstance();\n\t\taddMessageListener(rms);\n\t\tmessageScanner = rms;\n\t\tif (!userName.startsWith(\"AGENCY\") && !userName.startsWith(\"ADMIN\")) {\n\t\t\tsetUserName(getUserName().substring(1, getUserName().length()));\n\t\t}\n\n\t\treturn retVal;\n\t}", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "User authenticate(String username, String password);", "public void authenticate(LoginRequest loginRequest) {\n\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !Utility_Helper.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!Utility_Helper.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n // if user flow not cancelled execute Simulate_Login_Task asyncronous task\n // to simulate login\n Simulate_Login_Task task = new Simulate_Login_Task(this, dummyList, email, password);\n task.setOnResultListener(asynResult);\n task.execute();\n }\n }", "public void authenticate() {\n LOGGER.info(\"Authenticating user: {}\", this.name);\n WebSession result = null;\n try {\n result =\n getContext()\n .getAuthenticationMethod()\n .authenticate(\n getContext().getSessionManagementMethod(),\n this.authenticationCredentials,\n this);\n } catch (UnsupportedAuthenticationCredentialsException e) {\n LOGGER.error(\"User does not have the expected type of credentials:\", e);\n } catch (Exception e) {\n LOGGER.error(\"An error occurred while authenticating:\", e);\n return;\n }\n // no issues appear if a simultaneous call to #queueAuthentication() is made\n synchronized (this) {\n this.getAuthenticationState().setLastSuccessfulAuthTime(System.currentTimeMillis());\n this.authenticatedSession = result;\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String name = mNameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid user name.\n if (TextUtils.isEmpty(name)) {\n mNameView.setError(getString(R.string.error_field_required));\n focusView = mNameView;\n cancel = true;\n } else if (!isNameValid(name)) {\n mNameView.setError(getString(R.string.error_invalid_name));\n focusView = mNameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(name, password);\n mAuthTask.execute(mUrl);\n }\n }", "public void login(String addr, String port, String user){\n if (state != State.NOCONNECTION){\n Log.d(\"State\", state.toString());\n return;\n }\n if (user.length() < 3){\n Log.d(\"Username\", \"length too short\");\n return; //BAD HUMAN!!!\n }\n _user = user;\n try {\n mConnection = new NetworkingConnection(new MyResponseVisitor(), addr, port);\n state = State.HASCONNECTION;\n } catch (UnknownHostException e){\n e.printStackTrace();\n //there is an unknown host aka ur IP is wrong bish\n Log.d(\"Bad IP address\", addr);\n state = State.NOCONNECTION;\n }\n //make the error handler somewher\n INetworkingConnection.OnErrorSend handleErr = new INetworkingConnection.OnErrorSend(){\n public void onError(@NonNull Throwable err){\n err.printStackTrace();\n }\n };\n //send the login request somewhere(???)\n LoginRequest loginReq = new LoginRequest(user);\n mConnection.send(loginReq, handleErr).execute();\n state = State.ATTEMPTEDLOGIN;\n }", "private void _login() throws SecurityFeaturesException {\n try {\n _initChallengeResponse();\n } catch (InvalidKeyException e) {\n _showAlertWithMessage(getString(R.string.authentication_failure_title), getString(R.string.error_auth_invalid_key), false, false);\n } catch (InvalidChallengeException e) {\n _showAlertWithMessage(getString(R.string.authentication_failure_title), getString(R.string.error_auth_invalid_challenge), false, false);\n }\n }", "private AuthenticationService() {}", "public Person authenticateAndGetUser(String numCc, String password) throws RemoteException;", "public interface IAuthService {\n AuthInfo getAuthentication(String username, String password);\n}", "private boolean _credInit() throws FileNotFoundException, IOException \n {\n\n String user = (String) this._argTable.get(CMD.USER);\n String svgp = (String) this._argTable.get(CMD.SERVERGROUP);\n String password = null;\n\n //get the server group first\n if (svgp == null) \n {\n while (svgp == null)\n {\n //if servergroup is null, query.If empty, set to null (which is default) \n System.out.print(\"Server group>> \");\n svgp = this._readTTYLine();\n //System.out.println(\"\");\n svgp = svgp.trim();\n if (svgp.equals(\"\"))\n svgp = null;\n \n if (svgp == null)\n {\n System.out.println(\"Server group must be specified. Enter 'abort' to quit.\");\n }\n else if (svgp.equalsIgnoreCase(\"abort\") || svgp.equalsIgnoreCase(\"exit\") ||\n svgp.equalsIgnoreCase(\"quit\") || svgp.equalsIgnoreCase(\"bye\")) \n {\n System.exit(0);\n }\n }\n }\n else\n {\n System.out.println(\"Server group>> \"+svgp); \n }\n \n //---------------------------\n\n //request the authentication method from the servergroup\n AuthenticationType authType = null;\n try {\n authType = getAuthenticationType(svgp);\n } catch (SessionException sesEx) {\n \n if (sesEx.getErrno() == Constants.CONN_FAILED)\n {\n this._logger.error(\"Unable to connect to server group '\" +\n svgp+\"'.\\nPlease check network status and \"+\n \"FEI domain file configuration.\");\n \n// this._logger.severe(\"Unable to authenticate for group '\"+svgp+\n// \"' due to connection failure. Possible network issue.\");\n }\n else\n {\n this._logger.severe(\"Authentication Error! Unable to query server \"+\n \"authentication method for servergroup '\"+svgp + \"'. (\"+\n sesEx.getErrno()+\")\");\n }\n _logger.trace(null,sesEx);\n return false;\n }\n \n final String pwdPrompt = PasswordUtil.getPrompt(authType);\n\n //---------------------------\n \n if (user == null) \n {\n System.out.print(\"User name>> \");\n user = this._readTTYLine();\n user = user.trim();\n } \n else\n {\n System.out.print(\"User name>> \"+user);\n }\n \n boolean ok = false; \n while (!ok)\n { \n password = ConsolePassword.getPassword(pwdPrompt+\">> \");\n //System.out.println(\"\");\n password = password.trim();\n if (!password.equals(\"\"))\n ok = true; \n }\n \n //System.out.println(\"\");\n //password = password.trim();\n \n if (password.equalsIgnoreCase(\"abort\") || password.equalsIgnoreCase(\"exit\") ||\n password.equalsIgnoreCase(\"quit\") || password.equalsIgnoreCase(\"bye\")) \n {\n System.exit(0);\n }\n \n \n //create the encrypter for passwords\n String encrypted = null;\n try {\n encrypted = this._encrypter.encrypt(password);\n } catch (Exception ex) {\n this._logger.severe(\"Password encrypt Error! Could not write login credentials.\");\n _logger.trace(null,ex);\n return false;\n }\n \n\n \n UserToken userToken = null;\n String authToken = encrypted;\n try {\n userToken = getAuthenticationToken(svgp, user, encrypted);\n } catch (SessionException sesEx) {\n this._logger.severe(\"Authentication Error! Could not authenticate \"+\n \"user '\"+user+\"' for servergroup '\"+svgp + \"'.\"); \n _logger.trace(null,sesEx);\n return false;\n }\n \n \n //user was not authenticated\n if (userToken == null || !userToken.isValid())\n {\n this._logger.severe(\"Authentication Error: Could not authenticate \"+\n \"user '\"+user+\"' for servergroup '\"+svgp + \"'.\"); \n return false;\n }\n \n this._loginReader.setUsername(svgp, user);\n this._loginReader.setPassword(svgp, userToken.getToken());\n this._loginReader.setExpiry( svgp, userToken.getExpiry());\n \n \n boolean success = true;\n try {\n this._loginReader.commit();\n } catch (IOException ioEx) {\n this._logger.severe(\"Login File Error! Could not write login credentials.\");\n _logger.trace(null, ioEx);\n success = false;\n ++this._errorCount;\n }\n return success;\n \n }", "private int checkAuthentication( SecureDirectory secureDirectory ) throws ServerException {\r\n\r\n\t\tif ( secureDirectory == null )\r\n\t\t\treturn NOT_SECURE_DIR;\r\n\r\n\t\tif ( !request.getHeaderFields().containsKey( HeaderFields.AUTHORIZATION ) )\r\n\t\t\treturn NEED_AUTHENTICATE;\r\n\r\n\t\tString auth = request.getHeaderFields().get( HeaderFields.AUTHORIZATION );\r\n\t\tString[] tokens = auth.split( \" \", 2 );\r\n\t\tif ( authenticate( secureDirectory, tokens[0], tokens[1] ) )\r\n\t\t\treturn AUTHENTICATED;\r\n\r\n\t\t// Password or username not correct\r\n\t\tthrow new ServerException( ResponseTable.FORBIDDEN );\r\n\t}", "public void attemptLogin() {\r\n\t\tif (mAuthTask != null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Reset errors.\r\n\t\tthis.activity.getmEmailView().setError(null);\r\n\t\tthis.activity.getmPasswordView().setError(null);\r\n\r\n\t\t// Store values at the time of the login attempt.\r\n\t\tmEmail = this.activity.getmEmailView().getText().toString();\r\n\t\tmPassword = this.activity.getmPasswordView().getText().toString();\r\n\r\n\t\tboolean cancel = false;\r\n\t\tView focusView = null;\r\n\r\n\t\t// Check for a valid password.\r\n\t\tif (TextUtils.isEmpty(mPassword)) {\r\n\t\t\tthis.activity.getmPasswordView().setError(this.activity.getString(R.string.error_field_required));\r\n\t\t\tfocusView = this.activity.getmPasswordView();\r\n\t\t\tcancel = true;\r\n\t\t} else if (mPassword.length() < 4) {\r\n\t\t\tthis.activity.getmPasswordView().setError(this.activity.getString(R.string.error_invalid_password));\r\n\t\t\tfocusView = this.activity.getmPasswordView();\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\r\n\t\t// Check for a valid email address.\r\n\t\tif (TextUtils.isEmpty(mEmail)) {\r\n\t\t\tthis.activity.getmEmailView().setError(this.activity.getString(R.string.error_field_required));\r\n\t\t\tfocusView = this.activity.getmEmailView();\r\n\t\t\tcancel = true;\r\n\t\t} else if (!mEmail.contains(\"@\")) {\r\n\t\t\tthis.activity.getmEmailView().setError(this.activity.getString(R.string.error_invalid_email));\r\n\t\t\tfocusView = this.activity.getmEmailView();\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\r\n\t\tif (cancel) {\r\n\t\t\t// There was an error; don't attempt login and focus the first\r\n\t\t\t// form field with an error.\r\n\t\t\tfocusView.requestFocus();\r\n\t\t} else {\r\n\t\t\t// Show a progress spinner, and kick off a background task to\r\n\t\t\t// perform the user login attempt.\r\n\t\t\tthis.activity.getmLoginStatusMessageView().setText(R.string.login_progress_signing_in);\r\n\t\t\tthis.activity.showProgress(true);\r\n\t\t\tmAuthTask = new UserLoginTask();\r\n\t\t\tmAuthTask.execute((Void) null);\r\n\t\t}\r\n\t}", "private void authenticate(final String username, final String password) {\n\t\tAuthenticator.setDefault(new Authenticator() {\n\n\t\t\t@Override\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\n\t\t\t\treturn new PasswordAuthentication(username, password.toCharArray());\n\t\t\t}\n\t\t});\n\t}", "public void login(String sessionId)\n\t\tthrows NoPermissionException, Exception\n\t{\n\n\t\t// Connect to the authentication server\n\t\t// and validate this session id\n\t\tWebiceLogger.info(\"in Client logging in with sessionId: \" + sessionId);\n\t\tAuthGatewayBean gate = new AuthGatewayBean();\n\t\tgate.initialize(sessionId, ServerConfig.getAuthAppName(), \n\t\t\t\tServerConfig.getAuthServletHost());\n\t\t\n\t\tlogin(gate);\n\t\tWebiceLogger.info(\"in Client logged in with sessionId: \" + sessionId + \" \" + getUser());\n\t}", "String login(String userName, String password) throws RemoteException, InterruptedException;", "UserToken login(String username, String password) throws WorkspaceException;", "@Override\n public void onAuthenticationFailed() {\n }", "public void login(String username, String password)\n \t\t\tthrows IllegalStateException, IOException, JHGDException {\n \t\tif (!connected) {\n \t\t\tthrow new IllegalStateException(\"Client not connected\");\n \t\t}\n \t\t// Set SSL if necessary\n \n \t\t// Reset the authentication flag.\n \t\tauthenticated = false;\n \n \t\t// Check received parameters\n \t\tif (username == null || username.isEmpty()) {\n \t\t\tthrow new JHGDException(\"Null or empty username\");\n \t\t}\n \t\tif (password == null) {\n \t\t\tthrow new JHGDException(\"Null password\");\n \t\t}\n \n \t\t// send the command: \"user|%s|%s\"\n \t\tsendLineCommand(\"user|\" + username + \"|\" + password);\n \n \t\tString returnMessage = (String) input.readLine();\n \t\t// check server response\n \t\tif (checkServerResponse(returnMessage) == HGDConsts.SUCCESS) {\n \t\t\t// set the flags\n \t\t\tthis.authenticated = true;\n \t\t\tthis.username = username;\n \t\t\tthis.password = password;\n \t\t} else {\n \t\t\tthrow new JHGDException(returnMessage.substring(returnMessage\n \t\t\t\t\t.indexOf('|') + 1));\n \t\t}\n \n \t}", "public void authenticateUser() {\n\n String username = viewUsername.getText().toString();\n String password = viewPassword.getText().toString();\n\n Timber.v(\"authenticateUser called username: \" + username);\n activity.getOnboardingViewModel().authenticateUser(username, password);\n }", "public void login(AuthenticationRequest auth_request)\n throws AuthorizationException, TException, AuthenticationException\n {\n for (Cassandra.Client client : addressToClient.values()) {\n long returnTime = client.login(auth_request, LamportClock.sendTimestamp());\n LamportClock.updateTime(returnTime);\n }\n }", "private void attemptLogin() {\n if (authTask != null) {\n return;\n }\n\n // Reset errors.\n usernameView.setError(null);\n passwordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = usernameView.getText().toString();\n String password = passwordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n passwordView.setError(getString(R.string.error_invalid_password));\n focusView = passwordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n usernameView.setError(getString(R.string.error_field_required));\n focusView = usernameView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n usernameView.setError(getString(R.string.error_invalid_email));\n focusView = usernameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n //set loginID for session\n session.setID(email);\n\n startDashboard();\n /*authTask = new UserLoginTask(email, password);\n authTask.execute((Void) null);*/\n }\n }", "@Override\n public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)\n \t\tthrows AuthenticationException {\n \treturn super.attemptAuthentication(request, response);\n }", "@Override\n public boolean auth(String email, String pseudonyme) {\n Properties props = new Properties();\n props.setProperty(\"org.omg.CORBA.ORBInitialHost\", \"localhost\");\n props.setProperty(\"org.omg.CORBA.ORBInitialPort\", \"3700\");\n props.setProperty(\"java.naming.factory.initial\", \"com.sun.enterprise.naming.SerialInitContextFactory\");\n props.setProperty(\"java.naming.factory.url.pkgs\", \"com.sun.enterprise.naming\");\n props.setProperty(\"java.naming.factory.state\", \"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl\");\n \n StatelessDirectoryManagerBeanRemote sb = null;\n InitialContext ic;\n \n try {\n ic = new InitialContext(props);\n sb = (StatelessDirectoryManagerBeanRemote)ic.lookup(\"com.master2.datascale.directorymanager.bean.StatelessDirectoryManagerBeanRemote\");\n\t\t\t\n } catch (NamingException ex) {\n Logger.getLogger(StatefulAuctionManagerBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n\t\t\t\n return sb.auth(email, pseudonyme);\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n login(email, password);\n\n }\n }", "@Override\n public Authentication attemptAuthentication(\n HttpServletRequest request,\n HttpServletResponse response) throws AuthenticationException {\n\n try {\n // 1. pobieramy dane uzytkownika ktory chce sie zalogowac\n AuthenticationUser user = new ObjectMapper().readValue(request.getInputStream(), AuthenticationUser.class);\n\n // 2. dokonujemy proby logowania\n return authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(\n user.getUsername(),\n user.getPassword(),\n Collections.emptyList()\n ));\n } catch ( Exception e ) {\n throw new AppException(e.getMessage());\n }\n\n }", "void connectServiceUnknownThread() {\n mMainHandler.post(() -> {\n try {\n final IAccessibilityServiceClient serviceInterface;\n final IBinder service;\n synchronized (mLock) {\n serviceInterface = mServiceInterface;\n mService = (serviceInterface == null) ? null : mServiceInterface.asBinder();\n service = mService;\n }\n // If the serviceInterface is null, the UiAutomation has been shut down on\n // another thread.\n if (serviceInterface != null) {\n service.linkToDeath(this, 0);\n serviceInterface.init(this, mId, mOverlayWindowToken);\n }\n } catch (RemoteException re) {\n Slog.w(LOG_TAG, \"Error initialized connection\", re);\n destroyUiAutomationService();\n }\n });\n }", "private void attemptLogin() {\n\n String username = mEmailView.getText().toString().trim();\n String idNumber = mIdNumber.getText().toString().trim();\n String password = mPasswordView.getText().toString().trim();\n\n if (TextUtils.isEmpty(username)) {\n// usernameView.setError(errorMessageUsernameRequired);\n// errorView = usernameView;\n }\n\n if (TextUtils.isEmpty(password)) {\n// password.setError(errorMessagePasswordRequired);\n// if (errorView == null) {\n// errorView = passwordView;\n// }\n }\n\n final User user = new User();\n ((DealerManager)getApplication()).setUser(user);\n navigateTo(R.id.nav_home);\n }", "@Override\n\tpublic SpaceUserVO login(SpaceUserVO spaceUserVO) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic void login(String ip, String pass) {\n\t\tif(network == null || !pass.equals(network.password)) { //if loc net not defined OR pw differ from current loc net pw:\n\t\t\tnetwork = new Network();\t\t\t\t\t\t\t\t\t//create a new loc net with given password. \n\t\t\tnetwork.setPassword(pass);;\n\t\t}\n\t\tif(!ip.equals(\"\"))\n\t\t\tnetwork.connect(ip);\t\t\t\t\t\t\t\t\t//try and connect to ip given.\n\t}", "@Override\n public void onAuthenticationFailed() {\n }", "private UserSession handleBasicAuthentication(String credentials, HttpServletRequest request) {\n\t\tString userPass = Base64Decoder.decode(credentials);\n\n\t\t// The decoded string is in the form\n\t\t// \"userID:password\".\n\t\tint p = userPass.indexOf(\":\");\n\t\tif (p != -1) {\n\t\t\tString userID = userPass.substring(0, p);\n\t\t\tString password = userPass.substring(p + 1);\n\t\t\t\n\t\t\t// Validate user ID and password\n\t\t\t// and set valid true if valid.\n\t\t\t// In this example, we simply check\n\t\t\t// that neither field is blank\n\t\t\tIdentity identity = WebDAVAuthManager.authenticate(userID, password);\n\t\t\tif (identity != null) {\n\t\t\t\tUserSession usess = UserSession.getUserSession(request);\n\t\t\t\tsynchronized(usess) {\n\t\t\t\t\t//double check to prevent severals concurrent login\n\t\t\t\t\tif(usess.isAuthenticated()) {\n\t\t\t\t\t\treturn usess;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tusess.signOffAndClear();\n\t\t\t\t\tusess.setIdentity(identity);\n\t\t\t\t\tUserDeletionManager.getInstance().setIdentityAsActiv(identity);\n\t\t\t\t\t// set the roles (admin, author, guest)\n\t\t\t\t\tRoles roles = BaseSecurityManager.getInstance().getRoles(identity);\n\t\t\t\t\tusess.setRoles(roles);\n\t\t\t\t\t// set authprovider\n\t\t\t\t\t//usess.getIdentityEnvironment().setAuthProvider(OLATAuthenticationController.PROVIDER_OLAT);\n\t\t\t\t\n\t\t\t\t\t// set session info\n\t\t\t\t\tSessionInfo sinfo = new SessionInfo(identity.getName(), request.getSession());\n\t\t\t\t\tUser usr = identity.getUser();\n\t\t\t\t\tsinfo.setFirstname(usr.getProperty(UserConstants.FIRSTNAME, null));\n\t\t\t\t\tsinfo.setLastname(usr.getProperty(UserConstants.LASTNAME, null));\n\t\t\t\t\tsinfo.setFromIP(request.getRemoteAddr());\n\t\t\t\t\tsinfo.setFromFQN(request.getRemoteAddr());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInetAddress[] iaddr = InetAddress.getAllByName(request.getRemoteAddr());\n\t\t\t\t\t\tif (iaddr.length > 0) sinfo.setFromFQN(iaddr[0].getHostName());\n\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\t // ok, already set IP as FQDN\n\t\t\t\t\t}\n\t\t\t\t\tsinfo.setAuthProvider(BaseSecurityModule.getDefaultAuthProviderIdentifier());\n\t\t\t\t\tsinfo.setUserAgent(request.getHeader(\"User-Agent\"));\n\t\t\t\t\tsinfo.setSecure(request.isSecure());\n\t\t\t\t\tsinfo.setWebDAV(true);\n\t\t\t\t\tsinfo.setWebModeFromUreq(null);\n\t\t\t\t\t// set session info for this session\n\t\t\t\t\tusess.setSessionInfo(sinfo);\n\t\t\t\t\t//\n\t\t\t\t\tusess.signOn();\n\t\t\t\t\treturn usess;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public boolean authenticate(String s) {\r\n // TODO - implement User.authenticate\r\n throw new UnsupportedOperationException();\r\n }", "public boolean authenticateUser() {\r\n try {\r\n \r\n firstServerMessage();\r\n sendKeys();\r\n sessionKeyMsg();\r\n \r\n \r\n \r\n \treturn true;\r\n }\r\n \r\n catch(Exception ioe){\r\n System.out.println(\"Terminating session with Acct#: \" + currAcct.getNumber());\r\n //ioe.printStackTrace();\r\n return false;\r\n }\r\n \r\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email.replace(\" \", \"%20\"), password.replace(\" \", \"%20\"));\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n // Sets up a new login task with the provide login form\n mAuthTask = new UserLoginTask(email, password);\n try {\n // Executes login task\n mAuthTask.execute();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "boolean authNeeded();", "@Override\r\n\tpublic Authentication authenticate(Authentication arg0)\r\n\t\t\tthrows AuthenticationException {\n\t\treturn null;\r\n\t}" ]
[ "0.6140861", "0.59111184", "0.5894533", "0.58643305", "0.5849406", "0.58044", "0.57673174", "0.5765852", "0.575853", "0.573683", "0.57366294", "0.56903934", "0.56756765", "0.56677186", "0.5654843", "0.56471354", "0.56277204", "0.56121516", "0.5582246", "0.5536669", "0.55240834", "0.54958117", "0.5480002", "0.54744035", "0.5461795", "0.5446767", "0.54247844", "0.54247123", "0.5404398", "0.5403222", "0.5399727", "0.53943396", "0.5385959", "0.53752303", "0.5372152", "0.5370998", "0.536933", "0.5368932", "0.53629845", "0.5362752", "0.5362338", "0.53597665", "0.53511196", "0.5345324", "0.53292453", "0.53141236", "0.5301015", "0.52992374", "0.5298077", "0.5297489", "0.52971417", "0.5294006", "0.5278396", "0.5276923", "0.52696246", "0.52579033", "0.5257407", "0.5254233", "0.5238043", "0.5234627", "0.5234596", "0.5232262", "0.5223891", "0.5216786", "0.52163523", "0.52131593", "0.5210074", "0.5204871", "0.52037185", "0.5203358", "0.51976514", "0.51966774", "0.51955664", "0.5191429", "0.5190663", "0.5187087", "0.5186021", "0.5183204", "0.5179997", "0.517467", "0.5167471", "0.5154704", "0.51449436", "0.51440465", "0.5142599", "0.51349354", "0.51301205", "0.51266366", "0.5123375", "0.51231027", "0.5121478", "0.51202756", "0.51173836", "0.5114147", "0.51105803", "0.5106072", "0.5099288", "0.5095425", "0.50941813", "0.50939655", "0.5090663" ]
0.0
-1
TODO: return the person's name
public String getName(){ return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName(){\n return personName;\n }", "String fullName();", "public String getName(){\n\t\treturn this.firstName + \" \" + this.surname;\r\n\t}", "public String getName (){\r\n return firstName + \" \" + lastName;\r\n }", "public String getName()\n {\n return foreName + \" \" + lastName;\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();", "java.lang.String getFirstName();", "java.lang.String getFirstName();", "java.lang.String getSurname();", "String getName() ;", "public String getName() {\r\n\t\treturn firstName + \" \" + lastName;\r\n\t}", "String getSurname();", "public String getName() {\n return firstName + \" \" + lastName;\n }", "private String getName() {\n System.out.println(\"Enter contact name\");\n return scannerForAddressBook.scannerProvider().nextLine();\n }", "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();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.80738384", "0.7802041", "0.77533823", "0.7750704", "0.76789916", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7584139", "0.7532841", "0.7532841", "0.74730843", "0.746615", "0.7454696", "0.74325126", "0.7375956", "0.73725015", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733", "0.73565733" ]
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Server)) { return false; } Server other = (Server) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getID() {return id;}", "public int getID() {return id;}", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getId()\n {\n return id;\n }", "public int getID(){\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6897049", "0.6839498", "0.67057544", "0.66417086", "0.66417086", "0.6592169", "0.6579292", "0.6579292", "0.6575263", "0.6575263", "0.6575263", "0.6575263", "0.6575263", "0.6575263", "0.656245", "0.656245", "0.65447694", "0.65251684", "0.6516205", "0.6487982", "0.6477638", "0.6428175", "0.64196116", "0.6418121", "0.64022696", "0.6367566", "0.6355691", "0.6352598", "0.6348783", "0.6325491", "0.63200915", "0.63026214", "0.62942576", "0.62942576", "0.62838596", "0.62720686", "0.6267314", "0.62664306", "0.62634486", "0.626002", "0.6256922", "0.6251961", "0.6248661", "0.6248661", "0.6245221", "0.62398785", "0.62398785", "0.62326866", "0.62245816", "0.6220949", "0.6220645", "0.6212643", "0.6210262", "0.62027115", "0.62024575", "0.6193926", "0.61905754", "0.61905754", "0.61905754", "0.6190146", "0.6190146", "0.618559", "0.61844486", "0.61750674", "0.61745095", "0.6168598", "0.6167194", "0.6161174", "0.61578095", "0.61578095", "0.61578095", "0.61578095", "0.61578095", "0.61578095", "0.61578095", "0.6156709", "0.6156709", "0.6143479", "0.6135095", "0.6129762", "0.6129127", "0.61063343", "0.61055714", "0.61055714", "0.6104239", "0.61037016", "0.6102918", "0.61012363", "0.6100267", "0.6094533", "0.60939157", "0.60936975", "0.60936975", "0.60916936", "0.60904694", "0.6077306", "0.6073186", "0.60725886", "0.60711926", "0.60707015", "0.6070076" ]
0.0
-1
return "com.blazzify.jasonium.storage.Server[ id=" + id + " ]";
@Override public String toString() { return this.getName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }", "String getServerId();", "String get(String id);", "public String getIdentifier() {\n/* 222 */ return getValue(\"identifier\");\n/* */ }", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getID();", "String getID();", "String getID();", "String getID();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String experimentId();", "int getServerId();", "String getInstanceID();", "String backend();", "public String getId(){ return ID; }", "public String getId(){return id;}", "String getIdNode1();", "String getSlingId();", "public String toString() {\n/* 47 */ String retVal = \"id= \" + this.id + \", name= \" + this.name + \", buff= \" + this.buff;\n/* 48 */ return retVal;\n/* */ }", "String getIdNode2();", "public String getId(){ return id.get(); }", "public String getId()\r\n/* 14: */ {\r\n/* 15:14 */ return this.id;\r\n/* 16: */ }", "String idProvider();", "@Override\n public String getId() {\n return \"1\";\n }", "public String getId(){\n return id;\n }", "public String getId(){\n return id;\n }", "public String toString() {\r\n\r\n\t\tStringBuilder buffer = new StringBuilder();\r\n\r\n\t\tbuffer.append(\"id=[\").append(id).append(\"] \");\r\n\r\n\t\treturn buffer.toString();\r\n\t}", "java.lang.String getID();", "public String getId ();" ]
[ "0.5834797", "0.5735374", "0.5713685", "0.56801105", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5619733", "0.5598722", "0.5598722", "0.5598722", "0.5598722", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5531366", "0.5487649", "0.5487649", "0.5487649", "0.5487649", "0.5487649", "0.5487649", "0.5487649", "0.5481449", "0.54492176", "0.54393566", "0.5419047", "0.5409937", "0.54030097", "0.5402255", "0.53908736", "0.5382568", "0.53757024", "0.5358201", "0.5349648", "0.53217745", "0.5315409", "0.5295622", "0.5295622", "0.528514", "0.5282583", "0.52724665" ]
0.0
-1
/ renamed from: a
public final void mo3780a(int i) { float f = 0.0f; if (i == 1) { f = this.f7614c; this.f7612a = f; } else if (i == 2) { f = this.f7615d; this.f7612a = f; } else { this.f7612a = 0.0f; } if (f >= 0.01f) { this.f7613b.setColorFilter(dej.m6252b(-16777216, f)); } else { this.f7613b.setColorFilter((ColorFilter) null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
Provide a Fragment associated with the specified position.
public abstract @NonNull Fragment getItem(int position);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Fragment getFragmentByPosition(int position);", "@Override\n public Object instantiateItem(ViewGroup container, int position) {\n Fragment fragment = (Fragment) super.instantiateItem(container, position);\n registeredFragments.put(position, fragment);\n return fragment;\n }", "@Override\n public Object instantiateItem(ViewGroup container, int position) {\n Fragment fragment = (Fragment) super.instantiateItem(container, position);\n registeredFragments.put(position, fragment);\n return fragment;\n }", "public Fragment findFragment(int position) {\n return fragments[position];\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return DetailsFragment.newInstance(position);\n case 1:\n return MapsFragment.newInstance(position);\n }\n return null;\n }", "@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tFragment fragment;\n\t\t\tif (fragments.isEmpty() || fragments.size() <= position) {\n\t\t\t\tfragment = new PlaceholderFragment(position);\n\t\t\t\tBundle args = new Bundle();\n\t\t\t\targs.putInt(PlaceholderFragment.ARG_SECTION_NUMBER, position);\n\t\t\t\tfragment.setArguments(args);\n\n\t\t\t\tfragments.add(position, fragment);\n\t\t\t} else {\n\t\t\t\tfragment = fragments.get(position);\n\t\t\t}\n\n\t\t\treturn fragment;\n\t\t}", "@NonNull\n public abstract Fragment getItem(int position);", "public static MyFragment getInstance(int position) {\n\n //Construct the fragment\n MyFragment myFragment = new MyFragment();\n\n //New bundle instance\n Bundle args = new Bundle();\n\n //Passing in the Integer position of the fragment into the argument\n args.putInt(\"position\", position);\n\n //Setting the argument of the fragment to be the position\n myFragment.setArguments(args);\n\n //Return the fragment\n return myFragment;\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return PageFragment.newInstance(0);\n case 1:\n return MentionFragment.newInstance(0);\n\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n Bundle args = new Bundle();\n AttVFragment fragment = new AttVFragment();\n args.putInt(AttVFragment.ARG_SECTION_NUMBER, position);\n fragment.setArguments(args);\n return fragment;\n }", "@NonNull\n @Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return FragmentA.newInstance(\"This is First Fragment\");\n case 1:\n return FragmentB.newInstance(\"This is second Fragment\");\n case 2:\n return FragmentC.newInstance(\"This is Third Fragment\");\n }\n return FragmentA.newInstance(\"This is Default Fragment\");\n }", "@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tswitch (position) {\n\t\t\t\t//case 0:return PlaceholderFragment.newInstance(position + 1);//defaultFragment();\n\t\t\t\tcase MANAGE_RECORDINGS:\n\t\t\t\t\treturn ManageRecordingsFrame.newInstance(position);\n\t\t\t\tcase SEARCH_FOR_STATIONS:\n\t\t\t\t\treturn SearchForStationsFrame.newInstance(position);\n\t\t\t\tcase MANAGE_STATIONS:\n\t\t\t\t\treturn ManageFavoriteStationsFrame.newInstance(position);\n\t\t\t\tcase FAVORITE_STATIONS:\n\t\t\t\tdefault:\n\t\t\t\t\treturn FavoriteStationsFrame.newInstance(0);//\n\t\t\t}\n\t\t}", "public static PlaceholderFragment newInstance(int position) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(\"position\", position);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n public Fragment getItem(int position) {\n\n Fragment fragment = null;\n Bundle bundle = new Bundle();\n bundle.putString(\"e\", \"test\");\n switch (position) {\n case 0:\n fragment = new OriginalFragment();\n // fragment.setArguments(bundle);\n break;\n\n case 1:\n fragment = new DecodedFragment();\n fragment.setArguments(bundle);\n }\n return fragment;\n }", "@Override\n public Fragment getItem(int position) {\n\n switch (position) {\n case 0:\n\n return MainFragment.newInstance(position + 1);\n\n case 1:\n\n return NewContactFragment.newInstance(\"\", \"\");\n\n case 2:\n\n return CallLogFragment.newInstance(1);\n }\n return null;\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return new FastFoodFragmentFaisal();\n case 1:\n return new PorotaFragmentFaisal();\n case 2:\n return new PithaFragmentFaisal();\n case 3:\n return new POMFragmentFaisal();\n default:\n return null;\n }\n }", "@Override\n\tpublic Fragment getItem(int position) {\n\t\tif(this.getRegisteredFragment(position)!=null){\n\t\t\treturn getRegisteredFragment(position);\n\t\t}else{\n\t\t\t//return FavFragment.newInstance();//QiangContentFragment.newInstance(position);\n\t\t\treturn QiangContentFragment.newInstance(position);\n\t\t}\n//\t\treturn MenuContentFragment.newInstance(\"pager\" + position);\n\t}", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return FirstFragment.newInstance();\n case 1:\n return SecondFragment.newInstance();\n case 2:\n return ThirdFragment.newInstance();\n default:\n return null;\n }\n }", "@Override\n public Object instantiateItem(ViewGroup container, int position) {\n Fragment createdFragment = (Fragment) super.instantiateItem(container, position);\n // save the appropriate reference depending on position\n switch (position) {\n case 0:\n mFragmentGraph = (Color_FragmentGraph) createdFragment;\n break;\n// case 1:\n// mFragmentPie = (Horti_FragmentPie) createdFragment;\n// break;\n }\n return createdFragment;\n }", "@Override\n public Fragment getItem(int position) {\n switch (position){\n case 0:\n recogidaFragment = RecogidaFragment.newInstance(\"Nombre\", \"Apellidos\");\n return recogidaFragment;\n case 1:\n entregaFragment = EntregaFragment.newInstance(\"Nombre\",\"Apellidos\");\n return entregaFragment;\n }\n return null;\n // Return a PlaceholderFragment (defined as a static inner class below).\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n Fragment1 fragment1 = new Fragment1();\n fragment1.setArguments(bundle);\n return fragment1;\n case 1:\n Fragment2 fragment2 = new Fragment2();\n fragment2.setArguments(bundle);\n return fragment2;\n case 2:\n Fragment3 fragment3 = new Fragment3();\n fragment3.setArguments(bundle);\n return fragment3;\n default:\n return null;\n }\n }", "@Override\r\n\tpublic Fragment getItem(int position) {\n\t\tswitch(position) {\r\n\t\t\tcase 2:\t\t\r\n\t\t\t\treturn new FriendsFragment();\r\n\t\t\tcase 0: \r\n\t\t\t\treturn new LibraryFragment();\r\n\t\t\tcase 3:\r\n\t\t\t\treturn new InboxFragment();\r\n\t\t\tcase 1:\r\n\t\t\t\treturn new BorrowedFragment();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n ToursFragment toursFragment = new ToursFragment();\n return toursFragment;\n case 1:\n MapFragment mapFragment = new MapFragment();\n return mapFragment;\n case 2:\n LandmarkCardsFragment cardsFragment = new LandmarkCardsFragment();\n return cardsFragment;\n default:\n return null;\n }\n }", "@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tFragment fragment = new SectionFragment(); \n\t\t\tBundle args = new Bundle();\n\t\t\targs.putInt(SectionFragment.ARG_SECTION_NUMBER, position + 1);\n\t\t\tfragment.setArguments(args);\n\t\t\t\n\t\t\t\n\t\t\treturn fragment;\n\t\t\t\n\t\t}", "@Override\n public Fragment getItem(int position) {\n Fragment fragment = new Fragment();\n switch (position)\n {\n case 0:\n fragment = carCheckBasicInfoFragment;\n break;\n case 1:\n fragment = carCheckFrameFragment;\n break;\n case 2:\n fragment = carCheckIntegratedFragment;\n break;\n }\n return fragment;\n }", "@Override\n public Fragment getItem(int position) {\n // Create a new fragment according to the position of the ViewPager\n if (position == 0) {\n return new BlogFragment();\n } else if (position == 1) {\n return new MapFragment();\n }\n return null;\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n FragmentAboutUs aboutFragment = new FragmentAboutUs();\n\n return aboutFragment;\n case 1:\n FragmentContactUs contactUsFragment = new FragmentContactUs();\n return contactUsFragment;\n case 2:\n FragmentDonate donateFragment = new FragmentDonate();\n return donateFragment;\n case 3:\n FragmentHelp helpFragment = new FragmentHelp();\n return helpFragment;\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n Bundle bundle = new Bundle();\n bundle.putString(\"placeid\",placeid);\n bundle.putString(\"data\",jsonData);\n switch (position){\n case 0:\n InfoFragment fragment = new InfoFragment();\n fragment.setArguments(bundle);\n return fragment;\n case 1:\n PhotosFragment fragment1 = new PhotosFragment();\n fragment1.setArguments(bundle);\n return fragment1;\n case 2:\n MapFragment fragment2 = new MapFragment();\n fragment2.setArguments(bundle);\n return fragment2;\n case 3:\n ReviewFragment fragment3 = new ReviewFragment();\n fragment3.setArguments(bundle);\n return fragment3;\n }\n return null;\n }", "public Fragment getRegisteredFragment(int position) {\n return registeredFragments.get(position);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position);\n }", "public static PurchaseFragment newInstance(int position) {\n PurchaseFragment f = new PurchaseFragment();\n // Supply index input as an argument.\n Bundle args = new Bundle();\n f.setArguments(args);\n return f;\n }", "public Fragment getRegisteredFragment(int position) {\n return registeredFragments.get(position);\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n ArharFragment arharFragment = new ArharFragment();\n return arharFragment;\n case 1:\n MoongFragment moongFragment = new MoongFragment();\n return moongFragment;\n case 2:\n UradFragment UradFragment = new UradFragment();\n return UradFragment;\n case 3:\n RajmaFragment RajmaFragment = new RajmaFragment();\n return RajmaFragment;\n\n case 4:\n MasoorFragment MasoorFragment = new MasoorFragment();\n return MasoorFragment;\n\n case 5:\n Soya SoyaFragment = new Soya();\n return SoyaFragment;\n\n\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n FirstFragment firstFragment = new FirstFragment();\n return firstFragment;\n case 1:\n SecondFragment secondFragment = new SecondFragment();\n return secondFragment;\n case 2:\n ThirdFragment thirdFragment = new ThirdFragment();\n return thirdFragment;\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n Log.d(\"DEBUG\", \"Position : \" + position);\n //return PlaceholderFragment.newInstance(position + 1);\n\n\n switch (position) {\n case 0:\n return SectionsFragment1.newInstance(position + 1);\n case 1:\n return SectionsFragment2.newInstance(position + 1);\n case 2:\n return SectionsFragment3.newInstance(position + 1);\n }\n\n return null;\n\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return MainFragment.newInstance();\n case 1:\n return LoginFragment.newInstance();\n default:\n return null;\n }\n }", "@NonNull\n\t\t@Override\n\t\tpublic androidx.fragment.app.Fragment getItem(int position) {\n\t\t\treturn PlaceholderFragment.newInstance(position + 1);\n\t\t}", "@Override\n public Fragment getItem(int position) {\n //To do\n //return the corresponded fragment according to position\n //remember that the position can not be out of [0, 2]\n\n switch (position) {\n case 0:\n return CollectionFragment.newInstance(0, \"\");\n case 1:\n return CollectionFragment.newInstance(1, \"\");\n default:\n return null;\n }\n\n //To do closed\n }", "@Override\n public Fragment getItem(int position) {\n switch (position){\n case 0:\n return FirstFragment.newInstance(\"\",\"\");\n case 1:\n return ATMFragment.newInstance(\"\",\"\");\n default:\n return FirstFragment.newInstance(\"\",\"\");\n }\n }", "@Override\n\tpublic Fragment getItem(int position) {\n\t\t\n\t\t\n\t\tFragment fragment=new EmojiFragment(this.activity);\n\t\treturn fragment;\n\t\t\n//\t\tFragment fragment = new DummySectionFragment();\n//\t\tBundle args = new Bundle();\n//\t\targs.putInt(DummySectionFragment.ARG_SECTION_NUMBER, position + 1);\n//\t\tfragment.setArguments(args);\n//\t\treturn fragment;\n\t}", "public void selectItem(int position) {\n Fragment fragment=null;\n\n if( position == FRAGMENT_ONE ) {\n fragment = new MainFragment_1();\n fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.main_fragment_place, fragment).commit();\n }else if( position == FRAGMENT_TWO ){\n fragment = new MainFragment_2();\n fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.main_fragment_place, fragment).commit();\n }\n }", "@NonNull\n @Override\n public Fragment createFragment(int position) {\n return QuranFragment.arrayList.get(position);\n\n }", "@Override\n public Fragment getItem(int position) {\n MainFragment fragment=new MainFragment();\n fragment.setType(position);\n return fragment;\n }", "@Override\n public Fragment getItem(int position) {\n switch (position){\n case 0:\n return new TerbaruFragment();\n case 1:\n return new UrutkanFragment();\n case 2:\n return new SetujuFragment();\n case 3:\n return new BelumSetujuFragment();\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return AddPlaceholderFragment.newInstance();\n case 1:\n return mChange;\n case 2:\n return mDelete;\n }\n return null;\n }", "@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tswitch (position) {\n\t\t\tcase 0 :\n\t\t\t\t// Home fragment\n\t\t\t\treturn new HomeFragment();\n\t\t\tcase 1 :\n\t\t\t\t// Exercises fragment\n\t\t\t\treturn new ExercisesFragment();\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return FootprintMineFragment.newInstance();\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return FootprintAllFragment.newInstance();\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\r\n public Fragment getItem(int position) {\r\n\r\n switch (position) {\r\n case 0:\r\n\r\n hFragment = createClientFragment(\"Homme\");\r\n return hFragment;\r\n\r\n case 1:\r\n\r\n fFragment = createClientFragment(\"Femme\");\r\n return fFragment;\r\n\r\n\r\n case 2:\r\n eFragment = createClientFragment(\"Enfant\");\r\n return eFragment;\r\n default:\r\n return null;\r\n }\r\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return new Color_FragmentGraph();\n// case 1:\n// return new Horti_FragmentPie();\n default:\n // This should never happen. Always account for each position above\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n //Fragment frag = new HomeScreenFragment();\n //return frag;\n switch (position)\n {\n case 0:\n return new HomeScreenFragment();\n case 2:\n return new AddRestaurantFragment();\n default:\n return new Fragment();\n }\n }", "@NonNull\n @Override\n public Fragment getItem(int position) {\n return fragments.get(position);\n }", "@Override\r\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\r\n }", "@Override\n\tpublic Fragment getItem(int position) {\n\t\treturn fragments.get(position);\n\t}", "@Override\n public Fragment getItem(int position) {\n \t mFragment[position] = PlaceholderFragment.newInstance(position);\n return mFragment[position];\n }", "private void showSection(int position) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position + 1))\n .commit();\n\n\n }", "@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tFragment fragment;\n\t\t\tswitch (position) {\n\t\t\tcase 0:\n\t\t\t\tfragment = ToDoFragment.newInstance(userId, userName);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tfragment = ToGoFragment.newInstance();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tfragment = ToDoFragment.newInstance(userId, userName);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn fragment;\n\t\t}", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return new ListFragment();\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return new GridFragment();\n\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return Alarm_Fragment_1.newInstance(0, \"Page #1\");\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return Alarm_Fragment_2.newInstance(1, \"Page # 2\");\n case 2: // Fragment # 1 - This will show SecondFragment\n return Alarm_Fragment_3.newInstance(2, \"Page # 3\");\n case 3 : return Alarm_Fragment_4.newInstance(3, \"Page # 4\");\n case 4 : return Alarm_Fragment_5.newInstance(5, \"Page # 5\");\n //return Frag5.newInstance(4, \"Page # 5\");\n case 5 : return Alarm_Fragment_6.newInstance(6, \"Page # 6\");\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position){\n case 0:\n FgFollow fgFollow = new FgFollow();\n return fgFollow;\n case 1:\n FgMySimulation fgMySimulation = new FgMySimulation();\n return fgMySimulation;\n default:\n return null;\n }\n }", "@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\treturn fragmentList.get(position);\n\t\t}", "@Override\n public Fragment getItem(int position) {\n return fragments.get(position);\n }", "@Override\n public Fragment getItem(int position) {\n return fragments.get(position);\n }", "public static SlideShowFragment newInstance(int position) {\n SlideShowFragment fragment = new SlideShowFragment();\n //Create bundle\n Bundle args = new Bundle();\n //put Current Position in the bundle\n args.putInt(ARG_CURRENT_POSITION, position);\n //set arguments of SlideShowFragment\n fragment.setArguments(args);\n //return fragment instance\n return fragment;\n }", "public static SlideShowFragment newInstance(int position) {\n SlideShowFragment fragment = new SlideShowFragment();\n //Create bundle\n Bundle args = new Bundle();\n //put Current Position in the bundle\n args.putInt(ARG_CURRENT_POSITION, position);\n //set arguments of SlideShowFragment\n fragment.setArguments(args);\n //return fragment instance\n return fragment;\n }", "protected abstract Fragment createFragment();", "@Override\n public Fragment getItem(int position) {\n if(position == 1) {\n mChatListFragment = ChatListFragment.newInstance(position);\n return mChatListFragment;\n }\n mMapFragment = MapFragment.newInstance();\n return mMapFragment;\n }", "@NonNull\n @Override\n public Fragment getItem(int position) {\n if (position == 0){\n return new AccommodationFragment();\n }else if (position == 1){\n return new FoodFragment();\n }else if(position == 2){\n return new DrinkFragment();\n }else {\n return new FunFragment();\n }\n }", "public Fragment getItem(int position) {\n\t\treturn pagerFragments.get(position);\n\t}", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\n public Fragment getItem(int position) {\n if (position < frags.size()) {\n return frags.get(position);\n } else {\n return lastFrag;\n }\n }", "@Override\n public Fragment getItem(int position) {\n\n if (position == 0) {\n return new HotelFragment();\n } else if (position == 1) {\n return new MallFragment();\n } else if (position == 2) {\n return new RestaurentFragment();\n } else {\n return new HistoricalSiteFragment();\n }\n }", "@Override\n public Fragment getItem(int position) {\n Intent intent = getIntent();\n mPlayerString = intent.getStringExtra(\"playerString\");\n\n // Store in bundle\n Bundle bundle = new Bundle();\n bundle.putString(\"playerString\", mPlayerString);\n\n switch (position) {\n case 0:\n PlayerScoresFragment playerfrag = new PlayerScoresFragment();\n\n // Send bundle to player scores fragment\n playerfrag.setArguments(bundle);\n return playerfrag;\n case 1:\n HighscoresFragment highscorefrag = new HighscoresFragment();\n // Send bundle to player scores fragment\n highscorefrag.setArguments(bundle);\n return highscorefrag;\n }\n\n return null;\n }", "@Override\r\n public Fragment getItem(int position) {\r\n try {\r\n switch (position) {\r\n case 0:\r\n return new HomeInfoFragment();\r\n case 1:\r\n return new BlogsFragment();\r\n case 2:\r\n return new HomeFeedsFragment();\r\n case 3:\r\n return new NetworkingOptionFragment();\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "@Override\r\n\t\tpublic Fragment getItem(int position) {\r\n\t\t\tTabInfo info = getTabs().get(position);\r\n\t\t\treturn Fragment.instantiate(getContext(), info.clss.getName(), info.args);\r\n\t\t}", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n System.out.println(\"ana fl case 0:\" + song.coverURL);\n return result_fragment.newInstance(song.coverURL, song.title, song.artist, song.album);\n\n case 1: // Fragment # 1 - This will show FirstFragment different title\n return LyricsFragment.newInstance(song.lyrics);\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return Libra1Fragment.newInstance(0, \"Page # 1\");\n case 1:\n return Libra2Fragment.newInstance(1, \"Page # 2\");\n case 2:\n return Libra3Fragment.newInstance(2, \"Page # 3\");\n case 3:\n return Libra4Fragment.newInstance(3, \"Page # 4\");\n case 4:\n return Libra5Fragment.newInstance(4, \"Page # 5\");\n case 5:\n return Libra6Fragment.newInstance(5, \"Page # 6\");\n case 6:\n return Libra7Fragment.newInstance(6, \"Page # 7\");\n case 7:\n return Libra8Fragment.newInstance(7, \"Page # 8\");\n case 8:\n return Libra9Fragment.newInstance(8, \"Page # 9\");\n\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return DishListFragment.newInstance(0);\n case 1:\n return DishListFragment.newInstance(1);\n case 2:\n return DishListFragment.newInstance(2);\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n if (position == 0) {\n return new SectionFragment();\n } else if (position == 1) {\n return new SectionFragment();\n }\n else if (position == 2) {\n return new SectionFragment();\n }\n else if (position == 3) {\n return new SectionFragment();\n }\n\n return null;\n }", "@Override\n public Fragment getItem(int position) {\n\n switch (position){\n case 0:\n ApplicationsFragment applicationsFragment = new ApplicationsFragment();\n return applicationsFragment;\n case 1:\n UsersFragment usersFragment = new UsersFragment();\n return usersFragment;\n\n default:\n return null;\n }\n\n\n }", "@NonNull\r\n @Override\r\n public Fragment getItem(int position) {\n switch (position) {\r\n case 0:\r\n return new SubmitFragment();\r\n\r\n case 1:\r\n return new SearchFragment();\r\n }\r\n throw new RuntimeException(\"Can not get item.\");\r\n }", "@Override\n public Fragment getItem(int position) {\n\n switch (position) {\n case 0:\n return GalleryGridFragment.newInstance(GalleryGridFragment.TYPE_PHOTO_GRID);\n case 1:\n return GalleryGridFragment.newInstance(GalleryGridFragment.TYPE_VIDEO_GRID);\n default:\n return GalleryGridFragment.newInstance(GalleryGridFragment.TYPE_PHOTO_GRID);\n }\n }", "@Override\n public Fragment getItem(int position) {\n\n switch (position) {\n case 0: // Fragment # 0 - This will show WelcomeActivity\n Context context;\n return WelcomeActivity.newInstance(0, R.string.page0);\n case 1: // Fragment # 1 - This will show FirstFragment\n return FirstFragment.newInstance(1, R.string.page1);\n case 2: // Fragment # 2 - This will show SecondFragment\n return SecondFragment.newInstance(2, R.string.page2);\n case 3: // Fragment # 1 - This will show ThirdFragment\n return ThirdFragment.newInstance(3, R.string.page3);\n case 4:// Fragment # 1 - This will show FourthFragment\n return FourthFragment.newInstance(4,R.string.page4);\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n if (position == 0) {\n mPayFragment = PayFragment.newInstance();\n return mPayFragment;\n }\n else if (position == 1) {\n return StatsFragment.newInstance();\n }\n else if (position == 2) {\n return TransactionsFragment.newInstance();\n }\n return null;\n }", "@Override\n public Fragment getItem(int position) {\n return mFragmentList.get(position);\n }" ]
[ "0.81970793", "0.7474825", "0.7427461", "0.74254906", "0.7411738", "0.73463756", "0.7176675", "0.7166349", "0.7152977", "0.70774186", "0.70754224", "0.70711064", "0.70622003", "0.7062016", "0.70213693", "0.7004297", "0.6976799", "0.69661623", "0.6965503", "0.6963124", "0.6960943", "0.69524693", "0.69437253", "0.69370055", "0.693355", "0.69191176", "0.6905783", "0.6898378", "0.6879714", "0.6874393", "0.68700415", "0.6862451", "0.68585646", "0.6854195", "0.6837595", "0.6837099", "0.6836885", "0.6834013", "0.68265635", "0.6823834", "0.6816755", "0.6814241", "0.680637", "0.68033445", "0.67917854", "0.678608", "0.6781124", "0.6760658", "0.67598486", "0.6756876", "0.6756876", "0.6756876", "0.6756876", "0.6756876", "0.6756876", "0.6756876", "0.6756876", "0.6756876", "0.6756876", "0.6756876", "0.6756876", "0.6756876", "0.6756876", "0.675384", "0.6747717", "0.67448264", "0.6741022", "0.6731017", "0.67279065", "0.6713777", "0.6706096", "0.670213", "0.6701077", "0.66954356", "0.66942424", "0.66877323", "0.6677274", "0.6677274", "0.666643", "0.666643", "0.66577", "0.6652694", "0.6643888", "0.66390294", "0.66388404", "0.6635324", "0.66319525", "0.66296977", "0.66249716", "0.6623131", "0.66226614", "0.66111124", "0.66069573", "0.66044664", "0.66032016", "0.6596411", "0.6537614", "0.6533526", "0.6524826", "0.6524147" ]
0.70111847
15
This happens when a ViewHolder is in a transient state (e.g. during custom animation). We don't have sufficient information on how to clear up what lead to the transient state, so we are throwing away the ViewHolder to stay on the conservative side.
@Override public final boolean onFailedToRecycleView(@NonNull FragmentViewHolder holder) { removeFragment(holder); return false; // don't recycle the view }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onViewRecycled(RecyclerView.ViewHolder holder) {\n super.onViewRecycled(holder);\n if (holder instanceof TvShowViewHolder) {\n ((TvShowViewHolder) holder).cleanup();\n }\n\n }", "@Override\n protected void onCleared() {\n super.onCleared();\n presenter.clearView();\n }", "@Override\n protected void onCleared() {\n super.onCleared();\n presenter.clearView();\n }", "@Override\n public void onViewRecycled(RecyclerView.ViewHolder holder) {\n if (holder instanceof BaseViewHolder) {\n ((BaseViewHolder) holder).mRelativeLayout.removeAllViews();\n }\n super.onViewRecycled(holder);\n }", "@Override\n protected void onCleared() {\n }", "@Override\n public void onViewRecycled() {\n Glide.with(getContext()).clear(binding.seriesImage);\n binding.reviewVote.onViewRecycled();\n binding.unbind();\n }", "@Override\n public void onViewRecycled() {\n Glide.with(getContext()).clear(binding.seriesImage);\n binding.reviewVote.onViewRecycled();\n binding.unbind();\n }", "@Override\n public void onViewRecycled(ListBaseViewHolder holder) {\n long begin = System.currentTimeMillis();\n\n holder.setComponentUsing(false);\n if (holder != null\n && holder.canRecycled()\n && holder.getComponent() != null\n && !holder.getComponent().isUsing()) {\n holder.recycled();\n\n } else {\n WXLogUtils.w(TAG, \"this holder can not be allowed to recycled\");\n }\n if (WXEnvironment.isApkDebugable()) {\n WXLogUtils.d(TAG, \"Recycle holder \" + (System.currentTimeMillis() - begin) + \" Thread:\" + Thread.currentThread().getName());\n }\n }", "public void invalidate()\n\t{\n\t\tif (this.holder != null) {\n\t\t\tthis.holder.bind(this, this.holder.itemView.isActivated());\n\t\t}\n\t}", "@Override // androidx.lifecycle.ViewModel\n public void onCleared() {\n super.onCleared();\n this.f89534b = null;\n }", "private void m125722q() {\n if (this.f88309g != null) {\n this.f88309g.removeAllViews();\n }\n }", "private void m125724s() {\n ProgressView progressView = this.f90233z;\n if (progressView != null) {\n progressView.mo81953b();\n if (this.f88308f != null) {\n this.f88308f.removeView(this.f90233z);\n }\n }\n }", "@Override\r\n public void onViewRecycled(DirectoryAdapterViewHolder holder) {\r\n super.onViewRecycled(holder);\r\n Glide.clear(holder.directoryIcon);\r\n }", "@Override\r\n\t\t\t\t\tpublic void onLoadingCancelled(String arg0, View arg1) {\n\t\t\t\t\t}", "@Override public void onDestroyView() {\n super.onDestroyView();\n unbinder.unbind();\n }", "private void layoutDisappearingViews(RecyclerView.Recycler recycler, RecyclerView.State state){\r\n Iterator<Integer> iterator = disappearingViewCache.keySet().iterator();\r\n while(iterator.hasNext()){\r\n int position = iterator.next();\r\n View view = recycler.getViewForPosition(position);\r\n DisappearingViewParams params = disappearingViewCache.get(position);\r\n addDisappearingView(view, 0);\r\n view.measure(params.widthSpec, params.heightSpec);\r\n layoutDecorated(view, params.left, params.top, params.right, params.bottom);\r\n }\r\n }", "@Override\n public void onViewDestroy() {\n }", "public interface ViewHolder {\n}", "public MainTabFollowNoUpdateHolder(View view) {\n super(view);\n C32569u.m150519b(view, C6969H.m41409d(\"G7F8AD00D\"));\n }", "protected void bindAnimation(V holder) {\n int adapterPosition = holder.getAdapterPosition();\n if (!isFirstOnly || adapterPosition > mLastPosition) {\n for (Animator anim : mAnimations.getAnimators(holder.itemView)) {\n anim.setDuration(mDuration).start();\n anim.setInterpolator(mInterpolator);\n }\n mLastPosition = adapterPosition;\n } else {\n ViewHelper.clear(holder.itemView);\n }\n }", "public final void mo25939d() {\n if (this.f75886e != -1) {\n View view = (View) this.f75884c.get(this.f75886e);\n if (view != null) {\n view.setVisibility(8);\n }\n setVisibility(8);\n this.f75886e = -1;\n }\n }", "public void mo8778a() {\n try {\n if (this.f1286b != null) {\n this.f1286b.recycle();\n }\n if (this.f1287c != null) {\n this.f1287c.recycle();\n }\n this.f1286b = null;\n this.f1287c = null;\n if (this.f1288d != null) {\n this.f1288d.recycle();\n this.f1288d = null;\n }\n if (this.f1289e != null) {\n this.f1289e.recycle();\n this.f1289e = null;\n }\n this.f1290f = null;\n } catch (Throwable th) {\n SDKLogHandler.m2563a(th, \"WaterMarkerView\", \"destory\");\n th.printStackTrace();\n }\n }", "public void onRecycled() {\n imageLoader.resetLoadState();\n UIHelper.recycleImageViewContent(mImageView);\n }", "@Override\n\t\t\t\t\tpublic void onLoadingCancelled(String arg0, View arg1) {\n\n\t\t\t\t\t}", "@Override\n public void run() {\n overlay.remove(shadowContainerLayer);\n mViewToAnimate.setBackground(oldBackground);\n if (mViewBitmap != null) {\n mViewBitmap.recycle();\n }\n }", "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\tunbinder.unbind();\n\t}", "@Override\n public void onViewDestroyed() {\n\n }", "@Override\n public void onDestroyView() {\n super.onDestroyView();\n recyclerAdapter = null;\n recyclerView = null;\n }", "public ViewHolder(View v) {\n super(v);\n }", "@Override\n public void onLoadingCancelled(String arg0, View arg1) {\n holder.imageView.setVisibility(View.GONE);\n }", "protected abstract void onRestoreInstanceState(\n\t\t\tBaseFragmentViewHolder viewHolder, Bundle savedInstance);", "protected View getCachedView(){\n\t\tif (mCachedItemViews.size() != 0) {\n\t\t\tView v;\n\t\t\tdo{\n\t v = mCachedItemViews.removeFirst().get();\n\t\t\t}\n while(v == null && mCachedItemViews.size() != 0);\n\t\t\treturn v;\n }\n return null;\n\t}", "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t}", "private void m6557h() {\n if (this.f5066b != null) {\n this.f5066b.recycle();\n this.f5066b = null;\n }\n }", "@Override\n public void onLoadingCancelled(String arg0, View arg1) {\n }", "public void mo12692a(RecyclerView recyclerView, C1085v vVar) {\n f13700b.clearView(vVar.itemView);\n }", "public void cleanup() {\n mParentLayout.removeView(mContainer);\n mControlsVisible.clear();\n }", "private void hide() {\n if (inflatedView != null && activityWeakReference != null && activityWeakReference.get() != null) {\n inflatedView.startAnimation(hideAnimation);\n inflatedView = null;\n } else {\n Timber.e(\"Trying to call hide() on a null view InternetIndicatorOverlay.\");\n }\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\t\r\n//\t\tif(iv != null) {\r\n//\t\t\tDebugTool.info(tag, \"iv != null\");\r\n//\t\t\tif(iv.getBackground() != null) {\r\n//\t\t\t\tDebugTool.info(tag, \"iv.getBackground() != null\");\r\n//\t\t\t\tiv.getBackground().setCallback(null);\r\n//\t\t\t}else {\r\n//\t\t\t\tDebugTool.info(tag, \"iv.getBackground() == null\");\r\n//\t\t\t}\r\n//\t\t\t\r\n//\t\t\tif(iv.getDrawable() != null) {\r\n//\t\t\t\tDebugTool.info(tag, \"iv.getDrawable() != null\");\r\n////\t\t\t\tiv.setBackgroundDrawable(null);\r\n//\t\t\t}else {\r\n//\t\t\t\tDebugTool.info(tag, \"iv.getDrawable() == null\");\r\n//\t\t\t}\r\n//\t\t}else {\r\n//\t\t\tDebugTool.info(tag, \"iv == null\");\r\n//\t\t}\r\n\t\t\r\n\t\tDeviceTool.recycleDrawable(iv);\r\n\t}", "@Override\n protected void onReset() {\n onStopLoading();\n\n // At this point we can release resources\n if( mData != null ) {\n releaseResources( mData );\n mData = null;\n }\n\n // The loader is being reset, so we should stop monitoring for changes\n if( mObserver != null ) {\n resolver.unregisterContentObserver( mObserver );\n mObserver = null;\n }\n }", "private void clearViews()\n {\n prepareNumbers();\n }", "@Override\n public void onViewStateInstanceRestored(boolean instanceStateRetained) {\n }", "private void m15039f() {\n VelocityTracker velocityTracker = this.f13681t;\n if (velocityTracker != null) {\n velocityTracker.recycle();\n this.f13681t = null;\n }\n }", "public void onLayoutCancelled() {\n /* do nothing - stub */\n }", "@Override public void onDestroyView() {\n super.onDestroyView();\n ButterKnife.unbind(this);\n }", "@Override\n protected void onPause() {\n super.onPause();\n mLayoutManagerState = mRecipesRecyclerView.getLayoutManager().onSaveInstanceState();\n }", "private void m87326d() {\n this.f61222o.abortAnimation();\n this.f61226s = null;\n this.f61219l = false;\n }", "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\tLog.e(TAG, \"ondestoryView\");\r\n\t}", "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\tLog.e(TAG, \"ondestoryView\");\r\n\t}", "@Override\n\tpublic void doCleanup() {\n\t\tmTimestampGapTimer.cancel();\n\t\t\n\t\t// clear the view holder map\n\t\tsynchronized(mTimestampGapMapper) {\n\t\t\tmTimestampGapMapper.clear();\n\t\t}\n\t\t\n\t\tmTimestampGapMapper = null;\n\t}", "public void c() {\n if (this.b != null) {\n this.c.removeView(this.b);\n this.b = null;\n }\n }", "private View getCachedView()\n\t{\n\t\tif (_cachedItemViews.size() != 0)\n\t\t{\n\t\t\treturn _cachedItemViews.removeFirst();\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public void onDestroyView() {\n super.onDestroyView();\n playlistDisposables.dispose();\n if (playlistAdapter != null) {\n playlistAdapter.unsetSelectedListener();\n }\n\n playlistDisposables.clear();\n playlistRecyclerView = null;\n playlistAdapter = null;\n }", "private void reset(Holder oldHolder) {\r\n\t\tif(getHolder() != oldHolder)\r\n\t\t\tsetHolder(oldHolder);\r\n\t\tif(!oldHolder.holdsItem(this))\r\n\t\t\toldHolder.addItem(this);\r\n\t}", "@Override\r\n\tpublic void onClosed() {\n\t\tmSlidingLayer.removeAllViews();\r\n\t}", "@Override\n public void onDestroyView() {\n super.onDestroyView();\n mUnbinder.unbind();\n }", "public void mo12704a(androidx.recyclerview.widget.RecyclerView.C1085v r23, int r24) {\n /*\n r22 = this;\n r11 = r22\n r12 = r23\n r13 = r24\n androidx.recyclerview.widget.RecyclerView$v r0 = r11.f13664c\n if (r12 != r0) goto L_0x000f\n int r0 = r11.f13675n\n if (r13 != r0) goto L_0x000f\n return\n L_0x000f:\n r0 = -9223372036854775808\n r11.f13661D = r0\n int r4 = r11.f13675n\n r14 = 1\n r11.mo12705a(r12, r14)\n r11.f13675n = r13\n r15 = 2\n if (r13 != r15) goto L_0x0030\n if (r12 == 0) goto L_0x0028\n android.view.View r0 = r12.itemView\n r11.f13685x = r0\n r22.m15037d()\n goto L_0x0030\n L_0x0028:\n java.lang.IllegalArgumentException r0 = new java.lang.IllegalArgumentException\n java.lang.String r1 = \"Must pass a ViewHolder when dragging\"\n r0.<init>(r1)\n throw r0\n L_0x0030:\n int r0 = r13 * 8\n r10 = 8\n int r0 = r0 + r10\n int r0 = r14 << r0\n int r16 = r0 + -1\n androidx.recyclerview.widget.RecyclerView$v r9 = r11.f13664c\n r8 = 0\n if (r9 == 0) goto L_0x00fd\n android.view.View r0 = r9.itemView\n android.view.ViewParent r0 = r0.getParent()\n if (r0 == 0) goto L_0x00e9\n if (r4 != r15) goto L_0x004a\n r7 = 0\n goto L_0x004f\n L_0x004a:\n int r0 = r11.m15036d(r9)\n r7 = r0\n L_0x004f:\n android.view.VelocityTracker r0 = r11.f13681t\n float r17 = r0.getXVelocity()\n r22.m15039f()\n r0 = 4\n r1 = 0\n if (r7 == r14) goto L_0x0081\n if (r7 == r15) goto L_0x0081\n if (r7 == r0) goto L_0x006f\n if (r7 == r10) goto L_0x006f\n r2 = 16\n if (r7 == r2) goto L_0x006f\n r2 = 32\n if (r7 == r2) goto L_0x006f\n r18 = 0\n L_0x006c:\n r19 = 0\n goto L_0x0094\n L_0x006f:\n float r2 = r11.f13669h\n float r2 = java.lang.Math.signum(r2)\n androidx.recyclerview.widget.RecyclerView r3 = r11.f13679r\n int r3 = r3.getWidth()\n float r3 = (float) r3\n float r2 = r2 * r3\n r18 = r2\n goto L_0x006c\n L_0x0081:\n float r2 = r11.f13670i\n float r2 = java.lang.Math.signum(r2)\n androidx.recyclerview.widget.RecyclerView r3 = r11.f13679r\n int r3 = r3.getHeight()\n float r3 = (float) r3\n float r2 = r2 * r3\n r19 = r2\n r18 = 0\n L_0x0094:\n if (r4 != r15) goto L_0x0099\n r3 = 8\n goto L_0x009e\n L_0x0099:\n if (r7 <= 0) goto L_0x009d\n r3 = 2\n goto L_0x009e\n L_0x009d:\n r3 = 4\n L_0x009e:\n float[] r0 = r11.f13663b\n r11.mo12708a(r0)\n float[] r0 = r11.f13663b\n r20 = r0[r8]\n r6 = r0[r14]\n app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper$c r5 = new app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper$c\n r0 = r5\n r1 = r22\n r2 = r9\n r14 = r5\n r5 = r20\n r21 = r7\n r7 = r18\n r8 = r19\n r19 = r9\n r9 = r21\n r21 = 8\n r10 = r19\n r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10)\n float r18 = r18 - r20\n float r18 = r18 / r17\n float r0 = java.lang.Math.abs(r18)\n r1 = 1148846080(0x447a0000, float:1000.0)\n float r0 = r0 * r1\n long r0 = (long) r0\n r2 = 250(0xfa, double:1.235E-321)\n r4 = 100\n long r0 = java.lang.Math.max(r4, r0)\n long r0 = java.lang.Math.min(r2, r0)\n r14.mo12743a(r0)\n java.util.List<app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper$i> r0 = r11.f13677p\n r0.add(r14)\n r14.mo12745b()\n r8 = 1\n goto L_0x00f9\n L_0x00e9:\n r0 = r9\n r21 = 8\n android.view.View r1 = r0.itemView\n r11.mo12702a(r1)\n app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper$g r1 = r11.f13674m\n androidx.recyclerview.widget.RecyclerView r2 = r11.f13679r\n r1.mo12692a(r2, r0)\n r8 = 0\n L_0x00f9:\n r0 = 0\n r11.f13664c = r0\n goto L_0x0100\n L_0x00fd:\n r21 = 8\n r8 = 0\n L_0x0100:\n if (r12 == 0) goto L_0x0132\n app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper$g r0 = r11.f13674m\n androidx.recyclerview.widget.RecyclerView r1 = r11.f13679r\n int r0 = r0.mo12729b(r1, r12)\n r0 = r0 & r16\n int r1 = r11.f13675n\n int r1 = r1 * 8\n int r0 = r0 >> r1\n r11.f13676o = r0\n android.view.View r0 = r12.itemView\n int r0 = r0.getLeft()\n float r0 = (float) r0\n r11.f13671j = r0\n android.view.View r0 = r12.itemView\n int r0 = r0.getTop()\n float r0 = (float) r0\n r11.f13672k = r0\n r11.f13664c = r12\n if (r13 != r15) goto L_0x0132\n androidx.recyclerview.widget.RecyclerView$v r0 = r11.f13664c\n android.view.View r0 = r0.itemView\n r1 = 0\n r0.performHapticFeedback(r1)\n goto L_0x0133\n L_0x0132:\n r1 = 0\n L_0x0133:\n androidx.recyclerview.widget.RecyclerView r0 = r11.f13679r\n android.view.ViewParent r0 = r0.getParent()\n if (r0 == 0) goto L_0x0143\n androidx.recyclerview.widget.RecyclerView$v r2 = r11.f13664c\n if (r2 == 0) goto L_0x0140\n r1 = 1\n L_0x0140:\n r0.requestDisallowInterceptTouchEvent(r1)\n L_0x0143:\n if (r8 != 0) goto L_0x014e\n androidx.recyclerview.widget.RecyclerView r0 = r11.f13679r\n androidx.recyclerview.widget.RecyclerView$LayoutManager r0 = r0.getLayoutManager()\n r0.mo5218C()\n L_0x014e:\n app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper$g r0 = r11.f13674m\n androidx.recyclerview.widget.RecyclerView$v r1 = r11.f13664c\n int r2 = r11.f13675n\n r0.mo12725a(r1, r2)\n androidx.recyclerview.widget.RecyclerView r0 = r11.f13679r\n r0.invalidate()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper.mo12704a(androidx.recyclerview.widget.RecyclerView$v, int):void\");\n }", "public void recycleCheck(){\n getScreenRect();\n\n //ok...seriously, I have no idea why I need to wrap it in post()\n //but if I don't, it won't be able to setHtml() again (the second time)\n //TODO investigate what the fuck is going on\n post(new Runnable() {\n @Override\n public void run() {\n for (int i = 0, l = overlay.getChildCount(); i < l; i++) {\n //TODO check whether it is visible inside the view bound instead of inside the screen bound\n View v = overlay.getChildAt(i);\n v.getLocationOnScreen(coordinate);\n\n viewRect.set(coordinate[0], coordinate[1], coordinate[0] + v.getMeasuredWidth(), coordinate[1] + v.getMeasuredHeight());\n\n boolean isVisible = viewRect.intersect(screenRect);\n Integer index = (Integer) v.getTag(R.id.htmltextview_viewholder_index);\n Integer type = (Integer) v.getTag(R.id.htmltextview_viewholder_type);\n if (index == null || type == null){\n //WTF?\n continue;\n }\n\n Container container = null;\n switch (type){\n case VIEWHOLDER_TYPE_IMG:\n default:\n container = imgContainerMap.get(index);\n break;\n }\n if (isVisible){\n if (container.visible){\n //fine\n }else{\n //was invisible, make it visible\n container.attachChild();\n container.visible = true;\n }\n }else{\n if (container.visible){\n //was visible, recycle it\n container.detachChild();\n container.visible = false;\n }else{\n //fine\n }\n }\n }\n }\n });\n }", "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n }", "public ViewHolder3(View v) {\n super(v);\n\n }", "@Override\n public void onDestroyView() {\n super.onDestroyView();\n // 页面销毁Grdivew里边的数据\n adapter.notifyDataSetChanged();\n Bimp.tempSelectBitmap.clear();\n Bimp.max = 0;\n }", "@Override\n public void onDestroyView() {\n super.onDestroyView();\n }", "@Override\n public void onDestroyView() {\n super.onDestroyView();\n }", "public void reInflateViews() {\n updateShowEmptyShadeView();\n int indexOfChild = this.mView.indexOfChild(this.mKeyguardStatusView);\n this.mView.removeView(this.mKeyguardStatusView);\n KeyguardStatusView keyguardStatusView = (KeyguardStatusView) this.mInjectionInflationController.injectable(LayoutInflater.from(this.mView.getContext())).inflate(C2013R$layout.keyguard_status_view, this.mView, false);\n this.mKeyguardStatusView = keyguardStatusView;\n this.mView.addView(keyguardStatusView, indexOfChild);\n this.mBigClockContainer.removeAllViews();\n ((KeyguardClockSwitch) this.mView.findViewById(C2011R$id.keyguard_clock_container)).setBigClockContainer(this.mBigClockContainer);\n int indexOfChild2 = this.mView.indexOfChild(this.mKeyguardBottomArea);\n this.mView.removeView(this.mKeyguardBottomArea);\n KeyguardBottomAreaView keyguardBottomAreaView = this.mKeyguardBottomArea;\n KeyguardBottomAreaView keyguardBottomAreaView2 = (KeyguardBottomAreaView) this.mInjectionInflationController.injectable(LayoutInflater.from(this.mView.getContext())).inflate(C2013R$layout.keyguard_bottom_area, this.mView, false);\n this.mKeyguardBottomArea = keyguardBottomAreaView2;\n keyguardBottomAreaView2.initFrom(keyguardBottomAreaView);\n this.mView.addView(this.mKeyguardBottomArea, indexOfChild2);\n initBottomArea();\n this.mKeyguardIndicationController.setIndicationArea(this.mKeyguardBottomArea);\n this.mStatusBarStateListener.onDozeAmountChanged(this.mStatusBarStateController.getDozeAmount(), this.mStatusBarStateController.getInterpolatedDozeAmount());\n KeyguardStatusBarView keyguardStatusBarView = this.mKeyguardStatusBar;\n if (keyguardStatusBarView != null) {\n keyguardStatusBarView.onThemeChanged();\n }\n setKeyguardStatusViewVisibility(this.mBarState, false, false);\n setKeyguardBottomAreaVisibility(this.mBarState, false);\n Runnable runnable = this.mOnReinflationListener;\n if (runnable != null) {\n runnable.run();\n }\n }", "private void recreateModel() {\n items = null;\n didItCountAlready = false;\n }", "@Override\r\n\t\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\n\t}", "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n stopPreview();\n }", "public void onCleared() {\r\n this.specialDiscountDisposables.dispose();\r\n this.disposables.dispose();\r\n super.onCleared();\r\n }", "private View getCachedView() {\n if (mCachedItemViews.size() != 0) {\n return mCachedItemViews.removeFirst();\n }\n return null;\n }", "@Override\n public void onValueDeselected() {\n }", "private void unhighlightView(AdapterList.ViewHolder holder) {\n holder.checkIcon.setImageResource(R.drawable.right_arrow_go);\n }", "@Override\n public void onLoadingStarted(String arg0, View arg1) {\n holder.imageView.setVisibility(View.GONE);\n }", "@Override\n protected void onReset() {\n if (presenter != null) {\n presenter.destroy();\n }\n\n presenter = null;\n }", "private void refreshView() {\n if (!wasInvalidatedBefore) {\n wasInvalidatedBefore = true;\n invalidate();\n }\n }", "public void onDestroy() {\n if (view != null) {\n view.clear();\n view = null;\n }\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\thandler.removeCallbacks(updateThread);\r\n\t\t\t\t\r\n\t\t\t}", "public void clearDisplay() {\n placeHolder.getChildren().clear();\n }", "private void m19558b() {\n this.f21607h = false;\n this.f21602c.invalidateSelf();\n }", "private StateHolder getStateHolder() {\n return stateHolder;\n }", "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\tLog.i(TAG, \"onDestroyView\");\n\t}", "public void onViewDestroy(){}", "private void interruptFooterRefreshing() {\n if (null != mInterruptListener)\n mInterruptListener.onInterruptFooterRefreshing();\n else\n throw new IllegalStateException(\"When isMarginChangeableWhenloading'value is true,\" + \"must implement IPullInterruptListener,and set it in this ListView!\");\n resetFooterState();\n }", "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n mSurfaceHolder = null;\n stop();\n }", "private final void m139911a(RecyclerView.Recycler recycler) {\n View view;\n View view2;\n Iterator it = C32598n.m150608b(0, getItemCount()).iterator();\n while (it.hasNext()) {\n int nextInt = ((IntIterator) it).nextInt();\n View viewForPosition = recycler.getViewForPosition(nextInt);\n C32569u.m150513a((Object) viewForPosition, C6969H.m41409d(\"G7B86D603BC3CAE3BA809955CC4ECC6C04F8CC72AB023A23DEF019E00E2EAD0DE7D8ADA14F6\"));\n addView(viewForPosition);\n measureChildWithMargins(viewForPosition, 0, 0);\n int decoratedMeasuredWidth = getDecoratedMeasuredWidth(viewForPosition);\n int decoratedMeasuredHeight = getDecoratedMeasuredHeight(viewForPosition);\n if (this.f101761k) {\n removeAndRecycleView(viewForPosition, recycler);\n } else if (this.f101753c < this.f101754d) {\n if (this.f101762l && (view2 = this.f101763m) != null) {\n this.f101762l = false;\n if (view2 == null) {\n C32569u.m150511a();\n }\n m139910a(view2, this.f101764n, this.f101765o);\n this.f101763m = null;\n }\n if (this.f101753c == this.f101754d - 1 && this.f101756f + decoratedMeasuredWidth + this.f101759i > getWidth()) {\n this.f101761k = true;\n removeAndRecycleView(viewForPosition, recycler);\n } else if (nextInt == getItemCount() - 1 || nextInt == getItemCount() - 2) {\n if (this.f101756f + decoratedMeasuredWidth + this.f101759i < getWidth()) {\n m139910a(viewForPosition, decoratedMeasuredWidth, decoratedMeasuredHeight);\n } else if (this.f101756f + decoratedMeasuredWidth + this.f101759i > getWidth() && this.f101756f + decoratedMeasuredWidth < getWidth()) {\n m139910a(viewForPosition, decoratedMeasuredWidth, decoratedMeasuredHeight);\n m139909a(decoratedMeasuredHeight);\n this.f101757g = this.f101755e + this.f101758h;\n } else if (this.f101756f + decoratedMeasuredWidth > getWidth()) {\n m139909a(decoratedMeasuredHeight);\n m139910a(viewForPosition, decoratedMeasuredWidth, decoratedMeasuredHeight);\n }\n } else if (this.f101756f + decoratedMeasuredWidth <= getWidth()) {\n m139910a(viewForPosition, decoratedMeasuredWidth, decoratedMeasuredHeight);\n } else if (this.f101753c != this.f101754d - 1) {\n m139909a(decoratedMeasuredHeight);\n this.f101762l = true;\n this.f101763m = viewForPosition;\n this.f101764n = decoratedMeasuredWidth;\n this.f101765o = decoratedMeasuredHeight;\n }\n } else if (this.f101762l && (view = this.f101763m) != null) {\n if (view == null) {\n C32569u.m150511a();\n }\n removeAndRecycleView(view, recycler);\n this.f101762l = false;\n this.f101763m = null;\n }\n }\n }", "protected abstract void onInflated(View view);", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "private void abortTransformations() {\n for (Integer num : this.mTransformedViews.keySet()) {\n TransformState currentState = getCurrentState(num.intValue());\n if (currentState != null) {\n currentState.abortTransformation();\n currentState.recycle();\n }\n }\n }", "private void handleTrackingSwitchUnChecked() {\n mSwitchTracking.setText(R.string.switchStartTracking);\n if (mListener != null) {\n mListener.onStartFragmentStopTracking();\n }\n }", "private void recycleOffscreenViews() {\n final int oldChildCount = getChildCount();\n final int height = getHeight();\n final int clearAbove = -height - mItemMargin; // XXX increased clearAbove and clearBelow values\n final int clearBelow = height * 2 + mItemMargin; // to reduce recycling.\n for (int i = getChildCount() - 1; i >= 0; i--) {\n final View child = getChildAt(i);\n if (child.getTop() <= clearBelow) {\n // There may be other offscreen views, but we need to maintain\n // the invariant documented above.\n break;\n }\n\n if (mInLayout) {\n removeViewsInLayout(i, 1);\n } else {\n removeViewAt(i);\n }\n\n mRecycler.addScrap(child);\n }\n\n while (getChildCount() > 0) {\n final View child = getChildAt(0);\n if (child.getBottom() >= clearAbove) {\n // There may be other offscreen views, but we need to maintain\n // the invariant documented above.\n break;\n }\n\n if (mInLayout) {\n removeViewsInLayout(0, 1);\n } else {\n removeViewAt(0);\n }\n\n mRecycler.addScrap(child);\n mFirstPosition++;\n }\n\n final int childCount = getChildCount();\n if (childCount > 0 && childCount != oldChildCount) {\n // Repair the top and bottom column boundaries from the views we still have\n Arrays.fill(mItemTops, Integer.MAX_VALUE);\n Arrays.fill(mItemBottoms, Integer.MIN_VALUE);\n\n for (int i = 0; i < childCount; i++) {\n final View child = getChildAt(i);\n final LayoutParams lp = (LayoutParams) child.getLayoutParams();\n final int top = child.getTop() - mItemMargin;\n final int bottom = child.getBottom();\n final int span = Math.min(mColCount, lp.span);\n final LayoutRecord rec = mLayoutRecords.get(mFirstPosition + i);\n\n final int colEnd = lp.column + span;\n for (int col = lp.column; col < colEnd; col++) {\n final int colTop = top - rec.getMarginAbove(col - lp.column);\n final int colBottom = bottom + rec.getMarginBelow(col - lp.column);\n if (colTop < mItemTops[col]) {\n mItemTops[col] = colTop;\n }\n if (colBottom > mItemBottoms[col]) {\n mItemBottoms[col] = colBottom;\n }\n }\n }\n\n for (int col = 0; col < mColCount; col++) {\n if (mItemTops[col] == Integer.MAX_VALUE) {\n // If one was untouched, both were.\n mItemTops[col] = 0;\n mItemBottoms[col] = 0;\n }\n }\n }\n }", "@Override\n\tpublic void onInvisible() {\n\n\t}", "@Override\n protected void onBindView(final View view) {\n ViewGroup viewGroup= (ViewGroup)view;\n clearListenerInViewGroup(viewGroup);\n super.onBindView(view);\n }", "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\trunFlag = false;\n\t}", "@Override\n public void onViewDetachedFromWindow(@NonNull BarHolder holder) {\n super.onViewDetachedFromWindow(holder);\n\n // get pos of the detached view\n prevPos = holder.getAdapterPosition();\n\n // check if new view is visible and the other one that was visible isn't now\n if (nextPos - prevPos == 1 || prevPos - nextPos == 1) {\n itemInterface.OnItemSwitchedListener(nextPos);\n }\n }", "@Override\n protected void onCancelled(Bitmap result) {\n Log.i(LOG_TAG, \"onLayout() - Cancelled.\");\n layoutResultCallback.onLayoutCancelled();\n mLoadBitmap = null;\n }", "@Override\r\n\t\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\tUtils.printLog(\"mSubtiteHolder callback\", \"surfaceDestroyed\");\r\n\t\t}", "@Override\n public void onDestroyView() {\n mBinding = null;\n super.onDestroyView();\n }", "@Override\n\t\t\t\t\t\tpublic void onLoadingCancelled(String arg0, View arg1) {\n\t\t \t\t\t\tDrawable drawable = iv_details_poster.getDrawable();\n\t\t \t\t\t\tBitmap bitmap = ImageUtil.drawableToBitmap(drawable);\n\t\t \t\t\t\tBitmap bit = Reflect3DImage.skewImage(bitmap, 60);\n\t\t \t\t\t\tiv_details_poster.setImageBitmap(bit);\n\t\t\t\t\t\t}" ]
[ "0.69814414", "0.64277995", "0.64277995", "0.637086", "0.6285607", "0.6213437", "0.6213437", "0.6174568", "0.6015736", "0.6011155", "0.5948065", "0.5851859", "0.57767814", "0.57228434", "0.57127935", "0.5701828", "0.57009894", "0.5691032", "0.5674761", "0.5655705", "0.5641184", "0.5640324", "0.56318986", "0.5625605", "0.5607707", "0.5597779", "0.5588119", "0.5578433", "0.5568478", "0.5565909", "0.5559555", "0.55430144", "0.55399495", "0.5526702", "0.5517549", "0.55145067", "0.55122316", "0.5508923", "0.55058056", "0.5497155", "0.54943", "0.54853994", "0.54815507", "0.54758435", "0.54695934", "0.5469192", "0.5466963", "0.5465377", "0.5465377", "0.5462849", "0.54613674", "0.54593104", "0.5450953", "0.5434886", "0.5432006", "0.54307", "0.5425166", "0.54193574", "0.5407269", "0.54062825", "0.54058397", "0.5390349", "0.5390349", "0.53894544", "0.5386396", "0.5374569", "0.5374522", "0.53728086", "0.53697073", "0.53477424", "0.53301686", "0.5324713", "0.5321864", "0.53192115", "0.53166634", "0.5312805", "0.5310742", "0.53053176", "0.5297777", "0.52960867", "0.5292882", "0.5292776", "0.52897066", "0.5285057", "0.5284247", "0.5284172", "0.52837175", "0.52837175", "0.52837175", "0.52837175", "0.528216", "0.5280112", "0.5276563", "0.52764094", "0.52730876", "0.52709746", "0.5270192", "0.5268353", "0.5267124", "0.52668655", "0.5265053" ]
0.0
-1
Removes a Fragment and commits the operation.
private void removeFragment(Fragment fragment, long itemId) { FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction(); removeFragment(fragment, itemId, fragmentTransaction); fragmentTransaction.commitNow(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void compositionMarkedForDeletionFromFragment(OpenCompositionFragment fragment, Stave compositionToDelete);", "private void removeFragment(Fragment fragment, long itemId,\n @NonNull FragmentTransaction fragmentTransaction) {\n if (fragment == null) {\n return;\n }\n\n if (fragment.isAdded() && containsItem(itemId)) {\n mSavedStates.put(itemId, mFragmentManager.saveFragmentInstanceState(fragment));\n }\n\n mFragments.remove(itemId);\n fragmentTransaction.remove(fragment);\n }", "@objid (\"0672e0e6-3b5a-422b-b15d-5793ad871835\")\n private void onFragmentRemoved(IProjectFragment removedFragment) {\n if (! NSUseUtils.isEditableFragment(removedFragment))\n return;\n \n final Collection<String> handledFragments = this.state.getHandledFragments();\n if (! handledFragments.contains(removedFragment.getId()))\n return;\n \n \n final String jobName = Vaudit.I18N.getMessage(\"NsUseRepositoryChangeListener.Cleaning\");\n final IRunnableWithProgress job = new IRunnableWithProgress() {\n \n @Override\n public void run(IProgressMonitor monitor) {\n final SubProgress amonitor = ModelioProgressAdapter.convert(monitor, jobName, 6);\n \n try (ITransaction t = NsUseRepositoryChangeListener.this.tm.createTransaction(jobName, 20, TimeUnit.SECONDS)){\n NsUseRepositoryChangeListener.this.updater.cleanNamespaceUses(amonitor);\n \n t.commit();\n }\n }\n };\n \n runJob(job, jobName); \n \n handledFragments.remove(removedFragment.getId());\n this.state.setHandledFragments(handledFragments);\n }", "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}", "@Override\n public void onSClicked() {\n Log.d(TAG, \"onSClicked: starts\");\n\n //calling Fragment Manager\n FragmentManager fManager = getSupportFragmentManager();\n //finding Fragment which needs to be removed using its Container ID\n Fragment fragment = fManager.findFragmentById(R.id.task_detail_container);\n //checking if there is that present or not\n if(fragment!=null){\n //if fragment present remove it\n /*FragmentTransaction fTransaction = fManager.beginTransaction();\n fTransaction.remove(fragment);\n fTransaction.commit();*/\n\n //short for above code\n getSupportFragmentManager().beginTransaction().remove(fragment).commit();\n }\n\n }", "void commit() {\n historySegments.clear();\n currentSegment.clear();\n }", "@Override\n public void onOkclick() {\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n Fragment reg = fm.findFragmentByTag(TAG_FRG_REG_12);\n ft.remove(reg);\n ft.commit();\n\n }", "public void restartFragment(String fragmentTag) {\r\n\r\n fragmentManager = getSupportFragmentManager();\r\n\r\n Fragment fragment = fragmentManager\r\n .findFragmentByTag(fragmentTag);\r\n\r\n FragmentTransaction fragmentTransaction = fragmentManager\r\n .beginTransaction();\r\n fragmentTransaction.detach(fragment);\r\n fragmentTransaction.attach(fragment);\r\n\r\n try {\r\n\r\n fragmentTransaction.commit();\r\n\r\n } catch (IllegalStateException e) {\r\n\r\n try {\r\n fragmentTransaction.commitAllowingStateLoss();\r\n } catch (IllegalStateException ex) {\r\n Log.d(TAG,\r\n \"Fatal Exception: java.lang.IllegalStateException commit already called\"\r\n + ex.getMessage()\r\n );\r\n }\r\n Log.d(TAG, \"Failed to commit fragment.\");\r\n }\r\n }", "public void cargarFragment (Fragment fragment, String tag){\r\n FragmentManager manager = getSupportFragmentManager();\r\n // Consigo el fragment que esta actualmente en el contenedor, puede ser null\r\n Fragment fragmentContenedor = manager.findFragmentById(R.id.contenedorFragmentsAparatos);\r\n //Si esta vacio o es diferente al que esta en el contenedor\r\n if(fragmentContenedor == null || fragmentContenedor.getTag() != tag ){\r\n FragmentTransaction transaction = manager.beginTransaction();\r\n transaction.replace(R.id.contenedorFragmentsAparatos, fragment);\r\n //TODO -- chequear que no falta data en el if\r\n if(fragmentContenedor != null ){\r\n transaction.addToBackStack(null);\r\n }\r\n transaction.commit();\r\n }\r\n\r\n\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t FragmentManager fm = getFragmentManager(); \n\t\t FragmentTransaction tx = fm.beginTransaction();\n\t\t tx.remove(FragmentManagementHistoryResult.this);\n\t\t tx.commit();\n\t\t\t}", "private void updateFragment() {\n Fragment fragment = getSupportFragmentManager().findFragmentByTag(CURRENT_FRAGMENT);\n if (fragment != null) {\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.detach(fragment).attach(fragment).commit();\n }\n }", "@Override\n public void onSwipeRight() {\n getFragmentManager().beginTransaction().remove(LongAddFragment.this).commit();\n super.onSwipeRight();\n }", "void fragment(String fragment);", "void fragment(String fragment);", "public void commitFragmentTransaction(FragmentTransaction transaction) {\n transaction.commitAllowingStateLoss();\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 abstract void removeBlock();", "public void replaceFragment(Fragment fragment, String TAG) {\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.popBackStack(TAG, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n FragmentTransaction fragmentTransaction = fragmentManager .beginTransaction();\n fragmentTransaction .replace(R.id.content_restaurant_main_cl_fragment, fragment);\n fragmentTransaction .addToBackStack(TAG);\n fragmentTransaction .commit();\n//\n// getSupportFragmentManager()\n// .beginTransaction()\n// .disallowAddToBackStack()\n//// .setCustomAnimations(R.anim.slide_left, R.anim.slide_right)\n// .replace(R.id.content_restaurant_main_cl_fragment, fragment, TAG)\n// .commit();\n }", "private void loadFragment(Fragment fragment, boolean addToBackStack) {\n FragmentTransaction transaction = getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.frame, fragment);\n if(addToBackStack) {\n transaction.addToBackStack(null);\n }\n transaction.commit();\n }", "private void loadFragment(Fragment fragment, String tag, int containerId) {\r\n\r\n fragmentManager = getSupportFragmentManager();\r\n\r\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\r\n\r\n // delete previous instant message fragment if exist, before adding new\r\n // one\r\n Fragment previousInstanceOfTheFragment = fragmentManager\r\n .findFragmentByTag(tag);\r\n\r\n if (previousInstanceOfTheFragment != null) {\r\n fragmentTransaction.remove(previousInstanceOfTheFragment);\r\n }\r\n\r\n fragmentTransaction.add(containerId, fragment, tag);\r\n fragmentTransaction.commit();\r\n }", "void removeBlock(Block block);", "@Override\n public void onClick(DialogInterface dialog, int buttonId) {\n getActivity().getFragmentManager().beginTransaction().remove(OpenCompositionFragment.this).commit();\n\n\n if (listener != null) {\n // Tell the listener about the deletion...\n listener.compositionMarkedForDeletionFromFragment(OpenCompositionFragment.this, selectedComposition);\n }\n\n }", "private void resetFragment() {\n\t\tFragment fragment = hMapTabs.get(mSelectedTab).get(0);\n\t\thMapTabs.get(mSelectedTab).clear();\n\t\thMapTabs.get(mSelectedTab).add(fragment);\n\t\tFragmentManager manager = getSupportFragmentManager();\n\t\tFragmentTransaction ft = manager.beginTransaction();\n\t\tft.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n\t\tft.replace(R.id.realtabcontent, fragment);\n\t\tft.commit();\n\n\t\tshouldDisplayHomeUp();\n\n\t}", "public void onUPP()\r\n {\r\n Fragment frag = getSupportFragmentManager().findFragmentById(R.id.fragmentSad);\r\n// //android.app.FragmentManager fm = getFragmentManager();\r\n// FragmentTransaction ft = getFragmentManager().beginTransaction();\r\n// ft.remove(frag);\r\n// ft.commit();\r\n//}\r\n\r\n FragmentManager fm = getSupportFragmentManager();\r\n fm.beginTransaction()\r\n .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out)\r\n .show(frag)\r\n .commit();\r\n\r\n }", "public void replaceFragment(Fragment fragment, String tag) {\n for (int i = 0; i < fragmentManager.getBackStackEntryCount(); ++i) {\n fragmentManager.popBackStackImmediate();\n }\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.fragment_container, fragment);\n fragmentTransaction.commit();\n fragmentTransaction.addToBackStack(tag);\n\n }", "@Override\n public void onDestroyView() {\n super.onDestroyView();\n\n/* try {\n Fragment fragment = (getFragmentManager()\n .findFragmentById(R.id.mandiMap));\n if(fragment!=null) {\n FragmentTransaction ft = getActivity().getSupportFragmentManager()\n .beginTransaction();\n ft.remove(fragment);\n ft.commit();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }*/\n }", "@Override\n public void onClick(View v) {\n fragment = fragmentManager.findFragmentByTag(\"frag1\"); // you gonna find a fragment by a tag ..u defined that in acitivty when you called that fragment\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n if (fragment != null) {\n fragmentTransaction.remove(fragment); // remove Transaction\n }\n\n // now calling and adding another fragment after remove its parent fragment (where you are calling fragmetn from) fragment to fragment call\n fragment = new Fragment2();\n fragmentTransaction.add(R.id.base_layout, fragment, \"frag2\"); //giving tag to fragment\n fragmentTransaction.commit();\n }", "@Override\n public void onEquipoFavoritosSelected(Equipo equipos) {\n DatabaseReference databa = firebaseDatabase.getReference().child(\"usuarios\").child(nombre).child(\"equipos\").child(\"favoritos\").child(equipos.getNombre());\n databa.get().addOnCompleteListener(new OnCompleteListener<DataSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DataSnapshot> task) {\n Equipo equipo = task.getResult().getValue(Equipo.class);\n if(equipo.getNombre().equals(equipos.getNombre())){\n FragmentFavoritos fragments = (FragmentFavoritos) getSupportFragmentManager().findFragmentByTag(\"list\");\n databa.setValue(null);\n Toast.makeText(getApplicationContext(),\"borro\",Toast.LENGTH_SHORT).show();\n fragments.eliminaEquipo(equipos);\n\n }\n }\n });\n /*FragmentFavoritos fragment = (FragmentFavoritos) getSupportFragmentManager().findFragmentByTag(\"list\");\n fragment.eliminaEquipo(equipos);*/\n\n }", "public boolean commit() {\n\n String backStateName = fragment.getClass().getName();\n Fragment current = fragmentManager.findFragmentById(container);\n if (equal(fragment, current)) {\n if (refresh)\n reLoadFragment(fragment);\n return false;\n }\n\n Bundle args = fragment.getArguments();\n if (args == null) {\n args = new Bundle();\n }\n\n if (serializable != null)\n args.putSerializable(Extras.MODEL.name(), serializable);\n\n if (model != null)\n args.putSerializable(Extras.MODEL.name(), model);\n\n if (extras != null)\n args.putAll(extras);\n\n fragment.setArguments(args);\n\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n\n if (addToStack)\n transaction.setCustomAnimations(animEnter, animExit, animEnter, animExit);\n\n if (replace) {\n transaction.replace(container, fragment);\n } else {\n if (current != null)\n transaction.hide(current);\n transaction.add(container, fragment, String.valueOf(container));\n }\n\n if (addToStack)\n transaction.addToBackStack(backStateName);\n\n transaction.commitAllowingStateLoss();\n return true;\n }", "@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\tft.replace(R.id.fragment_container, fragment);\n\n\t}", "protected void pushFragment(Fragment fragment){\n\n if(fragment == null)\n return;\n\n android.app.FragmentManager fragmentManager = getFragmentManager();\n\n if(fragmentManager != null){\n android.app.FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n if(fragmentTransaction != null){\n //vacio hace referencia al id de la pantalla de bienvenida\n //fragmentTransaction.replace(R.id.vacio, fragment);\n //fragmentTransaction.commit();\n fragmentManager.beginTransaction().replace(R.id.vacio, fragment).addToBackStack(null).commit();\n }\n }\n\n }", "private void placeNewFragment(Fragment f) {\r\n\t\tFragmentManager manager = getSupportFragmentManager();\r\n FragmentTransaction fragmentTransaction = manager.beginTransaction();\r\n fragmentTransaction.replace(R.id.fragmentHolder, f);\r\n fragmentTransaction.addToBackStack(null);\r\n fragmentTransaction.commit();\r\n\t}", "@Override\n public void refreshFragment() {\n }", "public boolean replaceFragment(final int fragmentContainerResourceId, final Fragment nextFragment, final boolean commitAllowingStateLoss) throws IllegalStateException {\n if (nextFragment == null) {\n return false;\n }\n final FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(fragmentContainerResourceId, nextFragment, nextFragment.getClass().getSimpleName());\n\n if (!commitAllowingStateLoss) {\n fragmentTransaction.commit();\n } else {\n fragmentTransaction.commitAllowingStateLoss();\n }\n\n return true;\n }", "private void changeFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.flContainer, fragment);\n fragmentTransaction.commit();\n closeDrawer();\n }", "private void loadFragment(Fragment fragment, String tag) {\n\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ft.replace(R.id.frame_tut, fragment, tag);\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n ft.commit();\n }", "@Override\n public void onClick(View v) {\n android.app.Fragment onjF = null;\n onjF = new BlankFragment();\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.fragment,onjF).commit();\n }", "protected void pushFragment(Fragment fragment) {\n if (fragment == null)\n return;\n\n FragmentManager fragmentManager = getFragmentManager();\n if (fragmentManager != null) {\n FragmentTransaction ft = fragmentManager.beginTransaction();\n if (ft != null) {\n ft.replace(R.id.container, fragment);\n ft.commit();\n }\n }\n }", "public void unregisterSqlFragment(String sqlFragmentName, boolean ignoreIfNotExists) {\r\n checkArgument(\r\n !StringUtils.isNullOrWhitespaceOnly(sqlFragmentName),\r\n \"sql fragmentName name cannot be null or empty.\");\r\n\r\n if (sqlFragments.containsKey(sqlFragmentName)) {\r\n sqlFragments.remove(sqlFragmentName);\r\n } else if (!ignoreIfNotExists) {\r\n throw new CatalogException(\r\n format(\"The fragment of sql %s does not exist.\", sqlFragmentName));\r\n }\r\n }", "public final void finishFragment() {\n android.support.v4.app.FragmentActivity activity = getActivity();\n\n if (activity == null) {\n throw new IllegalStateException(\"Fragment \" + this\n + \" not attached to Activity\");\n }\n\n activity.onBackPressed();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n // Tell the TutorialActivity about it!\n Stave selectedComposition = compositions.get(position);\n\n if (listener != null) {\n listener.compositionSelectedFromFragment(this, selectedComposition);\n }\n\n // Looked up the following line at https://stackoverflow.com/questions/5901298/how-to-get-a-fragment-to-remove-itself-i-e-its-equivalent-of-finish\n getActivity().getFragmentManager().beginTransaction().remove(this).commit();\n\n }", "private void getFragment(Fragment fragment) {\n // create a FragmentManager\n FragmentManager fm = getFragmentManager();\n // create a FragmentTransaction to begin the transaction and replace the Fragment\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n // replace the FrameLayout with new Fragment\n fragmentTransaction.replace(R.id.fragment_layout, fragment);\n // save the changes\n fragmentTransaction.commit();\n }", "public void popFragment() {\n mStackManager.popFragment(this, mState, mConfig);\n\n if (mListener != null) {\n mListener.didDismissFragment();\n }\n }", "public void switchToAddFragment() {\n FragmentManager manager = getSupportFragmentManager();\n manager.beginTransaction().replace(R.id.fragment_container, new AddActivity()).commit();\n }", "public void replaceFragment(Fragment destFragment)\n {\n FragmentManager fragmentManager = this.getSupportFragmentManager();\n\n // Begin Fragment transaction.\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n // Replace the layout holder with the required Fragment object.\n fragmentTransaction.replace(R.id.content_frame, destFragment);\n\n // Commit the Fragment replace action.\n fragmentTransaction.addToBackStack(null).commit();\n }", "public static void deleteLastChar (TextFragment textFragment) {\r\n \t\tif (textFragment == null)\r\n \t\t\treturn;\r\n \t\tString st = textFragment.getCodedText();\r\n \r\n \t\tint pos = TextFragment.indexOfLastNonWhitespace(st, -1, 0, true, true, true, true);\r\n \t\tif (pos == -1)\r\n \t\t\treturn;\r\n \r\n \t\ttextFragment.remove(pos, pos + 1);\r\n \t}", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n if (i == 0) { // if the user click on cancel btn\n\n //i want to remove that request from the requests fragment//\n //first, we need to remove for sender\n RequestsRef.child(currentUserID).child(userID)\n .removeValue()\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n //then for receiver\n if (task.isSuccessful()){\n RequestsRef.child(userID).child(currentUserID)\n .removeValue()\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Toast.makeText(getContext(), \"You have cancelled the chat request.\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n });\n }\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_permit_valid, container, false);\n\n // Button Exit\n Button btnExitVerifiedPermits = (Button) v.findViewById(R.id.btnExitVerifiedPermits);\n btnExitVerifiedPermits.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n Toast.makeText(getActivity(), \"Exit clicked\", Toast.LENGTH_SHORT).show();\n sendJSON();\n\n// // Works...but crashes\n// // https://www.youtube.com/watch?v=eUG3VWnXFtg\n// // https://www.programcreek.com/java-api-examples/?class=android.support.v4.app.FragmentManager&method=popBackStack\n// FragmentManager manager = getActivity().getSupportFragmentManager();\n// manager.popBackStack(null, POP_BACK_STACK_INCLUSIVE);\n\n\n// FragmentManager manager = getActivity().getSupportFragmentManager();\n// manager.popBackStack(\"fragment map B\", POP_BACK_STACK_INCLUSIVE);\n\n FragmentManager manager = getActivity().getSupportFragmentManager();\n manager.popBackStack();\n\n\n\n// final PermitValidFragment fragment = new PermitValidFragment();\n// FragmentManager manager = getActivity().getSupportFragmentManager();\n// android.support.v4.app.FragmentTransaction trans = manager.beginTransaction();\n// trans.remove(fragment);\n// trans.commit();\n// manager.popBackStack();\n\n// FragmentManager fm = getActivity().getSupportFragmentManager();\n// fm.popBackStack(FragmentManager.POP_BACK_STACK_INCLUSIVE);\n// fm.popBackStack(\"PermitValidFragment\", FragmentManager.POP_BACK_STACK_INCLUSIVE);\n\n\n// MapAFragment fragment = new MapAFragment();\n// final android.support.v4.app.FragmentTransaction ft = getFragmentManager().beginTransaction();\n// ft.replace(R.id.frame, fragment, \"fragment map A\");\n// ft.commit();\n\n// String userid = \"1429392\";\n// String uuidTwelve = \"defaultTwelve\";\n//\n// MapBFragment fragment = null;\n// fragment = new MapBFragment().newInstance(userid, uuidTwelve);\n// final android.support.v4.app.FragmentTransaction ft = getFragmentManager().beginTransaction();\n// ft.replace(R.id.frame, fragment, \"fragment map B\");\n// ft.commit();\n\n// if (getFragmentManager().getBackStackEntryCount() == 0) {\n// getActivity().finish();\n// } else {\n// getFragmentManager().popBackStack();\n// }\n\n// getActivity().getFragmentManager().beginTransaction().remove(fragment).commit();\n\n// getActivity().getSupportFragmentManager().popBackStackImmediate();\\\n\n\n// FragmentActivity myContext = null;\n//\n// final FragmentManager fragManager = myContext.getSupportFragmentManager();\n// while (fragManager.getBackStackEntryCount() != 0) {\n// fragManager.popBackStackImmediate();\n// }\n\n// MapAFragment fragment = new MapAFragment();\n// final android.support.v4.app.FragmentTransaction ft = getFragmentManager().beginTransaction();\n// ft.replace(R.id.frame, fragment, \"fragment map A\");\n// ft.commit();\n\n// MapAFragment fragment = new MapAFragment();\n// final android.support.v4.app.FragmentTransaction ft = getFragmentManager().beginTransaction();\n// ft.replace(R.id.frame, fragment, \"fragment map A\");\n// ft.commit();\n\n// // This portion works\n// String userid = \"1429392\";\n// String uuidTwelve = \"defaultTwelve\";\n// final android.support.v4.app.FragmentTransaction ft = getFragmentManager().beginTransaction();\n// ft.replace(R.id.frame, new MapBFragment().newInstance(userid, uuidTwelve), \"waiting fragment\");\n// ft.commit();\n\n\n }\n });\n\n return v;\n }", "public void replaceFragment(int id_content, Fragment fragment) {\r\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\r\n transaction.replace(id_content, fragment);\r\n transaction.commit();\r\n }", "public static void replaceFragment(FragmentActivity activity, Fragment fragment,\n int containerId) {\n FragmentManager manager = activity.getSupportFragmentManager();\n manager.beginTransaction().replace(containerId, fragment).commitAllowingStateLoss();\n }", "private void replaceFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n android.support.v4.app.FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.addToBackStack(null);\n if (fragment == listFragment) {\n transaction.replace(R.id.fragment_content, fragment, LIST_FRAGMENT_TAG);\n } else if (fragment == supportMapFragment) {\n transaction.replace(R.id.fragment_content, fragment, SUPPORT_FRAGMENT_TAG);\n }\n transaction.commit();\n }", "@Override\n public void destroyItem(ViewGroup container, int position, Object object) {\n registeredFragments.remove(position);\n super.destroyItem(container, position, object);\n }", "private void loadFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(com.limkee1.R.id.flContent, fragment);\n fragmentTransaction.commit();\n\n }", "public void replaceFragment(Fragment destFragment)\n {\n FragmentManager fragmentManager = this.getSupportFragmentManager();\n\n // Begin Fragment transaction.\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n // Replace the layout holder with the required Fragment object.\n fragmentTransaction.replace(R.id.MissedFrame, destFragment);\n\n // Commit the Fragment replace action.\n fragmentTransaction.commit();\n }", "public void replaceFragment(FragmentManager fragmentManager, @IdRes Integer containerViewId, Fragment fragment, @Nullable String tag) {\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(containerViewId, fragment, tag).commit();\n }", "public BufferSlot remove();", "void remove(Vertex vertex);", "public void removeVertex();", "protected FragmentTransaction removeMessageViewFragment(FragmentTransaction ft) {\n removeFragment(ft, mMessageViewFragment);\n return ft;\n }", "void switchToFragment(Fragment newFrag) {\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragment, newFrag)\n .addToBackStack(null)\n .commit();\n }", "protected FragmentTransaction removeMailboxListFragment(FragmentTransaction ft) {\n removeFragment(ft, mMailboxListFragment);\n return ft;\n }", "@Override\n public void onFragmentDestroyed(@NonNull FragmentManager fm, @NonNull Fragment f) {\n }", "@Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n final Stave selectedComposition = compositions.get(position);\n\n AlertDialog.Builder deleteConfirmationDialog = new AlertDialog.Builder(getActivity());\n deleteConfirmationDialog.setTitle(getString(R.string.delete_composition_title) + selectedComposition.getName() + getString(R.string.question_mark));\n\n deleteConfirmationDialog.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int buttonId) {\n // Tell the listener and close this fragment...\n\n // Close the fragment...\n // Looked up the following line at https://stackoverflow.com/questions/5901298/how-to-get-a-fragment-to-remove-itself-i-e-its-equivalent-of-finish\n getActivity().getFragmentManager().beginTransaction().remove(OpenCompositionFragment.this).commit();\n\n\n if (listener != null) {\n // Tell the listener about the deletion...\n listener.compositionMarkedForDeletionFromFragment(OpenCompositionFragment.this, selectedComposition);\n }\n\n }\n });\n\n deleteConfirmationDialog.setNegativeButton(R.string.cancel, null);\n\n deleteConfirmationDialog.show();\n\n return true;\n }", "private void addBaseFragment(Fragment fragment) {\n\n if (mFragmentManager == null)\n mFragmentManager = getSupportFragmentManager();\n\n FragmentTransaction mFragmentTransaction = mFragmentManager.beginTransaction();\n mFragmentTransaction.replace(R.id.content_frame, fragment, fragment.getClass().getSimpleName().toString()).commit();\n\n }", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.main_frame, fragment);\n// fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n }", "@Override\n protected void onPostExecute(AsyncTaskResult<DeleteBattleResponse> asyncResult) {\n BattlesReportedFragment fragment = fragmentReference.get();\n Activity activity = activityReference.get();\n if (fragment == null || fragment.isRemoving()) return;\n if (activity == null || activity.isFinishing()) return;\n\n\n DeleteBattleResponse result = asyncResult.getResult();\n if (asyncResult.getError() != null)\n {\n\n new HandleLambdaError().handleError(asyncResult.getError(), activity,fragment.mProgressContainer);\n return;\n }\n\n\n if (result.getAffectedRows() == 1)\n {\n //Comment Deleted\n fragment.mReportedBattlesList.get(holder.getAdapterPosition()).setBattleDeleted(true);\n fragment.mAdapter.notifyItemChanged(holder.getAdapterPosition());\n\n }\n else\n {\n Toast.makeText(activity, R.string.not_authorised_delete_battle, Toast.LENGTH_LONG).show();\n }\n\n fragment.mProgressContainer.setVisibility(View.INVISIBLE);\n }", "public String deleteProductionBlock(ProductionBlock pb);", "public FragmentUtil removeFragFromContainer(int containerId) {\n try {\n Fragment fragment = fragmentManager.findFragmentById(container);\n removeFragment(fragment);\n } catch (Exception e) {\n\n }\n return this;\n }", "private void setFragmentMovie(Fragment fragmentMovie){\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.frame_fav, fragmentMovie)\n .addToBackStack(null)\n .commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_activity_summary, container, false);\n\n // Transaction party\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction ft = fragmentManager.beginTransaction();\n\n if(fragmentManager.findFragmentById(R.id.frame1)!=null) {\n ft.remove(fragmentManager.findFragmentById(R.id.frame1));\n }\n Fragment fragment = new SummaryFragment();\n ft.replace(R.id.frame1, fragment).commit();\n return v;\n }", "protected void replaceFragment(Fragment fragment, String id, int resId) {\n getSupportFragmentManager()\n .beginTransaction()\n .add(resId, fragment, id)\n .addToBackStack(id)\n .commit();\n }", "@Override\n public void onClick(View v) {\n FragmentTransaction FT = getSupportFragmentManager().beginTransaction();\n //FT.add(R.id.Frame_Fragments,new Another Fragment());\n if (simplefragment2.isAdded()){\n FT.show(simplefragment2);\n FT.remove(simplefragment);\n Toast.makeText(getApplicationContext(), \"Fragment di tambahkan sebelumnya\", Toast.LENGTH_SHORT).show();\n }\n else {\n FT.replace(R.id.Frame_Fragments,simplefragment2);\n }\n FT.addToBackStack(null);\n FT.commit();\n\n button2.setVisibility(View.VISIBLE);\n button.setVisibility(View.GONE);\n }", "private void loadFragment(Fragment fragment) {\n // load fragment\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.replace(R.id.frame_container, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }", "@Override\n\tpublic void onDeleting(PhotoFragment f, NPPhoto photo) {\n\t\tfinish();\n\t}", "@Override\n public void onClick(View v) {\n CompteEnsg nextFrag = new CompteEnsg();\n getActivity().getFragmentManager().beginTransaction()\n .replace(R.id.content_frame, nextFrag, \"TAG_FRAGMENT\")\n .addToBackStack(null)\n .commit();\n }", "private void loadFragment(Fragment fragment)\n {\n if(fragment != null)\n {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.frameLayout, fragment);\n fragmentTransaction.addToBackStack(\"fragment\");\n fragmentTransaction.commit();\n }\n }", "@Override\n public void onClick(View v) {\n FragmentManager manager = getSupportFragmentManager();\n Fragment frag = manager.findFragmentByTag(\"fragment_camera\");\n if (frag != null) {\n manager.beginTransaction().remove(frag).commit();\n }\n CreateGistDialogFragment alertDialogFragment = new CreateGistDialogFragment();\n alertDialogFragment.show(manager, \"fragment_camera\");\n }", "@Override\n public void onComplete(@NonNull Task<Void> task)\n {\n FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.fragment_container, new Fragment_VacatureOmschrijving()).addToBackStack(\"tag\").commit();\n Toast.makeText(getActivity(), \"Uw sollicitatie is succesvol verzonden\", Toast.LENGTH_LONG).show();\n }", "@Override\r\n\t public void onClick(DialogInterface dialog, int id) {\n\t \tHomeActivity.dbPrograms.deleteData(ProgramID);\r\n\t \tToast.makeText(DetailProgramActivity.this, getString(R.string.success_delete), Toast.LENGTH_SHORT).show();\r\n\t \tgetSupportFragmentManager()\r\n\t\t\t\t.beginTransaction().\r\n\t\t\t\tremove(HomeActivity.programListFrag)\r\n\t\t\t\t.commit();\r\n\t \tfinish();\r\n\t }", "@Override\n public void remove() {\n deleteFromModel();\n deleteEdgeEndpoints();\n\n setDeleted(true);\n if (!isCached()) {\n HBaseEdge cachedEdge = (HBaseEdge) graph.findEdge(id, false);\n if (cachedEdge != null) cachedEdge.setDeleted(true);\n }\n }", "public void replaceFragment(int container, FragmentManager manager, Fragment fragment) {\n manager.beginTransaction().replace(container, fragment).commitAllowingStateLoss();\n }", "protected Message unfragment(Message msg, FragHeader hdr) {\n Address sender=msg.getSrc();\n Message assembled_msg=null;\n\n ConcurrentMap<Long,FragEntry> frag_table=fragment_list.get(sender);\n if(frag_table == null) {\n frag_table=Util.createConcurrentMap(16, .075f, 16);\n ConcurrentMap<Long,FragEntry> tmp=fragment_list.putIfAbsent(sender, frag_table);\n if(tmp != null) // value was already present\n frag_table=tmp;\n }\n num_frags_received.increment();\n\n FragEntry entry=frag_table.get(hdr.id);\n if(entry == null) {\n entry=new FragEntry(hdr.num_frags, hdr.needs_deserialization, msg_factory);\n FragEntry tmp=frag_table.putIfAbsent(hdr.id, entry);\n if(tmp != null)\n entry=tmp;\n }\n\n Lock lock=entry.lock;\n lock.lock();\n try {\n entry.set(hdr.frag_id, msg);\n if(entry.isComplete()) {\n assembled_msg=assembleMessage(entry.fragments, entry.needs_deserialization, hdr);\n frag_table.remove(hdr.id);\n if(log.isTraceEnabled())\n log.trace(\"%s: unfragmented message from %s (size=%d) from %d fragments\",\n local_addr, sender, assembled_msg.getLength(), entry.number_of_frags_recvd);\n }\n }\n catch(Exception ex) {\n log.error(\"%s: failed unfragmenting message: %s\", local_addr, ex);\n }\n finally {\n lock.unlock();\n }\n return assembled_msg;\n }", "public void removeVertex(Position vp) throws InvalidPositionException;", "private void fragmentChange(){\n HCFragment newFragment = new HCFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack if needed\n transaction.replace(R.id.hc_layout, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }", "public void deleteBlock(JsonObject block){\n blocks.remove(Hash.getHashString(block.toString()));\n }", "public void append(String fragment);", "public void remove(File file) throws IOException {\n String fileName = file.getName();\n File realFile = new File(INDEX, fileName);\n boolean isStaged = realFile.exists();\n Commit curCommit = getHeadCommit();\n if (isStaged) {\n realFile.delete();\n }\n HashMap<String, Blob> filesInHeadCommit = curCommit.getFile();\n boolean trackedByCurrCommit = filesInHeadCommit.containsKey(fileName);\n if (trackedByCurrCommit) {\n if (file.exists()) {\n file.delete();\n }\n String content = filesInHeadCommit.get(fileName).getContent();\n File fileInRemovingStage = new File(REMOVAL, fileName);\n if (!fileInRemovingStage.exists()) {\n fileInRemovingStage.createNewFile();\n }\n Utils.writeContents(fileInRemovingStage, content);\n }\n if (!isStaged && !trackedByCurrCommit) {\n System.out.println(\"No reason to remove the file.\");\n System.exit(0);\n }\n\n }", "public void fragmentationOccured(ByteBufferWithInfo newFragment) {}", "public void replaceFragmentWithBackStack(FragmentManager fragmentManager, @IdRes Integer containerViewId, Fragment fragment, @Nullable String tag, @Nullable String name) {\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(containerViewId, fragment, tag).addToBackStack(name).commit();\n }", "abstract void remove(String key, boolean commit);", "public DocumentMutation delete(String path);", "@Override\n public void onClick(View v) {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n Fragment fragment = new FavoriteFragment();\n ft.replace(R.id.layout_fragment, fragment, \"FavoriteFragment\");\n ft.commit();\n }", "private void updateCurrentFragment(Fragment newFragment, String tag) {\n FragmentTransaction ft = fm.beginTransaction();\n\n // remove current fragment\n if (currentFragment != null) {\n ft.remove(currentFragment);\n }\n\n // set, add and commit new fragment\n currentFragment = newFragment;\n ft.add(currentFragment, tag).commit();\n }", "private void replaceFragment(int pos) {\n Fragment fragment = null;\n switch (pos) {\n case 0:\n //mis tarjetas\n fragment = new CardsActivity();\n break;\n case 1:\n //buscador online\n fragment = new CardsActivityOnline();\n break;\n case 2:\n //active camera\n Intent it = new Intent(this, com.google.zxing.client.android.CaptureActivity.class);\n startActivityForResult(it, 0);\n break;\n case 3:\n ParseUser.getCurrentUser().logOut();\n finish();\n onBackPressed();\n break;\n default:\n //fragment = new CardsActivity();\n break;\n }\n\n if(null!=fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.main_content, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n }", "@Override\n public void onClick(View v) {\n switch (v.getId()){\n case R.id.remove_yes_id:\n DBConnection dbConnection=new DBConnection(removeView.getContext());\n if(dbConnection.remove(id,type)==1){\n Toast.makeText(getActivity(),type+\" has been removed successfully\",Toast.LENGTH_LONG).show();\n updateFragment(CAT_ID);\n dismiss();\n }else{\n Toast.makeText(getActivity(),\"Remove Error \",Toast.LENGTH_LONG).show();\n dismiss();\n }\n break;\n case R.id.remove_cancel_id:\n dismiss();\n break;\n }\n }", "E remove(Id id);", "private void loadFragment(String fragmentTag)\n {\n\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ft.setCustomAnimations(android.R.anim.slide_in_left, android.R.anim.slide_out_right);\n\n Fragment taggedFragment = (Fragment) fm.findFragmentByTag(fragmentTag);\n if (taggedFragment == null)\n {\n\n if (fragmentTag == LondonFragment.TAG)\n {\n taggedFragment = new LondonFragment();\n }\n\n if (fragmentTag == ParisFragment.TAG)\n {\n taggedFragment = new ParisFragment();\n }\n\n if (fragmentTag == CopenhagenFragment.TAG)\n {\n taggedFragment = new CopenhagenFragment();\n }\n\n if (fragmentTag == DualFragment.TAG)\n {\n taggedFragment = new DualFragment();\n }\n\n }\n ft.replace(R.id.container, taggedFragment, fragmentTag);\n ft.commit();\n\n //Ezt fontos hívni\n getSupportFragmentManager().executePendingTransactions();\n\n Fragment frag2 = (Fragment) fm.findFragmentByTag(fragmentTag);\n frag2.getActivity();\n\n\n\n\n\n drawerLayout.closeDrawer(Gravity.LEFT);\n }", "public void run() {\n assert getFragmentManager() != null;\n Fragment currentFragment = getActivity().getSupportFragmentManager().findFragmentById(R.id.content_main);\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n if (Build.VERSION.SDK_INT >= 26) {\n ft.setReorderingAllowed(false);\n }\n ft.detach(currentFragment).attach(currentFragment).commit();\n }", "@Override\n public void onPersonDeleted(int eventId) {\n EventDetailFragment eventDetailFragment = new EventDetailFragment();\n CreatePersonFragment createPersonFrag = new CreatePersonFragment();\n Bundle args = new Bundle();\n args.putInt(\"eventId\", eventId);\n int REQUESTCODE_MEMBER_DELETED = 102;\n args.putInt(getString(R.string.statuscode), REQUESTCODE_MEMBER_DELETED);\n eventDetailFragment.setArguments(args);\n\n // for back button -> we dont want that user can via back button go back to create person view.\n popFragmentFromStack(createPersonFrag);\n\n createTransactionAndReplaceFragment(eventDetailFragment, getString(R.string.frg_tag_event_detail));\n\n }" ]
[ "0.64614415", "0.6252588", "0.6195845", "0.58982384", "0.58945084", "0.5864306", "0.5798983", "0.56701684", "0.54864234", "0.54826623", "0.54578584", "0.53507483", "0.53431225", "0.53431225", "0.5301165", "0.5276743", "0.5276743", "0.52525264", "0.51870704", "0.517477", "0.5151601", "0.5140354", "0.51355964", "0.5126987", "0.5119602", "0.5114963", "0.5110106", "0.51088387", "0.5104588", "0.5100398", "0.50798553", "0.5054139", "0.50391155", "0.50312734", "0.5029019", "0.5022098", "0.5014071", "0.50125253", "0.49929413", "0.49921316", "0.49720845", "0.49715447", "0.49698287", "0.49686068", "0.49579033", "0.49497446", "0.49476695", "0.49441722", "0.4931363", "0.49311852", "0.49274817", "0.49241823", "0.4920343", "0.49063012", "0.48971784", "0.48953137", "0.48808926", "0.487572", "0.4866637", "0.48665768", "0.48446077", "0.48422813", "0.4840342", "0.48337317", "0.4831718", "0.4829947", "0.4829747", "0.48277247", "0.4827428", "0.48216644", "0.4817529", "0.48174238", "0.48142493", "0.4801171", "0.47912475", "0.47904983", "0.47902068", "0.4782719", "0.47713968", "0.4767336", "0.4766534", "0.4761165", "0.47588703", "0.4758374", "0.47492728", "0.47485697", "0.47476223", "0.4737426", "0.47279495", "0.47267267", "0.47206342", "0.4720573", "0.4716293", "0.47148246", "0.47075307", "0.47048336", "0.46969613", "0.46950808", "0.46912467", "0.46867716" ]
0.6795621
0
Adds a remove operation to the transaction, but does not commit.
private void removeFragment(Fragment fragment, long itemId, @NonNull FragmentTransaction fragmentTransaction) { if (fragment == null) { return; } if (fragment.isAdded() && containsItem(itemId)) { mSavedStates.put(itemId, mFragmentManager.saveFragmentInstanceState(fragment)); } mFragments.remove(itemId); fragmentTransaction.remove(fragment); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean atomicRemove();", "abstract void remove(String key, boolean commit);", "public Boolean removeTransaction()\n {\n return true;\n }", "public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}", "public void remove () {}", "public void remove() {\n btRemove().push();\n }", "public void remove() {\n btRemove().push();\n }", "@Override\n public void removeFromDb() {\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "@Transactional\n void remove(DataRistorante risto);", "public void remove() {\n throw new UnsupportedOperationException(\"not supported optional operation.\");\n }", "public void remove() {\r\n //\r\n }", "public void remove()\n\n throws ManageException, DoesNotExistException;", "public void remove() {\n\t}", "public void remove() {\n\t}", "public void remove(){\r\n // Does Nothing\r\n }", "public void remove ( ) {\n\t\texecute ( handle -> handle.remove ( ) );\n\t}", "Boolean removeOperation(Long id);", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "void remove();", "void remove();", "void remove();", "void remove();", "void remove();", "public E remove();", "public E remove();", "public void remove(){\n }", "public void testRemove() {\r\n tree.insert(\"apple\");\r\n tree.insert(\"act\");\r\n tree.insert(\"bagel\");\r\n\r\n tree.remove(\"apple\");\r\n tree.remove(\"bagel\");\r\n\r\n tree.insert(\"ab\");\r\n tree.remove(\"ab\");\r\n\r\n try {\r\n tree.remove(\"apple\");\r\n }\r\n catch (ItemNotFoundException e) {\r\n assertNotNull(e);\r\n }\r\n }", "public void remove() {\n\n }", "public void removeTransaction(Transaction transaction)\n\t{\n\t\ttransactionQueue.remove(transaction);\n\t}", "Object remove();", "@PreRemove\r\n public void preRemove() {\r\n\r\n }", "public final void remove () {\r\n }", "@Override\r\n public void undoTransaction() {\n data.getStudents().remove(newStu);\r\n data.getStudents().add(stu);\r\n }", "@Override\n\tpublic void remove() { }", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic boolean doRemove(String id) throws SQLException {\n\t\treturn false;\r\n\t}", "public void removeOperation(String name)\n {\n nameToOperation.remove(name);\n }", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "public void preRemove(T entity) {\n }", "void removeStatement(Statement statement) throws ModelRuntimeException;", "void remove(PK id);", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Transactional void removeById(long id) throws IllegalArgumentException;", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Transactional( WorkflowPlugin.BEAN_TRANSACTION_MANAGER )\n void removeByIdTask( int nIdTask );", "E remove(Id id);", "public void remove(){throw new RuntimeException(\"Removing() is not implemented\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "void remove(final Task task);", "boolean remove (I id);", "@Override\n public void remove() {\n }", "public void remover(ParadaUtil paradaUtil)\r\n\t\t\t {\n\t\tiniciarTransacao();\r\n\t\ttry {\r\n\t\t\ts.delete(paradaUtil);\r\n\t\t\ttx.commit();\r\n\t\t} catch (Exception e) {\r\n\t\t\t;\r\n\t\t} finally {\r\n\t\t\ts.close();\r\n\t\t}\r\n\t}", "@PreRemove\r\n public void preRemove(){\r\n this.isDeleted=true;\r\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\r\n super.remove();\r\n }", "void removeConfirmedTransaction(int transId, String userId);", "public void remove() {\r\n return;\r\n }", "void remove(User user) throws SQLException;", "@Override\r\n\t\tpublic void remove() {\n\r\n\t\t}", "public interface ModelAddRemove extends ClosableIterable<Statement>,\r\n\t\tModelWriter, Lockable {\r\n\r\n\t// ////////////\r\n\t// diffing\r\n\r\n\t/**\r\n\t * Apply the changes given by this diff <emph>in one atomic operation</emph>\r\n\t * \r\n\t * Implementations must check that all statements to be removed are still in\r\n\t * the Model. Otherwise an exception is thrown.\r\n\t * \r\n\t * First all triples to be removed are removed, then triples to be added are\r\n\t * added.\r\n\t * \r\n\t * @param diff\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid update(DiffReader diff) throws ModelRuntimeException;\r\n\r\n\t/**\r\n\t * @param statements\r\n\t * @return a Diff between this model and the statements given in the\r\n\t * iterator\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tDiff getDiff(Iterator<? extends Statement> statements)\r\n\t\t\tthrows ModelRuntimeException;\r\n\r\n\t/**\r\n\t * Removes all statements from this model.\r\n\t * \r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeAll() throws ModelRuntimeException;\r\n\r\n\t/**\r\n\t * Removes all statements contained in 'other' from this model =\r\n\t * 'difference'\r\n\t * \r\n\t * @param other\r\n\t * another RDF2GO model\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeAll(Iterator<? extends Statement> statements)\r\n\t\t\tthrows ModelRuntimeException;\r\n\r\n\t// /////////////////\r\n\t// remove\r\n\r\n\t/**\r\n\t * remove a (subject, property ,object)-statement from the model\r\n\t * \r\n\t * @param subject\r\n\t * URI or Object (= blankNode)\r\n\t * @param predicate\r\n\t * @param object\r\n\t * URI or String (=plainLiteral) or BlankNode (=blankNode) or\r\n\t * TypedLiteral or LanguageTagLiteral\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeStatement(Resource subject, URI predicate, Node object)\r\n\t\t\tthrows ModelRuntimeException;\r\n\r\n\tvoid removeStatement(Resource subject, URI predicate, String literal)\r\n\t\t\tthrows ModelRuntimeException;\r\n\r\n\t/**\r\n\t * remove a (subject, property ,literal, language tag)-statement from the\r\n\t * model\r\n\t * \r\n\t * @param subject\r\n\t * @param predicate\r\n\t * @param literal\r\n\t * @param languageTag\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeStatement(Resource subject, URI predicate, String literal,\r\n\t\t\tString languageTag) throws ModelRuntimeException;\r\n\r\n\t/**\r\n\t * remove a (subject, property ,literal, datatype)-statement from the model\r\n\t * \r\n\t * datatype often is an uri for a xml schema datatype (xsd)\r\n\t * \r\n\t * @param subject\r\n\t * @param predicate\r\n\t * @param literal\r\n\t * @param datatypeURI\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeStatement(Resource subject, URI predicate, String literal,\r\n\t\t\tURI datatypeURI) throws ModelRuntimeException;\r\n\r\n\t/**\r\n\t * remove a rdf2go-statement from the model\r\n\t * \r\n\t * @param statement\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeStatement(Statement statement) throws ModelRuntimeException;\r\n\r\n\tvoid removeStatement(String subjectURIString, URI predicate, String literal)\r\n\t\t\tthrows ModelRuntimeException;\r\n\r\n\t/**\r\n\t * remove a (subject, property ,literal, language tag)-statement from the\r\n\t * model\r\n\t * \r\n\t * @param subject\r\n\t * @param predicate\r\n\t * @param literal\r\n\t * @param languageTag\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeStatement(String subjectURIString, URI predicate,\r\n\t\t\tString literal, String languageTag) throws ModelRuntimeException;\r\n\r\n\t/**\r\n\t * remove a (subject, property ,literal, datatype)-statement from the model\r\n\t * \r\n\t * datatype often is an uri for a xml schema datatype (xsd)\r\n\t * \r\n\t * @param subject\r\n\t * @param predicate\r\n\t * @param literal\r\n\t * @param datatypeURI\r\n\t * @throws ModelRuntimeException\r\n\t */\r\n\tvoid removeStatement(String subjectURIString, URI predicate,\r\n\t\t\tString literal, URI datatypeURI) throws ModelRuntimeException;\r\n\r\n}", "@Override\r\n\tpublic void undo(Transaction tx) {\r\n\t\t// do nothing\r\n\t\t\r\n\t}", "@Test\r\n public void testRemover() throws Exception {\r\n tx.begin();\r\n Categoria categoria = new Categoria(\"Teste remover categoria\");\r\n dao.persiste(categoria);\r\n tx.commit();\r\n em.refresh(categoria);\r\n tx.begin();\r\n dao.remover(categoria);\r\n tx.commit();\r\n assertFalse(\"O objeto ainda persiste\", em.contains(categoria));\r\n }", "void remove(Price Price);", "public void remove()\n {\n throw new UnsupportedOperationException(\n \"remove() is not supported.\");\n }", "public Object remove();", "void removeInvitedTrans(ITransaction transaction, String userId);", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "void remove(int id);", "@Test\n public void testRemove() {\n System.out.println(\"remove\");\n Repositorio repo = new RepositorioImpl();\n Persona persona = new Persona();\n persona.setNombre(\"Ismael\");\n persona.setApellido(\"González\");\n persona.setNumeroDocumento(\"4475199\");\n repo.crear(persona);\n \n Persona personaAEliminar = (Persona) repo.buscar(persona.getId());\n assertNotNull(personaAEliminar);\n \n //eliminacion\n repo.eliminar(personaAEliminar);\n Persona personaEliminada = (Persona) repo.buscar(persona.getId());\n assertNull(personaEliminada);\n }", "@Override\n public void remove() {\n }", "public abstract boolean remove(E e);", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}", "public void remove(String arg0, String arg1) {\n\t\tthis.bdb.remove(arg0,arg1);\n\t}", "public abstract void onRemove();", "public void entityRemoved() {}", "private static void rm(Gitlet currCommit, String[] args) {\n if (args.length != 2) {\n System.out.println(\"Please input the file to remove\");\n return;\n }\n Commit headCommit = currCommit.tree.getHeadCommit();\n if (!headCommit.containsFile(args[1])\n && !currCommit.status.isStaged(args[1])) {\n System.out.println(\"No reason to remove the file.\");\n } else {\n currCommit.status.markForRemoval(args[1]);\n }\n addSerializeFile(currCommit);\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "void remove(Order order);", "protected abstract void removeItem();" ]
[ "0.67224526", "0.6370438", "0.63328594", "0.63247603", "0.614688", "0.6035995", "0.6035995", "0.6023921", "0.60194397", "0.60194397", "0.60194397", "0.60194397", "0.60194397", "0.60021657", "0.5997475", "0.5952738", "0.59492844", "0.5906343", "0.5906343", "0.5904719", "0.58625", "0.5815856", "0.5812089", "0.5812089", "0.5812089", "0.58087075", "0.58087075", "0.58087075", "0.58087075", "0.58087075", "0.5785115", "0.5785115", "0.57726914", "0.57497925", "0.57163805", "0.5705374", "0.5679875", "0.56608015", "0.56355613", "0.56242454", "0.5576198", "0.5573606", "0.5573606", "0.55598766", "0.55513704", "0.55504334", "0.55504334", "0.55504334", "0.55504334", "0.55504334", "0.55504334", "0.55504334", "0.55504334", "0.5544112", "0.5543874", "0.5509848", "0.5501307", "0.5487343", "0.54802525", "0.54802525", "0.5476519", "0.5475458", "0.5472245", "0.5468425", "0.5467817", "0.5443977", "0.5434099", "0.5431101", "0.5423749", "0.5409911", "0.5409911", "0.5409911", "0.5409911", "0.5409911", "0.5409911", "0.5409911", "0.53934515", "0.53832674", "0.53655094", "0.5364734", "0.5362882", "0.53614694", "0.5359977", "0.53530055", "0.535282", "0.5350378", "0.5348444", "0.53461844", "0.5343397", "0.5343201", "0.53348196", "0.53316474", "0.53309095", "0.53300583", "0.5328997", "0.5319994", "0.52853173", "0.5274753", "0.5273879", "0.52666736", "0.52644676" ]
0.0
-1
return new Parent(); // Compilation failure return new Child(); // Compilation failure
static Grandson getGrandson() { return new Grandson(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void makeChildcare() {\n\t\t\r\n\t}", "public Parent() {\n super();\n }", "protected ChildType() {/* intentionally empty block */}", "@Override\n public Animal newChild() {\n return new Fox(0);\n }", "@SuppressWarnings(\"unchecked\")\n protected synchronized T newChild() {\n try {\n T t = ((Class<T>)getClass()).newInstance();\n t.isRootNode = false;\n \n if( ! isRootNode ) {\n if( children == null ) children = new ArrayList<T>();\n children.add( t );\n }\n \n return t;\n } catch( Exception ex ) {\n throw new RuntimeException(ex);\n }\n }", "public int Parent() { return this.Parent; }", "Parent() {\n\t System.out.println(\"i am from Parent Class\");\n\t }", "private static Parent[] makeParents() {\n\t\treturn null;\n\t}", "public Foo getParent() {\n return parent;\n }", "public abstract Individual makeChild(Individual otherIndividual);", "abstract public Container<?> getParent();", "public Instance getParent() {\r\n \t\treturn parent;\r\n \t}", "public abstract Optional<TypeName> parent();", "Object getParent();", "@VTID(7)\r\n void getParent();", "public T and() { return parent; }", "Parent()\n\t{\n\t\tSystem.out.println(\"This is parent's default constructor\");\n\t}", "public XMLElement getParent()\n/* */ {\n/* 323 */ return this.parent;\n/* */ }", "private Node constructInternal(List<Node> children){\r\n\r\n // Base case: root found\r\n if(children.size() == 1){\r\n return children.get(0);\r\n }\r\n\r\n // Generate parents\r\n boolean odd = children.size() % 2 != 0;\r\n for(int i = 1; i < children.size(); i += 2){\r\n Node left = children.get(i-1);\r\n Node right = children.get(i);\r\n Node parent = new Node(Utility.SHA512(left.hash + right.hash), left, right);\r\n children.add(parent);\r\n }\r\n\r\n // If the number of nodes is odd, \"inherit\" the remaining child node (no hash needed)\r\n if(odd){\r\n children.add(children.get(children.size() - 1));\r\n }\r\n return constructInternal(children);\r\n }", "private ChildContract() {}", "@Override\n public Type getParentType() {\n return parentType;\n }", "@Test\n public void test4(){\n //parent\n System.out.println(Parent.parent);\n System.out.println(Son.parent);\n }", "public interface Parental {\n boolean removeChild(Child child);\n void addChild(Child child);\n String getName();\n}", "Position<E> parent(Position<E> p) throws IllegalArgumentException;", "public RMParentShape getParent() { return _parent; }", "IClassBuilder getParent();", "protected final Context getParent()\n {\n return m_parent;\n }", "Node<T> parent();", "private GitCommit getParentImpl()\n {\n RevCommit r = _rev.getParentCount()>0? _rev.getParent(0) : null;\n if(r!=null) r = (RevCommit)getRevObject(r); // They return a rev commit, but it isn't loaded!\n return r!=null? new GitCommit(r) : null;\n }", "public static void main(String[] args) {\n\n// ChildPrint childPrint = new ChildPrint();\n// childPrint.printName();\n\n// ChildOverridingPrivate child = new ChildOverridingPrivate();\n// child.printName();\n\n ParentCasting parent = new ParentCasting();\n ChildCasting child = new ChildCasting();\n\n ParentCasting obj1 = new ChildCasting();\n ChildCasting obj2 = (ChildCasting) new ParentCasting();\n\n\n }", "@Override\n void performTest() {\n new Base();\n new Child();\n }", "@Override\n void performTest() {\n new Base();\n new Child();\n }", "@Override\n void performTest() {\n new Base();\n new Child();\n }", "@Override\n\tpublic EntityAgeable createChild(EntityAgeable mate) {\n\t\treturn getReproductionHelper().createChild(mate);\n\t}", "public GitCommit getParent() { return _par!=null? _par : (_par=getParentImpl()); }", "public Concept getParent() { return parent; }", "public Node getParent(){\n return parent;\n }", "public Category getParent(){\r\n return parent;\r\n }", "@Test\n public void test5(){\n //parent\n System.out.println(Son.parent);\n System.out.println(Parent.parent);\n }", "public Entity getParent() {\n return parent;\n }", "protected abstract SelfChainingDataObject getNewIndependentInstance();", "public PageTreeNode getParent() {\n return parent;\n }", "public static java.awt.Frame getParent() {\n return parent;\n}", "protected TreeChild () {\n }", "public ConversionHelper getParent()\n {\n return parent;\n }", "Spring getParent() {\n return parent;\n }", "public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }", "protected Directory getParent() {\n return parent;\n }", "@Override\npublic VirtualContainer getParentContainer() {\n\treturn null;\n}", "public IBuildObject getParent();", "public T getParent(T anItem) { return null; }", "protected TacticalBattleProcessor getParent() {\n return parent;\n }", "public bcm a(World paramaqu, int paramInt)\r\n/* 41: */ {\r\n/* 42:56 */ return new bdj();\r\n/* 43: */ }", "@Override\n public ResolvedType getParentClass() { return null; }", "public boolean isChild(){\n return false;\n }", "public Object getParent() {\r\n return this.parent;\r\n }", "CoreParentNode coreGetParent();", "public FcgLevel child() {\n\t\tif (direction == IN_AND_OUT) {\n\t\t\t// undefined--this node goes in both directions\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\"To get the child of the source level you \" + \"must use the constructor directly\");\n\t\t}\n\n\t\treturn child(direction);\n\t}", "private BsTestNaturalParent createNaturalParent() {\n java.util.Random r = new java.util.Random();\n TestNaturalParentDelegate delegate =\n Memcached_testDelegateFactory.getTestNaturalParentDelegate();\n Long key1 = r.nextLong();\n Long key2 = r.nextLong();\n BsTestNaturalParent parent = delegate.createTestNaturalParent(key1, key2);\n return parent;\n }", "public TreeNode getParent ()\r\n {\r\n return parent;\r\n }", "public void addChild( ChildType child );", "<P extends CtElement> P getParent(Class<P> parentType) throws ParentNotInitializedException;", "private Stage getChildStage(Stage parent) {\n Stage child = new Stage();\n child.initOwner(parent);\n child.initModality(Modality.WINDOW_MODAL);\n return child;\n }", "@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}", "private TypeNode addNode (String parentName, TypeDescription childTypeMetadata) \n {\t\n // Find \"parent\" node\n if (parentName != null && parentName.trim().length() == 0) {\n parentName = null;\n }\n TypeNode nodeParent = null;\n if (parentName != null) {\n nodeParent = (TypeNode) _nodesHashtable.get(parentName);\n }\n \n // Find \"child\" node\n String childName = childTypeMetadata.getName();\n \tTypeNode node = (TypeNode) _nodesHashtable.get(childName);\n\n \t// System.err.println(\" parentName: \" + parentName + \" ; childName: \" + childName);\n \n // NEW type definition ?\n \tif ( node == null ) {\t\t\n \t\t// Not found \"child\". NEW type definition.\n \t\tif ( nodeParent == null ) {\n // Parent is NEW\n // TOP has null parent\n if (parentName != null) {\n TypeDescription typeParent = getBuiltInType(parentName);\n if (typeParent != null) {\n // Built-in Type as Parent\n nodeParent = addNode (typeParent.getSupertypeName(), typeParent);\n // Trace.trace(\" -- addNode: \" + childName + \" has New Built-in Parent: \" + parentName);\n } else { \n \t\t\t// NEW parent also.\n // \"parentName\" is FORWARD Reference Node\n \t\t\tnodeParent = insertForwardedReferenceNode(_rootSuper, parentName); \n // Trace.trace(\" -- addNode: \" + childName + \" has New FORWARD Parent: \" + parentName);\n }\n }\n \t\t}\n \t\t// System.out.println(\" -- addNode: New child\");\t\t\n \t\treturn insertNewNode (nodeParent, childTypeMetadata);\n \t}\n \t\n //\n // childTypeMetadata is ALREADY in Hierarchy\n //\n \n \t// This node can be a Forwarded Reference type\n \tif (node.getObject() == null) {\n \t\t// Set Object for type definition\n \t\t// Reset label.\n \t\t// Trace.trace(\"Update and define previously forwarded reference type: \"\n \t\t//\t\t+ node.getLabel() + \" -> \" + parentName);\n // Need to \"remove\" and \"put\" back for TreeMap (no modification is allowed ?)\n node.getParent().removeChild(node);\n \t\tnode.setObject(childTypeMetadata);\n node.setLabel(childTypeMetadata.getName());\n node.getParent().addChild(node);\n \n // Remove from undefined types\n // Trace.trace(\"Remove forward ref: \" + childTypeMetadata.getName());\n _undefinedTypesHashtable.remove(childTypeMetadata.getName());\n \t}\n \t\n \tif (parentName == null) {\n \t\t// NO Parent\n if (childTypeMetadata.getName().compareTo(UIMA_CAS_TOP) != 0) {\n Trace.err(\"??? Possible BUG ? parentName==null for type: \"\n + childTypeMetadata.getName());\n }\n \t\treturn node;\n \t}\n \t\n \t// Found \"child\".\n \t// This node can be the \"parent\" of some nodes \n \t// and it own parent is \"root\" OR node of \"parentName\".\n \tif ( node.getParent() == _rootSuper ) {\n \t\t// Current parent is SUPER which may not be the right parent\n \t\t// if \"node\" has a previously forward referenced parent of some type.\n \t\t// Find the real \"parent\".\n \t\tif ( nodeParent != null ) {\n \t\t // Parent node exists. \n \t\t\tif ( nodeParent != _rootSuper ) {\n \t\t\t // Move \"node\" from \"root\" and put it as child of \"nodeParent\"\n \t\t\t\t// Also, remove \"node\" from \"root\"\n \t\t\t // _rootSuper.getChildren().remove(node.getLabel());\n // System.out.println(\"B remove\");\n \t\t\t if (_rootSuper.removeChild(node) == null) {\n System.out.println(\"??? [.addNode] Possible BUG 1 ? cannot remove \"\n + node.getLabel() + \" from SUPER\");\n System.out.println(\" node: \" + ((Object)node).toString()); \n Object[] objects = _rootSuper.getChildrenArray();\n for (int i=0; i<objects.length; ++i) {\n System.out.println(\" \" + objects[i].toString()); \n } \n }\n // System.out.println(\"E remove\");\n \t\t\t} else {\n \t\t\t\t// \"nodeParent\" is \"SUPER\".\n \t\t\t\treturn node;\n \t\t\t}\n \t\t} else {\n \t\t\t// NEW parent\n\t\t\t\t// Remove \"node\" from \"SUPER\" and insert it as child of \"nodeParent\"\n\t\t\t // _rootSuper.getChildren().remove(node);\n if (_rootSuper.removeChild(node) == null) {\n System.err.println(\"??? [.addNode] Possible BUG 2 ? cannot remove \"\n + node.getLabel() + \" from SUPER\");\n }\t\t\t \n TypeDescription typeParent = getBuiltInType(parentName);\n if (typeParent != null) {\n // Built-in Type as Parent\n nodeParent = addNode (typeParent.getSupertypeName(), typeParent);\n // Trace.trace(\" -- addNode 2: \" + childName + \" has New Built-in Parent: \" + parentName);\n } else { \n \t\t\t // It is a NEW parent and this parent is forwarded reference (not defined yet). \n \t\t\t // Insert this parent as child of \"SUPER\"\n \t\t\t\tnodeParent = insertForwardedReferenceNode(_rootSuper, parentName);\n // Trace.trace(\" -- addNode 2: \" + childName + \" has New FORWARD Parent: \" + parentName);\n }\n \t\t}\t\t\t\t\n \t\tTypeNode tempNode;\n \t\tif ( (tempNode = nodeParent.insertChild(node)) != null && tempNode != node) {\n \t\t\t// Duplicate Label\n Trace.err(\"Duplicate Label 1\");\n// \t\t\tnode.setShowFullName(true);\n \t\t\tif (node.getObject() != null) {\n \t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n \t\t\t}\t\t\t\t\n \t\t\tnodeParent.insertChild(node);\n \t\t}\n \t} else if ( node.getParent() != null ) {\n \t //\n \t //\tERROR !!!\n \t\t// \"duplicate definition\" or \"have different parents\"\n \t //\n \t \n \t // \"nodeParent\" should be non-null and be the same as \"node.getParent\"\n \t // In this case, it is duplicate definition\n \t if ( nodeParent != null ) {\n \t if (nodeParent == node.getParent()) {\n \t\t\t\t// Error in descriptor\n \t\t // Duplicate definition\n \t\t\t\t// System.err.println(\"[TypeSystemHierarchy - addNode] Duplicate type: child=\" + childName + \" ; parent =\" + parentName);\n \t } else {\n \t // Error: \"node\" has different parents\n \t // Both parents are registered\n \t\t\t\tSystem.err.println(\"[TypeSystemHierarchy - addNode] Different registered parents: child=\" + childName \n \t\t\t\t + \" ; old node.getParent() =\" + node.getParent().getLabel()\n \t\t\t\t + \" ; new parent =\" + parentName);\n \t }\n \t } else {\n \t // Error \n // Error: \"node\" has different parents\n // Old parent is registered\n \t // New parent is NOT registered\n \t\t\tSystem.err.println(\"[TypeSystemHierarchy - addNode] Different parents: child=\" + childName \n \t\t\t + \" ; old registered node.getParent() =\" + node.getParent().getLabel()\n \t\t\t + \" ; new NON-registered parent =\" + parentName);\n \t }\n \t return null; // ERROR\n \n \t} else {\n \t\t//\n \t // Program BUG !!!\n \t\t// since Parent of \"registered\" node cannot be null.\n // if (childTypeMetadata.getName().compareTo(UIMA_CAS_TOP) != 0) {\n System.err.println(\"[TypeSystemHierarchy - addNode] Program BUG !!! (node.getParent() == null): child=\" + childName + \" ; parent =\" + parentName);\n return null;\n // }\n \t}\n \t\t\n \treturn node;\n }", "TopLevel createTopLevel();", "public CompoundExpression getParent (){\n return _parent;\n }", "public Shoe makeShoe() {\n\treturn new Shoe();\r\n}", "public CompositeObject getParent(\n )\n {return (parentLevel == null ? null : (CompositeObject)parentLevel.getCurrent());}", "@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();", "@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();", "@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();", "@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();", "private int parent(int child) {\n\t\treturn (child-1)/2;\n\t}", "protected LambdaTerm getParent() { return parent; }", "public Object getParent() {\n return this.parent;\n }", "public Object getParent() {\n return this.parent;\n }", "public Object getParent() {\n return this.parent;\n }", "@Test\n public void test7(){\n System.out.println(Parent.parent);\n System.out.println(Son.son);\n }", "@VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getParent();", "public com.vodafone.global.er.decoupling.binding.request.ParentTransactionType createParentTransactionType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ParentTransactionTypeImpl();\n }", "A createA();", "protected abstract T parentElementFor(T child) throws SAXException;", "P createP();", "private int parent ( int pos )\n\t{\n\t\treturn -1; // replace this with working code\n\t}", "@Test\n public void test1(){\n System.out.println(Parent.parent);\n }", "public Complexity fromParent(Complexity c) {\n if (c.betterOrEqual(Complexity.P))\n return c.betterThan(complexity) ? complexity : c;\n // Cliquewidth unbounded distributes DOWNWARD!\n /*if (c.equals(Complexity.NPC) &&\n \"Cliquewidth\".equals(parent.getName()) &&\n \"Cliquewidth expression\".equals(child.getName()))\n return c;*/\n return Complexity.UNKNOWN;\n }", "public boolean isChild(){\n return child;\n }", "public boolean isChild(){\n return child;\n }", "private ScriptableObject makeChildScope(String name, Scriptable scope) {\r\n // This code is based on sample code from Rhino's website:\r\n // http://www.mozilla.org/rhino/scopes.html\r\n \r\n // I changed it to use a ScriptableObject instead of Context.newObject()\r\n ScriptableObject child = new NamedScriptableObject(name);\r\n \r\n // Set the prototype to the scope (so we have access to all its methods \r\n // and members). \r\n child.setPrototype(scope);\r\n \r\n // We want \"threadScope\" to be a new top-level scope, so set its parent \r\n // scope to null. This means that any variables created by assignments\r\n // will be properties of \"threadScope\".\r\n child.setParentScope(null);\r\n \r\n return child;\r\n }", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "public N getChild() {\n\t\tcheckRep();\n\t\treturn this.child;\n\t}", "@Override\r\n\tpublic Refactoring getParent() {\r\n\t\treturn this.parent;\r\n\t}", "int createParentTask();", "abstract Object build();", "public Ent getParent(){\n\t\treturn (Ent)bound.getParent();\n\t}", "public static void main(String args[]){\n\tOuter.createInner();\r\n\t//new Outer.Inner();\r\n\t//new Outer.new Inner();\r\n}", "@Override\n\tpublic ASTNode getParent() {\n\t\treturn this.parent;\n\t}", "private static void test3() {\n new Son();\n\n }", "@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}" ]
[ "0.6609148", "0.653678", "0.6423748", "0.6342534", "0.63326496", "0.62216014", "0.61851966", "0.6152199", "0.6047918", "0.60331213", "0.5963783", "0.5952065", "0.59163505", "0.58927375", "0.5872598", "0.58631206", "0.5817764", "0.5812552", "0.58015925", "0.5798297", "0.5783041", "0.570684", "0.5646005", "0.5636404", "0.56297505", "0.56258786", "0.56150323", "0.5613956", "0.56078976", "0.56035334", "0.5598666", "0.5598666", "0.5598666", "0.55986565", "0.5591618", "0.5591066", "0.55866003", "0.55817294", "0.55788636", "0.5567913", "0.55531555", "0.5538098", "0.55333126", "0.55298126", "0.55275226", "0.5523694", "0.55124474", "0.5507319", "0.5506056", "0.5503281", "0.55005616", "0.5472378", "0.5465345", "0.5463042", "0.5460795", "0.5458616", "0.5455862", "0.54557437", "0.54545593", "0.54542", "0.5453451", "0.5438492", "0.5436264", "0.5434675", "0.54253584", "0.54181945", "0.54118747", "0.54077005", "0.5406723", "0.5404918", "0.5404918", "0.5404918", "0.5404918", "0.54018205", "0.53991", "0.539347", "0.539347", "0.539347", "0.5390853", "0.53830725", "0.53775173", "0.5374541", "0.5368614", "0.5366698", "0.5361157", "0.535978", "0.53546405", "0.5352922", "0.5352922", "0.5347797", "0.534682", "0.534682", "0.5339378", "0.53270143", "0.5321353", "0.5319689", "0.53155905", "0.53154236", "0.53153104", "0.53076917", "0.52966416" ]
0.0
-1
Find the configured directory containing logos. The directory the logos are located in depends on the configuration of dataImagesDir in the config.xml. (Overrides will be applied so the actual config can be in overrides)
public static Path locateLogosDir(ServiceContext context) { ServletContext servletContext = null; if(context == null) { context = ServiceContext.get(); } if(context == null) { throw new RuntimeException("Null Context found!!!!"); } else if (context.getServlet() != null) { servletContext = context.getServlet().getServletContext(); } return locateLogosDir(servletContext, context.getApplicationContext(), context.getAppPath()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Path locateLogosDir(ServletContext context,\n ConfigurableApplicationContext applicationContext, Path appDir) {\n final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext);\n Path path = base.resolve(\"images\").resolve(\"logos\");\n try {\n java.nio.file.Files.createDirectories(path);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n return path;\n }", "public static Path locateHarvesterLogosDir(ServletContext context,\n ConfigurableApplicationContext applicationContext, Path appDir) {\n final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext);\n Path path = base.resolve(\"images\").resolve(\"harvesting\");\n try {\n java.nio.file.Files.createDirectories(path);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n return path;\n }", "public static Path locateHarvesterLogosDir(ServiceContext context) {\n ServletContext servletContext = null;\n if (context.getServlet() != null) {\n servletContext = context.getServlet().getServletContext();\n }\n return locateHarvesterLogosDir(servletContext,\n context.getApplicationContext(), context.getAppPath());\n }", "public static Path findImagePath(String imageName, Path logosDir) throws IOException {\n if (imageName.indexOf('.') > -1) {\n final Path imagePath = logosDir.resolve(imageName);\n if (java.nio.file.Files.exists(imagePath)) {\n return imagePath;\n }\n } else {\n try (DirectoryStream<Path> possibleLogos = java.nio.file.Files.newDirectoryStream(logosDir, imageName + \".*\")) {\n final Iterator<Path> pathIterator = possibleLogos.iterator();\n while (pathIterator.hasNext()) {\n final Path next = pathIterator.next();\n String ext = Files.getFileExtension(next.getFileName().toString());\n if (IMAGE_EXTENSIONS.contains(ext.toLowerCase())) {\n return next;\n }\n }\n }\n }\n\n return null;\n }", "public static File getLogDirectory() {\n\t\treturn LOG_DIRECTORY;\n\t}", "private String getConfigurationDirectory() throws UnsupportedEncodingException {\r\n\r\n String folder;\r\n if (ISphereJobLogExplorerPlugin.getDefault() != null) {\r\n // Executed, when started from a plug-in.\r\n folder = ISphereJobLogExplorerPlugin.getDefault().getStateLocation().toFile().getAbsolutePath() + File.separator + REPOSITORY_LOCATION\r\n + File.separator;\r\n FileHelper.ensureDirectory(folder);\r\n } else {\r\n // Executed, when started on a command line.\r\n URL url = getClass().getResource(DEFAULT_CONFIGURATION_FILE);\r\n if (url == null) {\r\n return null;\r\n }\r\n String resource = URLDecoder.decode(url.getFile(), \"utf-8\"); //$NON-NLS-1$\r\n folder = new File(resource).getParent() + File.separator;\r\n }\r\n return folder;\r\n }", "public String getImageDir() {\n return (String) data[GENERAL_IMAGE_DIR][PROP_VAL_VALUE];\n }", "private StringBuffer getLogDirectory() {\n final StringBuffer directory = new StringBuffer();\n directory.append(directoryProvider.get());\n if (directory.charAt(directory.length() - 1) != File.separatorChar) {\n directory.append(File.separatorChar);\n }\n return directory;\n }", "public static File getConfigDirectory() {\n return getDirectoryStoragePath(\"/NWD/config\", false);\n }", "abstract public String getImageResourcesDir();", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "private static void displayImagesDir(){\n System.out.println(IMAGES_DIR);\n }", "public static Path locateResourcesDir(ServletContext context,\n ApplicationContext applicationContext) {\n Path property = null;\n try {\n property = applicationContext.getBean(GeonetworkDataDirectory.class).getResourcesDir();\n } catch (NoSuchBeanDefinitionException e) {\n final String realPath = context.getRealPath(\"/WEB-INF/data/resources\");\n if (realPath != null) {\n property = IO.toPath(realPath);\n }\n }\n\n if (property == null) {\n return IO.toPath(\"resources\");\n } else {\n return property;\n }\n }", "public static Path locateResourcesDir(ServiceContext context) {\n if (context.getServlet() != null) {\n return locateResourcesDir(context.getServlet().getServletContext(), context.getApplicationContext());\n }\n\n return context.getBean(GeonetworkDataDirectory.class).getResourcesDir();\n }", "@Override\n public String getApplicationDirectory() {\n return Comm.getAppHost().getAppLogDirPath();\n }", "public File getLogDir() {\n return logDir;\n }", "@Override\n protected Path calculateAppPath(Path image) throws Exception {\n return image.resolve(\"usr\").resolve(\"lib\").resolve(\"APPDIR\");\n }", "public File getCommonDir()\n {\n return validatePath(ServerSettings.getInstance().getProperty(ServerSettings.COMMON_DIR));\n }", "public Path getDataDirectory();", "public static File getOzoneMetaDirPath(ConfigurationSource conf) {\n File dirPath = getDirectoryFromConfig(conf,\n HddsConfigKeys.OZONE_METADATA_DIRS, \"Ozone\");\n if (dirPath == null) {\n throw new IllegalArgumentException(\n HddsConfigKeys.OZONE_METADATA_DIRS + \" must be defined.\");\n }\n return dirPath;\n }", "private File getDataDir(){\n\t\tFile file = new File(this.configManager.getConfigDirectory() +\n\t\t\t\tFile.separator + \n\t\t\t\tDATA_DIR);\n\t\t\n\t\tif(!file.exists()){\n\t\t\tfile.mkdirs();\n\t\t}\n\t\t\n\t\treturn file;\n\t}", "public String getDir();", "private Optional<Path> dataSetDir() {\n Optional<String> dataSetDirProperty = demoProperties.dataSetDir();\n if (!dataSetDirProperty.isPresent()) {\n logger.info(\"Data set directory (app.demo.data-set-dir) is not set.\");\n return Optional.empty();\n }\n Path dataSetDirPath = Paths.get(dataSetDirProperty.get());\n if (!isReadableDir(dataSetDirPath)) {\n logger.warn(\n \"Data set directory '{}' doesn't exist or cannot be read. No external data sets will be loaded.\",\n dataSetDirPath.toAbsolutePath());\n return Optional.empty();\n }\n return Optional.of(dataSetDirPath);\n }", "public static String uploadDir() {\n\n String uploads = stringValue(\"treefs.uploads\");\n if(isNullOrEmpty(uploads)) {\n // default home location\n uploads = home() + File.separator + \"uploads\";\n } else {\n uploads = home() + File.separator + uploads;\n }\n\n System.out.println(\"uploadDir=\" + uploads);\n return uploads;\n }", "public static File searchForLog4jConfig() throws FileNotFoundException {\n return searchForFile(\n \"log4j2-test.xml\",\n asList(\n // Normal place to put log4j config\n \"src/test/resources\",\n // If no config is provided, use config from platform\n \"../../../swirlds-platform-core/src/test/resources\",\n // If no config is provided, use config from platform\n \"../swirlds-platform-core/src/test/resources\",\n // AWS location\n \"swirlds-platform-core/src/test/java/main/resources\"));\n }", "private String getDicDir() {\n\t\tString wDir = null;\n\n\t\tif (System.getProperties().containsKey(\"root\")) {\n\t\t\twDir = System.getProperty(\"root\");\n\t\t}\n\n\t\tif ((wDir == null || wDir.isEmpty()) && CPlatform.isMacOs())\n\t\t\twDir = new File(CPlatform.getUserHome(), \"Library/Spelling\")\n\t\t\t\t\t.getAbsolutePath();\n\n\t\tif (wDir == null || wDir.isEmpty())\n\t\t\twDir = \"/home/ff/projects/hunspell\";\n\t\treturn wDir;\n\t}", "public List<String> getManagedRepositoriesPaths(SecurityContext ctx, ImageData img) throws DSOutOfServiceException, DSAccessException {\n try {\n FilesetData fs = loadFileset(ctx, img);\n if (fs != null)\n return fs.getAbsolutePaths();\n } catch (Throwable t) {\n handleException(this, t, \"Could not get the file paths.\");\n }\n return Collections.emptyList();\n }", "abstract public String getDataResourcesDir();", "String getDir();", "private File findDefaultsFile() {\r\n String defaultsPath = \"/defaults/users.defaults.xml\";\r\n String xmlDir = server.getServerProperties().get(XML_DIR_KEY);\r\n return (xmlDir == null) ?\r\n new File (System.getProperty(\"user.dir\") + \"/xml\" + defaultsPath) :\r\n new File (xmlDir + defaultsPath);\r\n }", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "public static File getDirectoryFromConfig(ConfigurationSource conf,\n String key,\n String componentName) {\n final Collection<String> metadirs = conf.getTrimmedStringCollection(key);\n if (metadirs.size() > 1) {\n throw new IllegalArgumentException(\n \"Bad config setting \" + key +\n \". \" + componentName +\n \" does not support multiple metadata dirs currently\");\n }\n\n if (metadirs.size() == 1) {\n final File dbDirPath = new File(metadirs.iterator().next());\n if (!dbDirPath.mkdirs() && !dbDirPath.exists()) {\n throw new IllegalArgumentException(\"Unable to create directory \" +\n dbDirPath + \" specified in configuration setting \" +\n key);\n }\n try {\n Path path = dbDirPath.toPath();\n // Fetch the permissions for the respective component from the config\n String permissionValue = getPermissions(key, conf);\n String symbolicPermission = getSymbolicPermission(permissionValue);\n\n // Set the permissions for the directory\n Files.setPosixFilePermissions(path,\n PosixFilePermissions.fromString(symbolicPermission));\n } catch (Exception e) {\n throw new RuntimeException(\"Failed to set directory permissions for \" +\n dbDirPath + \": \" + e.getMessage(), e);\n }\n return dbDirPath;\n }\n\n return null;\n }", "public static File getScmDbDir(ConfigurationSource conf) {\n File metadataDir = getDirectoryFromConfig(conf,\n ScmConfigKeys.OZONE_SCM_DB_DIRS, \"SCM\");\n if (metadataDir != null) {\n return metadataDir;\n }\n\n LOG.warn(\"{} is not configured. We recommend adding this setting. \" +\n \"Falling back to {} instead.\",\n ScmConfigKeys.OZONE_SCM_DB_DIRS, HddsConfigKeys.OZONE_METADATA_DIRS);\n return getOzoneMetaDirPath(conf);\n }", "java.io.File getBaseDir();", "public Path getRemoteRepositoryBaseDir();", "static String setupNativeLibraryDirectories(Configuration config) throws IOException {\n List<String> nativeDirs = new ArrayList<>();\n try {\n String configuredNativeDirs = (String)config.getEntry(CybernodeImpl.getConfigComponent(),\n \"nativeLibDirectory\", \n String.class,\n null);\n if(configuredNativeDirs!=null) {\n String[] dirs = toStringArray(configuredNativeDirs);\n for(String dir : dirs) {\n if(!nativeDirs.contains(dir))\n nativeDirs.add(dir);\n }\n }\n } catch(ConfigurationException e) {\n logger.warn(\"Exception getting configured nativeLibDirectories\", e);\n }\n String nativeLibDirs = null;\n if(!nativeDirs.isEmpty()) {\n StringBuilder buffer = new StringBuilder();\n String[] dirs = nativeDirs.toArray(new String[0]);\n for(int i=0; i<dirs.length; i++) {\n File nativeDirectory = new File(dirs[i]);\n if(i>0)\n buffer.append(\" \");\n buffer.append(nativeDirectory.getCanonicalPath());\n }\n nativeLibDirs = buffer.toString();\n }\n return nativeLibDirs;\n }", "@Override\n public String getConfigPath() {\n String fs = String.valueOf(File.separatorChar);\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"scan\").append(fs);\n sb.append(\"config\").append(fs);\n sb.append(\"mesoTableConfig\").append(fs);\n\n return sb.toString();\n }", "private File getExternalPhotoStorageDir() {\n File file = new File(getExternalFilesDir(\n Environment.DIRECTORY_PICTURES), \"ApparelApp\");\n if (!file.exists() && !file.mkdirs()) {\n Log.e(TAG, \"Directory not created\");\n }\n return file;\n }", "public static File getYdfDirectory()\r\n/* 36: */ throws IOException\r\n/* 37: */ {\r\n/* 38: 39 */ log.finest(\"OSHandler.getYdfDirectory\");\r\n/* 39: 40 */ return ydfDirectory == null ? setYdfDirectory() : ydfDirectory;\r\n/* 40: */ }", "public Path getRepositoryBaseDir();", "private Path getDefaultLogsSessionDirectory(String sLogsDownloadPath)\n\t{\n\t\tPath sessionDirectory;\n\t\tString sCurrentIp = spotInfo.getUPMip();\t\t\n\t\ttry\n\t\t{\n\t\t\tsessionDirectory = Paths.get( sLogsDownloadPath, sCurrentIp+\"_\"+ EdtUtil.getDateTimeStamp( \"yyyy-MM-dd'T'HHmmss\" ) ); // The path is built with the download_path/target_unit_ip/timestamp/\n\t\t}\n\t\tcatch (RuntimeException e)\n\t\t{\n\t\t\tsessionDirectory = Paths.get( sLogsDownloadPath, sCurrentIp+\"_tmp\" );\n\t\t}\n\t\treturn sessionDirectory;\n\t}", "private synchronized Directory getDirectoryEmDisco() throws IOException{\r\n\t\tif(diretorioEmDisco == null){\r\n\t\t\tdiretorioEmDisco = FSDirectory.open(pastaDoIndice);\r\n\t\t}\r\n\t\t\r\n\t\treturn diretorioEmDisco;\r\n\t}", "private void extractDefaultGeneratorLogo() {\n try {\n PlatformUtil.extractResourceToUserConfigDir(getClass(), DEFAULT_GENERATOR_LOGO, true);\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"Error extracting report branding resource for generator logo \", ex); //NON-NLS\n }\n defaultGeneratorLogoPath = PlatformUtil.getUserConfigDirectory() + File.separator + DEFAULT_GENERATOR_LOGO;\n }", "public static String getImageDownloadDir(Context context) {\n if (downloadRootDir == null) {\n initFileDir(context);\n }\n return imageDownloadDir;\n }", "public File getStoreDir();", "private static Path getMediaDirectoryPath(FileSystem fs) throws IOException {\r\n\r\n Path mediaFolderInsideZipPath = null;\r\n for (String mediaFolderInsideZip : OOXML_MEDIA_FOLDERS) {\r\n mediaFolderInsideZipPath = fs.getPath(mediaFolderInsideZip);\r\n if (Files.exists(mediaFolderInsideZipPath)) {\r\n break;\r\n }\r\n }\r\n return mediaFolderInsideZipPath;\r\n }", "public String getConfigurationDirectory() {\n\t\treturn props.getProperty(ARGUMENT_CONFIGURATION_DIRECTORY);\n\t}", "public Path getRepositoryGroupBaseDir();", "public static String getConfigurationFilePath() {\n\n return getCloudTestRootPath() + File.separator + \"Config\"\n + File.separator + \"PluginConfig.xml\";\n }", "abstract public String getMspluginsDir();", "Object getDir();", "public static File getDataDirectory() {\n\t\treturn DATA_DIRECTORY;\n\t}", "@Override\r\n\t\tpublic String getDir()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private File nextLogDir() {\n if (logDirs.size() == 1) {\n return logDirs.get(0);\n } else {\n // count the number of logs in each parent directory (including 0 for empty directories\n final Multiset<String> logCount = HashMultiset.create();\n\n Utils.foreach(allLogs(), new Callable1<Log>() {\n @Override\n public void apply(Log log) {\n logCount.add(log.dir.getParent(), (int) (log.size() + 1));\n }\n });\n\n Utils.foreach(logDirs, new Callable1<File>() {\n @Override\n public void apply(File dir) {\n logCount.add(dir.getPath());\n }\n });\n\n // choose the directory with the least logs in it\n int minCount = Integer.MAX_VALUE;\n String min = \"max\";\n\n for (Multiset.Entry<String> entry : logCount.entrySet()) {\n if (entry.getCount() < minCount) {\n minCount = entry.getCount();\n min = entry.getElement();\n }\n }\n\n return new File(min);\n }\n }", "public String getLogfileLocation() {\n return logfileLocation;\n }", "public DicomDirectory getDicomDirectory() {\n\t\ttreeModel.getMapOfSOPInstanceUIDToReferencedFileName(this.parentFilePath);\t// initializes map using parentFilePath, ignore return value\n\t\treturn treeModel;\n\t}", "private File getConfigurationFolder(final File baseFolder) throws FileNotFoundException, IOException {\n final String METADATA_FOLDER_NAME = System.getProperty(\"com.bf.viaduct.metadata.location\", \"metadata\");\n final String CONFIG_FOLDER_NAME = \"config\";\n final String CONFIGURATION_FOLDER_NAME = \"configuration\";\n\n // If the \"metadata\" folder exists, use it, otherwise check for existence of the\n // \"configuration\" folder.\n File folder = new File(String.format(\"%s%s%s\", baseFolder.getCanonicalFile(), File.separatorChar,\n METADATA_FOLDER_NAME));\n if (!folder.isDirectory()) {\n // If the \"configuration\" folder exists, use it, otherwise use the \"config\" folder.\n folder = new File(String.format(\"%s%s%s\", baseFolder.getCanonicalFile(), File.separatorChar,\n CONFIGURATION_FOLDER_NAME));\n if (!folder.isDirectory()) {\n folder = new File(String.format(\"%s%s%s\", baseFolder.getCanonicalFile(), File.separatorChar,\n CONFIG_FOLDER_NAME));\n }\n }\n\n return folder;\n }", "String getDirectoryPath();", "private String getDataDirectory() {\n Session session = getSession();\n String dataDirectory;\n try {\n dataDirectory = (String) session.createSQLQuery(DATA_DIRECTORY_QUERY).list().get(0);\n } finally {\n releaseSession(session);\n }\n return dataDirectory;\n }", "String getDatabaseDirectoryPath();", "public File getFileFromDataDirs() {\n String[] dataDirs = IoTDBDescriptor.getInstance().getConfig().getDataDirs();\n String partialFileString =\n (sequence ? IoTDBConstant.SEQUENCE_FLODER_NAME : IoTDBConstant.UNSEQUENCE_FLODER_NAME)\n + File.separator\n + logicalStorageGroupName\n + File.separator\n + dataRegionId\n + File.separator\n + timePartitionId\n + File.separator\n + filename;\n for (String dataDir : dataDirs) {\n File file = FSFactoryProducer.getFSFactory().getFile(dataDir, partialFileString);\n if (file.exists()) {\n return file;\n }\n }\n return null;\n }", "public static String getCommonImagePropertiesFullPath() throws IOException {\n return getImagePropertiesFullPath(COMMON_IMAGEPROP_FILEPATH);\n }", "public static File getDBPath(ConfigurationSource conf, String key) {\n final File dbDirPath =\n getDirectoryFromConfig(conf, key, \"OM\");\n if (dbDirPath != null) {\n return dbDirPath;\n }\n\n LOG.warn(\"{} is not configured. We recommend adding this setting. \"\n + \"Falling back to {} instead.\", key,\n HddsConfigKeys.OZONE_METADATA_DIRS);\n return ServerUtils.getOzoneMetaDirPath(conf);\n }", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "private File getFolder() throws FileNotFoundException, IOException {\n File folder = getConfigurationFolder(new File(\".\").getCanonicalFile());\n if (!folder.isDirectory()) {\n folder = getConfigurationFolder(new File(getInstallationFolder().getPath())\n .getCanonicalFile().getParentFile().getParentFile());\n }\n\n return folder;\n }", "private static void initGameFolder() {\n\t\tString defaultFolder = System.getProperty(\"user.home\") + STENDHAL_FOLDER;\n\t\t/*\n\t\t * Add any previously unrecognized unix like systems here. These will\n\t\t * try to use ~/.config/stendhal if the user does not have saved data\n\t\t * in ~/stendhal.\n\t\t *\n\t\t * OS X is counted in here too, but should it?\n\t\t *\n\t\t * List taken from:\n\t\t * \thttp://mindprod.com/jgloss/properties.html#OSNAME\n\t\t */\n\t\tString unixLikes = \"AIX|Digital Unix|FreeBSD|HP UX|Irix|Linux|Mac OS X|Solaris\";\n\t\tString system = System.getProperty(\"os.name\");\n\t\tif (system.matches(unixLikes)) {\n\t\t\t// Check first if the user has important data in the default folder.\n\t\t\tFile f = new File(defaultFolder + \"user.dat\");\n\t\t\tif (!f.exists()) {\n\t\t\t\tgameFolder = System.getProperty(\"user.home\") + separator\n\t\t\t\t+ \".config\" + separator + STENDHAL_FOLDER;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// Everyone else should use the default top level directory in $HOME\n\t\tgameFolder = defaultFolder;\n\t}", "protected Path getBasePathForUser(User owner) {\n return getDirectories().getDevicesPath().resolve(owner.getName());\n }", "public static String getImageResoucesPath() {\n\t\t//return \"d:\\\\PBC\\\\GitHub\\\\Theia\\\\portal\\\\WebContent\\\\images\";\n\t\treturn \"/Users/anaswhb/Documents/Eclipse/Workspace/portal/WebContent/images\";\n\t\t\n\t}", "@Override\n\tpublic File getDefaultLogFile() {\n\t\tif (SystemUtils.IS_OS_WINDOWS) {\n\t\t\tfinal File[] foundFiles = getLogDirInternal().listFiles(new FilenameFilter() {\n\t\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\t\treturn name.startsWith(\"catalina.\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tArrays.sort(foundFiles, NameFileComparator.NAME_COMPARATOR);\n\t\t\tif (foundFiles.length > 0) {\n\t\t\t\treturn foundFiles[foundFiles.length - 1];\n\t\t\t}\n\t\t}\n\t\treturn super.getDefaultLogFile();\n\t}", "public static Object getInternalStorageDirectory() {\n\n FileObject root = Repository.getDefault().getDefaultFileSystem().getRoot();\n\n //FileObject dir = root.getFileObject(\"Storage\");\n \n //return dir;\n return null;\n }", "private void reloadIconBaseDirs() {\n\t\t\n\t\t// Load dirs from XDG_DATA_DIRS\n\t\tString xdg_dir_env = System.getenv(\"XDG_DATA_DIRS\");\n\t\tif(xdg_dir_env != null && !xdg_dir_env.isEmpty()) {\n\t\t\tString[] xdg_dirs = xdg_dir_env.split(\":\");\n\t\t\tfor(String xdg_dir : xdg_dirs) {\n\t\t\t\taddDirToList(new File(xdg_dir, \"icons\"), iconBaseDirs);\n\t\t\t\taddDirToList(new File(xdg_dir, \"pixmaps\"), iconBaseDirs);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Load user's icon dir\n\t\taddDirToList(new File(System.getProperty(\"user.home\"), \".icons\"), iconBaseDirs);\n\t\taddDirToList(new File(System.getProperty(\"user.home\"), \".local/share/icons\"), iconBaseDirs);\n\t\t\n\t}", "@Override\n public String getSystemDir() {\n return null;\n }", "FsPath baseDir();", "public static String getLogFilesPath() {\r\n return new File(TRACELOG).getAbsolutePath();\r\n }", "static File getAppDir(String app) {\n return Minecraft.a(app);\n }", "public File getDirectoryValue();", "public void testImagesDirectoryAccessible() {\n File file = new File(rootBlog.getRoot(), \"images\");\n assertEquals(file, new File(rootBlog.getImagesDirectory()));\n assertTrue(file.exists());\n }", "public void customRootDir() {\n //Be careful with case when res is false which means dir is not valid.\n boolean res = KOOM.getInstance().setRootDir(this.getCacheDir().getAbsolutePath());\n }", "public List<String> logDirectories() {\n return this.logDirectories;\n }", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "public static File getPlatformDir () {\n return new File (System.getProperty (\"netbeans.home\")); // NOI18N\n }", "public File getBaseDir() {\n if (baseDir == null) {\n try {\n setBasedir(\".\");\n } catch (BuildException ex) {\n ex.printStackTrace();\n }\n }\n return baseDir;\n }", "default Optional<Path> getProjectDir() {\n Optional<Path> projectDir = get(MICRONAUT_PROCESSING_PROJECT_DIR, Path.class);\n if (projectDir.isPresent()) {\n return projectDir;\n }\n // let's find the projectDir\n Optional<GeneratedFile> dummyFile = visitGeneratedFile(\"dummy\" + System.nanoTime());\n if (dummyFile.isPresent()) {\n URI uri = dummyFile.get().toURI();\n // happens in tests 'mem:///CLASS_OUTPUT/dummy'\n if (uri.getScheme() != null && !uri.getScheme().equals(\"mem\")) {\n // assume files are generated in 'build' or 'target' directories\n Path dummy = Paths.get(uri).normalize();\n while (dummy != null) {\n Path dummyFileName = dummy.getFileName();\n if (dummyFileName != null && (\"build\".equals(dummyFileName.toString()) || \"target\".equals(dummyFileName.toString()))) {\n projectDir = Optional.ofNullable(dummy.getParent());\n put(MICRONAUT_PROCESSING_PROJECT_DIR, dummy.getParent());\n break;\n }\n dummy = dummy.getParent();\n }\n }\n }\n\n return projectDir;\n }", "@Nullable\n public static PsiDirectory findResourceDirectory(@NotNull DataContext dataContext) {\n Project project = CommonDataKeys.PROJECT.getData(dataContext);\n if (project != null) {\n AbstractProjectViewPane pane = ProjectView.getInstance(project).getCurrentProjectViewPane();\n if (pane.getId().equals(AndroidProjectView.ID)) {\n return null;\n }\n }\n\n VirtualFile file = CommonDataKeys.VIRTUAL_FILE.getData(dataContext);\n if (file != null) {\n // See if it's inside a res folder (or is equal to a resource folder)\n Module module = PlatformCoreDataKeys.MODULE.getData(dataContext);\n if (module != null) {\n LocalResourceManager manager = LocalResourceManager.getInstance(module);\n if (manager != null) {\n VirtualFile resFolder = getResFolderParent(manager, file);\n if (resFolder != null) {\n return AndroidPsiUtils.getPsiDirectorySafely(module.getProject(), resFolder);\n }\n }\n }\n }\n\n return null;\n }", "public String getRepositoryRootFolder() {\n\t\tString userFolder = UnixPathUtil.unixPath(IdatrixPropertyUtil.getProperty(\"idatrix.metadata.reposity.root\",\"/data/ETL/reposity/\"));\n\t\tif (CloudApp.getInstance().getRepository() instanceof KettleFileRepository) {\n\t\t\tKettleFileRepository fileRepo = (KettleFileRepository) CloudApp.getInstance().getRepository();\n\t\t\tuserFolder = fileRepo.getRepositoryMeta().getBaseDirectory();\n\t\t}\n\t\treturn userFolder;\n\t}", "public File getGitRepoContainerDir() {\n return config.getGitReposParentDir();\n }", "public static String getConfigFolder() {\n\t\tString progArg = System.getProperty(ConfigConstants.CONFIG_DIR_PROG_ARGUMENT);\n\t\tif (progArg != null) {\n\t\t\treturn progArg;\n\t\t} else {\n\t\t\treturn configFolder;\n\t\t}\n\t}", "private ArrayList<String> getImagesPathList() {\n String MEDIA_IMAGES_PATH = \"CuraContents/images\";\n File fileImages = new File(Environment.getExternalStorageDirectory(), MEDIA_IMAGES_PATH);\n if (fileImages.isDirectory()) {\n File[] listImagesFile = fileImages.listFiles();\n ArrayList<String> imageFilesPathList = new ArrayList<>();\n for (File file1 : listImagesFile) {\n imageFilesPathList.add(file1.getAbsolutePath());\n }\n return imageFilesPathList;\n }\n return null;\n }", "private String getArcGISHomeDir() throws IOException {\n String arcgisHome = null;\n /* Not found in env, check system property */\n if (System.getProperty(ARCGISHOME_ENV) != null) {\n arcgisHome = System.getProperty(ARCGISHOME_ENV);\n }\n if(arcgisHome == null) {\n /* To make env lookup case insensitive */\n Map<String, String> envs = System.getenv();\n for (String envName : envs.keySet()) {\n if (envName.equalsIgnoreCase(ARCGISHOME_ENV)) {\n arcgisHome = envs.get(envName);\n }\n }\n }\n if(arcgisHome != null && !arcgisHome.endsWith(File.separator)) {\n arcgisHome += File.separator;\n }\n return arcgisHome;\n }", "public String getDataDirectory() {\n return dataDirectory;\n }", "public IPath getLogLocation() throws IllegalStateException {\n \t\t//make sure the log location is initialized if the instance location is known\n \t\tif (isInstanceLocationSet())\n \t\t\tassertLocationInitialized();\n \t\tFrameworkLog log = Activator.getDefault().getFrameworkLog();\n \t\tif (log != null) {\n \t\t\tjava.io.File file = log.getFile();\n \t\t\tif (file != null)\n \t\t\t\treturn new Path(file.getAbsolutePath());\n \t\t}\n \t\tif (location == null)\n \t\t\tthrow new IllegalStateException(CommonMessages.meta_instanceDataUnspecified);\n \t\treturn location.append(F_META_AREA).append(F_LOG);\n \t}", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "static String getDefaultConfigurationFileName() {\n // This is a file calles 'jmx-scandir.xml' located\n // in the user directory.\n final String user = System.getProperty(\"user.home\");\n final String defconf = user+File.separator+\"jmx-scandir.xml\";\n return defconf;\n }", "private static File getInstallFolderConfFile() throws IOException {\n String confFileName = UserPreferences.getAppName() + CONFIG_FILE_EXTENSION;\n String installFolder = PlatformUtil.getInstallPath();\n File installFolderEtc = new File(installFolder, ETC_FOLDER_NAME);\n File installFolderConfigFile = new File(installFolderEtc, confFileName);\n if (!installFolderConfigFile.exists()) {\n throw new IOException(\"Conf file could not be found\" + installFolderConfigFile.toString());\n }\n return installFolderConfigFile;\n }", "protected File getDir() {\n return hasSubdirs ? DatanodeUtil.idToBlockDir(baseDir,\n getBlockId()) : baseDir;\n }", "public static File systemInstallDir() {\n String systemInstallDir = System.getProperty(INSTALL_DIR_SYSTEM_PROP, \"../config\").trim();\n return new File(systemInstallDir);\n }", "abstract public String getRingResourcesDir();", "public static File getWorkspaceDir(BundleContext context)\n {\n return new File(getTargetDir(context), \"../../\");\n }", "protected File getRootDir() {\r\n\t\tif (rootDir == null) {\r\n\t\t\trootDir = new File(getProperties().getString(\"rootDir\"));\r\n\t\t\tif (! rootDir.exists())\r\n\t\t\t\tif (! rootDir.mkdirs())\r\n\t\t\t\t\tthrow new RuntimeException(\"Could not create root dir\");\r\n\t\t}\r\n\t\treturn rootDir;\r\n\t}", "public String getDirectory() {\n return directoryProperty().get();\n }" ]
[ "0.7391163", "0.6854571", "0.6710273", "0.6103184", "0.59402144", "0.5924601", "0.58756185", "0.5751237", "0.5749579", "0.5667328", "0.566042", "0.562562", "0.5577953", "0.55633926", "0.55601823", "0.5457713", "0.5446492", "0.54201937", "0.5369925", "0.53661627", "0.53537166", "0.53504366", "0.5338505", "0.5311684", "0.52898705", "0.5279171", "0.52649564", "0.5255513", "0.5241509", "0.52315605", "0.5213108", "0.52003163", "0.51704985", "0.51436955", "0.5119264", "0.5115844", "0.5087652", "0.5074823", "0.5065507", "0.5064185", "0.50622064", "0.5059466", "0.50590557", "0.50589406", "0.50449127", "0.5041011", "0.50381494", "0.5018849", "0.50181013", "0.50163597", "0.50161004", "0.5014433", "0.50122386", "0.49932358", "0.49747127", "0.4961325", "0.49584845", "0.49462333", "0.49443838", "0.49398097", "0.49384895", "0.49364308", "0.4936178", "0.49308124", "0.4924245", "0.49233323", "0.4921917", "0.49197337", "0.49185446", "0.4915757", "0.49145883", "0.49095687", "0.4909444", "0.4909263", "0.49030617", "0.4893697", "0.48897892", "0.48754168", "0.4870173", "0.4864079", "0.4854202", "0.48515332", "0.48514798", "0.48361596", "0.48345944", "0.48309928", "0.4828477", "0.48280936", "0.4818416", "0.48156506", "0.48121333", "0.48104355", "0.48088348", "0.48054954", "0.48047045", "0.47809634", "0.47768414", "0.4767291", "0.47660357", "0.4762189" ]
0.69966185
1
Look in the logos dir for an image with the name provided. If the imageName does not have an extension then the logos dir will be searched for all images with the provided name.
public static Path findImagePath(String imageName, Path logosDir) throws IOException { if (imageName.indexOf('.') > -1) { final Path imagePath = logosDir.resolve(imageName); if (java.nio.file.Files.exists(imagePath)) { return imagePath; } } else { try (DirectoryStream<Path> possibleLogos = java.nio.file.Files.newDirectoryStream(logosDir, imageName + ".*")) { final Iterator<Path> pathIterator = possibleLogos.iterator(); while (pathIterator.hasNext()) { final Path next = pathIterator.next(); String ext = Files.getFileExtension(next.getFileName().toString()); if (IMAGE_EXTENSIONS.contains(ext.toLowerCase())) { return next; } } } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic File getImage(String name) {\n\n\t\tFile returnValue = new File(RestService.imageDirectory + name + \".png\");\n\t\t\n\t\tif(returnValue.exists() && !returnValue.isDirectory()) \n\t\t{ \n\t\t return returnValue;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnValue = new File(RestService.imageDirectory + name + \".jpg\");\n\t\t\t\n\t\t\tif(returnValue.exists() && !returnValue.isDirectory()) \n\t\t\t{ \n\t\t\t return returnValue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "public static Image getImageIcons(String name) {\n\t\tString img[] = new String[] { \"iconsForm/frmEdit.png\",\n\t\t\t\t\"iconsForm/frmImp.png\", \"iconsForm/frmConsulta.png\",\n\t\t\t\t\"toolbar/btnIncluir.png\", \"toolbar/btnSalvar.png\",\n\t\t\t\t\"toolbar/btnApagar.png\", \"toolbar/btnLimpar.png\",\n\t\t\t\t\"toolbar/btnPesquisar.png\", \"toolbar/btnImprimir.png\",\n\t\t\t\t\"toolbar/btnSair.png\" };\n\n\t\ttry {\n\t\t\tfor (int i = 0; i < img.length; i++){\n\t\t\t\tif (img[i].toLowerCase().indexOf(name.toLowerCase()) > -1){\n\t\t\t\t\tSystem.out.println(dirImg + \"/\" + img[i]);\n\t\t\t\t\treturn new AImage(\" \", new WinUtils().getClass().getResourceAsStream(dirImg + \"/\" + img[i]));\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\treturn null;\n\t}", "public static InputStream getImageWithName(String name) {\n\t\tResourceHandler resourceHandler = getResourceHandler(IMAGES_DIR);\n\t\treturn resourceHandler.getResource(resourceHandler.resourceLookup(name));\n\t\t\n\t}", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/images/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Image> readImage(\n @Path(\"name\") String name);", "public Image loadImage(String name) {\n String filename = \"images/\" + name;\n return new ImageIcon(filename).getImage();\n }", "public static Image loadImage(String name) {\r\n Image result = null;\r\n try {\r\n result = ImageIO.read(IO.class.getClassLoader().getResourceAsStream(\"data/\" + name));\r\n } catch (Exception ex) {\r\n } \r\n return result;\r\n }", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "public static ImageIcon get(String subdir, String name) {\n ImageIcon icon = getIfAvailable(subdir, name);\n if (icon == null) {\n String ext = name.indexOf('.') != -1 ? \"\" : \".png\";\n throw new NullPointerException(\"/images/\" + subdir + \"/\" + name + ext + \" not found\");\n }\n return icon;\n }", "private ImageIcon getMyImageIcon(String name) {\n\t\tString fullName = \"/images\" + '/' + name + \".gif\";\n\t\treturn getMyImage(fullName);\n\t}", "public void setImageName(String _imageName) {\r\n\t\tthis._imageName = _imageName;\r\n\t}", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/images/{name}/status\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Image> readImageStatus(\n @Path(\"name\") String name);", "public BufferedImage GetImage(String name) { return ImageList.get(name); }", "private void imageSearch(ArrayList<Html> src) {\n // loop through the Html objects\n for(Html page : src) {\n\n // Temp List for improved readability\n ArrayList<Image> images = page.getImages();\n\n // loop through the corresponding images\n for(Image i : images) {\n if(i.getName().equals(this.fileName)) {\n this.numPagesDisplayed++;\n this.pageList.add(page.getLocalPath());\n }\n }\n }\n }", "public BufferedImage getLocal(final String name) {\r\n\t\tfinal int index=names.indexOf(name);\r\n\t\tif (index<0) return null;\r\n\t\treturn images.get(index);\r\n\t}", "public static Path locateLogosDir(ServletContext context,\n ConfigurableApplicationContext applicationContext, Path appDir) {\n final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext);\n Path path = base.resolve(\"images\").resolve(\"logos\");\n try {\n java.nio.file.Files.createDirectories(path);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n return path;\n }", "public static void addImages(String imageName, String requestImage) throws FileNotFoundException {\r\n\t\tFileName = new File(System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\resources\\\\ImageBanks\\\\\"+imageName+\".jpg\");\r\n\t\t\r\n\t\tbuilder.addBinaryBody(requestImage, new FileInputStream(FileName), ContentType.create(\"image/jpeg\"), FileName.getName());\r\n\t}", "private void fillImagesInDirectory() throws IOException {\n // get the list of all files (including directories) in the directory of interest\n File[] fileArray = directory.listFiles();\n assert fileArray != null;\n for (File file : fileArray) {\n // the file is an image, then add it\n if (isImage(file)) {\n ImageFile imageFile = new ImageFile(file.getAbsolutePath());\n // if the image is already saved, reuse it\n if (centralController.getImageFileController().hasImageFile(imageFile)) {\n imagesInDirectory.add(centralController.getImageFileController().getImageFile(imageFile));\n } else {\n imagesInDirectory.add(imageFile);\n }\n }\n }\n }", "private String getTipoImage(String nameImage) {\n\t\tString retorno = \"\";\n\t\tString[] textoSeparado = nameImage.split(\"\\\\.\");\n\n\t\tif (textoSeparado != null && textoSeparado.length != 0)\n\t\t\tswitch (textoSeparado[textoSeparado.length - 1]) {\n\t\t\tcase \"jpg\":\n\t\t\t\tretorno = \"image/jpeg\";\n\t\t\t\tbreak;\n\t\t\tcase \"png\":\n\t\t\t\tretorno = \"image/png\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tretorno = \"image/\" + textoSeparado[textoSeparado.length - 1];\n\t\t\t}\n\n\t\treturn retorno;\n\t}", "private void extractImage(String inputImageName) throws FileNotFoundException, IOException, InvalidFormatException {\n\t\t@SuppressWarnings(\"resource\")\n\t\tHWPFDocument doc = new HWPFDocument(new FileInputStream(inputImageName));\n//\t\tXSSFWorkbook doc = new XSSFWorkbook(new File(inputImageName));\n\t\tList<Picture> pics = doc.getPicturesTable().getAllPictures();\n//\t\tList<XSSFPictureData> pics = doc.getAllPictures();\n\t\tfor (int i = 0; i < pics.size(); i++) {\n\t\t\tPicture pic = (Picture) pics.get(i);\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(inputImageName + \"Apache_\");\n\t\t\toutputStream.write(pic.getContent());\n\t\t\toutputStream.close();\n\t\t}\n\t\tSystem.out.println(\"Image extracted successfully\");\n\t}", "public static BufferedImage readImage(String imageName) {\n\t\tBufferedImage image = null;\n\t\ttry {\n\t\t\tURL url = Main.class.getResource(\"/\"+imageName);\n\t\t\tString file = (url.getPath());\n\t\t\tSystem.out.println(url);\n\t\t\timage = ImageIO.read(new File(file));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[Error in DisplayObject.java:readImage] Could not read image \" + imageName);\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn image;\n\t}", "private Bitmap imageLoadedFromInternalStorage(String imageName)\n\t{\n\t\ttry {\n\t\t\tFile f=new File(getApplicationContext().getDir(\"imageDir\", MODE_PRIVATE).getPath()+\"/\", imageName.replaceFirst(\"/\", \"\") +\".jpg\");\n\t\t\tBitmap b = BitmapFactory.decodeStream(new FileInputStream(f));\n\t\t\treturn b;\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\ttry{\n\t\t\t\tFile f=new File(getApplicationContext().getDir(\"imageDir\", MODE_PRIVATE).getPath()+\"/\", getLogoID(shopName).replaceFirst(\"/\", \"\") +\".jpg\");\n\t\t\t\tBitmap c = BitmapFactory.decodeStream(new FileInputStream(f));\n\t\t\t\treturn c;\n\t\t\t\t\n\t\t\t} catch (Exception e2)\t{\n\t\t\t\t\n\t\t\t\tint lId = getResources().getIdentifier(\"shoplogo_no_image\", \"drawable\", \"com.loyal3.loyal3\");\n\t\t\t\t\n\t\t\t\tBitmap noImage = BitmapFactory.decodeResource(getResources(), lId);\n\t\t\t\t\n\t\t\t\treturn noImage;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "private static ArrayList<String> getImagesInFileSystem() {\n\t\t// get file list in database\n\t\tArrayList<String> fileNameList = new ArrayList<String>();\n\t\t\n\t\tFile folder = new File(IMAGE_DIRECTORY);\n\t File[] listOfFiles = folder.listFiles();\n\t \n\t for (File currFile : listOfFiles) {\n\t if (currFile.isFile() && !currFile.getName().startsWith(\".\")) {\n\t \t fileNameList.add(currFile.getName());\n\t }\n\t }\n\t \n\t return fileNameList;\n\t}", "private String getImageName() {\n if (options.containsKey(\"image\")) {\n String imageName = (String)options.get(\"image\");\n if (StringUtils.hasText(imageName)) {\n return imageName;\n }\n }\n\n return \"\";\n /*\n func (s *executor) getImageName() (string, error) {\n\tif s.options.Image != \"\" {\n\t\timage := s.Build.GetAllVariables().ExpandValue(s.options.Image)\n\t\terr := s.verifyAllowedImage(s.options.Image, \"images\", s.Config.Docker.AllowedImages, []string{s.Config.Docker.Image})\n\t\tif err != nil {\n\t\t\treturn \"\", err\n\t\t}\n\t\treturn image, nil\n\t}\n\n\tif s.Config.Docker.Image == \"\" {\n\t\treturn \"\", errors.New(\"No Docker image specified to run the build in\")\n\t}\n\n\treturn s.Config.Docker.Image, nil\n}\n */\n }", "public static BufferedImage loadImage(String imageName) {\n try {\n InputStream inputStream = TextureRegistry.class.getClassLoader().getResourceAsStream(\"images/\" + imageName);\n if (inputStream == null) {\n System.err.println(\"Image file '\" + imageName + \"' could not be found.\");\n System.exit(1);\n }\n\n return ImageIO.read(inputStream);\n } catch (IOException ex) {\n System.err.println(\"Failed to load image '\" + imageName + \"'.\");\n ex.printStackTrace();\n System.exit(1);\n return null;\n }\n }", "public static String getImageName( final BioModule module ) throws ConfigNotFoundException {\n\t\tfinal String className = module.getClass().getName();\n\t\tfinal String simpleName = getDockerClassName( module );\n\t\tString imageName = simpleName.substring( 0, 1 ).toLowerCase();\n\t\tif( useBasicBashImg( module ) ) imageName = BLJ_BASH;\n\t\telse if (module instanceof JavaModule ) imageName = \"biolockj_controller\"; //TODO: this whole process should be replaced with Config and Module methods.\n\t\telse if( module instanceof GenMod ) imageName = Config.requireString( module, Constants.DOCKER_CONTAINER_NAME );\n\t\telse {\n\t\t\tfor( int i = 2; i < simpleName.length() + 1; i++ ) {\n\t\t\t\tfinal int len = imageName.toString().length();\n\t\t\t\tfinal String prevChar = imageName.toString().substring( len - 1, len );\n\t\t\t\tfinal String val = simpleName.substring( i - 1, i );\n\t\t\t\tif( !prevChar.equals( IMAGE_NAME_DELIM ) && !val.equals( IMAGE_NAME_DELIM ) &&\n\t\t\t\t\tval.equals( val.toUpperCase() ) && !NumberUtils.isNumber( val ) )\n\t\t\t\t\timageName += IMAGE_NAME_DELIM + val.toLowerCase();\n\t\t\t\telse if( !prevChar.equals( IMAGE_NAME_DELIM ) ||\n\t\t\t\t\tprevChar.equals( IMAGE_NAME_DELIM ) && !val.equals( IMAGE_NAME_DELIM ) ) imageName += val.toLowerCase();\n\t\t\t}\n\n\t\t\tif( hasCustomDockerDB( module ) && ( className.toLowerCase().contains( \"knead_data\" ) ||\n\t\t\t\tclassName.toLowerCase().contains( \"kraken\" ) ) ) imageName += DB_FREE;\n\t\t}\n\t\t\n\t\tLog.info( DockerUtil.class, \"Map: Class [\" + className + \"] <--> Docker Image [ \" + imageName + \" ]\" );\n\t\treturn imageName;\n\t}", "public ArrayList<ArrayList<String>> getLogs(ImageFile image) {\r\n ArrayList<ArrayList<String>> log = new ArrayList<>();\r\n String[] nameParts = image.getOriginalName().split(\"\\\\.\");\r\n for (ArrayList<String> logs : allLogs){\r\n if (logs.get(0).contains(nameParts[0]) && logs.get(0).contains(nameParts[1])){\r\n log.add(logs);\r\n }\r\n }\r\n return log;\r\n }", "private BufferedImage loadPic(String name) {\n\t\tBufferedImage pic=null;\n\t\ttry {\n\t\t\tpic = ImageIO.read(new File(\"store/\"+name));\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t\treturn pic;\n\t}", "private ImageIcon openImageIcon(String name){\n return new ImageIcon(\n getClass().getResource(name)\n );\n }", "public static ImageIcon loadImage(String name) throws FileNotFoundException {\n ImageIcon image = null;\n URL url = StitchingGuiUtils.getFigureResource(name);\n if (url != null) {\n java.awt.Image img = java.awt.Toolkit.getDefaultToolkit().createImage(url);\n if (img != null) {\n image = new ImageIcon(img);\n }\n }\n\n if (image == null)\n throw new FileNotFoundException(\"ERROR: Loading image \" + name + \" not found.\");\n\n return image;\n }", "protected BufferedImage loadImage(String nameOfFile)\n {\n BufferedImage img;\n try{\n img= ImageIO.read(new File(\"\"+nameOfFile));\n return img;\n }\n catch(IOException e)\n {\n System.out.println(e);\n }\n return null;\n }", "private Image getImage(String name) {\n InputStream in =\n getClass().getResourceAsStream(\"/canfield/resources/\" + name);\n try {\n return ImageIO.read(in);\n } catch (IOException excp) {\n return null;\n }\n }", "private static void loadImagesInDirectory(String dir){\n\t\tFile file = new File(Files.localize(\"images\\\\\"+dir));\n\t\tassert file.isDirectory();\n\t\n\t\tFile[] files = file.listFiles();\n\t\tfor(File f : files){\n\t\t\tif(isImageFile(f)){\n\t\t\t\tString name = dir+\"\\\\\"+f.getName();\n\t\t\t\tint i = name.lastIndexOf('.');\n\t\t\t\tassert i != -1;\n\t\t\t\tname = name.substring(0, i).replaceAll(\"\\\\\\\\\", \"/\");\n\t\t\t\t//Image image = load(f,true);\n\t\t\t\tImageIcon image;\n\t\t\t\tFile f2 = new File(f.getAbsolutePath()+\".anim\");\n\t\t\t\tif(f2.exists()){\n\t\t\t\t\timage = evaluateAnimFile(dir,f2,load(f,true));\n\t\t\t\t}else{\n\t\t\t\t\timage = new ImageIcon(f.getAbsolutePath());\n\t\t\t\t}\n\t\t\t\tdebug(\"Loaded image \"+name+\" as \"+f.getAbsolutePath());\n\t\t\t\timages.put(name, image);\n\t\t\t}else if(f.isDirectory()){\n\t\t\t\tloadImagesInDirectory(dir+\"\\\\\"+f.getName());\n\t\t\t}\n\t\t}\n\t}", "public void logScreen(String imageName) {\n this.logScreen(imageName, imageName, thumbHeight, thumbWidth);\n }", "public void setImgName(String imgName) {\n this.imgName = imgName == null ? null : imgName.trim();\n }", "private static void displayImagesDir(){\n System.out.println(IMAGES_DIR);\n }", "public ImageContainer getImage(String username, String imageName) {\r\n\t\tImageContainer ic;\r\n\t\tPoint p = StaticFunctions.hashToPoint(username, imageName);\r\n\t\t//If the image is saved on the bootstrap, loadImageContainer, otherwise start routing to the destinationPeer \r\n\t\tif(lookup(p)) {\r\n\t\t\ttry {\r\n\t\t\t\tic = loadImageContainer(username, imageName);\r\n\t\t\t\treturn ic;\r\n\t\t\t} catch (ClassNotFoundException | IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tString destinationPeerIP = routing(p).getIp_adresse();\r\n\t\t\tImage img = new PeerClient().getImage(destinationPeerIP, username, imageName);\r\n\t\t if(img != null) {\r\n\t\t \t ic = RestUtils.convertImgToIc(img);\r\n\t\t \t return ic;\r\n\t\t }\r\n\t\t}\r\n\t\treturn null;\r\n\t\t\r\n\t}", "private boolean checkImage(int row, int col, String imageName) {\n\t\tDirectionalPanel[] room = rooms[row][col];\n\t\tfor (int i = 0; i < room.length; i++) {\n\t\t\tString roomImageName = room[i].getImageName();\n\t\t\tif (roomImageName != null && roomImageName.equals(imageName)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n public boolean accept(File dir, String name){\r\n if(name.toLowerCase().endsWith(\".jpg\")){\r\n return false;\r\n }\r\n return true;\r\n }", "public Bitmap loadImageFromStorage(String name) {\n\n try {\n ContextWrapper cw = new ContextWrapper(getApplicationContext());\n File directory = cw.getDir(\"imageProfile\", Context.MODE_PRIVATE);\n\n File f=new File(directory.getAbsolutePath(), name);\n Bitmap b = BitmapFactory.decodeStream(new FileInputStream(f));\n return b;\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n }\n }", "public final void setLogoImageName(String logoImageName) {\n\t\tthis.logoImageName = logoImageName;\n\t}", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/images/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Image> readImage(\n @Path(\"name\") String name, \n @QueryMap ReadImage queryParameters);", "private String getNameImage(String imagePath) {\n\t\treturn imagePath != null ? imagePath.replace(pathFileBase, \"\") : \"\";\n\t}", "static public void addImage(AppImage image) {\n boolean already_exists = false;\n for (AppImage cached_image : images) {\n String reposited_path = cached_image.file.getAbsolutePath();\n String image_path = image.file.getAbsolutePath();\n if (reposited_path.equals(image_path)) {\n already_exists = true;\n }\n }\n if (!already_exists) images.add(0, image);\n }", "private void searchImages()\n {\n searchWeb = false;\n search();\n }", "public void showImage( final String pImageName )\n {\n URL vImageURL = this.getClass().getClassLoader().getResource( pImageName );\n if ( vImageURL == null )\n System.out.println( \"image not found\" );\n else { \n ImageIcon vIcon = new ImageIcon( vImageURL );\n this.aImage.setIcon( vIcon );\n this.aMyFrame.pack();\n }\n }", "public void testImagesDirectoryAccessible() {\n File file = new File(rootBlog.getRoot(), \"images\");\n assertEquals(file, new File(rootBlog.getImagesDirectory()));\n assertTrue(file.exists());\n }", "public void openImage(String name) throws ViewerException {\n\n\t}", "public ArrayList<ImageFile> getAllImagesUnderDirectory() throws IOException {\n return allImagesUnderDirectory;\n }", "private BufferedImage[] loadImages(String directory, BufferedImage[] img) throws Exception {\n\t\tFile dir = new File(directory);\n\t\tFile[] files = dir.listFiles();\n\t\tArrays.sort(files, (s, t) -> s.getName().compareTo(t.getName()));\n\t\t\n\t\timg = new BufferedImage[files.length];\n\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\timg[i] = ImageIO.read(files[i]);\n\t\t}\n\t\treturn img;\n\t}", "private File lookupIconInTheme(String iconName, IconTheme theme, int iconSize) {\n\t\tfor(IconTheme.Directory subdir : theme.directories) {\n\t\t\tfor(File iconBaseDir : iconBaseDirs) {\n\t\t\t\t// Directory of icons\n\t\t\t\tFile iconDir = new File(iconBaseDir, theme.name + File.separator + subdir.name);\n\t\t\t\tif(directoryMatchesSize(subdir, iconSize)) {\n\t\t\t\t\t// Directory has right size, find matching extension\n\t\t\t\t\tfor(String ext : EXTENSIONS) {\n\t\t\t\t\t\tFile icon = new File(iconDir, iconName + \".\" + ext);\n\t\t\t\t\t\tif(icon.exists()) {\n\t\t\t\t\t\t\treturn icon;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\n\t\t\t}\n\t\t}\n\t\n\t\t\n\t\t// Try to find an the best fitting match\n\t\tFile best_match = null;\n\t\tint minDistance = Integer.MAX_VALUE;\n\t\tfor(IconTheme.Directory subdir : theme.directories) {\n\t\t\tfor(File iconBaseDir : iconBaseDirs) {\n\t\t\t\t// Directory of icons\n\t\t\t\tFile iconDir = new File(iconBaseDir, theme.name + File.separator + subdir.name);\n\t\t\t\tint distance = directorySizeDistance(subdir, iconSize);\n\t\t\t\tif(distance < minDistance) {\n\t\t\t\t\tfor(String ext : EXTENSIONS) {\n\t\t\t\t\t\tFile icon = new File(iconDir, iconName + \".\" + ext);\n\t\t\t\t\t\tif(icon.exists()) {\n\t\t\t\t\t\t\tbest_match = icon;\n\t\t\t\t\t\t\tminDistance = distance;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn best_match;\n\t}", "public static Image loadActor(String name) {\n\t\treturn loadBitmap(ACTORS_DIR + name);\n\t}", "public void getImagePath(String imagePath);", "public void setImageName(String name) {\n imageToInsert = name;\n}", "@Override\r\n\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\treturn isJpg(name); \r\n\t\t\t}", "@Override\n\tpublic List<Image> findAllImage() {\n\t\treturn new ImageDaoImpl().findAllImage();\n\t}", "protected ImageDescriptor getImageDescriptorFromPath( String imageName) {\r\n\t\tURL url = FileLocator.find(getBundle(), new Path(imageName), null);\r\n\t\treturn ImageDescriptor.createFromURL(url);\r\n\t}", "private String image_path(String path, String name, String ext) {\n return path + \"/\" + name + \".\" + ext;\n }", "protected URL findResource(String name)\n\t{\n\t\tObject entryImg = m_entries.get(name);\n\t\t\n\t\t/* Return null when not found */\n\t\tif (entryImg == null)\n\t\t\treturn null;\n\n\t\ttry \n\t\t{\n\t\t\tURL url = new URL(\"jar\",\n\t\t\t\t\t\t\t m_url.getHost(),\n\t\t\t\t\t\t\t \"file:\" + m_url.getPath() + \"!/\" + name);\n\t\t\treturn url;\n\t\t}\n\t\tcatch (MalformedURLException e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public void initializeImages() {\n\n File dir = new File(\"Images\");\n if (!dir.exists()) {\n boolean success = dir.mkdir();\n System.out.println(\"Images directory created!\");\n }\n }", "public Photo(String name, String dir){\r\n\t\tthis.name = name;\r\n\t\tthis.dir = dir;\r\n\t\tthis.extension = ImageTypeChecker.getExtension(name);\r\n\t\tthis.originalName = ImageTypeChecker.removeExtension(name);\r\n\t\tthis.id = nextId;\r\n\t\tnextId += 1;\r\n\t\ttags = new LinkedHashMap<String, Tag>(); //key: tag name, value: Tag object\r\n\t\tprevNames = new LinkedHashSet<String>();\r\n\t\t\r\n\t\t//set handler for each instance of a photo\r\n\t\ttry{\r\n\t\t\tString workingDir = System.getProperty(\"user.dir\");\r\n\t\t\tString fileName = workingDir + this.originalName + \".log\";\r\n\t\t\thandler = new FileHandler(fileName, true);\r\n\t\t}\r\n\t\tcatch (IOException e) { \r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\thandler.setFormatter(new SimpleFormatter());\r\n\t\t\tlogger.addHandler(handler);\r\n\t\t\tlogger.setLevel(Level.ALL);\r\n\t\t}", "private void loadImages(BufferedImage[] images, String direction) {\n for (int i = 0; i < images.length; i++) {\n String fileName = direction + (i + 1);\n images[i] = GameManager.getResources().getMonsterImages().get(\n fileName);\n }\n\n }", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/images/{name}/status\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Image> readImageStatus(\n @Path(\"name\") String name, \n @QueryMap ReadImageStatus queryParameters);", "public boolean displayedDepartmentEmployeeImageMatch(List<String> names, List<String> images) {\n List<String> nonMatchingRecords = new ArrayList<>();\n for (int i = 0; i < names.size(); i++) {\n\n String imageSource = images.get(i).toLowerCase();\n String imageFileName = createImageName(names.get(i).toLowerCase());\n\n if (!imageSource.contains(imageFileName)) {\n nonMatchingRecords.add(names.get(i));\n }\n }\n if (nonMatchingRecords.size() > 0) {\n Reporter.log(\"FAILURE: Names of employees with non matching images\" +\n \" or inconsistently named imageFiles: \" +\n Arrays.toString(nonMatchingRecords.toArray()), true);\n return false;\n }\n return true;\n }", "public void setImage(String imageName)\n {\n if (imageName == null)\n {\n setImage((Image) null);\n }\n else\n {\n setImage(new Image(imageName));\n }\n }", "public void deleteImage(Context context, String name) {\n ContextWrapper cw = new ContextWrapper(context);\n String name_ = AppConfig.RECIPE_BOOK_FOLDER_NAME; //Folder name in device android/data/\n File directory = cw.getDir(name_, Context.MODE_PRIVATE);\n try {\n File f = new File(directory, name + \".png\");\n if (f.exists()) {\n f.delete();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void addImage(int row, int col, String imageName,\n\t\t\t\t\t\t\t\t\t\t\t\tString imageFileName) {\n\t\tDirectionalPanel panel = nextEmpty(row, col);\n\t\tif (panel != null) {\n\t\t\tpanel.setImage(imageFileName);\n\t\t\tpanel.setImageName(imageName);\n\t\t\tpanel.invalidate();\n\t\t\tpanel.repaint();\n\t\t}\n\t}", "public static Path locateHarvesterLogosDir(ServletContext context,\n ConfigurableApplicationContext applicationContext, Path appDir) {\n final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext);\n Path path = base.resolve(\"images\").resolve(\"harvesting\");\n try {\n java.nio.file.Files.createDirectories(path);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n return path;\n }", "@SuppressWarnings(\"unused\")\n\tprotected void updateLabel (String name) {\n Image image = new ImageIcon(\"Resource/\" + name + \".png\").getImage().getScaledInstance(200, 200, Image.SCALE_SMOOTH);\n ImageIcon icon = new ImageIcon(image);\n picture.setIcon(icon);\n if (icon != null) {\n picture.setText(null);\n } else {\n picture.setText(\"Image not found\");\n }\n }", "public static BufferedImage getImage(String name) {\r\n\t\treturn (BufferedImage) getInstance().addResource(name);\r\n\t}", "private String makeImageUri(String name) {\n\t\tString image = name;\n\t\t// remove all white spaces\n\t\tString in = image.replaceAll(\"\\\\s+\", \"\");\n\t\t// turn to lower case\n\t\tString iname = in.toLowerCase();\n\t\tSystem.out.println(\"iName is: \" + iname);\n\t\tString mDrawableName = iname;\n\t\t// get the resId of the image\n\t\tint resID = getResources().getIdentifier(mDrawableName, \"drawable\",\n\t\t\t\tgetPackageName());\n\n\t\t// resID is notfound show default image\n\t\tif (resID == 0) {\n\t\t\tresID = getResources().getIdentifier(\"default_place\", \"drawable\",\n\t\t\t\t\tgetPackageName());\n\t\t}\n\n\t\t// make the uri\n\t\tUri imageURI = Uri.parse(\"android.resource://\" + getPackageName() + \"/\"\n\t\t\t\t+ resID);\n\t\timage = imageURI.toString();\n\t\treturn image;\n\t}", "public static String getImagePathname(Bundle data) {\n // Extract the path to the image file from the Bundle, which\n // should be stored using the IMAGE_PATHNAME key.\n return data.getString(IMAGE_PATHNAME);\n }", "public void launchImageActivity(String name){\n Intent intent = new Intent(this, ImageActivity.class);\n intent.putExtra(\"name\",name);\n startActivity(intent);\n finish();\n }", "public static ImageIcon get(String name) {\n return get(\"\", name);\n }", "public String listImageNames() {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tfor(User user : userList) {\r\n\t\t\tsb.append(listImageNames(user.getName()) + \"\\n\");\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "void setPlayerImages(String playerName) {\n if (playerName.equals(\"player\")) {\n List<Image> images = diceImage.getImageList(player1.getColor(), player1.getLastRoll()); // dice face images corresponding to the player rolls.\n playerDice1.setImage(images.get(0));\n playerDice2.setImage(images.get(1));\n playerDice3.setImage(images.get(2));\n } else {\n List<Image> images = diceImage.getImageList(computer.getColor(), computer.getLastRoll());\n computerDice1.setImage(images.get(0));\n computerDice2.setImage(images.get(1));\n computerDice3.setImage(images.get(2));\n }\n }", "public static void copyChatImageExtStg(String imageName) {\n File fromFile = new File(PathUtil.getInternalChatImageTempUri().getPath());\n if(fromFile.exists()) {\n File toFile = PathUtil.createExternalChatImageFile(imageName);\n copy(fromFile, toFile);\n //LogUtil.e(\"StorageUtil\", \"copyChatImageExtStg\");\n }\n }", "public static JLabel createImageLabel(String imageName) throws IOException {\r\n\t\tString imgPath = \"resources/icons/gui/\" + imageName;\r\n\t\tImage img = ImageIO.read(new File(imgPath));\r\n\t\treturn new JLabel(new ImageIcon(img));\r\n\t}", "public void logImageVerificationResult(ImageVerificationResult result, String imageName) {\n this.logImageVerificationResult(result, imageName, thumbHeight, thumbWidth);\n }", "void saveImgToDir(String resultsPath, String imgName, String addToImgName, Mat mat) {\r\n\r\n\t\t\tImgcodecs.imwrite(resultsPath + \"\\\\\"\r\n\t\t\t\t\t+ imgName.substring(0, imgName.length() - 4) + addToImgName\r\n\t\t\t\t\t+ imgName.substring(imgName.length() - 4,\r\n\t\t\t\t\t\t\timgName.length()),\r\n\t\t\t\t\tmat);\r\n\t}", "private void fillAllImagesUnderDirectory(File directory) throws IOException {\n // get the list of all files (including directories) in the directory of interest\n File[] fileArray = directory.listFiles();\n assert fileArray != null;\n\n for (File file : fileArray) {\n // if the file is an image, then add it\n if (isImage(file)) {\n ImageFile imageFile = new ImageFile(file.getAbsolutePath());\n // if the image is already saved, reuse it\n if (centralController.getImageFileController().hasImageFile(imageFile)) {\n allImagesUnderDirectory\n .add(centralController.getImageFileController().getImageFile(imageFile));\n } else if (imagesInDirectory.contains(imageFile)) {\n allImagesUnderDirectory.add(imagesInDirectory.get(imagesInDirectory.indexOf(imageFile)));\n } else {\n allImagesUnderDirectory.add(imageFile);\n }\n } else if (file.isDirectory()) {\n fillAllImagesUnderDirectory(file);\n }\n }\n }", "public static void searchForImageReferences(File rootDir, FilenameFilter fileFilter) {\n \t\tfor (File file : rootDir.listFiles()) {\n \t\t\tif (file.isDirectory()) {\n \t\t\t\tsearchForImageReferences(file, fileFilter);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\ttry {\n \t\t\t\tif (fileFilter.accept(rootDir, file.getName())) {\n \t\t\t\t\tif (MapTool.getFrame() != null) {\n \t\t\t\t\t\tMapTool.getFrame().setStatusMessage(\"Caching image reference: \" + file.getName());\n \t\t\t\t\t}\n \t\t\t\t\trememberLocalImageReference(file);\n \t\t\t\t}\n \t\t\t} catch (IOException ioe) {\n \t\t\t\tioe.printStackTrace();\n \t\t\t}\n \t\t}\n \t\t// Done\n \t\tif (MapTool.getFrame() != null) {\n \t\t\tMapTool.getFrame().setStatusMessage(\"\");\n \t\t}\n \t}", "private boolean hostHasImage(String imageName, Host host) throws Exception {\n\t\tWebTarget dockerTarget = this.createDockerTarget(host);\n\t\tJsonNode response = null;\n\t\ttry {\n\t\t\tresponse = dockerTarget.path(\"images\").path(imageName).path(\"json\").request().buildGet().submit(JsonNode.class).get();\n\t\t} catch (Throwable t) {\n\t\t\t// 'Hacky' workaround...\n\t\t\tif (!t.getMessage().contains(\"404\")) {\n\t\t\t\tThrowables.propagate(t);\n\t\t\t}\n\t\t}\n\t\tif (response != null && response.size() > 0 && response.get(\"Container\") != null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.ListImagesResponse list(yandex.cloud.api.containerregistry.v1.ImageServiceOuterClass.ListImagesRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getListMethod(), getCallOptions(), request);\n }", "static public void readRepository(){\n File cache_file = getCacheFile();\n if (cache_file.exists()) {\n try {\n // Read the cache acutally\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(cache_file);\n NodeList images_nodes = document.getElementsByTagName(\"image\");\n for (int i = 0; i < images_nodes.getLength(); i++) {\n Node item = images_nodes.item(i);\n String image_path = item.getTextContent();\n File image_file = new File(image_path);\n if (image_file.exists()){\n AppImage image = Resources.loadAppImage(image_path);\n images.add(image);\n }\n }\n }\n catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n }", "@Override\n\tpublic String imageSearch(QueryBean param) throws IOException {\n\t\treturn new HttpUtil().getHttp(IData.URL_SEARCH + param.toString());\n\t}", "@Override\n\tpublic String addImage(String imageFileName) throws Exception {\n\t\treturn null;\n\t}", "private BufferedImage readImage(String fileName) {\n BufferedImage image = null;\n\n try {\n InputStream inputFile = getClass().getResourceAsStream(fileName);\n image = ImageIO.read(inputFile);\n } catch (IIOException fnfexc) {\n System.err.println(\"Bitmap file '\" + fileName + \"' cannot be found\");\n } catch (IOException ioexp) {\n System.err.println(\"No contact with outside world\");\n }\n\n return image;\n }", "public void findImages() {\n \t\tthis.mNoteItemModel.findImages(this.mNoteItemModel.getContent());\n \t}", "public CreateWorkspaceImageResult withName(String name) {\n setName(name);\n return this;\n }", "public static void loadImages() {\n PonySprite.loadImages(imgKey, \"graphics/ponies/GrannySmith.png\");\n }", "public static Image getImage(Images img)\n {\n return plugin.getImageRegistry().get(img.getKey());\n }", "public void logScreen(String imageName, String title) {\n this.logScreen(imageName, title, thumbHeight, thumbWidth);\n }", "public void imagesaver(String name){\n\tthis.new_image_name = name;\n\t try{\n\t\tImageIO.write(new_buff_image, \"png\", new File(new_image_name));\n\t }\n\t catch(IOException e){\n\t\tSystem.out.println(\"The desired output file is invalid. Please try running the program again.\");\n\t\tSystem.exit(0);\n\t }\n }", "public static Path findItemInCache( final String name, final Configuration conf) throws IOException {\r\n\t\tif (name==null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tPath result = null;\r\n\t\tresult = findClassPathFile(name,conf);\r\n\t\tif (result!=null) {\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\tresult = findNonClassPathFile(name,conf);\r\n\t\tif (result!=null) {\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\tresult = findClassPathArchive(name,conf);\r\n\t\tif (result!=null) {\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\tresult = findNonClassPathArchive(name,conf);\r\n\t\tif (result!=null) {\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static Path findNonClassPathArchive( final String name, final Configuration conf) throws IOException {\r\n\t\tif (name==null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tPath []archives = DistributedCache.getLocalCacheArchives(conf);\r\n\t\tif (archives==null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString altName = makeRelativeName(name, conf);\r\n\t\tfor( Path archive : archives) {\r\n\t\t\tif (name.equals(archive.getName())) {\r\n\t\t\t\treturn archive;\r\n\t\t\t}\r\n\t\t\tif (altName!=null&&altName.equals(archive.getName())) {\r\n\t\t\t\treturn archive;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public BufferedImage getImage(String fileName){\r\n\t\tClassLoader classLoader = Thread.currentThread().getContextClassLoader();\r\n\t\tInputStream input = classLoader.getResourceAsStream(fileName);\r\n\t\tBufferedImage image = null;\r\n\t\ttry {\r\n\t\t\timage = ImageIO.read(input);\r\n\t\t} catch (IOException e1) {\r\n\t\t\tSystem.out.println(\"invalid image file name\");\r\n\t\t}\r\n\t\t//System.out.println(image);\r\n\t\treturn image;\r\n\t}", "public Image createImage(BufferedImage img, String username, String imageName, \r\n\t\t\tString location, Date date, LinkedList<String> tagList) {\r\n\t\t\r\n\t\tint i = 0, j = 0;\r\n\t\tUser user = getUser(username);\r\n\t\tString[] tmpArray;\r\n\t\tString ending;\r\n\t\t\r\n\t\t//Check for double names\r\n\t\tCopyOnWriteArrayList<String> imageNames = getListOfImages(username);\r\n\t\tfor(@SuppressWarnings(\"unused\") String name : imageNames) {\r\n\t\t\twhile(imageNames.contains(imageName)) {\r\n\t\t\t\tString imageNameWithoutEnding = \"\";\r\n\t\t\t\ttmpArray = imageName.split(\"[.]\");\r\n\t\t\t\tfor(int k = 0; k < tmpArray.length - 1; k++) {\r\n\t\t\t\t\timageNameWithoutEnding = imageNameWithoutEnding + tmpArray[k];\r\n\t\t\t\t}\r\n\t\t\t\tending = \".\" + tmpArray[tmpArray.length - 1]; \r\n\t\t\t\tif(i>0) {\r\n\t\t\t\t\tj= (int)Math.log10(i);\r\n\t\t\t\t\timageName = imageNameWithoutEnding.substring(0, imageNameWithoutEnding.length() - j - 1) + i++ + ending;\r\n\t\t\t\t} else {\r\n\t\t\t\t\timageName = imageNameWithoutEnding + i++ + ending;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Create the imageContainer\r\n\t\tImageContainer ic = new ImageContainer(img, username, imageName, location, date, tagList);\r\n\t\tImage image = null;\r\n\t\ttry {\r\n\t\t\t//Hash the coordinate and forward the image to the destination Peer\r\n\t\t\tPoint p = StaticFunctions.hashToPoint(username, imageName);\r\n\t\t\tSystem.out.println(\"Destination Coordinate: \" + StaticFunctions.hashTester(username, imageName));\r\n\t\t\tString destinationPeerIP = routing(p).getIp_adresse();\r\n\t\t\timage = forwardCreateImage(destinationPeerIP, username,ic);\r\n\t\t\tuser.insertIntoImageList(imageName);\r\n\t\t\texportUserList();\t\t\t\t\t\t\t//Updates the UserList, incl Link to new Image\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\r\n\t\treturn image;\r\n\t}", "private void setName(String imageUrl, String imageName, String roleName){\r\n Log.d(TAG, \"setName: setting name to widgets.\");\r\n TextView n = findViewById(R.id.textView);\r\n n.setText(imageName);\r\n TextView r = findViewById(R.id.textView1);\r\n r.setText(roleName);\r\n\r\n ImageView imageView = findViewById(R.id.profile_image);\r\n Glide.with(this)\r\n .asBitmap()\r\n .load(imageUrl)\r\n .into(imageView);\r\n }", "@Test\n public void testSearchImages() {\n System.out.println(\"searchImages\");\n String image = \"saqhuss\";\n Docker instance = new Docker();\n String expResult = \"NAME\";\n String[] result = instance.searchImages(image).split(\"\\n\");;\n String[] res = result[0].split(\" \");\n assertEquals(expResult, res[0].trim());\n }", "public static Image getImage(String pathToImage) throws IOException {\n\t\tPath gitDir = Paths.get(LocalProperties.getParentGitDir()).normalize();\n\t\tPath imagePath = gitDir.resolve(pathToImage);\n\t\tif (imagePath.toFile().exists()) {\n\t\t\tlogger.debug(\"Loading image from {}\", imagePath);\n\t\t\treturn ImageDescriptor.createFromURL(imagePath.toUri().toURL()).createImage();\n\t\t} else {\n\t\t\tthrow new IOException(\"Cannot read image from file \"+imagePath);\n\n\t\t}\n\t}" ]
[ "0.60710657", "0.57355535", "0.5453846", "0.5423003", "0.5422724", "0.53898245", "0.5354177", "0.5346254", "0.52836883", "0.5244562", "0.5172076", "0.5156188", "0.5143656", "0.50980335", "0.5088578", "0.50585556", "0.5057321", "0.50489664", "0.5021717", "0.5014305", "0.5012653", "0.49777997", "0.49498948", "0.49471572", "0.49432814", "0.49414673", "0.49404404", "0.49403834", "0.49264842", "0.49180147", "0.4915573", "0.49098694", "0.49012324", "0.48708734", "0.4860835", "0.48585525", "0.48577863", "0.48182768", "0.48023978", "0.4801537", "0.47723264", "0.47704187", "0.47656333", "0.47292155", "0.47178537", "0.46895766", "0.4683175", "0.4679731", "0.4677202", "0.46376514", "0.46313715", "0.46279252", "0.46221527", "0.46068975", "0.4601908", "0.45926774", "0.45781416", "0.45750377", "0.4563268", "0.45539567", "0.45495412", "0.4547951", "0.45477372", "0.45430356", "0.45421034", "0.45199278", "0.45162806", "0.45162115", "0.45120144", "0.4506358", "0.44866514", "0.4484983", "0.44815922", "0.44656375", "0.44626337", "0.445585", "0.44512063", "0.44484514", "0.44478968", "0.4446111", "0.4436596", "0.44345936", "0.4432498", "0.44318083", "0.44313717", "0.4429961", "0.4429172", "0.44247827", "0.44224492", "0.4420578", "0.4416888", "0.4412513", "0.4410232", "0.44078913", "0.44075644", "0.43990177", "0.43988103", "0.4395553", "0.43842715", "0.43839344" ]
0.7842895
0
Find the configured directory containing logos. The directory the logos are located in depends on the configuration of dataImagesDir in the config.xml. (Overrides will be applied so the actual config can be in overrides)
public static Path locateLogosDir(ServletContext context, ConfigurableApplicationContext applicationContext, Path appDir) { final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext); Path path = base.resolve("images").resolve("logos"); try { java.nio.file.Files.createDirectories(path); } catch (IOException e) { throw new RuntimeException(e); } return path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Path locateLogosDir(ServiceContext context) {\n ServletContext servletContext = null;\n \n if(context == null) {\n context = ServiceContext.get();\n }\n \n if(context == null) {\n throw new RuntimeException(\"Null Context found!!!!\");\n } else if (context.getServlet() != null) {\n servletContext = context.getServlet().getServletContext();\n }\n\n return locateLogosDir(servletContext, context.getApplicationContext(),\n context.getAppPath());\n }", "public static Path locateHarvesterLogosDir(ServletContext context,\n ConfigurableApplicationContext applicationContext, Path appDir) {\n final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext);\n Path path = base.resolve(\"images\").resolve(\"harvesting\");\n try {\n java.nio.file.Files.createDirectories(path);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n return path;\n }", "public static Path locateHarvesterLogosDir(ServiceContext context) {\n ServletContext servletContext = null;\n if (context.getServlet() != null) {\n servletContext = context.getServlet().getServletContext();\n }\n return locateHarvesterLogosDir(servletContext,\n context.getApplicationContext(), context.getAppPath());\n }", "public static Path findImagePath(String imageName, Path logosDir) throws IOException {\n if (imageName.indexOf('.') > -1) {\n final Path imagePath = logosDir.resolve(imageName);\n if (java.nio.file.Files.exists(imagePath)) {\n return imagePath;\n }\n } else {\n try (DirectoryStream<Path> possibleLogos = java.nio.file.Files.newDirectoryStream(logosDir, imageName + \".*\")) {\n final Iterator<Path> pathIterator = possibleLogos.iterator();\n while (pathIterator.hasNext()) {\n final Path next = pathIterator.next();\n String ext = Files.getFileExtension(next.getFileName().toString());\n if (IMAGE_EXTENSIONS.contains(ext.toLowerCase())) {\n return next;\n }\n }\n }\n }\n\n return null;\n }", "public static File getLogDirectory() {\n\t\treturn LOG_DIRECTORY;\n\t}", "private String getConfigurationDirectory() throws UnsupportedEncodingException {\r\n\r\n String folder;\r\n if (ISphereJobLogExplorerPlugin.getDefault() != null) {\r\n // Executed, when started from a plug-in.\r\n folder = ISphereJobLogExplorerPlugin.getDefault().getStateLocation().toFile().getAbsolutePath() + File.separator + REPOSITORY_LOCATION\r\n + File.separator;\r\n FileHelper.ensureDirectory(folder);\r\n } else {\r\n // Executed, when started on a command line.\r\n URL url = getClass().getResource(DEFAULT_CONFIGURATION_FILE);\r\n if (url == null) {\r\n return null;\r\n }\r\n String resource = URLDecoder.decode(url.getFile(), \"utf-8\"); //$NON-NLS-1$\r\n folder = new File(resource).getParent() + File.separator;\r\n }\r\n return folder;\r\n }", "public String getImageDir() {\n return (String) data[GENERAL_IMAGE_DIR][PROP_VAL_VALUE];\n }", "private StringBuffer getLogDirectory() {\n final StringBuffer directory = new StringBuffer();\n directory.append(directoryProvider.get());\n if (directory.charAt(directory.length() - 1) != File.separatorChar) {\n directory.append(File.separatorChar);\n }\n return directory;\n }", "public static File getConfigDirectory() {\n return getDirectoryStoragePath(\"/NWD/config\", false);\n }", "abstract public String getImageResourcesDir();", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "private static void displayImagesDir(){\n System.out.println(IMAGES_DIR);\n }", "public static Path locateResourcesDir(ServletContext context,\n ApplicationContext applicationContext) {\n Path property = null;\n try {\n property = applicationContext.getBean(GeonetworkDataDirectory.class).getResourcesDir();\n } catch (NoSuchBeanDefinitionException e) {\n final String realPath = context.getRealPath(\"/WEB-INF/data/resources\");\n if (realPath != null) {\n property = IO.toPath(realPath);\n }\n }\n\n if (property == null) {\n return IO.toPath(\"resources\");\n } else {\n return property;\n }\n }", "public static Path locateResourcesDir(ServiceContext context) {\n if (context.getServlet() != null) {\n return locateResourcesDir(context.getServlet().getServletContext(), context.getApplicationContext());\n }\n\n return context.getBean(GeonetworkDataDirectory.class).getResourcesDir();\n }", "@Override\n public String getApplicationDirectory() {\n return Comm.getAppHost().getAppLogDirPath();\n }", "public File getLogDir() {\n return logDir;\n }", "@Override\n protected Path calculateAppPath(Path image) throws Exception {\n return image.resolve(\"usr\").resolve(\"lib\").resolve(\"APPDIR\");\n }", "public File getCommonDir()\n {\n return validatePath(ServerSettings.getInstance().getProperty(ServerSettings.COMMON_DIR));\n }", "public Path getDataDirectory();", "public static File getOzoneMetaDirPath(ConfigurationSource conf) {\n File dirPath = getDirectoryFromConfig(conf,\n HddsConfigKeys.OZONE_METADATA_DIRS, \"Ozone\");\n if (dirPath == null) {\n throw new IllegalArgumentException(\n HddsConfigKeys.OZONE_METADATA_DIRS + \" must be defined.\");\n }\n return dirPath;\n }", "private File getDataDir(){\n\t\tFile file = new File(this.configManager.getConfigDirectory() +\n\t\t\t\tFile.separator + \n\t\t\t\tDATA_DIR);\n\t\t\n\t\tif(!file.exists()){\n\t\t\tfile.mkdirs();\n\t\t}\n\t\t\n\t\treturn file;\n\t}", "public String getDir();", "private Optional<Path> dataSetDir() {\n Optional<String> dataSetDirProperty = demoProperties.dataSetDir();\n if (!dataSetDirProperty.isPresent()) {\n logger.info(\"Data set directory (app.demo.data-set-dir) is not set.\");\n return Optional.empty();\n }\n Path dataSetDirPath = Paths.get(dataSetDirProperty.get());\n if (!isReadableDir(dataSetDirPath)) {\n logger.warn(\n \"Data set directory '{}' doesn't exist or cannot be read. No external data sets will be loaded.\",\n dataSetDirPath.toAbsolutePath());\n return Optional.empty();\n }\n return Optional.of(dataSetDirPath);\n }", "public static String uploadDir() {\n\n String uploads = stringValue(\"treefs.uploads\");\n if(isNullOrEmpty(uploads)) {\n // default home location\n uploads = home() + File.separator + \"uploads\";\n } else {\n uploads = home() + File.separator + uploads;\n }\n\n System.out.println(\"uploadDir=\" + uploads);\n return uploads;\n }", "public static File searchForLog4jConfig() throws FileNotFoundException {\n return searchForFile(\n \"log4j2-test.xml\",\n asList(\n // Normal place to put log4j config\n \"src/test/resources\",\n // If no config is provided, use config from platform\n \"../../../swirlds-platform-core/src/test/resources\",\n // If no config is provided, use config from platform\n \"../swirlds-platform-core/src/test/resources\",\n // AWS location\n \"swirlds-platform-core/src/test/java/main/resources\"));\n }", "private String getDicDir() {\n\t\tString wDir = null;\n\n\t\tif (System.getProperties().containsKey(\"root\")) {\n\t\t\twDir = System.getProperty(\"root\");\n\t\t}\n\n\t\tif ((wDir == null || wDir.isEmpty()) && CPlatform.isMacOs())\n\t\t\twDir = new File(CPlatform.getUserHome(), \"Library/Spelling\")\n\t\t\t\t\t.getAbsolutePath();\n\n\t\tif (wDir == null || wDir.isEmpty())\n\t\t\twDir = \"/home/ff/projects/hunspell\";\n\t\treturn wDir;\n\t}", "public List<String> getManagedRepositoriesPaths(SecurityContext ctx, ImageData img) throws DSOutOfServiceException, DSAccessException {\n try {\n FilesetData fs = loadFileset(ctx, img);\n if (fs != null)\n return fs.getAbsolutePaths();\n } catch (Throwable t) {\n handleException(this, t, \"Could not get the file paths.\");\n }\n return Collections.emptyList();\n }", "abstract public String getDataResourcesDir();", "String getDir();", "private File findDefaultsFile() {\r\n String defaultsPath = \"/defaults/users.defaults.xml\";\r\n String xmlDir = server.getServerProperties().get(XML_DIR_KEY);\r\n return (xmlDir == null) ?\r\n new File (System.getProperty(\"user.dir\") + \"/xml\" + defaultsPath) :\r\n new File (xmlDir + defaultsPath);\r\n }", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "public static File getDirectoryFromConfig(ConfigurationSource conf,\n String key,\n String componentName) {\n final Collection<String> metadirs = conf.getTrimmedStringCollection(key);\n if (metadirs.size() > 1) {\n throw new IllegalArgumentException(\n \"Bad config setting \" + key +\n \". \" + componentName +\n \" does not support multiple metadata dirs currently\");\n }\n\n if (metadirs.size() == 1) {\n final File dbDirPath = new File(metadirs.iterator().next());\n if (!dbDirPath.mkdirs() && !dbDirPath.exists()) {\n throw new IllegalArgumentException(\"Unable to create directory \" +\n dbDirPath + \" specified in configuration setting \" +\n key);\n }\n try {\n Path path = dbDirPath.toPath();\n // Fetch the permissions for the respective component from the config\n String permissionValue = getPermissions(key, conf);\n String symbolicPermission = getSymbolicPermission(permissionValue);\n\n // Set the permissions for the directory\n Files.setPosixFilePermissions(path,\n PosixFilePermissions.fromString(symbolicPermission));\n } catch (Exception e) {\n throw new RuntimeException(\"Failed to set directory permissions for \" +\n dbDirPath + \": \" + e.getMessage(), e);\n }\n return dbDirPath;\n }\n\n return null;\n }", "public static File getScmDbDir(ConfigurationSource conf) {\n File metadataDir = getDirectoryFromConfig(conf,\n ScmConfigKeys.OZONE_SCM_DB_DIRS, \"SCM\");\n if (metadataDir != null) {\n return metadataDir;\n }\n\n LOG.warn(\"{} is not configured. We recommend adding this setting. \" +\n \"Falling back to {} instead.\",\n ScmConfigKeys.OZONE_SCM_DB_DIRS, HddsConfigKeys.OZONE_METADATA_DIRS);\n return getOzoneMetaDirPath(conf);\n }", "java.io.File getBaseDir();", "public Path getRemoteRepositoryBaseDir();", "static String setupNativeLibraryDirectories(Configuration config) throws IOException {\n List<String> nativeDirs = new ArrayList<>();\n try {\n String configuredNativeDirs = (String)config.getEntry(CybernodeImpl.getConfigComponent(),\n \"nativeLibDirectory\", \n String.class,\n null);\n if(configuredNativeDirs!=null) {\n String[] dirs = toStringArray(configuredNativeDirs);\n for(String dir : dirs) {\n if(!nativeDirs.contains(dir))\n nativeDirs.add(dir);\n }\n }\n } catch(ConfigurationException e) {\n logger.warn(\"Exception getting configured nativeLibDirectories\", e);\n }\n String nativeLibDirs = null;\n if(!nativeDirs.isEmpty()) {\n StringBuilder buffer = new StringBuilder();\n String[] dirs = nativeDirs.toArray(new String[0]);\n for(int i=0; i<dirs.length; i++) {\n File nativeDirectory = new File(dirs[i]);\n if(i>0)\n buffer.append(\" \");\n buffer.append(nativeDirectory.getCanonicalPath());\n }\n nativeLibDirs = buffer.toString();\n }\n return nativeLibDirs;\n }", "@Override\n public String getConfigPath() {\n String fs = String.valueOf(File.separatorChar);\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"scan\").append(fs);\n sb.append(\"config\").append(fs);\n sb.append(\"mesoTableConfig\").append(fs);\n\n return sb.toString();\n }", "private File getExternalPhotoStorageDir() {\n File file = new File(getExternalFilesDir(\n Environment.DIRECTORY_PICTURES), \"ApparelApp\");\n if (!file.exists() && !file.mkdirs()) {\n Log.e(TAG, \"Directory not created\");\n }\n return file;\n }", "public static File getYdfDirectory()\r\n/* 36: */ throws IOException\r\n/* 37: */ {\r\n/* 38: 39 */ log.finest(\"OSHandler.getYdfDirectory\");\r\n/* 39: 40 */ return ydfDirectory == null ? setYdfDirectory() : ydfDirectory;\r\n/* 40: */ }", "public Path getRepositoryBaseDir();", "private Path getDefaultLogsSessionDirectory(String sLogsDownloadPath)\n\t{\n\t\tPath sessionDirectory;\n\t\tString sCurrentIp = spotInfo.getUPMip();\t\t\n\t\ttry\n\t\t{\n\t\t\tsessionDirectory = Paths.get( sLogsDownloadPath, sCurrentIp+\"_\"+ EdtUtil.getDateTimeStamp( \"yyyy-MM-dd'T'HHmmss\" ) ); // The path is built with the download_path/target_unit_ip/timestamp/\n\t\t}\n\t\tcatch (RuntimeException e)\n\t\t{\n\t\t\tsessionDirectory = Paths.get( sLogsDownloadPath, sCurrentIp+\"_tmp\" );\n\t\t}\n\t\treturn sessionDirectory;\n\t}", "public static String getImageDownloadDir(Context context) {\n if (downloadRootDir == null) {\n initFileDir(context);\n }\n return imageDownloadDir;\n }", "private synchronized Directory getDirectoryEmDisco() throws IOException{\r\n\t\tif(diretorioEmDisco == null){\r\n\t\t\tdiretorioEmDisco = FSDirectory.open(pastaDoIndice);\r\n\t\t}\r\n\t\t\r\n\t\treturn diretorioEmDisco;\r\n\t}", "private void extractDefaultGeneratorLogo() {\n try {\n PlatformUtil.extractResourceToUserConfigDir(getClass(), DEFAULT_GENERATOR_LOGO, true);\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"Error extracting report branding resource for generator logo \", ex); //NON-NLS\n }\n defaultGeneratorLogoPath = PlatformUtil.getUserConfigDirectory() + File.separator + DEFAULT_GENERATOR_LOGO;\n }", "public File getStoreDir();", "private static Path getMediaDirectoryPath(FileSystem fs) throws IOException {\r\n\r\n Path mediaFolderInsideZipPath = null;\r\n for (String mediaFolderInsideZip : OOXML_MEDIA_FOLDERS) {\r\n mediaFolderInsideZipPath = fs.getPath(mediaFolderInsideZip);\r\n if (Files.exists(mediaFolderInsideZipPath)) {\r\n break;\r\n }\r\n }\r\n return mediaFolderInsideZipPath;\r\n }", "public String getConfigurationDirectory() {\n\t\treturn props.getProperty(ARGUMENT_CONFIGURATION_DIRECTORY);\n\t}", "public static String getConfigurationFilePath() {\n\n return getCloudTestRootPath() + File.separator + \"Config\"\n + File.separator + \"PluginConfig.xml\";\n }", "public Path getRepositoryGroupBaseDir();", "abstract public String getMspluginsDir();", "Object getDir();", "public static File getDataDirectory() {\n\t\treturn DATA_DIRECTORY;\n\t}", "@Override\r\n\t\tpublic String getDir()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private File nextLogDir() {\n if (logDirs.size() == 1) {\n return logDirs.get(0);\n } else {\n // count the number of logs in each parent directory (including 0 for empty directories\n final Multiset<String> logCount = HashMultiset.create();\n\n Utils.foreach(allLogs(), new Callable1<Log>() {\n @Override\n public void apply(Log log) {\n logCount.add(log.dir.getParent(), (int) (log.size() + 1));\n }\n });\n\n Utils.foreach(logDirs, new Callable1<File>() {\n @Override\n public void apply(File dir) {\n logCount.add(dir.getPath());\n }\n });\n\n // choose the directory with the least logs in it\n int minCount = Integer.MAX_VALUE;\n String min = \"max\";\n\n for (Multiset.Entry<String> entry : logCount.entrySet()) {\n if (entry.getCount() < minCount) {\n minCount = entry.getCount();\n min = entry.getElement();\n }\n }\n\n return new File(min);\n }\n }", "public String getLogfileLocation() {\n return logfileLocation;\n }", "public DicomDirectory getDicomDirectory() {\n\t\ttreeModel.getMapOfSOPInstanceUIDToReferencedFileName(this.parentFilePath);\t// initializes map using parentFilePath, ignore return value\n\t\treturn treeModel;\n\t}", "private File getConfigurationFolder(final File baseFolder) throws FileNotFoundException, IOException {\n final String METADATA_FOLDER_NAME = System.getProperty(\"com.bf.viaduct.metadata.location\", \"metadata\");\n final String CONFIG_FOLDER_NAME = \"config\";\n final String CONFIGURATION_FOLDER_NAME = \"configuration\";\n\n // If the \"metadata\" folder exists, use it, otherwise check for existence of the\n // \"configuration\" folder.\n File folder = new File(String.format(\"%s%s%s\", baseFolder.getCanonicalFile(), File.separatorChar,\n METADATA_FOLDER_NAME));\n if (!folder.isDirectory()) {\n // If the \"configuration\" folder exists, use it, otherwise use the \"config\" folder.\n folder = new File(String.format(\"%s%s%s\", baseFolder.getCanonicalFile(), File.separatorChar,\n CONFIGURATION_FOLDER_NAME));\n if (!folder.isDirectory()) {\n folder = new File(String.format(\"%s%s%s\", baseFolder.getCanonicalFile(), File.separatorChar,\n CONFIG_FOLDER_NAME));\n }\n }\n\n return folder;\n }", "String getDirectoryPath();", "private String getDataDirectory() {\n Session session = getSession();\n String dataDirectory;\n try {\n dataDirectory = (String) session.createSQLQuery(DATA_DIRECTORY_QUERY).list().get(0);\n } finally {\n releaseSession(session);\n }\n return dataDirectory;\n }", "public File getFileFromDataDirs() {\n String[] dataDirs = IoTDBDescriptor.getInstance().getConfig().getDataDirs();\n String partialFileString =\n (sequence ? IoTDBConstant.SEQUENCE_FLODER_NAME : IoTDBConstant.UNSEQUENCE_FLODER_NAME)\n + File.separator\n + logicalStorageGroupName\n + File.separator\n + dataRegionId\n + File.separator\n + timePartitionId\n + File.separator\n + filename;\n for (String dataDir : dataDirs) {\n File file = FSFactoryProducer.getFSFactory().getFile(dataDir, partialFileString);\n if (file.exists()) {\n return file;\n }\n }\n return null;\n }", "String getDatabaseDirectoryPath();", "public static File getDBPath(ConfigurationSource conf, String key) {\n final File dbDirPath =\n getDirectoryFromConfig(conf, key, \"OM\");\n if (dbDirPath != null) {\n return dbDirPath;\n }\n\n LOG.warn(\"{} is not configured. We recommend adding this setting. \"\n + \"Falling back to {} instead.\", key,\n HddsConfigKeys.OZONE_METADATA_DIRS);\n return ServerUtils.getOzoneMetaDirPath(conf);\n }", "public static String getCommonImagePropertiesFullPath() throws IOException {\n return getImagePropertiesFullPath(COMMON_IMAGEPROP_FILEPATH);\n }", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "private File getFolder() throws FileNotFoundException, IOException {\n File folder = getConfigurationFolder(new File(\".\").getCanonicalFile());\n if (!folder.isDirectory()) {\n folder = getConfigurationFolder(new File(getInstallationFolder().getPath())\n .getCanonicalFile().getParentFile().getParentFile());\n }\n\n return folder;\n }", "private static void initGameFolder() {\n\t\tString defaultFolder = System.getProperty(\"user.home\") + STENDHAL_FOLDER;\n\t\t/*\n\t\t * Add any previously unrecognized unix like systems here. These will\n\t\t * try to use ~/.config/stendhal if the user does not have saved data\n\t\t * in ~/stendhal.\n\t\t *\n\t\t * OS X is counted in here too, but should it?\n\t\t *\n\t\t * List taken from:\n\t\t * \thttp://mindprod.com/jgloss/properties.html#OSNAME\n\t\t */\n\t\tString unixLikes = \"AIX|Digital Unix|FreeBSD|HP UX|Irix|Linux|Mac OS X|Solaris\";\n\t\tString system = System.getProperty(\"os.name\");\n\t\tif (system.matches(unixLikes)) {\n\t\t\t// Check first if the user has important data in the default folder.\n\t\t\tFile f = new File(defaultFolder + \"user.dat\");\n\t\t\tif (!f.exists()) {\n\t\t\t\tgameFolder = System.getProperty(\"user.home\") + separator\n\t\t\t\t+ \".config\" + separator + STENDHAL_FOLDER;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// Everyone else should use the default top level directory in $HOME\n\t\tgameFolder = defaultFolder;\n\t}", "protected Path getBasePathForUser(User owner) {\n return getDirectories().getDevicesPath().resolve(owner.getName());\n }", "public static String getImageResoucesPath() {\n\t\t//return \"d:\\\\PBC\\\\GitHub\\\\Theia\\\\portal\\\\WebContent\\\\images\";\n\t\treturn \"/Users/anaswhb/Documents/Eclipse/Workspace/portal/WebContent/images\";\n\t\t\n\t}", "@Override\n\tpublic File getDefaultLogFile() {\n\t\tif (SystemUtils.IS_OS_WINDOWS) {\n\t\t\tfinal File[] foundFiles = getLogDirInternal().listFiles(new FilenameFilter() {\n\t\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\t\treturn name.startsWith(\"catalina.\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tArrays.sort(foundFiles, NameFileComparator.NAME_COMPARATOR);\n\t\t\tif (foundFiles.length > 0) {\n\t\t\t\treturn foundFiles[foundFiles.length - 1];\n\t\t\t}\n\t\t}\n\t\treturn super.getDefaultLogFile();\n\t}", "public static Object getInternalStorageDirectory() {\n\n FileObject root = Repository.getDefault().getDefaultFileSystem().getRoot();\n\n //FileObject dir = root.getFileObject(\"Storage\");\n \n //return dir;\n return null;\n }", "private void reloadIconBaseDirs() {\n\t\t\n\t\t// Load dirs from XDG_DATA_DIRS\n\t\tString xdg_dir_env = System.getenv(\"XDG_DATA_DIRS\");\n\t\tif(xdg_dir_env != null && !xdg_dir_env.isEmpty()) {\n\t\t\tString[] xdg_dirs = xdg_dir_env.split(\":\");\n\t\t\tfor(String xdg_dir : xdg_dirs) {\n\t\t\t\taddDirToList(new File(xdg_dir, \"icons\"), iconBaseDirs);\n\t\t\t\taddDirToList(new File(xdg_dir, \"pixmaps\"), iconBaseDirs);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Load user's icon dir\n\t\taddDirToList(new File(System.getProperty(\"user.home\"), \".icons\"), iconBaseDirs);\n\t\taddDirToList(new File(System.getProperty(\"user.home\"), \".local/share/icons\"), iconBaseDirs);\n\t\t\n\t}", "FsPath baseDir();", "@Override\n public String getSystemDir() {\n return null;\n }", "public static String getLogFilesPath() {\r\n return new File(TRACELOG).getAbsolutePath();\r\n }", "static File getAppDir(String app) {\n return Minecraft.a(app);\n }", "public File getDirectoryValue();", "public void testImagesDirectoryAccessible() {\n File file = new File(rootBlog.getRoot(), \"images\");\n assertEquals(file, new File(rootBlog.getImagesDirectory()));\n assertTrue(file.exists());\n }", "public void customRootDir() {\n //Be careful with case when res is false which means dir is not valid.\n boolean res = KOOM.getInstance().setRootDir(this.getCacheDir().getAbsolutePath());\n }", "public List<String> logDirectories() {\n return this.logDirectories;\n }", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "public static File getPlatformDir () {\n return new File (System.getProperty (\"netbeans.home\")); // NOI18N\n }", "default Optional<Path> getProjectDir() {\n Optional<Path> projectDir = get(MICRONAUT_PROCESSING_PROJECT_DIR, Path.class);\n if (projectDir.isPresent()) {\n return projectDir;\n }\n // let's find the projectDir\n Optional<GeneratedFile> dummyFile = visitGeneratedFile(\"dummy\" + System.nanoTime());\n if (dummyFile.isPresent()) {\n URI uri = dummyFile.get().toURI();\n // happens in tests 'mem:///CLASS_OUTPUT/dummy'\n if (uri.getScheme() != null && !uri.getScheme().equals(\"mem\")) {\n // assume files are generated in 'build' or 'target' directories\n Path dummy = Paths.get(uri).normalize();\n while (dummy != null) {\n Path dummyFileName = dummy.getFileName();\n if (dummyFileName != null && (\"build\".equals(dummyFileName.toString()) || \"target\".equals(dummyFileName.toString()))) {\n projectDir = Optional.ofNullable(dummy.getParent());\n put(MICRONAUT_PROCESSING_PROJECT_DIR, dummy.getParent());\n break;\n }\n dummy = dummy.getParent();\n }\n }\n }\n\n return projectDir;\n }", "public File getBaseDir() {\n if (baseDir == null) {\n try {\n setBasedir(\".\");\n } catch (BuildException ex) {\n ex.printStackTrace();\n }\n }\n return baseDir;\n }", "@Nullable\n public static PsiDirectory findResourceDirectory(@NotNull DataContext dataContext) {\n Project project = CommonDataKeys.PROJECT.getData(dataContext);\n if (project != null) {\n AbstractProjectViewPane pane = ProjectView.getInstance(project).getCurrentProjectViewPane();\n if (pane.getId().equals(AndroidProjectView.ID)) {\n return null;\n }\n }\n\n VirtualFile file = CommonDataKeys.VIRTUAL_FILE.getData(dataContext);\n if (file != null) {\n // See if it's inside a res folder (or is equal to a resource folder)\n Module module = PlatformCoreDataKeys.MODULE.getData(dataContext);\n if (module != null) {\n LocalResourceManager manager = LocalResourceManager.getInstance(module);\n if (manager != null) {\n VirtualFile resFolder = getResFolderParent(manager, file);\n if (resFolder != null) {\n return AndroidPsiUtils.getPsiDirectorySafely(module.getProject(), resFolder);\n }\n }\n }\n }\n\n return null;\n }", "public String getRepositoryRootFolder() {\n\t\tString userFolder = UnixPathUtil.unixPath(IdatrixPropertyUtil.getProperty(\"idatrix.metadata.reposity.root\",\"/data/ETL/reposity/\"));\n\t\tif (CloudApp.getInstance().getRepository() instanceof KettleFileRepository) {\n\t\t\tKettleFileRepository fileRepo = (KettleFileRepository) CloudApp.getInstance().getRepository();\n\t\t\tuserFolder = fileRepo.getRepositoryMeta().getBaseDirectory();\n\t\t}\n\t\treturn userFolder;\n\t}", "public File getGitRepoContainerDir() {\n return config.getGitReposParentDir();\n }", "public static String getConfigFolder() {\n\t\tString progArg = System.getProperty(ConfigConstants.CONFIG_DIR_PROG_ARGUMENT);\n\t\tif (progArg != null) {\n\t\t\treturn progArg;\n\t\t} else {\n\t\t\treturn configFolder;\n\t\t}\n\t}", "private ArrayList<String> getImagesPathList() {\n String MEDIA_IMAGES_PATH = \"CuraContents/images\";\n File fileImages = new File(Environment.getExternalStorageDirectory(), MEDIA_IMAGES_PATH);\n if (fileImages.isDirectory()) {\n File[] listImagesFile = fileImages.listFiles();\n ArrayList<String> imageFilesPathList = new ArrayList<>();\n for (File file1 : listImagesFile) {\n imageFilesPathList.add(file1.getAbsolutePath());\n }\n return imageFilesPathList;\n }\n return null;\n }", "private String getArcGISHomeDir() throws IOException {\n String arcgisHome = null;\n /* Not found in env, check system property */\n if (System.getProperty(ARCGISHOME_ENV) != null) {\n arcgisHome = System.getProperty(ARCGISHOME_ENV);\n }\n if(arcgisHome == null) {\n /* To make env lookup case insensitive */\n Map<String, String> envs = System.getenv();\n for (String envName : envs.keySet()) {\n if (envName.equalsIgnoreCase(ARCGISHOME_ENV)) {\n arcgisHome = envs.get(envName);\n }\n }\n }\n if(arcgisHome != null && !arcgisHome.endsWith(File.separator)) {\n arcgisHome += File.separator;\n }\n return arcgisHome;\n }", "public String getDataDirectory() {\n return dataDirectory;\n }", "public IPath getLogLocation() throws IllegalStateException {\n \t\t//make sure the log location is initialized if the instance location is known\n \t\tif (isInstanceLocationSet())\n \t\t\tassertLocationInitialized();\n \t\tFrameworkLog log = Activator.getDefault().getFrameworkLog();\n \t\tif (log != null) {\n \t\t\tjava.io.File file = log.getFile();\n \t\t\tif (file != null)\n \t\t\t\treturn new Path(file.getAbsolutePath());\n \t\t}\n \t\tif (location == null)\n \t\t\tthrow new IllegalStateException(CommonMessages.meta_instanceDataUnspecified);\n \t\treturn location.append(F_META_AREA).append(F_LOG);\n \t}", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "static String getDefaultConfigurationFileName() {\n // This is a file calles 'jmx-scandir.xml' located\n // in the user directory.\n final String user = System.getProperty(\"user.home\");\n final String defconf = user+File.separator+\"jmx-scandir.xml\";\n return defconf;\n }", "private static File getInstallFolderConfFile() throws IOException {\n String confFileName = UserPreferences.getAppName() + CONFIG_FILE_EXTENSION;\n String installFolder = PlatformUtil.getInstallPath();\n File installFolderEtc = new File(installFolder, ETC_FOLDER_NAME);\n File installFolderConfigFile = new File(installFolderEtc, confFileName);\n if (!installFolderConfigFile.exists()) {\n throw new IOException(\"Conf file could not be found\" + installFolderConfigFile.toString());\n }\n return installFolderConfigFile;\n }", "protected File getDir() {\n return hasSubdirs ? DatanodeUtil.idToBlockDir(baseDir,\n getBlockId()) : baseDir;\n }", "public static File systemInstallDir() {\n String systemInstallDir = System.getProperty(INSTALL_DIR_SYSTEM_PROP, \"../config\").trim();\n return new File(systemInstallDir);\n }", "abstract public String getRingResourcesDir();", "public static File getWorkspaceDir(BundleContext context)\n {\n return new File(getTargetDir(context), \"../../\");\n }", "protected File getRootDir() {\r\n\t\tif (rootDir == null) {\r\n\t\t\trootDir = new File(getProperties().getString(\"rootDir\"));\r\n\t\t\tif (! rootDir.exists())\r\n\t\t\t\tif (! rootDir.mkdirs())\r\n\t\t\t\t\tthrow new RuntimeException(\"Could not create root dir\");\r\n\t\t}\r\n\t\treturn rootDir;\r\n\t}", "public IPath getRuntimeBaseDirectory(TomcatServer server);" ]
[ "0.6995931", "0.6854082", "0.6709749", "0.61024606", "0.5939139", "0.5924091", "0.58748215", "0.5749438", "0.57492226", "0.5666477", "0.5659944", "0.5623646", "0.5577283", "0.5563063", "0.5559139", "0.5456445", "0.54449415", "0.54197055", "0.5369568", "0.53655744", "0.53544044", "0.534926", "0.5338429", "0.5311212", "0.5288759", "0.527844", "0.5263691", "0.5255344", "0.5240198", "0.52307194", "0.5212035", "0.52008086", "0.5169606", "0.514332", "0.51184666", "0.511555", "0.5086527", "0.5074694", "0.50653505", "0.50634664", "0.5061294", "0.5059118", "0.50590056", "0.50589436", "0.50443345", "0.50405204", "0.50378275", "0.5018287", "0.5017443", "0.5015383", "0.5015328", "0.5014651", "0.5011531", "0.49930352", "0.49728727", "0.49605578", "0.49592566", "0.49449453", "0.49435827", "0.49381453", "0.49379992", "0.49352998", "0.49352035", "0.49304062", "0.49239457", "0.492242", "0.49212673", "0.49185172", "0.4917155", "0.49157873", "0.49133027", "0.4908611", "0.49082276", "0.49074078", "0.49018145", "0.48930568", "0.48889333", "0.487546", "0.48679173", "0.48635107", "0.48536775", "0.48517394", "0.48515692", "0.48369658", "0.48337477", "0.48305345", "0.48279712", "0.48270014", "0.481713", "0.48151222", "0.48105776", "0.48097613", "0.4807491", "0.48051023", "0.480485", "0.47802964", "0.47756884", "0.47673485", "0.47662756", "0.47615284" ]
0.7390722
0
Find the configured directory containing harvester logos. The directory the logos are located in depends on the configuration of dataImagesDir in the config.xml. (Overrides will be applied so the actual config can be in overrides)
public static Path locateHarvesterLogosDir(ServiceContext context) { ServletContext servletContext = null; if (context.getServlet() != null) { servletContext = context.getServlet().getServletContext(); } return locateHarvesterLogosDir(servletContext, context.getApplicationContext(), context.getAppPath()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Path locateHarvesterLogosDir(ServletContext context,\n ConfigurableApplicationContext applicationContext, Path appDir) {\n final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext);\n Path path = base.resolve(\"images\").resolve(\"harvesting\");\n try {\n java.nio.file.Files.createDirectories(path);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n return path;\n }", "public static Path locateLogosDir(ServletContext context,\n ConfigurableApplicationContext applicationContext, Path appDir) {\n final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext);\n Path path = base.resolve(\"images\").resolve(\"logos\");\n try {\n java.nio.file.Files.createDirectories(path);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n return path;\n }", "public static Path locateLogosDir(ServiceContext context) {\n ServletContext servletContext = null;\n \n if(context == null) {\n context = ServiceContext.get();\n }\n \n if(context == null) {\n throw new RuntimeException(\"Null Context found!!!!\");\n } else if (context.getServlet() != null) {\n servletContext = context.getServlet().getServletContext();\n }\n\n return locateLogosDir(servletContext, context.getApplicationContext(),\n context.getAppPath());\n }", "private String getConfigurationDirectory() throws UnsupportedEncodingException {\r\n\r\n String folder;\r\n if (ISphereJobLogExplorerPlugin.getDefault() != null) {\r\n // Executed, when started from a plug-in.\r\n folder = ISphereJobLogExplorerPlugin.getDefault().getStateLocation().toFile().getAbsolutePath() + File.separator + REPOSITORY_LOCATION\r\n + File.separator;\r\n FileHelper.ensureDirectory(folder);\r\n } else {\r\n // Executed, when started on a command line.\r\n URL url = getClass().getResource(DEFAULT_CONFIGURATION_FILE);\r\n if (url == null) {\r\n return null;\r\n }\r\n String resource = URLDecoder.decode(url.getFile(), \"utf-8\"); //$NON-NLS-1$\r\n folder = new File(resource).getParent() + File.separator;\r\n }\r\n return folder;\r\n }", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "public static String uploadDir() {\n\n String uploads = stringValue(\"treefs.uploads\");\n if(isNullOrEmpty(uploads)) {\n // default home location\n uploads = home() + File.separator + \"uploads\";\n } else {\n uploads = home() + File.separator + uploads;\n }\n\n System.out.println(\"uploadDir=\" + uploads);\n return uploads;\n }", "public File getCommonDir()\n {\n return validatePath(ServerSettings.getInstance().getProperty(ServerSettings.COMMON_DIR));\n }", "public static Path findImagePath(String imageName, Path logosDir) throws IOException {\n if (imageName.indexOf('.') > -1) {\n final Path imagePath = logosDir.resolve(imageName);\n if (java.nio.file.Files.exists(imagePath)) {\n return imagePath;\n }\n } else {\n try (DirectoryStream<Path> possibleLogos = java.nio.file.Files.newDirectoryStream(logosDir, imageName + \".*\")) {\n final Iterator<Path> pathIterator = possibleLogos.iterator();\n while (pathIterator.hasNext()) {\n final Path next = pathIterator.next();\n String ext = Files.getFileExtension(next.getFileName().toString());\n if (IMAGE_EXTENSIONS.contains(ext.toLowerCase())) {\n return next;\n }\n }\n }\n }\n\n return null;\n }", "private StringBuffer getLogDirectory() {\n final StringBuffer directory = new StringBuffer();\n directory.append(directoryProvider.get());\n if (directory.charAt(directory.length() - 1) != File.separatorChar) {\n directory.append(File.separatorChar);\n }\n return directory;\n }", "public String getImageDir() {\n return (String) data[GENERAL_IMAGE_DIR][PROP_VAL_VALUE];\n }", "public static File getLogDirectory() {\n\t\treturn LOG_DIRECTORY;\n\t}", "public static File getConfigDirectory() {\n return getDirectoryStoragePath(\"/NWD/config\", false);\n }", "public static File getOzoneMetaDirPath(ConfigurationSource conf) {\n File dirPath = getDirectoryFromConfig(conf,\n HddsConfigKeys.OZONE_METADATA_DIRS, \"Ozone\");\n if (dirPath == null) {\n throw new IllegalArgumentException(\n HddsConfigKeys.OZONE_METADATA_DIRS + \" must be defined.\");\n }\n return dirPath;\n }", "@Override\n public String getApplicationDirectory() {\n return Comm.getAppHost().getAppLogDirPath();\n }", "public static Path locateResourcesDir(ServletContext context,\n ApplicationContext applicationContext) {\n Path property = null;\n try {\n property = applicationContext.getBean(GeonetworkDataDirectory.class).getResourcesDir();\n } catch (NoSuchBeanDefinitionException e) {\n final String realPath = context.getRealPath(\"/WEB-INF/data/resources\");\n if (realPath != null) {\n property = IO.toPath(realPath);\n }\n }\n\n if (property == null) {\n return IO.toPath(\"resources\");\n } else {\n return property;\n }\n }", "public static Path locateResourcesDir(ServiceContext context) {\n if (context.getServlet() != null) {\n return locateResourcesDir(context.getServlet().getServletContext(), context.getApplicationContext());\n }\n\n return context.getBean(GeonetworkDataDirectory.class).getResourcesDir();\n }", "private static void displayImagesDir(){\n System.out.println(IMAGES_DIR);\n }", "public String getDir();", "abstract public String getImageResourcesDir();", "public Path getDataDirectory();", "public Path getRemoteRepositoryBaseDir();", "String getDir();", "private File getDataDir(){\n\t\tFile file = new File(this.configManager.getConfigDirectory() +\n\t\t\t\tFile.separator + \n\t\t\t\tDATA_DIR);\n\t\t\n\t\tif(!file.exists()){\n\t\t\tfile.mkdirs();\n\t\t}\n\t\t\n\t\treturn file;\n\t}", "private Optional<Path> dataSetDir() {\n Optional<String> dataSetDirProperty = demoProperties.dataSetDir();\n if (!dataSetDirProperty.isPresent()) {\n logger.info(\"Data set directory (app.demo.data-set-dir) is not set.\");\n return Optional.empty();\n }\n Path dataSetDirPath = Paths.get(dataSetDirProperty.get());\n if (!isReadableDir(dataSetDirPath)) {\n logger.warn(\n \"Data set directory '{}' doesn't exist or cannot be read. No external data sets will be loaded.\",\n dataSetDirPath.toAbsolutePath());\n return Optional.empty();\n }\n return Optional.of(dataSetDirPath);\n }", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "private String getDicDir() {\n\t\tString wDir = null;\n\n\t\tif (System.getProperties().containsKey(\"root\")) {\n\t\t\twDir = System.getProperty(\"root\");\n\t\t}\n\n\t\tif ((wDir == null || wDir.isEmpty()) && CPlatform.isMacOs())\n\t\t\twDir = new File(CPlatform.getUserHome(), \"Library/Spelling\")\n\t\t\t\t\t.getAbsolutePath();\n\n\t\tif (wDir == null || wDir.isEmpty())\n\t\t\twDir = \"/home/ff/projects/hunspell\";\n\t\treturn wDir;\n\t}", "public static File searchForLog4jConfig() throws FileNotFoundException {\n return searchForFile(\n \"log4j2-test.xml\",\n asList(\n // Normal place to put log4j config\n \"src/test/resources\",\n // If no config is provided, use config from platform\n \"../../../swirlds-platform-core/src/test/resources\",\n // If no config is provided, use config from platform\n \"../swirlds-platform-core/src/test/resources\",\n // AWS location\n \"swirlds-platform-core/src/test/java/main/resources\"));\n }", "private Path getDefaultLogsSessionDirectory(String sLogsDownloadPath)\n\t{\n\t\tPath sessionDirectory;\n\t\tString sCurrentIp = spotInfo.getUPMip();\t\t\n\t\ttry\n\t\t{\n\t\t\tsessionDirectory = Paths.get( sLogsDownloadPath, sCurrentIp+\"_\"+ EdtUtil.getDateTimeStamp( \"yyyy-MM-dd'T'HHmmss\" ) ); // The path is built with the download_path/target_unit_ip/timestamp/\n\t\t}\n\t\tcatch (RuntimeException e)\n\t\t{\n\t\t\tsessionDirectory = Paths.get( sLogsDownloadPath, sCurrentIp+\"_tmp\" );\n\t\t}\n\t\treturn sessionDirectory;\n\t}", "private File findDefaultsFile() {\r\n String defaultsPath = \"/defaults/users.defaults.xml\";\r\n String xmlDir = server.getServerProperties().get(XML_DIR_KEY);\r\n return (xmlDir == null) ?\r\n new File (System.getProperty(\"user.dir\") + \"/xml\" + defaultsPath) :\r\n new File (xmlDir + defaultsPath);\r\n }", "private static Path getMediaDirectoryPath(FileSystem fs) throws IOException {\r\n\r\n Path mediaFolderInsideZipPath = null;\r\n for (String mediaFolderInsideZip : OOXML_MEDIA_FOLDERS) {\r\n mediaFolderInsideZipPath = fs.getPath(mediaFolderInsideZip);\r\n if (Files.exists(mediaFolderInsideZipPath)) {\r\n break;\r\n }\r\n }\r\n return mediaFolderInsideZipPath;\r\n }", "Object getDir();", "public File getLogDir() {\n return logDir;\n }", "public static File getDirectoryFromConfig(ConfigurationSource conf,\n String key,\n String componentName) {\n final Collection<String> metadirs = conf.getTrimmedStringCollection(key);\n if (metadirs.size() > 1) {\n throw new IllegalArgumentException(\n \"Bad config setting \" + key +\n \". \" + componentName +\n \" does not support multiple metadata dirs currently\");\n }\n\n if (metadirs.size() == 1) {\n final File dbDirPath = new File(metadirs.iterator().next());\n if (!dbDirPath.mkdirs() && !dbDirPath.exists()) {\n throw new IllegalArgumentException(\"Unable to create directory \" +\n dbDirPath + \" specified in configuration setting \" +\n key);\n }\n try {\n Path path = dbDirPath.toPath();\n // Fetch the permissions for the respective component from the config\n String permissionValue = getPermissions(key, conf);\n String symbolicPermission = getSymbolicPermission(permissionValue);\n\n // Set the permissions for the directory\n Files.setPosixFilePermissions(path,\n PosixFilePermissions.fromString(symbolicPermission));\n } catch (Exception e) {\n throw new RuntimeException(\"Failed to set directory permissions for \" +\n dbDirPath + \": \" + e.getMessage(), e);\n }\n return dbDirPath;\n }\n\n return null;\n }", "public Path getRepositoryBaseDir();", "@Override\n protected Path calculateAppPath(Path image) throws Exception {\n return image.resolve(\"usr\").resolve(\"lib\").resolve(\"APPDIR\");\n }", "public static Object getInternalStorageDirectory() {\n\n FileObject root = Repository.getDefault().getDefaultFileSystem().getRoot();\n\n //FileObject dir = root.getFileObject(\"Storage\");\n \n //return dir;\n return null;\n }", "@Override\r\n\t\tpublic String getDir()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private synchronized Directory getDirectoryEmDisco() throws IOException{\r\n\t\tif(diretorioEmDisco == null){\r\n\t\t\tdiretorioEmDisco = FSDirectory.open(pastaDoIndice);\r\n\t\t}\r\n\t\t\r\n\t\treturn diretorioEmDisco;\r\n\t}", "public static File getScmDbDir(ConfigurationSource conf) {\n File metadataDir = getDirectoryFromConfig(conf,\n ScmConfigKeys.OZONE_SCM_DB_DIRS, \"SCM\");\n if (metadataDir != null) {\n return metadataDir;\n }\n\n LOG.warn(\"{} is not configured. We recommend adding this setting. \" +\n \"Falling back to {} instead.\",\n ScmConfigKeys.OZONE_SCM_DB_DIRS, HddsConfigKeys.OZONE_METADATA_DIRS);\n return getOzoneMetaDirPath(conf);\n }", "public File getStoreDir();", "private String getDataDirectory() {\n Session session = getSession();\n String dataDirectory;\n try {\n dataDirectory = (String) session.createSQLQuery(DATA_DIRECTORY_QUERY).list().get(0);\n } finally {\n releaseSession(session);\n }\n return dataDirectory;\n }", "java.io.File getBaseDir();", "public Path getRepositoryGroupBaseDir();", "private File getExternalPhotoStorageDir() {\n File file = new File(getExternalFilesDir(\n Environment.DIRECTORY_PICTURES), \"ApparelApp\");\n if (!file.exists() && !file.mkdirs()) {\n Log.e(TAG, \"Directory not created\");\n }\n return file;\n }", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "private void extractDefaultGeneratorLogo() {\n try {\n PlatformUtil.extractResourceToUserConfigDir(getClass(), DEFAULT_GENERATOR_LOGO, true);\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"Error extracting report branding resource for generator logo \", ex); //NON-NLS\n }\n defaultGeneratorLogoPath = PlatformUtil.getUserConfigDirectory() + File.separator + DEFAULT_GENERATOR_LOGO;\n }", "public static File getYdfDirectory()\r\n/* 36: */ throws IOException\r\n/* 37: */ {\r\n/* 38: 39 */ log.finest(\"OSHandler.getYdfDirectory\");\r\n/* 39: 40 */ return ydfDirectory == null ? setYdfDirectory() : ydfDirectory;\r\n/* 40: */ }", "abstract public String getMspluginsDir();", "@Override\n public String getConfigPath() {\n String fs = String.valueOf(File.separatorChar);\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"scan\").append(fs);\n sb.append(\"config\").append(fs);\n sb.append(\"mesoTableConfig\").append(fs);\n\n return sb.toString();\n }", "String getDirectoryPath();", "abstract public String getDataResourcesDir();", "public static String downloadDir() {\n\n String downloads = stringValue(\"treefs.downloads\");\n if(isNullOrEmpty(downloads)) {\n // default home location\n downloads = home() + File.separator + \"downloads\";\n } else {\n downloads = home() + File.separator + downloads;\n }\n\n System.out.println(\"downloadDir=\" + downloads);\n return downloads;\n }", "public File getDirectoryValue();", "static File getAppDir(String app) {\n return Minecraft.a(app);\n }", "private File getFolder() throws FileNotFoundException, IOException {\n File folder = getConfigurationFolder(new File(\".\").getCanonicalFile());\n if (!folder.isDirectory()) {\n folder = getConfigurationFolder(new File(getInstallationFolder().getPath())\n .getCanonicalFile().getParentFile().getParentFile());\n }\n\n return folder;\n }", "protected File getAsinstalldir() throws ClassNotFoundException {\n\t\tif (asinstalldir == null) {\n\t\t\tString home = getProject().getProperty(\"asinstall.dir\");\n\t\t\tif (home != null) {\n asinstalldir = new File(home);\n\t\t\t}\n else {\n home = getProject().getProperty(\"sunone.home\");\n if (home != null)\n {\n final String msg = lsm.getString(\"DeprecatedProperty\", new Object[] {\"sunone.home\", \"asinstall.dir\"});\n log(msg, Project.MSG_WARN);\n asinstalldir = new File(home);\n }\n \n }\n\t\t}\n if (asinstalldir!=null) verifyAsinstalldir(asinstalldir);\n\t\treturn asinstalldir;\n\t}", "public DicomDirectory getDicomDirectory() {\n\t\ttreeModel.getMapOfSOPInstanceUIDToReferencedFileName(this.parentFilePath);\t// initializes map using parentFilePath, ignore return value\n\t\treturn treeModel;\n\t}", "public DirectoryFileLocator() {\r\n this(System.getProperty(\"user.dir\"));\r\n }", "@Override\n public String getSystemDir() {\n return null;\n }", "public String getConfigurationDirectory() {\n\t\treturn props.getProperty(ARGUMENT_CONFIGURATION_DIRECTORY);\n\t}", "private File getConfigurationFolder(final File baseFolder) throws FileNotFoundException, IOException {\n final String METADATA_FOLDER_NAME = System.getProperty(\"com.bf.viaduct.metadata.location\", \"metadata\");\n final String CONFIG_FOLDER_NAME = \"config\";\n final String CONFIGURATION_FOLDER_NAME = \"configuration\";\n\n // If the \"metadata\" folder exists, use it, otherwise check for existence of the\n // \"configuration\" folder.\n File folder = new File(String.format(\"%s%s%s\", baseFolder.getCanonicalFile(), File.separatorChar,\n METADATA_FOLDER_NAME));\n if (!folder.isDirectory()) {\n // If the \"configuration\" folder exists, use it, otherwise use the \"config\" folder.\n folder = new File(String.format(\"%s%s%s\", baseFolder.getCanonicalFile(), File.separatorChar,\n CONFIGURATION_FOLDER_NAME));\n if (!folder.isDirectory()) {\n folder = new File(String.format(\"%s%s%s\", baseFolder.getCanonicalFile(), File.separatorChar,\n CONFIG_FOLDER_NAME));\n }\n }\n\n return folder;\n }", "public static String getConfigurationFilePath() {\n\n return getCloudTestRootPath() + File.separator + \"Config\"\n + File.separator + \"PluginConfig.xml\";\n }", "public String getEndorsedDirectories(IPath installPath);", "private static void initGameFolder() {\n\t\tString defaultFolder = System.getProperty(\"user.home\") + STENDHAL_FOLDER;\n\t\t/*\n\t\t * Add any previously unrecognized unix like systems here. These will\n\t\t * try to use ~/.config/stendhal if the user does not have saved data\n\t\t * in ~/stendhal.\n\t\t *\n\t\t * OS X is counted in here too, but should it?\n\t\t *\n\t\t * List taken from:\n\t\t * \thttp://mindprod.com/jgloss/properties.html#OSNAME\n\t\t */\n\t\tString unixLikes = \"AIX|Digital Unix|FreeBSD|HP UX|Irix|Linux|Mac OS X|Solaris\";\n\t\tString system = System.getProperty(\"os.name\");\n\t\tif (system.matches(unixLikes)) {\n\t\t\t// Check first if the user has important data in the default folder.\n\t\t\tFile f = new File(defaultFolder + \"user.dat\");\n\t\t\tif (!f.exists()) {\n\t\t\t\tgameFolder = System.getProperty(\"user.home\") + separator\n\t\t\t\t+ \".config\" + separator + STENDHAL_FOLDER;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// Everyone else should use the default top level directory in $HOME\n\t\tgameFolder = defaultFolder;\n\t}", "private String getArcGISHomeDir() throws IOException {\n String arcgisHome = null;\n /* Not found in env, check system property */\n if (System.getProperty(ARCGISHOME_ENV) != null) {\n arcgisHome = System.getProperty(ARCGISHOME_ENV);\n }\n if(arcgisHome == null) {\n /* To make env lookup case insensitive */\n Map<String, String> envs = System.getenv();\n for (String envName : envs.keySet()) {\n if (envName.equalsIgnoreCase(ARCGISHOME_ENV)) {\n arcgisHome = envs.get(envName);\n }\n }\n }\n if(arcgisHome != null && !arcgisHome.endsWith(File.separator)) {\n arcgisHome += File.separator;\n }\n return arcgisHome;\n }", "FsPath baseDir();", "public List<String> getManagedRepositoriesPaths(SecurityContext ctx, ImageData img) throws DSOutOfServiceException, DSAccessException {\n try {\n FilesetData fs = loadFileset(ctx, img);\n if (fs != null)\n return fs.getAbsolutePaths();\n } catch (Throwable t) {\n handleException(this, t, \"Could not get the file paths.\");\n }\n return Collections.emptyList();\n }", "public String getDirectory() {\n return directoryProperty().get();\n }", "protected Path getBasePathForUser(User owner) {\n return getDirectories().getDevicesPath().resolve(owner.getName());\n }", "public static File getDBPath(ConfigurationSource conf, String key) {\n final File dbDirPath =\n getDirectoryFromConfig(conf, key, \"OM\");\n if (dbDirPath != null) {\n return dbDirPath;\n }\n\n LOG.warn(\"{} is not configured. We recommend adding this setting. \"\n + \"Falling back to {} instead.\", key,\n HddsConfigKeys.OZONE_METADATA_DIRS);\n return ServerUtils.getOzoneMetaDirPath(conf);\n }", "private static String systemInstallDir() {\n String systemInstallDir = System.getProperty(ESSEM_INSTALL_DIR_SYSPROP, \"\").trim();\n if(systemInstallDir.length() > 0 && !systemInstallDir.endsWith(\"/\")) {\n systemInstallDir = systemInstallDir + \"/\";\n }\n return systemInstallDir;\n }", "protected File getDir() {\n return hasSubdirs ? DatanodeUtil.idToBlockDir(baseDir,\n getBlockId()) : baseDir;\n }", "public static String getImageDownloadDir(Context context) {\n if (downloadRootDir == null) {\n initFileDir(context);\n }\n return imageDownloadDir;\n }", "public IPath getRuntimeBaseDirectory(TomcatServer server);", "public String getDirectoryPath() {\n return EXTERNAL_PATH;\n }", "File getPluginDirectory(String pluginId);", "abstract File getTargetDirectory();", "private static File getHadoopConfFolder() throws IOException {\n if (System.getenv().containsKey(\"HADOOP_CONF_DIR\")) {\n return new File(System.getenv(\"HADOOP_CONF_DIR\"));\n } else if (System.getenv().containsKey(\"HADOOP_HOME\")) {\n return new File(System.getenv(\"HADOOP_HOME\") + \"/etc/hadoop/\");\n } else {\n throw new IOException(\"Unable to find hadoop configuration folder.\");\n }\n }", "protected String getSahiFolder() {\n String packageName = \"/sahi\";\n Path sahHomeFolder = resolveResource(AbstractSakuliTest.class, packageName);\n if (Files.exists(sahHomeFolder)) {\n return sahHomeFolder.normalize().toAbsolutePath().toString();\n }\n throw new SakuliRuntimeException(\"Cannot load SAHI_HOME folder! Should be normally under 'target/classes/\" + packageName + \"'\");\n }", "abstract public String getRingResourcesDir();", "public String getExternalStorageDir() throws IOException {\n\t\tString ret = exec(\"echo $EXTERNAL_STORAGE\").replace('\\n', ' ').trim();\n\t\tif (!(ret.endsWith(\"/\"))) {\n\t\t\tret += \"/\";\n\t\t}\n\t\treturn ret;\n\t}", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "public Path getSimulationLocation() {\n return FileManager.getSimulationDirectory(name);\n }", "public static File getDataDirectory() {\n\t\treturn DATA_DIRECTORY;\n\t}", "private static ArrayList<File> getLocalRootHiveXmlDirectories(\n Context ctx,\n NwdDb db) {\n\n HiveRoot localRoot = UtilsHive.getLocalHiveRoot(ctx, db);\n\n return getFoldersForHiveRoot(localRoot, true, false);\n }", "public static String getImageResoucesPath() {\n\t\t//return \"d:\\\\PBC\\\\GitHub\\\\Theia\\\\portal\\\\WebContent\\\\images\";\n\t\treturn \"/Users/anaswhb/Documents/Eclipse/Workspace/portal/WebContent/images\";\n\t\t\n\t}", "public static String getUserFolder() {\n\n String sPath;\n String sConfDir;\n\n \n // default is to use system's home folder setting\n sPath = System.getProperty(\"user.home\") + File.separator + \"sextante\"; \n \n // check if SEXTANTE.confDir has been set\n sConfDir = System.getProperty(\"SEXTANTE.confDir\"); \t\n if ( sConfDir != null ) {\n \t sConfDir = sConfDir.trim();\n \t \tif ( sConfDir.length() > 0 ) {\n \t \t\t// check if we have to append a separator char\n \t \t\tif ( sConfDir.endsWith(File.separator) ) {\n \t \t\t\tsPath = sConfDir;\n \t \t\t} else {\n \t \t\t\tsPath = sConfDir + File.separator;\n\t\t\t\t}\n\t\t\t}\n }\n\n final File sextanteFolder = new File(sPath);\n if (!sextanteFolder.exists()) {\n \t sextanteFolder.mkdir();\n }\n return sPath;\n\n }", "public String getDataDirectory() {\n return dataDirectory;\n }", "public static File systemInstallDir() {\n String systemInstallDir = System.getProperty(INSTALL_DIR_SYSTEM_PROP, \"../config\").trim();\n return new File(systemInstallDir);\n }", "public String getLogfileLocation() {\n return logfileLocation;\n }", "public DavResourceLocator getHomedirLocator(String principal);", "public Set<String> listManagedDirectories() throws ConfigurationException {\n\t\tConfiguration config = this.currentConfiguration();\n\t\treturn Sets.newHashSet(config.getDirectories());\n\t}", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "File getTargetDirectory();", "public void customRootDir() {\n //Be careful with case when res is false which means dir is not valid.\n boolean res = KOOM.getInstance().setRootDir(this.getCacheDir().getAbsolutePath());\n }", "private File nextLogDir() {\n if (logDirs.size() == 1) {\n return logDirs.get(0);\n } else {\n // count the number of logs in each parent directory (including 0 for empty directories\n final Multiset<String> logCount = HashMultiset.create();\n\n Utils.foreach(allLogs(), new Callable1<Log>() {\n @Override\n public void apply(Log log) {\n logCount.add(log.dir.getParent(), (int) (log.size() + 1));\n }\n });\n\n Utils.foreach(logDirs, new Callable1<File>() {\n @Override\n public void apply(File dir) {\n logCount.add(dir.getPath());\n }\n });\n\n // choose the directory with the least logs in it\n int minCount = Integer.MAX_VALUE;\n String min = \"max\";\n\n for (Multiset.Entry<String> entry : logCount.entrySet()) {\n if (entry.getCount() < minCount) {\n minCount = entry.getCount();\n min = entry.getElement();\n }\n }\n\n return new File(min);\n }\n }", "public File getInstHomeDir() {\n \treturn this.getHomeDir(\"octHome\");\n }", "private static File getStorageDir(Context context) {\n File file = new File(context.getExternalFilesDir(\n Environment.MEDIA_MOUNTED), \"ZhouImage\");\n if (!file.exists()) {\n if (!file.mkdirs()) {\n Log.e(\"TAG\", \"Directory not created\");\n }\n }\n\n return file;\n }", "private String getDataPath()\n {\n Location location = Platform.getInstanceLocation();\n if (location == null) {\n return \"@none\";\n } else {\n return location.getURL().getPath();\n }\n }", "public void testImagesDirectoryAccessible() {\n File file = new File(rootBlog.getRoot(), \"images\");\n assertEquals(file, new File(rootBlog.getImagesDirectory()));\n assertTrue(file.exists());\n }" ]
[ "0.7639446", "0.6926959", "0.6444444", "0.6096881", "0.58754927", "0.5713", "0.5689763", "0.5676549", "0.56258434", "0.5609049", "0.552963", "0.5517684", "0.5513873", "0.54723406", "0.5454403", "0.5443476", "0.54394543", "0.5431509", "0.541262", "0.54023135", "0.53964174", "0.53353775", "0.5330704", "0.5322267", "0.5286905", "0.5270069", "0.52512556", "0.5239512", "0.52292025", "0.5209181", "0.5177787", "0.51682967", "0.5162221", "0.51473045", "0.513939", "0.51393384", "0.5137239", "0.51255894", "0.5118935", "0.5118643", "0.50995845", "0.50970566", "0.5094245", "0.5093786", "0.5089365", "0.50585544", "0.5056203", "0.50517404", "0.5051099", "0.504828", "0.50287503", "0.50264156", "0.50158834", "0.5011073", "0.49892324", "0.49791524", "0.49750385", "0.49665785", "0.49620143", "0.49593315", "0.49559802", "0.49555477", "0.4951848", "0.4946339", "0.4936616", "0.49328804", "0.493162", "0.49261683", "0.49261126", "0.49184254", "0.4912097", "0.49111387", "0.4910012", "0.48923498", "0.48905167", "0.48802006", "0.48798174", "0.48759598", "0.4875865", "0.48664626", "0.48607895", "0.48482966", "0.484666", "0.4844442", "0.48438868", "0.4822548", "0.48214835", "0.48194665", "0.48156372", "0.48056293", "0.48026294", "0.48011228", "0.47943878", "0.47943473", "0.479332", "0.47895414", "0.4777852", "0.47759354", "0.47680622", "0.4766352" ]
0.7490332
1
Find the configured directory containing harvester logos. The directory the logos are located in depends on the configuration of dataImagesDir in the config.xml. (Overrides will be applied so the actual config can be in overrides)
public static Path locateHarvesterLogosDir(ServletContext context, ConfigurableApplicationContext applicationContext, Path appDir) { final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext); Path path = base.resolve("images").resolve("harvesting"); try { java.nio.file.Files.createDirectories(path); } catch (IOException e) { throw new RuntimeException(e); } return path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Path locateHarvesterLogosDir(ServiceContext context) {\n ServletContext servletContext = null;\n if (context.getServlet() != null) {\n servletContext = context.getServlet().getServletContext();\n }\n return locateHarvesterLogosDir(servletContext,\n context.getApplicationContext(), context.getAppPath());\n }", "public static Path locateLogosDir(ServletContext context,\n ConfigurableApplicationContext applicationContext, Path appDir) {\n final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext);\n Path path = base.resolve(\"images\").resolve(\"logos\");\n try {\n java.nio.file.Files.createDirectories(path);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n return path;\n }", "public static Path locateLogosDir(ServiceContext context) {\n ServletContext servletContext = null;\n \n if(context == null) {\n context = ServiceContext.get();\n }\n \n if(context == null) {\n throw new RuntimeException(\"Null Context found!!!!\");\n } else if (context.getServlet() != null) {\n servletContext = context.getServlet().getServletContext();\n }\n\n return locateLogosDir(servletContext, context.getApplicationContext(),\n context.getAppPath());\n }", "private String getConfigurationDirectory() throws UnsupportedEncodingException {\r\n\r\n String folder;\r\n if (ISphereJobLogExplorerPlugin.getDefault() != null) {\r\n // Executed, when started from a plug-in.\r\n folder = ISphereJobLogExplorerPlugin.getDefault().getStateLocation().toFile().getAbsolutePath() + File.separator + REPOSITORY_LOCATION\r\n + File.separator;\r\n FileHelper.ensureDirectory(folder);\r\n } else {\r\n // Executed, when started on a command line.\r\n URL url = getClass().getResource(DEFAULT_CONFIGURATION_FILE);\r\n if (url == null) {\r\n return null;\r\n }\r\n String resource = URLDecoder.decode(url.getFile(), \"utf-8\"); //$NON-NLS-1$\r\n folder = new File(resource).getParent() + File.separator;\r\n }\r\n return folder;\r\n }", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "public static String uploadDir() {\n\n String uploads = stringValue(\"treefs.uploads\");\n if(isNullOrEmpty(uploads)) {\n // default home location\n uploads = home() + File.separator + \"uploads\";\n } else {\n uploads = home() + File.separator + uploads;\n }\n\n System.out.println(\"uploadDir=\" + uploads);\n return uploads;\n }", "public File getCommonDir()\n {\n return validatePath(ServerSettings.getInstance().getProperty(ServerSettings.COMMON_DIR));\n }", "public static Path findImagePath(String imageName, Path logosDir) throws IOException {\n if (imageName.indexOf('.') > -1) {\n final Path imagePath = logosDir.resolve(imageName);\n if (java.nio.file.Files.exists(imagePath)) {\n return imagePath;\n }\n } else {\n try (DirectoryStream<Path> possibleLogos = java.nio.file.Files.newDirectoryStream(logosDir, imageName + \".*\")) {\n final Iterator<Path> pathIterator = possibleLogos.iterator();\n while (pathIterator.hasNext()) {\n final Path next = pathIterator.next();\n String ext = Files.getFileExtension(next.getFileName().toString());\n if (IMAGE_EXTENSIONS.contains(ext.toLowerCase())) {\n return next;\n }\n }\n }\n }\n\n return null;\n }", "private StringBuffer getLogDirectory() {\n final StringBuffer directory = new StringBuffer();\n directory.append(directoryProvider.get());\n if (directory.charAt(directory.length() - 1) != File.separatorChar) {\n directory.append(File.separatorChar);\n }\n return directory;\n }", "public String getImageDir() {\n return (String) data[GENERAL_IMAGE_DIR][PROP_VAL_VALUE];\n }", "public static File getLogDirectory() {\n\t\treturn LOG_DIRECTORY;\n\t}", "public static File getConfigDirectory() {\n return getDirectoryStoragePath(\"/NWD/config\", false);\n }", "public static File getOzoneMetaDirPath(ConfigurationSource conf) {\n File dirPath = getDirectoryFromConfig(conf,\n HddsConfigKeys.OZONE_METADATA_DIRS, \"Ozone\");\n if (dirPath == null) {\n throw new IllegalArgumentException(\n HddsConfigKeys.OZONE_METADATA_DIRS + \" must be defined.\");\n }\n return dirPath;\n }", "@Override\n public String getApplicationDirectory() {\n return Comm.getAppHost().getAppLogDirPath();\n }", "public static Path locateResourcesDir(ServletContext context,\n ApplicationContext applicationContext) {\n Path property = null;\n try {\n property = applicationContext.getBean(GeonetworkDataDirectory.class).getResourcesDir();\n } catch (NoSuchBeanDefinitionException e) {\n final String realPath = context.getRealPath(\"/WEB-INF/data/resources\");\n if (realPath != null) {\n property = IO.toPath(realPath);\n }\n }\n\n if (property == null) {\n return IO.toPath(\"resources\");\n } else {\n return property;\n }\n }", "public static Path locateResourcesDir(ServiceContext context) {\n if (context.getServlet() != null) {\n return locateResourcesDir(context.getServlet().getServletContext(), context.getApplicationContext());\n }\n\n return context.getBean(GeonetworkDataDirectory.class).getResourcesDir();\n }", "private static void displayImagesDir(){\n System.out.println(IMAGES_DIR);\n }", "public String getDir();", "abstract public String getImageResourcesDir();", "public Path getDataDirectory();", "public Path getRemoteRepositoryBaseDir();", "String getDir();", "private File getDataDir(){\n\t\tFile file = new File(this.configManager.getConfigDirectory() +\n\t\t\t\tFile.separator + \n\t\t\t\tDATA_DIR);\n\t\t\n\t\tif(!file.exists()){\n\t\t\tfile.mkdirs();\n\t\t}\n\t\t\n\t\treturn file;\n\t}", "private Optional<Path> dataSetDir() {\n Optional<String> dataSetDirProperty = demoProperties.dataSetDir();\n if (!dataSetDirProperty.isPresent()) {\n logger.info(\"Data set directory (app.demo.data-set-dir) is not set.\");\n return Optional.empty();\n }\n Path dataSetDirPath = Paths.get(dataSetDirProperty.get());\n if (!isReadableDir(dataSetDirPath)) {\n logger.warn(\n \"Data set directory '{}' doesn't exist or cannot be read. No external data sets will be loaded.\",\n dataSetDirPath.toAbsolutePath());\n return Optional.empty();\n }\n return Optional.of(dataSetDirPath);\n }", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "private String getDicDir() {\n\t\tString wDir = null;\n\n\t\tif (System.getProperties().containsKey(\"root\")) {\n\t\t\twDir = System.getProperty(\"root\");\n\t\t}\n\n\t\tif ((wDir == null || wDir.isEmpty()) && CPlatform.isMacOs())\n\t\t\twDir = new File(CPlatform.getUserHome(), \"Library/Spelling\")\n\t\t\t\t\t.getAbsolutePath();\n\n\t\tif (wDir == null || wDir.isEmpty())\n\t\t\twDir = \"/home/ff/projects/hunspell\";\n\t\treturn wDir;\n\t}", "public static File searchForLog4jConfig() throws FileNotFoundException {\n return searchForFile(\n \"log4j2-test.xml\",\n asList(\n // Normal place to put log4j config\n \"src/test/resources\",\n // If no config is provided, use config from platform\n \"../../../swirlds-platform-core/src/test/resources\",\n // If no config is provided, use config from platform\n \"../swirlds-platform-core/src/test/resources\",\n // AWS location\n \"swirlds-platform-core/src/test/java/main/resources\"));\n }", "private Path getDefaultLogsSessionDirectory(String sLogsDownloadPath)\n\t{\n\t\tPath sessionDirectory;\n\t\tString sCurrentIp = spotInfo.getUPMip();\t\t\n\t\ttry\n\t\t{\n\t\t\tsessionDirectory = Paths.get( sLogsDownloadPath, sCurrentIp+\"_\"+ EdtUtil.getDateTimeStamp( \"yyyy-MM-dd'T'HHmmss\" ) ); // The path is built with the download_path/target_unit_ip/timestamp/\n\t\t}\n\t\tcatch (RuntimeException e)\n\t\t{\n\t\t\tsessionDirectory = Paths.get( sLogsDownloadPath, sCurrentIp+\"_tmp\" );\n\t\t}\n\t\treturn sessionDirectory;\n\t}", "private File findDefaultsFile() {\r\n String defaultsPath = \"/defaults/users.defaults.xml\";\r\n String xmlDir = server.getServerProperties().get(XML_DIR_KEY);\r\n return (xmlDir == null) ?\r\n new File (System.getProperty(\"user.dir\") + \"/xml\" + defaultsPath) :\r\n new File (xmlDir + defaultsPath);\r\n }", "private static Path getMediaDirectoryPath(FileSystem fs) throws IOException {\r\n\r\n Path mediaFolderInsideZipPath = null;\r\n for (String mediaFolderInsideZip : OOXML_MEDIA_FOLDERS) {\r\n mediaFolderInsideZipPath = fs.getPath(mediaFolderInsideZip);\r\n if (Files.exists(mediaFolderInsideZipPath)) {\r\n break;\r\n }\r\n }\r\n return mediaFolderInsideZipPath;\r\n }", "Object getDir();", "public File getLogDir() {\n return logDir;\n }", "public static File getDirectoryFromConfig(ConfigurationSource conf,\n String key,\n String componentName) {\n final Collection<String> metadirs = conf.getTrimmedStringCollection(key);\n if (metadirs.size() > 1) {\n throw new IllegalArgumentException(\n \"Bad config setting \" + key +\n \". \" + componentName +\n \" does not support multiple metadata dirs currently\");\n }\n\n if (metadirs.size() == 1) {\n final File dbDirPath = new File(metadirs.iterator().next());\n if (!dbDirPath.mkdirs() && !dbDirPath.exists()) {\n throw new IllegalArgumentException(\"Unable to create directory \" +\n dbDirPath + \" specified in configuration setting \" +\n key);\n }\n try {\n Path path = dbDirPath.toPath();\n // Fetch the permissions for the respective component from the config\n String permissionValue = getPermissions(key, conf);\n String symbolicPermission = getSymbolicPermission(permissionValue);\n\n // Set the permissions for the directory\n Files.setPosixFilePermissions(path,\n PosixFilePermissions.fromString(symbolicPermission));\n } catch (Exception e) {\n throw new RuntimeException(\"Failed to set directory permissions for \" +\n dbDirPath + \": \" + e.getMessage(), e);\n }\n return dbDirPath;\n }\n\n return null;\n }", "public Path getRepositoryBaseDir();", "@Override\n protected Path calculateAppPath(Path image) throws Exception {\n return image.resolve(\"usr\").resolve(\"lib\").resolve(\"APPDIR\");\n }", "public static Object getInternalStorageDirectory() {\n\n FileObject root = Repository.getDefault().getDefaultFileSystem().getRoot();\n\n //FileObject dir = root.getFileObject(\"Storage\");\n \n //return dir;\n return null;\n }", "@Override\r\n\t\tpublic String getDir()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private synchronized Directory getDirectoryEmDisco() throws IOException{\r\n\t\tif(diretorioEmDisco == null){\r\n\t\t\tdiretorioEmDisco = FSDirectory.open(pastaDoIndice);\r\n\t\t}\r\n\t\t\r\n\t\treturn diretorioEmDisco;\r\n\t}", "public static File getScmDbDir(ConfigurationSource conf) {\n File metadataDir = getDirectoryFromConfig(conf,\n ScmConfigKeys.OZONE_SCM_DB_DIRS, \"SCM\");\n if (metadataDir != null) {\n return metadataDir;\n }\n\n LOG.warn(\"{} is not configured. We recommend adding this setting. \" +\n \"Falling back to {} instead.\",\n ScmConfigKeys.OZONE_SCM_DB_DIRS, HddsConfigKeys.OZONE_METADATA_DIRS);\n return getOzoneMetaDirPath(conf);\n }", "public File getStoreDir();", "private String getDataDirectory() {\n Session session = getSession();\n String dataDirectory;\n try {\n dataDirectory = (String) session.createSQLQuery(DATA_DIRECTORY_QUERY).list().get(0);\n } finally {\n releaseSession(session);\n }\n return dataDirectory;\n }", "java.io.File getBaseDir();", "public Path getRepositoryGroupBaseDir();", "private File getExternalPhotoStorageDir() {\n File file = new File(getExternalFilesDir(\n Environment.DIRECTORY_PICTURES), \"ApparelApp\");\n if (!file.exists() && !file.mkdirs()) {\n Log.e(TAG, \"Directory not created\");\n }\n return file;\n }", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "private void extractDefaultGeneratorLogo() {\n try {\n PlatformUtil.extractResourceToUserConfigDir(getClass(), DEFAULT_GENERATOR_LOGO, true);\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"Error extracting report branding resource for generator logo \", ex); //NON-NLS\n }\n defaultGeneratorLogoPath = PlatformUtil.getUserConfigDirectory() + File.separator + DEFAULT_GENERATOR_LOGO;\n }", "public static File getYdfDirectory()\r\n/* 36: */ throws IOException\r\n/* 37: */ {\r\n/* 38: 39 */ log.finest(\"OSHandler.getYdfDirectory\");\r\n/* 39: 40 */ return ydfDirectory == null ? setYdfDirectory() : ydfDirectory;\r\n/* 40: */ }", "abstract public String getMspluginsDir();", "@Override\n public String getConfigPath() {\n String fs = String.valueOf(File.separatorChar);\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"scan\").append(fs);\n sb.append(\"config\").append(fs);\n sb.append(\"mesoTableConfig\").append(fs);\n\n return sb.toString();\n }", "String getDirectoryPath();", "abstract public String getDataResourcesDir();", "public static String downloadDir() {\n\n String downloads = stringValue(\"treefs.downloads\");\n if(isNullOrEmpty(downloads)) {\n // default home location\n downloads = home() + File.separator + \"downloads\";\n } else {\n downloads = home() + File.separator + downloads;\n }\n\n System.out.println(\"downloadDir=\" + downloads);\n return downloads;\n }", "public File getDirectoryValue();", "static File getAppDir(String app) {\n return Minecraft.a(app);\n }", "private File getFolder() throws FileNotFoundException, IOException {\n File folder = getConfigurationFolder(new File(\".\").getCanonicalFile());\n if (!folder.isDirectory()) {\n folder = getConfigurationFolder(new File(getInstallationFolder().getPath())\n .getCanonicalFile().getParentFile().getParentFile());\n }\n\n return folder;\n }", "protected File getAsinstalldir() throws ClassNotFoundException {\n\t\tif (asinstalldir == null) {\n\t\t\tString home = getProject().getProperty(\"asinstall.dir\");\n\t\t\tif (home != null) {\n asinstalldir = new File(home);\n\t\t\t}\n else {\n home = getProject().getProperty(\"sunone.home\");\n if (home != null)\n {\n final String msg = lsm.getString(\"DeprecatedProperty\", new Object[] {\"sunone.home\", \"asinstall.dir\"});\n log(msg, Project.MSG_WARN);\n asinstalldir = new File(home);\n }\n \n }\n\t\t}\n if (asinstalldir!=null) verifyAsinstalldir(asinstalldir);\n\t\treturn asinstalldir;\n\t}", "public DicomDirectory getDicomDirectory() {\n\t\ttreeModel.getMapOfSOPInstanceUIDToReferencedFileName(this.parentFilePath);\t// initializes map using parentFilePath, ignore return value\n\t\treturn treeModel;\n\t}", "public DirectoryFileLocator() {\r\n this(System.getProperty(\"user.dir\"));\r\n }", "@Override\n public String getSystemDir() {\n return null;\n }", "public String getConfigurationDirectory() {\n\t\treturn props.getProperty(ARGUMENT_CONFIGURATION_DIRECTORY);\n\t}", "private File getConfigurationFolder(final File baseFolder) throws FileNotFoundException, IOException {\n final String METADATA_FOLDER_NAME = System.getProperty(\"com.bf.viaduct.metadata.location\", \"metadata\");\n final String CONFIG_FOLDER_NAME = \"config\";\n final String CONFIGURATION_FOLDER_NAME = \"configuration\";\n\n // If the \"metadata\" folder exists, use it, otherwise check for existence of the\n // \"configuration\" folder.\n File folder = new File(String.format(\"%s%s%s\", baseFolder.getCanonicalFile(), File.separatorChar,\n METADATA_FOLDER_NAME));\n if (!folder.isDirectory()) {\n // If the \"configuration\" folder exists, use it, otherwise use the \"config\" folder.\n folder = new File(String.format(\"%s%s%s\", baseFolder.getCanonicalFile(), File.separatorChar,\n CONFIGURATION_FOLDER_NAME));\n if (!folder.isDirectory()) {\n folder = new File(String.format(\"%s%s%s\", baseFolder.getCanonicalFile(), File.separatorChar,\n CONFIG_FOLDER_NAME));\n }\n }\n\n return folder;\n }", "public static String getConfigurationFilePath() {\n\n return getCloudTestRootPath() + File.separator + \"Config\"\n + File.separator + \"PluginConfig.xml\";\n }", "public String getEndorsedDirectories(IPath installPath);", "private static void initGameFolder() {\n\t\tString defaultFolder = System.getProperty(\"user.home\") + STENDHAL_FOLDER;\n\t\t/*\n\t\t * Add any previously unrecognized unix like systems here. These will\n\t\t * try to use ~/.config/stendhal if the user does not have saved data\n\t\t * in ~/stendhal.\n\t\t *\n\t\t * OS X is counted in here too, but should it?\n\t\t *\n\t\t * List taken from:\n\t\t * \thttp://mindprod.com/jgloss/properties.html#OSNAME\n\t\t */\n\t\tString unixLikes = \"AIX|Digital Unix|FreeBSD|HP UX|Irix|Linux|Mac OS X|Solaris\";\n\t\tString system = System.getProperty(\"os.name\");\n\t\tif (system.matches(unixLikes)) {\n\t\t\t// Check first if the user has important data in the default folder.\n\t\t\tFile f = new File(defaultFolder + \"user.dat\");\n\t\t\tif (!f.exists()) {\n\t\t\t\tgameFolder = System.getProperty(\"user.home\") + separator\n\t\t\t\t+ \".config\" + separator + STENDHAL_FOLDER;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// Everyone else should use the default top level directory in $HOME\n\t\tgameFolder = defaultFolder;\n\t}", "private String getArcGISHomeDir() throws IOException {\n String arcgisHome = null;\n /* Not found in env, check system property */\n if (System.getProperty(ARCGISHOME_ENV) != null) {\n arcgisHome = System.getProperty(ARCGISHOME_ENV);\n }\n if(arcgisHome == null) {\n /* To make env lookup case insensitive */\n Map<String, String> envs = System.getenv();\n for (String envName : envs.keySet()) {\n if (envName.equalsIgnoreCase(ARCGISHOME_ENV)) {\n arcgisHome = envs.get(envName);\n }\n }\n }\n if(arcgisHome != null && !arcgisHome.endsWith(File.separator)) {\n arcgisHome += File.separator;\n }\n return arcgisHome;\n }", "FsPath baseDir();", "public List<String> getManagedRepositoriesPaths(SecurityContext ctx, ImageData img) throws DSOutOfServiceException, DSAccessException {\n try {\n FilesetData fs = loadFileset(ctx, img);\n if (fs != null)\n return fs.getAbsolutePaths();\n } catch (Throwable t) {\n handleException(this, t, \"Could not get the file paths.\");\n }\n return Collections.emptyList();\n }", "public String getDirectory() {\n return directoryProperty().get();\n }", "protected Path getBasePathForUser(User owner) {\n return getDirectories().getDevicesPath().resolve(owner.getName());\n }", "public static File getDBPath(ConfigurationSource conf, String key) {\n final File dbDirPath =\n getDirectoryFromConfig(conf, key, \"OM\");\n if (dbDirPath != null) {\n return dbDirPath;\n }\n\n LOG.warn(\"{} is not configured. We recommend adding this setting. \"\n + \"Falling back to {} instead.\", key,\n HddsConfigKeys.OZONE_METADATA_DIRS);\n return ServerUtils.getOzoneMetaDirPath(conf);\n }", "private static String systemInstallDir() {\n String systemInstallDir = System.getProperty(ESSEM_INSTALL_DIR_SYSPROP, \"\").trim();\n if(systemInstallDir.length() > 0 && !systemInstallDir.endsWith(\"/\")) {\n systemInstallDir = systemInstallDir + \"/\";\n }\n return systemInstallDir;\n }", "protected File getDir() {\n return hasSubdirs ? DatanodeUtil.idToBlockDir(baseDir,\n getBlockId()) : baseDir;\n }", "public static String getImageDownloadDir(Context context) {\n if (downloadRootDir == null) {\n initFileDir(context);\n }\n return imageDownloadDir;\n }", "public IPath getRuntimeBaseDirectory(TomcatServer server);", "public String getDirectoryPath() {\n return EXTERNAL_PATH;\n }", "File getPluginDirectory(String pluginId);", "abstract File getTargetDirectory();", "private static File getHadoopConfFolder() throws IOException {\n if (System.getenv().containsKey(\"HADOOP_CONF_DIR\")) {\n return new File(System.getenv(\"HADOOP_CONF_DIR\"));\n } else if (System.getenv().containsKey(\"HADOOP_HOME\")) {\n return new File(System.getenv(\"HADOOP_HOME\") + \"/etc/hadoop/\");\n } else {\n throw new IOException(\"Unable to find hadoop configuration folder.\");\n }\n }", "protected String getSahiFolder() {\n String packageName = \"/sahi\";\n Path sahHomeFolder = resolveResource(AbstractSakuliTest.class, packageName);\n if (Files.exists(sahHomeFolder)) {\n return sahHomeFolder.normalize().toAbsolutePath().toString();\n }\n throw new SakuliRuntimeException(\"Cannot load SAHI_HOME folder! Should be normally under 'target/classes/\" + packageName + \"'\");\n }", "abstract public String getRingResourcesDir();", "public String getExternalStorageDir() throws IOException {\n\t\tString ret = exec(\"echo $EXTERNAL_STORAGE\").replace('\\n', ' ').trim();\n\t\tif (!(ret.endsWith(\"/\"))) {\n\t\t\tret += \"/\";\n\t\t}\n\t\treturn ret;\n\t}", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "public Path getSimulationLocation() {\n return FileManager.getSimulationDirectory(name);\n }", "public static File getDataDirectory() {\n\t\treturn DATA_DIRECTORY;\n\t}", "private static ArrayList<File> getLocalRootHiveXmlDirectories(\n Context ctx,\n NwdDb db) {\n\n HiveRoot localRoot = UtilsHive.getLocalHiveRoot(ctx, db);\n\n return getFoldersForHiveRoot(localRoot, true, false);\n }", "public static String getImageResoucesPath() {\n\t\t//return \"d:\\\\PBC\\\\GitHub\\\\Theia\\\\portal\\\\WebContent\\\\images\";\n\t\treturn \"/Users/anaswhb/Documents/Eclipse/Workspace/portal/WebContent/images\";\n\t\t\n\t}", "public static String getUserFolder() {\n\n String sPath;\n String sConfDir;\n\n \n // default is to use system's home folder setting\n sPath = System.getProperty(\"user.home\") + File.separator + \"sextante\"; \n \n // check if SEXTANTE.confDir has been set\n sConfDir = System.getProperty(\"SEXTANTE.confDir\"); \t\n if ( sConfDir != null ) {\n \t sConfDir = sConfDir.trim();\n \t \tif ( sConfDir.length() > 0 ) {\n \t \t\t// check if we have to append a separator char\n \t \t\tif ( sConfDir.endsWith(File.separator) ) {\n \t \t\t\tsPath = sConfDir;\n \t \t\t} else {\n \t \t\t\tsPath = sConfDir + File.separator;\n\t\t\t\t}\n\t\t\t}\n }\n\n final File sextanteFolder = new File(sPath);\n if (!sextanteFolder.exists()) {\n \t sextanteFolder.mkdir();\n }\n return sPath;\n\n }", "public String getDataDirectory() {\n return dataDirectory;\n }", "public static File systemInstallDir() {\n String systemInstallDir = System.getProperty(INSTALL_DIR_SYSTEM_PROP, \"../config\").trim();\n return new File(systemInstallDir);\n }", "public String getLogfileLocation() {\n return logfileLocation;\n }", "public DavResourceLocator getHomedirLocator(String principal);", "public Set<String> listManagedDirectories() throws ConfigurationException {\n\t\tConfiguration config = this.currentConfiguration();\n\t\treturn Sets.newHashSet(config.getDirectories());\n\t}", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "File getTargetDirectory();", "public void customRootDir() {\n //Be careful with case when res is false which means dir is not valid.\n boolean res = KOOM.getInstance().setRootDir(this.getCacheDir().getAbsolutePath());\n }", "private File nextLogDir() {\n if (logDirs.size() == 1) {\n return logDirs.get(0);\n } else {\n // count the number of logs in each parent directory (including 0 for empty directories\n final Multiset<String> logCount = HashMultiset.create();\n\n Utils.foreach(allLogs(), new Callable1<Log>() {\n @Override\n public void apply(Log log) {\n logCount.add(log.dir.getParent(), (int) (log.size() + 1));\n }\n });\n\n Utils.foreach(logDirs, new Callable1<File>() {\n @Override\n public void apply(File dir) {\n logCount.add(dir.getPath());\n }\n });\n\n // choose the directory with the least logs in it\n int minCount = Integer.MAX_VALUE;\n String min = \"max\";\n\n for (Multiset.Entry<String> entry : logCount.entrySet()) {\n if (entry.getCount() < minCount) {\n minCount = entry.getCount();\n min = entry.getElement();\n }\n }\n\n return new File(min);\n }\n }", "public File getInstHomeDir() {\n \treturn this.getHomeDir(\"octHome\");\n }", "private static File getStorageDir(Context context) {\n File file = new File(context.getExternalFilesDir(\n Environment.MEDIA_MOUNTED), \"ZhouImage\");\n if (!file.exists()) {\n if (!file.mkdirs()) {\n Log.e(\"TAG\", \"Directory not created\");\n }\n }\n\n return file;\n }", "private String getDataPath()\n {\n Location location = Platform.getInstanceLocation();\n if (location == null) {\n return \"@none\";\n } else {\n return location.getURL().getPath();\n }\n }", "public void testImagesDirectoryAccessible() {\n File file = new File(rootBlog.getRoot(), \"images\");\n assertEquals(file, new File(rootBlog.getImagesDirectory()));\n assertTrue(file.exists());\n }" ]
[ "0.7490332", "0.6926959", "0.6444444", "0.6096881", "0.58754927", "0.5713", "0.5689763", "0.5676549", "0.56258434", "0.5609049", "0.552963", "0.5517684", "0.5513873", "0.54723406", "0.5454403", "0.5443476", "0.54394543", "0.5431509", "0.541262", "0.54023135", "0.53964174", "0.53353775", "0.5330704", "0.5322267", "0.5286905", "0.5270069", "0.52512556", "0.5239512", "0.52292025", "0.5209181", "0.5177787", "0.51682967", "0.5162221", "0.51473045", "0.513939", "0.51393384", "0.5137239", "0.51255894", "0.5118935", "0.5118643", "0.50995845", "0.50970566", "0.5094245", "0.5093786", "0.5089365", "0.50585544", "0.5056203", "0.50517404", "0.5051099", "0.504828", "0.50287503", "0.50264156", "0.50158834", "0.5011073", "0.49892324", "0.49791524", "0.49750385", "0.49665785", "0.49620143", "0.49593315", "0.49559802", "0.49555477", "0.4951848", "0.4946339", "0.4936616", "0.49328804", "0.493162", "0.49261683", "0.49261126", "0.49184254", "0.4912097", "0.49111387", "0.4910012", "0.48923498", "0.48905167", "0.48802006", "0.48798174", "0.48759598", "0.4875865", "0.48664626", "0.48607895", "0.48482966", "0.484666", "0.4844442", "0.48438868", "0.4822548", "0.48214835", "0.48194665", "0.48156372", "0.48056293", "0.48026294", "0.48011228", "0.47943878", "0.47943473", "0.479332", "0.47895414", "0.4777852", "0.47759354", "0.47680622", "0.4766352" ]
0.7639446
0
The root of the "data" images. A Data image is an image that is dependent on the webapplication instance. They are the images that change from installation to installation like logos and harvester logos. The directory is configured by config.xml and the configuration overrides. See the information on configuration overrides for methods of configuring them.
public static Path locateResourcesDir(ServiceContext context) { if (context.getServlet() != null) { return locateResourcesDir(context.getServlet().getServletContext(), context.getApplicationContext()); } return context.getBean(GeonetworkDataDirectory.class).getResourcesDir(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static File getDataDirectory() {\n\t\treturn DATA_DIRECTORY;\n\t}", "abstract public String getDataResourcesDir();", "public String getDataPath() {\n\t\treturn \"data\";\r\n\t}", "public Path getDataDirectory();", "public String getDataDirectory() {\n return dataDirectory;\n }", "public String getDataDir() {\n\t\treturn dataDir;\n\t}", "private File getDataDir(){\n\t\tFile file = new File(this.configManager.getConfigDirectory() +\n\t\t\t\tFile.separator + \n\t\t\t\tDATA_DIR);\n\t\t\n\t\tif(!file.exists()){\n\t\t\tfile.mkdirs();\n\t\t}\n\t\t\n\t\treturn file;\n\t}", "public File getDataFolder() {\n return dataFolder;\n }", "public URI getConfigurationDataRoot() {\n return configurationDataRoot;\n }", "public URI getLogDataRoot() {\n return logDataRoot;\n }", "public void setDataDirectory(String dataDirectory) {\n this.dataDirectory = dataDirectory;\n }", "private static void displayImagesDir(){\n System.out.println(IMAGES_DIR);\n }", "abstract public String getImageResourcesDir();", "public static void initCacheFileByData(Context context) {\n\t\tfinal String imageDir = getAppFilesDirByData(context)+ CACHE_IMG_DIR_PATH;\n\t\tfinal File imageFileDir = new File(imageDir);\n\t\tif (!imageFileDir.exists()) {\n\t\t\timageFileDir.mkdirs();\n\t\t}\n\t}", "private String getDataPath()\n {\n Location location = Platform.getInstanceLocation();\n if (location == null) {\n return \"@none\";\n } else {\n return location.getURL().getPath();\n }\n }", "public String getDataParent () {\n if (dataParent == null) {\n return System.getProperty (GlobalConstants.USER_DIR);\n } else {\n return dataParent;\n }\n }", "public String getPFDataPath() {\n\t\t// TODO Auto-generated method stub\n\t\tString path = pfDir.getPath()+\"/data/\";\n\t\treturn path;\n\t}", "public String getImageDir() {\n return (String) data[GENERAL_IMAGE_DIR][PROP_VAL_VALUE];\n }", "public void initializeImages() {\n\n File dir = new File(\"Images\");\n if (!dir.exists()) {\n boolean success = dir.mkdir();\n System.out.println(\"Images directory created!\");\n }\n }", "private String getDataDirectory() {\n Session session = getSession();\n String dataDirectory;\n try {\n dataDirectory = (String) session.createSQLQuery(DATA_DIRECTORY_QUERY).list().get(0);\n } finally {\n releaseSession(session);\n }\n return dataDirectory;\n }", "public String getDataFilePath() {\r\n \t\treturn dataFile;\r\n \t}", "public static final String getDataServerUrl() {\n\t\treturn \"http://uifolder.coolauncher.com.cn/iloong/pui/ServicesEngineV1/DataService\";\n\t}", "public void createSubDirData() {\n\t\tFile f = new File(getPFDataPath());\n\t\tf.mkdirs();\n\t}", "public URI getSnapshotDataRoot() {\n return snapshotDataRoot;\n }", "@Override\n public String getImagePath() {\n return IMAGE_PATH;\n }", "public File prepareDataFolder() {\n if (!dataFolder.exists()) {\n dataFolder.mkdirs();\n }\n return dataFolder;\n }", "@PostConstruct\n public void onStart() {\n final String path = \"/images/\";\n try {\n final Path path_of_resource = getPathOfResource(path);\n saveImagesFolder(path_of_resource);\n } catch (final IOException e1) {\n e1.printStackTrace();\n }\n }", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "public static File getRootDirectory() {\n\t\treturn ROOT_DIRECTORY;\n\t}", "public void makeData() {\n\t\tFile file = null;\r\n try {\r\n if (!m.getDataFolder().exists()) { //Check if the directory of the plugin exists...\r\n \tm.getDataFolder().mkdirs(); //If not making one.\r\n }\r\n file = new File(m.getDataFolder(), \"data.yml\"); // Defining file to data.yml NOTE: This file has to be also in your Project, even if it's empty.\r\n if (!file.exists()) { //Check if it exists\r\n \tm.getLogger().info(\"data.yml not found, creating!\"); //Log that it is creating\r\n \tm.saveResource(\"data.yml\", true); //Saving the resource, This is all by Java done no Spigot noeeded. \r\n } else {\r\n \tm.getLogger().info(\"data.yml found, loading!\"); //If it is already there, load it.\r\n \t//TODO: Loading...\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();//If something returned a NPE or something it will print a stacktrace...\r\n }\r\n\t}", "private boolean getData() {\n if ( tiTree != null && !tiTree.isDisposed() ) {\n tiTree.dispose();\n }\n\n tiTree = new TreeItem( wTree, SWT.NONE );\n tiTree.setImage( GUIResource.getInstance().getImageFolder() );\n RepositoryDirectoryUI.getDirectoryTree( tiTree, dircolor, repositoryTree );\n tiTree.setExpanded( true );\n\n return true;\n }", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "@EventListener(ApplicationReadyEvent.class)\n private void createImageDirectory()\n {\n new File(productImageUpload).mkdir();\n }", "public List<DataDiskImageEncryption> dataDiskImages() {\n return this.dataDiskImages;\n }", "public interface DataVar {\n String APP_ROOT_FILE = Environment.getExternalStorageDirectory().getPath()\n + File.separator + \"NoteMyLife\";\n String APP_IMG_FILE = APP_ROOT_FILE + File.separator + \"img\";\n\n //把当前用户的登陆信息保存到本地时的键\n String SP_FILE = \"USER_DATA\";\n String SP_USER_ID = \"userId\";\n String SP_EMAIL = \"userAccount\";\n String SP_PASSWORD = \"userPassword\";\n String SP_HEAD = \"head\";\n String INIT_HEAD_IMAGE_FILE_NAME = \"0.png\";\n}", "Data() throws IOException {\n // Initialise new default path from scratch\n path = Path.of(\"src/main/data/duke.txt\");\n new File(\"src/main/data\").mkdirs();\n new File(path.toString()).createNewFile();\n }", "public URI getSwapFileDataRoot() {\n return swapFileDataRoot;\n }", "public File getRootDir() {\r\n\t\treturn rootDir;\r\n\t}", "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "public static String getImageResoucesPath() {\n\t\t//return \"d:\\\\PBC\\\\GitHub\\\\Theia\\\\portal\\\\WebContent\\\\images\";\n\t\treturn \"/Users/anaswhb/Documents/Eclipse/Workspace/portal/WebContent/images\";\n\t\t\n\t}", "@Override\r\n protected String getDiskLocation()\r\n {\r\n return dataFile.getFilePath();\r\n }", "public void customRootDir() {\n //Be careful with case when res is false which means dir is not valid.\n boolean res = KOOM.getInstance().setRootDir(this.getCacheDir().getAbsolutePath());\n }", "private void writeRootData() {\n synchronized (this.mRootDataList) {\n try {\n FileOutputStream fos = new FileOutputStream(getRootDataFile());\n BufferedOutputStream bos = new BufferedOutputStream(fos);\n Iterator<String> it = this.mRootDataList.iterator();\n while (it.hasNext()) {\n bos.write(it.next().getBytes(StandardCharsets.UTF_8));\n bos.write(System.lineSeparator().getBytes(StandardCharsets.UTF_8));\n }\n bos.close();\n fos.close();\n } catch (IOException e) {\n HiLog.error(RootDetectReport.HILOG_LABEL, \"Failed to write root result data\", new Object[0]);\n }\n }\n }", "public File getDataStoreDir() {\n\t\treturn this.localDataStoreDir;\n\t}", "@Test\r\n\tpublic void addingAnImageRoot() throws IOException, DocumentException {\r\n\t\tDocument doc = new Document(PageSize.A4);\r\n\t\tPdfWriter writer = PdfWriter.getInstance(doc, new FileOutputStream(new File(\r\n\t\t\t\t\"./src/test/resources/examples/columbus3.pdf\")));\r\n\t\tdoc.open();\r\n\t\tHtmlPipelineContext htmlContext = new HtmlPipelineContext(null);\r\n\t\thtmlContext.setImageProvider(new AbstractImageProvider() {\r\n\r\n\t\t\tpublic String getImageRootPath() {\r\n\t\t\t\treturn \"http://www.gutenberg.org/dirs/1/8/0/6/18066/18066-h/\";\r\n\t\t\t}\r\n\t\t}).setTagFactory(Tags.getHtmlTagProcessorFactory());\r\n\t\tCSSResolver cssResolver = XMLWorkerHelper.getInstance().getDefaultCssResolver(true);\r\n\t\tPipeline<?> pipeline = new CssResolverPipeline(cssResolver, new HtmlPipeline(htmlContext,\r\n\t\t\t\tnew PdfWriterPipeline(doc, writer)));\r\n\t\tXMLWorker worker = new XMLWorker(pipeline, true);\r\n\t\tXMLParser p = new XMLParser(worker);\r\n\t\tp.parse(XMLWorkerHelperExample.class.getResourceAsStream(\"columbus.html\"));\r\n\t\tdoc.close();\r\n\t}", "public SimpleDirectory() {\n this.container = new Entry[SimpleDirectory.DEFAULT_SIZE];\n this.loadFactor = SimpleDirectory.DEFAULT_LOAD_FACTOR;\n }", "public void setRootDir(String rootDir);", "public void testImagesDirectoryAccessible() {\n File file = new File(rootBlog.getRoot(), \"images\");\n assertEquals(file, new File(rootBlog.getImagesDirectory()));\n assertTrue(file.exists());\n }", "public File getRootDir() {\n return rootDir;\n }", "private final void directory() {\n\t\tif (!this.plugin.getDataFolder().isDirectory()) {\n\t\t\tif (!this.plugin.getDataFolder().mkdirs()) {\n\t\t\t\tMain.SEVERE(\"Failed to create directory\");\n\t\t\t} else {\n\t\t\t\tMain.INFO(\"Created directory sucessfully!\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic String getImagesUrl() {\n\t\treturn SERVER;\n\t}", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "public byte[] getImageData() {\r\n return imageData;\r\n }", "@Override\n protected void createRootDir() {\n }", "public URL getRootDirURL() {\n\t\treturn null;\n\t}", "public VirtualMachineVMImage() {\n this.setDataDiskConfigurations(new LazyArrayList<VirtualMachineVMImageListResponse.DataDiskConfiguration>());\n }", "public void setImageDir(File imageRepDir) {\n\t\tFileDataPersister.getInstance().put(\"gui.configuration\", \"image.repository\", imageRepDir.getPath());\n\t\tRepository.getInstance().setRepository(imageRepDir);\n\t\tthis.getSelectedGraphEditor().repaint();\n\t}", "public DataFolder(String relativeFolderPath, String dataType) {\r\n this.relativeFolderPath = relativeFolderPath;\r\n this.dataType = dataType;\r\n }", "public String getRootPath() {\r\n return rootPath;\r\n }", "@Override\r\n\t\tpublic String getDir()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "DataNode(Configuration conf, String[] dataDirs) throws IOException {\n this(InetAddress.getLocalHost().getHostName(), \n dataDirs,\n createSocketAddr(conf.get(\"fs.default.name\", \"local\")), conf);\n int infoServerPort = conf.getInt(\"dfs.datanode.info.port\", 50075);\n String infoServerBindAddress = conf.get(\"dfs.datanode.info.bindAddress\", \"0.0.0.0\");\n this.infoServer = new StatusHttpServer(\"datanode\", infoServerBindAddress, infoServerPort, true);\n //create a servlet to serve full-file content\n this.infoServer.addServlet(null, \"/streamFile/*\", StreamFile.class);\n this.infoServer.start();\n this.dnRegistration.infoPort = this.infoServer.getPort();\n // register datanode\n try {\n register();\n } catch (IOException ie) {\n try {\n infoServer.stop();\n } catch (Exception e) {\n }\n throw ie;\n }\n datanodeObject = this;\n }", "public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}", "VirtualDirectory getRootContents();", "public String getImagePath() {\n\t\treturn imagePath;\n\t}", "@Override\n protected File getDataFile(String relFilePath) {\n return new File(getDataDir(), relFilePath);\n }", "@Override\n\tpublic Image[] getStaticImages() {\n\t\treturn null;\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "private String getPath() {\r\n\t\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\r\n\t\t}", "File getRootDir() {\n\t\treturn rootDirFile;\n\t}", "public void setStartingImages() {\n\t\t\n\t}", "public IDirectory getRootDirectory() {\r\n return rootDir;\r\n }", "public interface Images extends ClientBundle {\n\n\t\t@Source(\"gr/grnet/pithos/resources/mimetypes/document.png\")\n\t\tImageResource fileContextMenu();\n\n\t\t@Source(\"gr/grnet/pithos/resources/doc_versions.png\")\n\t\tImageResource versions();\n\n\t\t@Source(\"gr/grnet/pithos/resources/groups22.png\")\n\t\tImageResource sharing();\n\n\t\t@Source(\"gr/grnet/pithos/resources/border_remove.png\")\n\t\tImageResource unselectAll();\n\n\t\t@Source(\"gr/grnet/pithos/resources/demo.png\")\n\t\tImageResource viewImage();\n\n @Source(\"gr/grnet/pithos/resources/folder_new.png\")\n ImageResource folderNew();\n\n @Source(\"gr/grnet/pithos/resources/folder_outbox.png\")\n ImageResource fileUpdate();\n\n @Source(\"gr/grnet/pithos/resources/view_text.png\")\n ImageResource viewText();\n\n @Source(\"gr/grnet/pithos/resources/folder_inbox.png\")\n ImageResource download();\n\n @Source(\"gr/grnet/pithos/resources/trash.png\")\n ImageResource emptyTrash();\n\n @Source(\"gr/grnet/pithos/resources/refresh.png\")\n ImageResource refresh();\n\n /**\n * Will bundle the file 'editcut.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editcut.png\")\n ImageResource cut();\n\n /**\n * Will bundle the file 'editcopy.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editcopy.png\")\n ImageResource copy();\n\n /**\n * Will bundle the file 'editpaste.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editpaste.png\")\n ImageResource paste();\n\n /**\n * Will bundle the file 'editdelete.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editdelete.png\")\n ImageResource delete();\n\n /**\n * Will bundle the file 'translate.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/translate.png\")\n ImageResource selectAll();\n \n @Source(\"gr/grnet/pithos/resources/internet.png\")\n ImageResource internet();\n }", "public File getDirectoryValue();", "@Override\n public String getPath() {\n return \"data/userGroup\";\n }", "private void initData() {\n\t\tmImageLoader = VolleyUtil.getInstance(this).getImageLoader();\n\t\tmNetworkImageView.setImageUrl(Pictures.pictures[3], mImageLoader);\n\t\tmNetworkImageView.setErrorImageResId(R.drawable.ic_pic_error);\n\t\tmNetworkImageView.setDefaultImageResId(R.drawable.ic_pic_default);\n\t}", "public String getUrlDataFile() {\n\t\treturn urlDataFile;\n\t}", "abstract public void setImageResourcesDir(String path);", "public static void setRootDirectory(String rootDirectory) {\n\t\tROOT_DIRECTORY = new File(rootDirectory);\n\t\tAPPS_DIRECTORY = new File(ROOT_DIRECTORY, \"apps\");\n\t\tDATA_DIRECTORY = new File(ROOT_DIRECTORY, \"data\");\n\t\tPREFERENCES_DIRECTORY = new File(ROOT_DIRECTORY, \"prefs\");\n\t\tLOG_DIRECTORY = new File(ROOT_DIRECTORY, \"logs\");\n\t}", "public String getDirectory() {\n return directoryProperty().get();\n }", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "@Override\n\tpublic DataConfig createDefaultConfig() {\n\t\treturn new DataConfig();\n\t}", "private static ImageResource initImageResource() {\n\t\tImageResource imageResource = new ImageResource(Configuration.SUPERVISOR_LOGGER);\n\t\t\n\t\timageResource.addResource(ImageTypeAWMS.VERTICAL_BAR.name(), imagePath + \"blue_vertical_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.HORIZONTAL_BAR.name(), imagePath + \"blue_horizontal_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.WELCOME.name(), imagePath + \"welcome.png\");\n\t\t\n\t\t\n\t\treturn imageResource;\n\t}", "public String getRootPath() {\n return root.getPath();\n }", "void setAppRootDirectory(String rootDir);", "public DatabeneFormatsTestDataProvider() {\n this.basePath = SystemInfo.getCurrentDir();\n }", "public String getHarvestedDataDir() {\n\n\t\treturn harvestedDataDir;\n\n\t}", "protected String getRootName() {\r\n\t\treturn ROOT_NAME;\r\n\t}", "public Image() {\n\t\tsuper();\n\t\taddNewAttributeList(NEW_ATTRIBUTES);\n\t\taddNewResourceList(NEW_RESOURCES);\n\t}", "public void setImageData(byte[] imageData) {\n if (tile != null) {\n tile.setImageData(imageData);\n } else {\n this.data = imageData;\n }\n }", "public void initData() throws IOException {\n\t\textent.loadConfig(new File(extentReportFile));\n\t\tchromedriverPath = driverData.getPropertyValue(\"chromeDriverPath\");\n\t\tfirefoxdriverPath = driverData.getPropertyValue(\"geckoDriverPath\");\n\t\tchromedriverKey = driverData.getPropertyValue(\"chromeDriverKey\");\n\t\tfirefoxdriverKey = driverData.getPropertyValue(\"geckoDriverKey\");\n\t\tapplicationUrl = testData.getPropertyValue(\"applicationURL\");\n\t\tapplicationPassword = testData.getPropertyValue(\"applicationPassword\");\n\t\tscreenShotPath = testData.getPropertyValue(\"screenshotPath\");\n\t\tdateFormat = testData.getPropertyValue(\"dateFormat\");\n\t}", "public String getShHarvestedDataDir() {\n\n\t\treturn shHarvestedDataDir;\n\n\t}", "@Override\n protected FlexiBean createRootData(UriInfo uriInfo) {\n FlexiBean out = super.createRootData(uriInfo);\n out.put(\"uris\", new WebHomeUris(uriInfo));\n \n for (ResourceConfig config : RESOURCE_CONFIGS) {\n if (_publishedTypes.contains(config._resourceType)) {\n Object uriObj = createUriObj(config, uriInfo);\n out.put(config._name, uriObj);\n }\n }\n for (ResourceConfig config : s_resourceConfigs) {\n Object uriObj = createUriObj(config, uriInfo);\n out.put(config._name, uriObj);\n }\n return out;\n }", "abstract File getResourceDirectory();", "public String getDataFileName() {\n return dataFileName;\n }", "public String directory () {\n\t\treturn directory;\n\t}", "public DicomDirectory getDicomDirectory() {\n\t\ttreeModel.getMapOfSOPInstanceUIDToReferencedFileName(this.parentFilePath);\t// initializes map using parentFilePath, ignore return value\n\t\treturn treeModel;\n\t}", "public File getDataFile();", "public void setRootCaData(String data);" ]
[ "0.639409", "0.63299", "0.6276183", "0.62577885", "0.618293", "0.6088908", "0.60139275", "0.60019606", "0.5840327", "0.57803595", "0.5685544", "0.5613177", "0.5588597", "0.5499031", "0.5495355", "0.5487441", "0.5478661", "0.5353793", "0.53337497", "0.52797836", "0.52191305", "0.52106535", "0.51972425", "0.51737106", "0.51719475", "0.5171605", "0.5169661", "0.5167935", "0.51617193", "0.512414", "0.51102287", "0.510304", "0.50887585", "0.50718784", "0.50512123", "0.5006053", "0.49984518", "0.49719998", "0.49672115", "0.49584648", "0.49581063", "0.494241", "0.4929293", "0.49246243", "0.49186718", "0.48972765", "0.4897021", "0.48959422", "0.48729813", "0.4868981", "0.48671028", "0.4864025", "0.48601198", "0.48539466", "0.48505762", "0.4834112", "0.4824261", "0.482206", "0.48131418", "0.48121908", "0.4810537", "0.47997874", "0.47850716", "0.47795624", "0.47786123", "0.47763103", "0.47706294", "0.4765993", "0.4765676", "0.47651395", "0.47636828", "0.4756811", "0.47504532", "0.47455448", "0.47350588", "0.4729082", "0.47265458", "0.47122142", "0.4707423", "0.47055882", "0.47055882", "0.47055882", "0.47055882", "0.4700989", "0.46992734", "0.4698497", "0.46960646", "0.46874565", "0.4666183", "0.4661892", "0.46618173", "0.4660165", "0.46543798", "0.4652164", "0.46515235", "0.4649454", "0.46469244", "0.46384805", "0.46334785", "0.46321562", "0.46306822" ]
0.0
-1
The root of the "data" images. A Data image is an image that is dependent on the webapplication instance. They are the images that change from installation to installation like logos and harvester logos. The directory is configured by config.xml and the configuration overrides. See the information on configuration overrides for methods of configuring them.
public static Path locateResourcesDir(ServletContext context, ApplicationContext applicationContext) { Path property = null; try { property = applicationContext.getBean(GeonetworkDataDirectory.class).getResourcesDir(); } catch (NoSuchBeanDefinitionException e) { final String realPath = context.getRealPath("/WEB-INF/data/resources"); if (realPath != null) { property = IO.toPath(realPath); } } if (property == null) { return IO.toPath("resources"); } else { return property; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static File getDataDirectory() {\n\t\treturn DATA_DIRECTORY;\n\t}", "abstract public String getDataResourcesDir();", "public String getDataPath() {\n\t\treturn \"data\";\r\n\t}", "public Path getDataDirectory();", "public String getDataDirectory() {\n return dataDirectory;\n }", "public String getDataDir() {\n\t\treturn dataDir;\n\t}", "private File getDataDir(){\n\t\tFile file = new File(this.configManager.getConfigDirectory() +\n\t\t\t\tFile.separator + \n\t\t\t\tDATA_DIR);\n\t\t\n\t\tif(!file.exists()){\n\t\t\tfile.mkdirs();\n\t\t}\n\t\t\n\t\treturn file;\n\t}", "public File getDataFolder() {\n return dataFolder;\n }", "public URI getConfigurationDataRoot() {\n return configurationDataRoot;\n }", "public URI getLogDataRoot() {\n return logDataRoot;\n }", "public void setDataDirectory(String dataDirectory) {\n this.dataDirectory = dataDirectory;\n }", "private static void displayImagesDir(){\n System.out.println(IMAGES_DIR);\n }", "abstract public String getImageResourcesDir();", "public static void initCacheFileByData(Context context) {\n\t\tfinal String imageDir = getAppFilesDirByData(context)+ CACHE_IMG_DIR_PATH;\n\t\tfinal File imageFileDir = new File(imageDir);\n\t\tif (!imageFileDir.exists()) {\n\t\t\timageFileDir.mkdirs();\n\t\t}\n\t}", "private String getDataPath()\n {\n Location location = Platform.getInstanceLocation();\n if (location == null) {\n return \"@none\";\n } else {\n return location.getURL().getPath();\n }\n }", "public String getDataParent () {\n if (dataParent == null) {\n return System.getProperty (GlobalConstants.USER_DIR);\n } else {\n return dataParent;\n }\n }", "public String getPFDataPath() {\n\t\t// TODO Auto-generated method stub\n\t\tString path = pfDir.getPath()+\"/data/\";\n\t\treturn path;\n\t}", "public String getImageDir() {\n return (String) data[GENERAL_IMAGE_DIR][PROP_VAL_VALUE];\n }", "public void initializeImages() {\n\n File dir = new File(\"Images\");\n if (!dir.exists()) {\n boolean success = dir.mkdir();\n System.out.println(\"Images directory created!\");\n }\n }", "private String getDataDirectory() {\n Session session = getSession();\n String dataDirectory;\n try {\n dataDirectory = (String) session.createSQLQuery(DATA_DIRECTORY_QUERY).list().get(0);\n } finally {\n releaseSession(session);\n }\n return dataDirectory;\n }", "public String getDataFilePath() {\r\n \t\treturn dataFile;\r\n \t}", "public static final String getDataServerUrl() {\n\t\treturn \"http://uifolder.coolauncher.com.cn/iloong/pui/ServicesEngineV1/DataService\";\n\t}", "public void createSubDirData() {\n\t\tFile f = new File(getPFDataPath());\n\t\tf.mkdirs();\n\t}", "public URI getSnapshotDataRoot() {\n return snapshotDataRoot;\n }", "public File prepareDataFolder() {\n if (!dataFolder.exists()) {\n dataFolder.mkdirs();\n }\n return dataFolder;\n }", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "@Override\n public String getImagePath() {\n return IMAGE_PATH;\n }", "@PostConstruct\n public void onStart() {\n final String path = \"/images/\";\n try {\n final Path path_of_resource = getPathOfResource(path);\n saveImagesFolder(path_of_resource);\n } catch (final IOException e1) {\n e1.printStackTrace();\n }\n }", "public static File getRootDirectory() {\n\t\treturn ROOT_DIRECTORY;\n\t}", "public void makeData() {\n\t\tFile file = null;\r\n try {\r\n if (!m.getDataFolder().exists()) { //Check if the directory of the plugin exists...\r\n \tm.getDataFolder().mkdirs(); //If not making one.\r\n }\r\n file = new File(m.getDataFolder(), \"data.yml\"); // Defining file to data.yml NOTE: This file has to be also in your Project, even if it's empty.\r\n if (!file.exists()) { //Check if it exists\r\n \tm.getLogger().info(\"data.yml not found, creating!\"); //Log that it is creating\r\n \tm.saveResource(\"data.yml\", true); //Saving the resource, This is all by Java done no Spigot noeeded. \r\n } else {\r\n \tm.getLogger().info(\"data.yml found, loading!\"); //If it is already there, load it.\r\n \t//TODO: Loading...\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();//If something returned a NPE or something it will print a stacktrace...\r\n }\r\n\t}", "private boolean getData() {\n if ( tiTree != null && !tiTree.isDisposed() ) {\n tiTree.dispose();\n }\n\n tiTree = new TreeItem( wTree, SWT.NONE );\n tiTree.setImage( GUIResource.getInstance().getImageFolder() );\n RepositoryDirectoryUI.getDirectoryTree( tiTree, dircolor, repositoryTree );\n tiTree.setExpanded( true );\n\n return true;\n }", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "@EventListener(ApplicationReadyEvent.class)\n private void createImageDirectory()\n {\n new File(productImageUpload).mkdir();\n }", "public List<DataDiskImageEncryption> dataDiskImages() {\n return this.dataDiskImages;\n }", "public interface DataVar {\n String APP_ROOT_FILE = Environment.getExternalStorageDirectory().getPath()\n + File.separator + \"NoteMyLife\";\n String APP_IMG_FILE = APP_ROOT_FILE + File.separator + \"img\";\n\n //把当前用户的登陆信息保存到本地时的键\n String SP_FILE = \"USER_DATA\";\n String SP_USER_ID = \"userId\";\n String SP_EMAIL = \"userAccount\";\n String SP_PASSWORD = \"userPassword\";\n String SP_HEAD = \"head\";\n String INIT_HEAD_IMAGE_FILE_NAME = \"0.png\";\n}", "Data() throws IOException {\n // Initialise new default path from scratch\n path = Path.of(\"src/main/data/duke.txt\");\n new File(\"src/main/data\").mkdirs();\n new File(path.toString()).createNewFile();\n }", "public URI getSwapFileDataRoot() {\n return swapFileDataRoot;\n }", "public File getRootDir() {\r\n\t\treturn rootDir;\r\n\t}", "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "@Override\r\n protected String getDiskLocation()\r\n {\r\n return dataFile.getFilePath();\r\n }", "public static String getImageResoucesPath() {\n\t\t//return \"d:\\\\PBC\\\\GitHub\\\\Theia\\\\portal\\\\WebContent\\\\images\";\n\t\treturn \"/Users/anaswhb/Documents/Eclipse/Workspace/portal/WebContent/images\";\n\t\t\n\t}", "public void customRootDir() {\n //Be careful with case when res is false which means dir is not valid.\n boolean res = KOOM.getInstance().setRootDir(this.getCacheDir().getAbsolutePath());\n }", "private void writeRootData() {\n synchronized (this.mRootDataList) {\n try {\n FileOutputStream fos = new FileOutputStream(getRootDataFile());\n BufferedOutputStream bos = new BufferedOutputStream(fos);\n Iterator<String> it = this.mRootDataList.iterator();\n while (it.hasNext()) {\n bos.write(it.next().getBytes(StandardCharsets.UTF_8));\n bos.write(System.lineSeparator().getBytes(StandardCharsets.UTF_8));\n }\n bos.close();\n fos.close();\n } catch (IOException e) {\n HiLog.error(RootDetectReport.HILOG_LABEL, \"Failed to write root result data\", new Object[0]);\n }\n }\n }", "public File getDataStoreDir() {\n\t\treturn this.localDataStoreDir;\n\t}", "@Test\r\n\tpublic void addingAnImageRoot() throws IOException, DocumentException {\r\n\t\tDocument doc = new Document(PageSize.A4);\r\n\t\tPdfWriter writer = PdfWriter.getInstance(doc, new FileOutputStream(new File(\r\n\t\t\t\t\"./src/test/resources/examples/columbus3.pdf\")));\r\n\t\tdoc.open();\r\n\t\tHtmlPipelineContext htmlContext = new HtmlPipelineContext(null);\r\n\t\thtmlContext.setImageProvider(new AbstractImageProvider() {\r\n\r\n\t\t\tpublic String getImageRootPath() {\r\n\t\t\t\treturn \"http://www.gutenberg.org/dirs/1/8/0/6/18066/18066-h/\";\r\n\t\t\t}\r\n\t\t}).setTagFactory(Tags.getHtmlTagProcessorFactory());\r\n\t\tCSSResolver cssResolver = XMLWorkerHelper.getInstance().getDefaultCssResolver(true);\r\n\t\tPipeline<?> pipeline = new CssResolverPipeline(cssResolver, new HtmlPipeline(htmlContext,\r\n\t\t\t\tnew PdfWriterPipeline(doc, writer)));\r\n\t\tXMLWorker worker = new XMLWorker(pipeline, true);\r\n\t\tXMLParser p = new XMLParser(worker);\r\n\t\tp.parse(XMLWorkerHelperExample.class.getResourceAsStream(\"columbus.html\"));\r\n\t\tdoc.close();\r\n\t}", "public void setRootDir(String rootDir);", "public SimpleDirectory() {\n this.container = new Entry[SimpleDirectory.DEFAULT_SIZE];\n this.loadFactor = SimpleDirectory.DEFAULT_LOAD_FACTOR;\n }", "public void testImagesDirectoryAccessible() {\n File file = new File(rootBlog.getRoot(), \"images\");\n assertEquals(file, new File(rootBlog.getImagesDirectory()));\n assertTrue(file.exists());\n }", "public File getRootDir() {\n return rootDir;\n }", "private final void directory() {\n\t\tif (!this.plugin.getDataFolder().isDirectory()) {\n\t\t\tif (!this.plugin.getDataFolder().mkdirs()) {\n\t\t\t\tMain.SEVERE(\"Failed to create directory\");\n\t\t\t} else {\n\t\t\t\tMain.INFO(\"Created directory sucessfully!\");\n\t\t\t}\n\t\t}\n\t}", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "@Override\n\tpublic String getImagesUrl() {\n\t\treturn SERVER;\n\t}", "public byte[] getImageData() {\r\n return imageData;\r\n }", "@Override\n protected void createRootDir() {\n }", "public URL getRootDirURL() {\n\t\treturn null;\n\t}", "public VirtualMachineVMImage() {\n this.setDataDiskConfigurations(new LazyArrayList<VirtualMachineVMImageListResponse.DataDiskConfiguration>());\n }", "public DataFolder(String relativeFolderPath, String dataType) {\r\n this.relativeFolderPath = relativeFolderPath;\r\n this.dataType = dataType;\r\n }", "public void setImageDir(File imageRepDir) {\n\t\tFileDataPersister.getInstance().put(\"gui.configuration\", \"image.repository\", imageRepDir.getPath());\n\t\tRepository.getInstance().setRepository(imageRepDir);\n\t\tthis.getSelectedGraphEditor().repaint();\n\t}", "public String getRootPath() {\r\n return rootPath;\r\n }", "@Override\r\n\t\tpublic String getDir()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "DataNode(Configuration conf, String[] dataDirs) throws IOException {\n this(InetAddress.getLocalHost().getHostName(), \n dataDirs,\n createSocketAddr(conf.get(\"fs.default.name\", \"local\")), conf);\n int infoServerPort = conf.getInt(\"dfs.datanode.info.port\", 50075);\n String infoServerBindAddress = conf.get(\"dfs.datanode.info.bindAddress\", \"0.0.0.0\");\n this.infoServer = new StatusHttpServer(\"datanode\", infoServerBindAddress, infoServerPort, true);\n //create a servlet to serve full-file content\n this.infoServer.addServlet(null, \"/streamFile/*\", StreamFile.class);\n this.infoServer.start();\n this.dnRegistration.infoPort = this.infoServer.getPort();\n // register datanode\n try {\n register();\n } catch (IOException ie) {\n try {\n infoServer.stop();\n } catch (Exception e) {\n }\n throw ie;\n }\n datanodeObject = this;\n }", "public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}", "VirtualDirectory getRootContents();", "@Override\n protected File getDataFile(String relFilePath) {\n return new File(getDataDir(), relFilePath);\n }", "public String getImagePath() {\n\t\treturn imagePath;\n\t}", "@Override\n\tpublic Image[] getStaticImages() {\n\t\treturn null;\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "private String getPath() {\r\n\t\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\r\n\t\t}", "File getRootDir() {\n\t\treturn rootDirFile;\n\t}", "public IDirectory getRootDirectory() {\r\n return rootDir;\r\n }", "public void setStartingImages() {\n\t\t\n\t}", "public interface Images extends ClientBundle {\n\n\t\t@Source(\"gr/grnet/pithos/resources/mimetypes/document.png\")\n\t\tImageResource fileContextMenu();\n\n\t\t@Source(\"gr/grnet/pithos/resources/doc_versions.png\")\n\t\tImageResource versions();\n\n\t\t@Source(\"gr/grnet/pithos/resources/groups22.png\")\n\t\tImageResource sharing();\n\n\t\t@Source(\"gr/grnet/pithos/resources/border_remove.png\")\n\t\tImageResource unselectAll();\n\n\t\t@Source(\"gr/grnet/pithos/resources/demo.png\")\n\t\tImageResource viewImage();\n\n @Source(\"gr/grnet/pithos/resources/folder_new.png\")\n ImageResource folderNew();\n\n @Source(\"gr/grnet/pithos/resources/folder_outbox.png\")\n ImageResource fileUpdate();\n\n @Source(\"gr/grnet/pithos/resources/view_text.png\")\n ImageResource viewText();\n\n @Source(\"gr/grnet/pithos/resources/folder_inbox.png\")\n ImageResource download();\n\n @Source(\"gr/grnet/pithos/resources/trash.png\")\n ImageResource emptyTrash();\n\n @Source(\"gr/grnet/pithos/resources/refresh.png\")\n ImageResource refresh();\n\n /**\n * Will bundle the file 'editcut.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editcut.png\")\n ImageResource cut();\n\n /**\n * Will bundle the file 'editcopy.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editcopy.png\")\n ImageResource copy();\n\n /**\n * Will bundle the file 'editpaste.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editpaste.png\")\n ImageResource paste();\n\n /**\n * Will bundle the file 'editdelete.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editdelete.png\")\n ImageResource delete();\n\n /**\n * Will bundle the file 'translate.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/translate.png\")\n ImageResource selectAll();\n \n @Source(\"gr/grnet/pithos/resources/internet.png\")\n ImageResource internet();\n }", "public File getDirectoryValue();", "@Override\n public String getPath() {\n return \"data/userGroup\";\n }", "private void initData() {\n\t\tmImageLoader = VolleyUtil.getInstance(this).getImageLoader();\n\t\tmNetworkImageView.setImageUrl(Pictures.pictures[3], mImageLoader);\n\t\tmNetworkImageView.setErrorImageResId(R.drawable.ic_pic_error);\n\t\tmNetworkImageView.setDefaultImageResId(R.drawable.ic_pic_default);\n\t}", "public String getUrlDataFile() {\n\t\treturn urlDataFile;\n\t}", "abstract public void setImageResourcesDir(String path);", "public static void setRootDirectory(String rootDirectory) {\n\t\tROOT_DIRECTORY = new File(rootDirectory);\n\t\tAPPS_DIRECTORY = new File(ROOT_DIRECTORY, \"apps\");\n\t\tDATA_DIRECTORY = new File(ROOT_DIRECTORY, \"data\");\n\t\tPREFERENCES_DIRECTORY = new File(ROOT_DIRECTORY, \"prefs\");\n\t\tLOG_DIRECTORY = new File(ROOT_DIRECTORY, \"logs\");\n\t}", "public String getDirectory() {\n return directoryProperty().get();\n }", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "private String getPath() {\n\t\treturn context.getRealPath(\"WEB-INF/ConnectionData\");\n\t}", "@Override\n\tpublic DataConfig createDefaultConfig() {\n\t\treturn new DataConfig();\n\t}", "public String getRootPath() {\n return root.getPath();\n }", "void setAppRootDirectory(String rootDir);", "private static ImageResource initImageResource() {\n\t\tImageResource imageResource = new ImageResource(Configuration.SUPERVISOR_LOGGER);\n\t\t\n\t\timageResource.addResource(ImageTypeAWMS.VERTICAL_BAR.name(), imagePath + \"blue_vertical_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.HORIZONTAL_BAR.name(), imagePath + \"blue_horizontal_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.WELCOME.name(), imagePath + \"welcome.png\");\n\t\t\n\t\t\n\t\treturn imageResource;\n\t}", "public DatabeneFormatsTestDataProvider() {\n this.basePath = SystemInfo.getCurrentDir();\n }", "public String getHarvestedDataDir() {\n\n\t\treturn harvestedDataDir;\n\n\t}", "protected String getRootName() {\r\n\t\treturn ROOT_NAME;\r\n\t}", "public void setImageData(byte[] imageData) {\n if (tile != null) {\n tile.setImageData(imageData);\n } else {\n this.data = imageData;\n }\n }", "public Image() {\n\t\tsuper();\n\t\taddNewAttributeList(NEW_ATTRIBUTES);\n\t\taddNewResourceList(NEW_RESOURCES);\n\t}", "public void initData() throws IOException {\n\t\textent.loadConfig(new File(extentReportFile));\n\t\tchromedriverPath = driverData.getPropertyValue(\"chromeDriverPath\");\n\t\tfirefoxdriverPath = driverData.getPropertyValue(\"geckoDriverPath\");\n\t\tchromedriverKey = driverData.getPropertyValue(\"chromeDriverKey\");\n\t\tfirefoxdriverKey = driverData.getPropertyValue(\"geckoDriverKey\");\n\t\tapplicationUrl = testData.getPropertyValue(\"applicationURL\");\n\t\tapplicationPassword = testData.getPropertyValue(\"applicationPassword\");\n\t\tscreenShotPath = testData.getPropertyValue(\"screenshotPath\");\n\t\tdateFormat = testData.getPropertyValue(\"dateFormat\");\n\t}", "public String getShHarvestedDataDir() {\n\n\t\treturn shHarvestedDataDir;\n\n\t}", "@Override\n protected FlexiBean createRootData(UriInfo uriInfo) {\n FlexiBean out = super.createRootData(uriInfo);\n out.put(\"uris\", new WebHomeUris(uriInfo));\n \n for (ResourceConfig config : RESOURCE_CONFIGS) {\n if (_publishedTypes.contains(config._resourceType)) {\n Object uriObj = createUriObj(config, uriInfo);\n out.put(config._name, uriObj);\n }\n }\n for (ResourceConfig config : s_resourceConfigs) {\n Object uriObj = createUriObj(config, uriInfo);\n out.put(config._name, uriObj);\n }\n return out;\n }", "abstract File getResourceDirectory();", "public String getDataFileName() {\n return dataFileName;\n }", "public String directory () {\n\t\treturn directory;\n\t}", "public DicomDirectory getDicomDirectory() {\n\t\ttreeModel.getMapOfSOPInstanceUIDToReferencedFileName(this.parentFilePath);\t// initializes map using parentFilePath, ignore return value\n\t\treturn treeModel;\n\t}", "public File getDataFile();", "public void setRootCaData(String data);" ]
[ "0.6397178", "0.63310486", "0.6279027", "0.6260069", "0.61858", "0.60922897", "0.60170114", "0.6004939", "0.5842543", "0.57830393", "0.5687891", "0.5611146", "0.5586507", "0.54992205", "0.5496996", "0.54898983", "0.5481616", "0.53531754", "0.5331226", "0.5283068", "0.5221266", "0.52120423", "0.5200656", "0.51761705", "0.51749384", "0.516991", "0.5168873", "0.5167536", "0.5164044", "0.5124419", "0.5111107", "0.5104925", "0.5088158", "0.5071825", "0.5051875", "0.5007631", "0.5000075", "0.49745223", "0.4970054", "0.49587187", "0.49564016", "0.49441996", "0.49325618", "0.49273846", "0.4917751", "0.48994654", "0.48981732", "0.48946953", "0.4875436", "0.48702717", "0.48657253", "0.4864799", "0.48596507", "0.48556748", "0.48526007", "0.48323092", "0.48244426", "0.48222163", "0.48153916", "0.48140845", "0.481204", "0.47975782", "0.47857305", "0.47788823", "0.47771153", "0.47741756", "0.47721398", "0.47681668", "0.47675303", "0.4766", "0.47627708", "0.47522193", "0.47511747", "0.47467375", "0.47345313", "0.47304794", "0.47235888", "0.47147048", "0.47083634", "0.47076848", "0.47076848", "0.47076848", "0.47076848", "0.4701929", "0.47008303", "0.46982512", "0.46956694", "0.46885875", "0.4667736", "0.4664307", "0.46599627", "0.46594486", "0.46549138", "0.46535328", "0.46523407", "0.4648961", "0.4648823", "0.46397468", "0.4634309", "0.46333006", "0.46327227" ]
0.0
-1
copy the "unknown" logo to the logos directory for the name
public static void copyUnknownLogo(ServiceContext context, String destName) { copyLogo(context, "unknown-logo.png", destName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createLogo(String logoCode);", "protected static void copyProfilePicture() {\n\t\tString extension = profilePictureAddress.substring(profilePictureAddress.lastIndexOf(\".\") + 1,\r\n\t\t\t\tprofilePictureAddress.length());\r\n\t\t// bebinim ke alan in project to kodoom directory dar hal ejrast ! ke mishe ==>\r\n\t\t// C:\\Users\\Ledengary\\first\\Project 5\r\n\t\tString javaApplicationPath = null;\r\n\t\ttry {\r\n\t\t\tjavaApplicationPath = new File(\".\").getCanonicalPath();\r\n\t\t} catch (IOException e1) {\r\n\r\n\t\t}\r\n\t\t// till here\r\n\r\n\t\tif (!profilePictureAddress.equals(\"\")) {\r\n\t\t\tPath imgSrc = Paths.get(profilePictureAddress);\r\n\t\t\tPath imgCopy = Paths.get(javaApplicationPath + \"\\\\bin\\\\\" + txtUserName.getText() + \".\" + extension);\r\n\t\t\tFile fileCopy = new File(javaApplicationPath + \"\\\\bin\\\\\" + txtUserName.getText() + \".\" + extension);\r\n\r\n\t\t\tif (fileCopy.exists()) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tFiles.delete(imgCopy);\r\n\t\t\t\t} catch (IOException e1) {\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\t/*\r\n\t\t\t\t * anjam amal copy !\r\n\t\t\t\t */\r\n\t\t\t\tFiles.copy(imgSrc, imgCopy);\r\n\t\t\t} catch (IOException e1) {\r\n\r\n\t\t\t}\r\n\t\t\t// ---------------------------------------------------------------------------------------------\r\n\t\t} else {\r\n\t\t\tPath imgSrc = Paths.get(\"C:\\\\Users\\\\Ledengary\\\\first\\\\Project 6\\\\img\\\\Contact2.png\");\r\n\t\t\tPath imgCopy = Paths.get(javaApplicationPath + \"\\\\bin\\\\\" + txtUserName.getText() + \".png\");\r\n\t\t\ttry {\r\n\t\t\t\tFiles.copy(imgSrc, imgCopy);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private void extractDefaultGeneratorLogo() {\n try {\n PlatformUtil.extractResourceToUserConfigDir(getClass(), DEFAULT_GENERATOR_LOGO, true);\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"Error extracting report branding resource for generator logo \", ex); //NON-NLS\n }\n defaultGeneratorLogoPath = PlatformUtil.getUserConfigDirectory() + File.separator + DEFAULT_GENERATOR_LOGO;\n }", "private void uploadLogo() {\n\t\tJFileChooser fc = new JFileChooser();\n\t\tif (fc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {\n\t\t\tImageIcon icon = new ImageIcon(fc.getSelectedFile().getAbsolutePath());\n\t\t\tlblLogo.setIcon(icon);\n\t\t}\n\t}", "public static void copyCat() throws IOException {\n byte[] bytes = Files.readAllBytes(Paths.get(RESOURCES_FOLDER + \"\\\\cat.jpeg\"));\n FileInputStream inputStream = new FileInputStream(RESOURCES_FOLDER + \"\\\\cat.jpeg\");\n FileOutputStream outputStream = new FileOutputStream(COPY_FOLDER + \"\\\\cat_copy.jpeg\");\n// outputStream.write(bytes);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); // cand nu avem nevoie sa cream fisierul - ci doar sa mutam dintr o parte in alta bytes\n byteArrayOutputStream.write(bytes);\n byteArrayOutputStream.writeTo(outputStream);\n inputStream.close();\n byteArrayOutputStream.close();\n outputStream.close();\n }", "public void copiaImg() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString tipo = caminhoImagem.replaceAll(\".*\\\\.\", \"\");\r\n\t\t\tSystem.out.println(tipo);\r\n\t\t\tString l = caminhoImagem;\r\n\t\t\tString i = \"../MASProject/imagens/\" + idObra.getText() + \".\" + tipo;\r\n\t\t\tcaminhoImagem = i;\r\n\t\t\t@SuppressWarnings(\"resource\")\r\n\t\t\tFileInputStream fisDe = new FileInputStream(l);\r\n\t\t\t@SuppressWarnings(\"resource\")\r\n\t\t\tFileOutputStream fisPara = new FileOutputStream(i);\r\n\t\t\tFileChannel fcPara = fisDe.getChannel();\r\n\t\t\tFileChannel fcDe = fisPara.getChannel();\r\n\t\t\tif (fcPara.transferTo(0, fcPara.size(), fcDe) == 0L) {\r\n\t\t\t\tfcPara.close();\r\n\t\t\t\tfcDe.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, e);\r\n\t\t}\r\n\t}", "private void copyDefaultImage(int id) throws CustomServiceUnavailableException {\r\n\r\n\t\tInputStream inStream = null;\r\n\t\tOutputStream outStream = null;\r\n\r\n\t\ttry{\r\n\r\n\t\t\tFile afile =new File(\"undefined.jpg\");\r\n\t\t\tFile bfile =new File( String.valueOf(id) + \".jpg\");\r\n\t\t\tinStream = new FileInputStream(afile);\r\n\t\t\toutStream = new FileOutputStream(bfile);\r\n\t\t\tbyte[] buffer = new byte[1024];\r\n\t\t\tint length;\r\n\t\t\r\n\t\t\twhile ((length = inStream.read(buffer)) > 0){\r\n\t\t\t\toutStream.write(buffer, 0, length);\r\n\t\t\t}\r\n\r\n\t\t\tinStream.close();\r\n\t\t\toutStream.close();\r\n\t\t}catch(IOException e){\r\n\t\t\tthrow new CustomServiceUnavailableException(\"Internal error in the application\");\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\ttry (FileInputStream in = new FileInputStream(\"java-logo.jpg\");\n\t\t\t FileOutputStream out = new FileOutputStream(\"copy-java-logo.jpg\")) {\n\t\t\tvar buffer = new byte[1024];\n\t\t\tvar length = 0;\n\t\t\tvar readCount = 1;\n\t\t\twhile ((length = in.read(buffer)) != -1) {\n\t\t\t\tout.write(buffer, 0, length);\n\t\t\t\tSystem.out.printf(\"reads = %d, length = %d%n\", readCount++, length);\n\t\t\t}\n\t\t\tSystem.out.printf(\"reads = %d, length = %d%n\", readCount++, length);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void addSystemDirFilesToImage() throws IOException {\n File sourceSystemDir = new File(builderContext.sourceTbOptionsDir, \"system.v2\");\n if (!isValidCSMSource(sourceSystemDir)) {\n // Fall back to the system default, ~/Amplio/ACM/system.v2\n sourceSystemDir = new File(AmplioHome.getAppSoftwareDir(), \"system.v2\");\n }\n\n File targetSystemDir = new File(imageDir, \"system\");\n\n // The csm_data.txt file. Control file for the TB.\n File csmData = new File(sourceSystemDir, \"csm_data.txt\");\n FileUtils.copyFileToDirectory(csmData, targetSystemDir);\n\n // Optionally, the source for csm_data.txt file. \n File controlDefFile = new File(sourceSystemDir, \"control_def.txt\");\n if (controlDefFile.exists()) {\n FileUtils.copyFileToDirectory(controlDefFile, targetSystemDir);\n }\n\n // If UF is hidden in the deployment, copy the appropriate 'uf.der' file to 'system/'\n if (deploymentInfo.isUfHidden()) {\n UfKeyHelper ufKeyHelper = new UfKeyHelper(builderContext.project);\n byte[] publicKey = ufKeyHelper.getPublicKeyFor(builderContext.deploymentNo);\n File derFile = new File(targetSystemDir, \"uf.der\");\n try (FileOutputStream fos = new FileOutputStream(derFile);\n DataOutputStream dos = new DataOutputStream(fos)){\n dos.write(publicKey);\n }\n }\n }", "public void placeBlankImage() {\n System.out.println(\"placeBlankImage in: \" + imageDirectory);\n\n try {\n BufferedImage bi = ImageIO.read(new File(absolutePath + \"/noImageAvailable.jpg\"));\n System.out.println(\"loaded blank: \" + absolutePath + \"/noImageAvailable.jpg\");\n File outputfile = new File(absolutePath + \"/\" + imageDirectory + \"/noImageAvailable.jpg\");\n\n ImageIO.write(bi, \"jpg\", outputfile);\n\n System.out.println(\"saved blank image: \" + outputfile);\n } catch (IOException e) {\n System.out.println(\"save image failed\");\n\n }\n }", "public void setLogo(String logo) {\r\n this.logo = logo;\r\n }", "public void createTeamLogo(ActionEvent actionEvent) {\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Picture Chooser\");\n // Sets up the initial directory as user folder when filechooser is opened\n fileChooser.setInitialDirectory(new File(System.getProperty(\"user.home\")));\n\n // Sets the file type options\n fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"PNG and JPG files\", \"*.png\",\"*.jpg\",\"*.jpeg\"));\n\n createTeamLogoFile = fileChooser.showOpenDialog(null);\n\n if( createTeamLogoFile != null)\n {\n // Upload button's text is changed and the display image is changed to the selected image\n uploadTeamLogoButtonCreate.setText(\"Change Photo\");\n logoChangeImageCreate.setImage(new Image(createTeamLogoFile.toURI().toString()));\n }\n }", "private void createDesktopIcon(String linkName) {\n File icoFile = new File(pladipusFolder, \"pladipus.ico\");\r\n try (OutputStream out = new FileOutputStream(icoFile); InputStream in = getClass().getClassLoader().getResourceAsStream(\"images/pladipus.ico\")) {\r\n if (in != null) {\r\n IOUtils.copy(in, out);\r\n //set this icon as the ico\r\n String iconFileLocation = icoFile.getAbsolutePath();\r\n JShellLink link = new JShellLink();\r\n link.setFolder(JShellLink.getDirectory(\"desktop\"));\r\n link.setName(linkName);\r\n link.setIconLocation(iconFileLocation);\r\n link.setPath(jarFilePath);\r\n link.save();\r\n }\r\n } catch (IOException e) {\r\n\r\n LOGGER.error(e);\r\n System.out.println(\"An error occurred when trying to create a desktop shortcut...\");\r\n }\r\n }", "void copy(ImageMetadata toCopy);", "static public void saveAs(BufferedImage img, String name) {\n\t\ttry {\n\t\t\tString type = name.substring(name.length()-3);\n\t\t\tImageIO.write(img, type, new File(name));\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setLogo (java.lang.String logo) {\n\t\tthis.logo = logo;\n\t}", "public String logo() {\n int number = faker.random().nextInt(13) + 1;\n return \"https://pigment.github.io/fake-logos/logos/medium/color/\" + number + \".png\";\n }", "public void copyImageFile() throws IOException {\n Path sourcePath = imageFile.toPath();\n\n String selectFileName = imageFile.getName();\n\n Path targetPath = Paths.get(\"/Users/houumeume/IdeaProjects/Assignment2/image/\" + selectFileName);\n\n //copy the file to the new directory\n Files.copy(sourcePath, targetPath, StandardCopyOption.REPLACE_EXISTING);\n\n //update the imageFile to point to the new File\n imageFile = new File(targetPath.toString());\n }", "public Drawable loadDefaultLogo(PackageManager pm) {\n return null;\n }", "@Override\n public void copyImageIntoAppDir(Context context) {\n try {\n mImagePath.create(context, \"newFile\", \".jpg\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n File destFile = mImagePath.getFile();\n\n// try {\n// Util.copyFile(srcFile, destFile);\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n\n String infoString = mImagePath.toString();\n\n Log.d(\"infoString \", \" \" + infoString);\n mContractview.showImageInfo(infoString);\n\n }", "public void imagesaver(String name){\n\tthis.new_image_name = name;\n\t try{\n\t\tImageIO.write(new_buff_image, \"png\", new File(new_image_name));\n\t }\n\t catch(IOException e){\n\t\tSystem.out.println(\"The desired output file is invalid. Please try running the program again.\");\n\t\tSystem.exit(0);\n\t }\n }", "@Nullable private String getLogoFromUIInfo() {\n if (getRelyingPartyUIContext() == null) {\n return null;\n }\n return getRelyingPartyUIContext().getLogo(minWidth, minHeight, maxWidth, maxHeight);\n \n }", "@Override\n\tpublic String getImageName() {\n\t\treturn \"\";\n\t}", "public Image getHomeLogo(String team) {\n\n String homeLogo = getGameInfo(team,\"home_name_abbrev\");\n\n // for the chicago white sox logo to be retrieved\n if (homeLogo.equals(\"CWS\")) {\n homeLogo = \"CHW\";\n }\n // for the washington nationals logo to be retrieved\n if (homeLogo.equals(\"WSH\")) {\n homeLogo = \"WAS\";\n }\n\n homeLogo = \"http://sports.cbsimg.net/images/mlb/logos/100x100/\" + homeLogo + \".png\";\n\n return new Image(homeLogo);\n }", "public static void main(String[] args) throws IOException {\n HttpPageExtractor httpPageExtractor = new HttpPageExtractor();\n Page page = httpPageExtractor.extractPage(\"http://www.obrazki.org/upload/ob_0_33793200_1306404375.JPEG\");\n // new BufferedWriter(new FileWriter(new File(\"C:\\\\Users\\\\Jaras\\\\Desktop\\\\Temporary\\\\obrazek.jpeg\")))\n //Files.write(Paths.get(\"C:\\\\Users\\\\Jaras\\\\Desktop\\\\Temporary\\\\obraze.png\"), page.getBody().getBytes());\n try (InputStream in = URI.create(\"https://demotywatory.pl/uploads/201008/1282322197_by_MACTEP_600.jpg\").toURL().openStream()) {\n Files.copy(in, Paths.get(\"C:\\\\Users\\\\Jaras\\\\Desktop\\\\Temporary\\\\obrazek1.png\"));\n }\n }", "public String logoRedirect() {\n miroLogo.click();\n return webDriver.getTitle();\n }", "public void createNewImageFile(){\n fillNewImage();\n\n try {\n ImageIO.write(newImage, imageFileType, new File(k + \"_Colored_\" + fileName.substring(0,fileName.length() - 4) + \".\" + imageFileType));\n } catch (IOException e){\n e.printStackTrace();\n }\n \n }", "public static void copyChatImageExtStg(String imageName) {\n File fromFile = new File(PathUtil.getInternalChatImageTempUri().getPath());\n if(fromFile.exists()) {\n File toFile = PathUtil.createExternalChatImageFile(imageName);\n copy(fromFile, toFile);\n //LogUtil.e(\"StorageUtil\", \"copyChatImageExtStg\");\n }\n }", "public static void printLogo() {\n System.out.println(LOGO1);\n System.out.println(LOGO2);\n System.out.println(LOGO3);\n System.out.println(LOGO4);\n System.out.println(LOGO5);\n System.out.println(\"\");\n }", "private String createScreenshotFilePath() {\n String fileName = new SimpleDateFormat(FILE_NAME_FORMAT).format(new Date());\n String filePath = MainMenu.PUBLIC_EXTERNAL_PICTURES_ORION_PATH + fileName;\n return filePath;\n }", "public void addLogo(){\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n getSupportActionBar().setLogo(R.drawable.monkey_notify);\n getSupportActionBar().setDisplayUseLogoEnabled(true);\n }", "@Override\n\tpublic void setLogo(Drawable logo) {\n\t\t\n\t}", "@Override\n\tpublic void setLogo(int resId) {\n\t\t\n\t}", "public void testCopyImage() {\n System.out.println(\"copyImage\");\n String from = \"\";\n String formatName = \"\";\n File output = null;\n boolean expResult = false;\n boolean result = IOUtil.copyImage(from, formatName, output);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public IImage createImage(String name) throws IOException {\n return null;\r\n }", "private Label createIcon(String name) {\n Label label = new Label();\n Image labelImg = new Image(getClass().getResourceAsStream(name));\n ImageView labelIcon = new ImageView(labelImg);\n label.setGraphic(labelIcon);\n return label;\n }", "public static void ReplacesImage(int index){\n try{\n Commissions temp = ManageCommissionerList.comms.get(index);\n BufferedImage img = temp.GetWipImage();\n File fl = new File(\"wipimages/wip\" + temp.GetCommissionTitle() + index + \".jpg\");\n ImageIO.write(img, \"jpg\", fl);\n }catch (Exception e){\n e.printStackTrace();\n System.out.printf(\"Failure to write image file\");\n }\n }", "public void setLogo(String logo) {\r\n this.logo = logo == null ? null : logo.trim();\r\n }", "public void setLogo(String logo) {\r\n this.logo = logo == null ? null : logo.trim();\r\n }", "private void SetPictureLabel(String label) {\r\n fileInfoLabel.setText(label);\r\n }", "private void pruebaGuardado() {\n try {\n BufferedImage img = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g2d = img.createGraphics();\n g2d.setColor(Color.RED);\n g2d.fillRect(25, 25, 50, 50);\n g2d.dispose();\n ImageIO.write(img, \"JPEG\", new File(\"D:\\\\LeapMotion\\\\foo.jpg\"));\n } catch (IOException ex) {\n Logger.getLogger(Nodo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public Image getAwayLogo(String team) {\n\n String awayLogo = getGameInfo(team,\"away_name_abbrev\");\n\n // for the chicago white sox logo to be retrieved\n if (awayLogo.equals(\"CWS\")) {\n awayLogo = \"CHW\";\n }\n // for the washington nationals logo to be retrieved\n if (awayLogo.equals(\"WSH\")) {\n awayLogo = \"WAS\";\n }\n\n awayLogo = \"http://sports.cbsimg.net/images/mlb/logos/100x100/\" + awayLogo + \".png\";\n\n return new Image(awayLogo);\n }", "private void createImgSample() throws IOException {\n\t\tSystem.out.print(\"[INFO][PLUGIN][REPLY]:Creating IMG Sample...\");\n\t\tURL url = new URL(\"http://w23.loxa.edu.tw/mm974401/SmallNight2019.png\");\n\t\tHttpURLConnection con = (HttpURLConnection) url.openConnection();\n\t\tcon.setRequestProperty(\"User-agent\", \" Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0\");\n\t\tBufferedInputStream in = new BufferedInputStream(con.getInputStream());\n\t\tbyte[] data = new byte[1024];\n\t\tnew File(\"reply/img/Sample\").mkdir();\n\t\tFile sampImg = new File(\"reply/img/Sample/SmallNight2019.png\");\n\t\tFileOutputStream fos = new FileOutputStream(sampImg);\n\t\tint n;\n\t\twhile((n=in.read(data,0,1024))>=0) \n\t\t\tfos.write(data,0,n);\n\t\tfos.flush();\n\t\tfos.close();\n\t\tin.close();\n\t\tFileWriter sampCmd = new FileWriter(\"reply/cmd/SampleImg.yml\");\n\t\tsampCmd.write(\"img\\n\");\n\t\tsampCmd.write(\"Sample\\n\");\n\t\tsampCmd.write(\"sample||Sample||TEST||test\\n\");\n\t\tsampCmd.write(\"break\\n\");\n\t\tsampCmd.flush();\n\t\tsampCmd.close();\n\t\tSystem.out.println(\"DONE!\");\n\t}", "public static void main(String args[]) throws Exception {\n String fileName;\n fileName = scan.nextLine();\n\n OutputStream outStream = null;\n\n String info = readLogFile(fileName);\n\n String outFileName = \"gifs_\" + fileName;\n\n\n try{\n outStream = new FileOutputStream(new File(outFileName), true);\n outStream.write(info.getBytes(), 0, info.length());\n } catch(IOException ioEx) {\n ioEx.printStackTrace();\n } finally {\n try {\n outStream.close();\n } catch( IOException exception ){\n exception.printStackTrace();\n }\n }\n\n }", "private void collectCloud() {\n\t\ttry { \n\t\t\tcloud = ImageIO.read(getClass().getResourceAsStream(\"/img/tempCloud.png\"));\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"The cloud file requested does not exist! Please fix this before contueing!\");\n\t\t}\n\t}", "public static void copyInContentsOfJar(JarFile jar, JarOutputStream jarOutputStream, String name) throws IOException\n\t{\n\t\t// Copy contents of Go Bible JAR into new JAR\n\t\tfor (Enumeration e = jar.entries(); e.hasMoreElements(); )\n\t\t{\n\t\t\tJarEntry jarEntry = (JarEntry) e.nextElement();\n\t\t\t\n\t\t\t//System.out.println(\"Reading entry from GoBible.jar: \" + jarEntry.getName());\n\t\t\t\n\t\t\tString entryName = jarEntry.getName();\n\t\t\tString sFilepath = \"\";\n\t\t\t// Ignore existing manifest, and ui.properties file if\n\t\t\t// the Collections file has specified UI properties\n\t\t\tif (!entryName.startsWith(\"META-INF\") && !entryName.equals(UI_PROPERTIES_FILE_NAME) && (name == null || entryName.startsWith(name)))\n\t\t\t{\n boolean bNewIcon = false;\n if (entryName.equals(\"Icon.png\") && phoneIconFilepath != null)\n {\n //check for file existance first\n File oFile = new File(baseSourceDirectory, phoneIconFilepath);\n if (oFile.exists())\n {\n bNewIcon = true;\n sFilepath = oFile.getPath();\n }\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Error: Icon file doesn't exist <\"+phoneIconFilepath+\">.\");\n\n }\n \n InputStream inputStream;\n if (!bNewIcon)\n {\n // Add entry to new JAR file\n jarOutputStream.putNextEntry(jarEntry);\n //copy over the resource from the jar\n inputStream = new BufferedInputStream(jar.getInputStream(jarEntry));\n // Read all of the bytes from the Go Bible JAR file and write them to the new JAR file\n byte[] buffer = new byte [100000];\n int length;\n\n while ((length = inputStream.read(buffer)) != -1)\n {\n jarOutputStream.write(buffer, 0, length);\n }\n\n // Close the input stream\n inputStream.close();\n }\n else\n {\n //add in the replacement icon\n byte[] buffer = new byte[100000]; \n FileInputStream fi = new FileInputStream(sFilepath); \n inputStream = new BufferedInputStream(fi, 100000) ; \n ZipEntry entry = new ZipEntry(\"Icon.png\"); \n jarOutputStream.putNextEntry ( entry ) ; \n\n int count; \n while ((count=inputStream.read(buffer, 0, 100000)) != -1 )\n { \n jarOutputStream.write ( buffer, 0, count ) ; \n } \n inputStream.close(); \n }\n }\n\t\t}\t\t\n\t}", "public static void printLogo() {\n System.out.println( \" ____ ____ \" + System.lineSeparator()\n + \" | __| | _ \\\\ \" + System.lineSeparator()\n + \" | |__ | | | | \" + System.lineSeparator()\n + \" | __| | | | | \" + System.lineSeparator()\n + \" | |__ | |_| | \" + System.lineSeparator()\n + \" |____| |____/ \");\n }", "static String getMascotImageFilename() {\n Path filePath = Paths.get(badgeResourcePath, \"kumoricon_2017-mascot_chibi.png\");\n return filePath.toAbsolutePath().toString();\n }", "public void saveImagePanel() throws IOException, ClassNotFoundException {\n\t\tFile archiveImage = null;\n\t\tarchiveImage = new File(\"CAMBIAR NOMBRE \");\n\t\tfile_chooser.setSelectedFile(archiveImage);\n\t\tif (file_chooser.showDialog(null, \"Guardar\") == JFileChooser.APPROVE_OPTION) {\n\t\t\tarchiveImage = file_chooser.getSelectedFile();\n\t\t\tif (archiveImage.getName().endsWith(\"jpg\") || archiveImage.getName().endsWith(\"png\")) {\n\t\t\t\t// realizar accion\n\t\t\t\tfileSeralization.saveFile(archiveImage);\n\t\t\t}\n\t\t}\n\t}", "private void generarPNG(String nombre, String entrada) {\n try {\n String ruta = this.pathGuardado + \"/\" + nombre + \".dot\";\n File file = new File(ruta);\n // Si el archivo no existe es creado\n if (!file.exists()) {\n file.createNewFile();\n }\n FileWriter fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(entrada);\n bw.close();\n// //Generar Imagen creada por .dot\n ControlTerminal controlTer = new ControlTerminal(ruta, this.pathGuardado + \"/\" + nombre + \".png\");\n controlTer.generarImagen();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void updateAgencyLogo(String path) throws IOException {\n agencyLogoPathField.setText(path);\n ImageIcon agencyLogoIcon = new ImageIcon();\n agencyLogoPreview.setText(NbBundle.getMessage(AutopsyOptionsPanel.class, \"AutopsyOptionsPanel.agencyLogoPreview.text\"));\n if (!agencyLogoPathField.getText().isEmpty()) {\n File file = new File(agencyLogoPathField.getText());\n if (file.exists()) {\n BufferedImage image = ImageIO.read(file); //create it as an image first to support BMP files \n if (image == null) {\n throw new IOException(\"Unable to read file as a BufferedImage for file \" + file.toString());\n }\n agencyLogoIcon = new ImageIcon(image.getScaledInstance(64, 64, 4));\n agencyLogoPreview.setText(\"\");\n }\n }\n agencyLogoPreview.setIcon(agencyLogoIcon);\n agencyLogoPreview.repaint();\n }", "private static String copyImageToDesired(String pathToImage, String imageName) {\n File oldFile = new File(RhoFileApi.absolutePath(pathToImage));\n File mediafile = new File(RhoFileApi.getDbFilesPath(), imageName);\n\n if (oldFile.getAbsolutePath().equalsIgnoreCase(mediafile.getAbsolutePath())) {\n return RhoFileApi.absolutePath(pathToImage);\n }\n\n InputStream finput= null;\n FileOutputStream fout = null;\n try {\n finput= RhoFileApi.open(pathToImage);\n fout = new FileOutputStream(mediafile);\n byte[] b = new byte[1024];\n int read = 0;\n while ((read = finput.read(b)) != -1) {\n fout.write(b, 0, read);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(finput != null){\n try {\n finput.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n if(fout != null){\n try {\n fout.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n return mediafile.getAbsolutePath();\n }", "public void write(File path) throws IOException{\n\t\tif(this.picture != null){ // in cazul in care poza are continut null se arunca exceptie\n\t\t\t//File output = new File(path);\n\t\t\tImageIO.write(zoomed,\"bmp\",path);\n\t\t\tSystem.out.println(path);\n\t\t\tSystem.out.println(\"\\nS-a scris in fisier cu succes\");\n\t\t}\n\t}", "@Override\n\tpublic File getImage(String name) {\n\n\t\tFile returnValue = new File(RestService.imageDirectory + name + \".png\");\n\t\t\n\t\tif(returnValue.exists() && !returnValue.isDirectory()) \n\t\t{ \n\t\t return returnValue;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnValue = new File(RestService.imageDirectory + name + \".jpg\");\n\t\t\t\n\t\t\tif(returnValue.exists() && !returnValue.isDirectory()) \n\t\t\t{ \n\t\t\t return returnValue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n\tprotected void updateLabel (String name) {\n Image image = new ImageIcon(\"Resource/\" + name + \".png\").getImage().getScaledInstance(200, 200, Image.SCALE_SMOOTH);\n ImageIcon icon = new ImageIcon(image);\n picture.setIcon(icon);\n if (icon != null) {\n picture.setText(null);\n } else {\n picture.setText(\"Image not found\");\n }\n }", "@Source(\"gr/grnet/pithos/resources/editcopy.png\")\n ImageResource copy();", "public static void displayLogo(){\r\n System.out.println();\r\n }", "public void changeTeamLogo(ActionEvent actionEvent) {\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Picture Chooser\");\n // Sets up the initial directory as user folder when filechooser is opened\n fileChooser.setInitialDirectory(new File(System.getProperty(\"user.home\")));\n\n // Sets the file type options\n fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"PNG and JPG files\", \"*.png\",\"*.jpg\",\"*.jpeg\"));\n\n editTeamLogoFile = fileChooser.showOpenDialog(null);\n\n if( editTeamLogoFile != null)\n {\n // Upload button's text is changed and the display image is changed to the selected image\n uploadTeamLogoButton.setText(\"Change Photo\");\n logoChangeImage.setImage(new Image(editTeamLogoFile.toURI().toString()));\n }\n }", "public void screenShot(String name)\n\t{\n\t\tFile f1=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFile f2=new File(\"src/test/resources/ScreenShots/\"+name+\".png\");\n\t\ttry \n\t\t{\n\t\t\tFileUtils.copyFile(f1,f2);\n\t\t\tlog.update(\"ScreenShot taken in name of \"+name);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tlog.update(\"Error in taking ScreenShots\");\n\t\t}\n\t\tcatch(IncompatibleClassChangeError e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tlog.update(\"Exception in incompatile class change error method\");\n\t\t}\n\t}", "public abstract String getImageSuffix();", "public void fillShipPictureLabel() {\n\t\tString shipsName = this.ship.getShipName();\n\t\tif (shipsName == \"Thousand Sunny\") {\n\t\t\tshipPictureLabel.setIcon(new ImageIcon(SetupAdventureScreen.class.getResource(\"/images/ThousandSunny.png\")));\n\t\t}\n\t\telse if (shipsName == \"Black Pearl\") {\n\t\t\tshipPictureLabel.setIcon(new ImageIcon(SetupAdventureScreen.class.getResource(\"/images/BlackPearl.png\")));\n\t\t}\n\t\telse if (shipsName == \"Victoria Hunter\") {\n\t\t\tshipPictureLabel.setIcon(new ImageIcon(SetupAdventureScreen.class.getResource(\"/images/VictoriaHunter.png\")));\n\t\t}\n\t\telse {\n\t\t\tshipPictureLabel.setIcon(new ImageIcon(SetupAdventureScreen.class.getResource(\"/images/StarOne.png\")));\n\t\t}\n\t}", "public void setImageName(String name) {\n imageToInsert = name;\n}", "public static Path locateLogosDir(ServletContext context,\n ConfigurableApplicationContext applicationContext, Path appDir) {\n final Path base = context == null ? appDir : locateResourcesDir(context, applicationContext);\n Path path = base.resolve(\"images\").resolve(\"logos\");\n try {\n java.nio.file.Files.createDirectories(path);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n return path;\n }", "public void copyIcon(File file, File file2) throws IOException {\n Object object = this.gambaricon == null ? this.getAssets().open(\"ico.png\") : new FileInputStream(file);\n FileOutputStream fileOutputStream = new FileOutputStream(file2);\n byte[] arrby = new byte[1024];\n do {\n int n;\n if ((n = object.read(arrby)) <= 0) {\n object.close();\n fileOutputStream.close();\n return;\n }\n fileOutputStream.write(arrby, 0, n);\n } while (true);\n }", "private String getNameImage(String imagePath) {\n\t\treturn imagePath != null ? imagePath.replace(pathFileBase, \"\") : \"\";\n\t}", "public Ventana() {\n initComponents();\n \n ImageIcon imagen = new ImageIcon(Toolkit.getDefaultToolkit().getImage(\"logo.png\"));\n Image img = imagen.getImage().getScaledInstance(logo.getWidth(), logo.getHeight(), Image.SCALE_SMOOTH);\n \n logo.setIcon(new ImageIcon(img));\n \n //Image img = imagen.getImage().getScaledInstance(labelImg.getWidth(), labelImg.getHeight(), Image.SCALE_SMOOTH);\n }", "public ImageHandler() {\n if (System.getProperty(\"os.name\").toLowerCase().contains(\"win\")) {\n this.OS = \"windows/\";\n } else {\n this.OS = \"mac/\";\n }\n }", "private void updateIcon(MarketIndex index) throws IOException {\n\n if(index.getImage()==null){\n String url = \"https://etoro-cdn.etorostatic.com/market-avatars/\"+index.getSymbol().toLowerCase()+\"/150x150.png\";\n byte[] bytes = utils.getBytesFromUrl(url);\n if(bytes!=null){\n if(bytes.length>0){\n byte[] scaled = utils.scaleImage(bytes, Application.STORED_ICON_WIDTH, Application.STORED_ICON_HEIGHT);\n index.setImage(scaled);\n }\n }else{ // Icon not found on etoro, symbol not managed on eToro or icon has a different name? Use standard icon.\n Image img = utils.getDefaultIndexIcon();\n bytes = utils.imageToByteArray(img);\n byte[] scaled = utils.scaleImage(bytes, Application.STORED_ICON_WIDTH, Application.STORED_ICON_HEIGHT);\n index.setImage(scaled);\n }\n }\n\n }", "public void hello() {\n String logo = \" ____ _ \\n\"\n + \"| _ \\\\ _ _| | _____ \\n\"\n + \"| | | | | | | |/ / _ \\\\\\n\"\n + \"| |_| | |_| | < __/\\n\"\n + \"|____/ \\\\__,_|_|\\\\_\\\\___|\\n\";\n System.out.println(\"Hello from\\n\" + logo);\n System.out.println(\"What can I do for you?\");\n }", "String getIconFile();", "public static Path findImagePath(String imageName, Path logosDir) throws IOException {\n if (imageName.indexOf('.') > -1) {\n final Path imagePath = logosDir.resolve(imageName);\n if (java.nio.file.Files.exists(imagePath)) {\n return imagePath;\n }\n } else {\n try (DirectoryStream<Path> possibleLogos = java.nio.file.Files.newDirectoryStream(logosDir, imageName + \".*\")) {\n final Iterator<Path> pathIterator = possibleLogos.iterator();\n while (pathIterator.hasNext()) {\n final Path next = pathIterator.next();\n String ext = Files.getFileExtension(next.getFileName().toString());\n if (IMAGE_EXTENSIONS.contains(ext.toLowerCase())) {\n return next;\n }\n }\n }\n }\n\n return null;\n }", "public final String getLogoImageName() {\n\t\treturn logoImageName;\n\t}", "default void buildMainGenerateCustomRuntimeImage() {\n if (!bach().project().settings().tools().enabled(\"jlink\")) return;\n say(\"Assemble custom runtime image\");\n var image = bach().folders().workspace(\"image\");\n Paths.deleteDirectories(image);\n bach().run(buildMainJLink(image));\n }", "public void copyAssets(String dist) {\n copyFile(dist, \"pointer.png\");\n copyFile(dist, \"WebElementRecorder.js\");\n }", "public static void deleteLogo(Long id){\n ER_User_Custom_Logo tcustomLogo = ER_User_Custom_Logo.findById(id);\n String customImgPath = Play.applicationPath.getAbsolutePath()+\"/public/images/custom/\";\n try\n {\n String l = tcustomLogo.logoName;\n String b = tcustomLogo.bannerName;\n File destination = new File(customImgPath, l);\n if(destination.exists())\n destination.delete();\n destination = new File(customImgPath, b);\n if(destination.exists())\n destination.delete();\n tcustomLogo.delete();\n flash.success(Messages.get(\"logo.delete.success\"));\n }catch ( Exception ex )\n {\n flash.error(Messages.get(\"logo.delete.error\"));\n Logger.error(ex,\"logo: %d\", id);\n }\n\n logosList(null,null,true);\n\n }", "public static void main(String[] args) throws IOException {\n\r\n\t\tWebDriver dr= new FirefoxDriver();\r\n\t\tFile destFile = new File(\"C:\\\\Users\\\\Fakhrul\\\\Desktop\\\\Selenium_Appium_Lecture\\\\img01.jpg\");\r\n\t\tdr.get(\"https://www.w3schools.com/\");\r\n\t\t\r\n\t\tFile file=((TakesScreenshot)dr).getScreenshotAs(OutputType.FILE);\r\n\t\tFileUtils.copyFile(file, destFile);\r\n\t}", "void addImage() throws Exception {\n builderContext.reportStatus(\"%n%nExporting package %s%n\", getPackageName(packageInfo));\n\n IOUtils.deleteRecursive(imageDir);\n imageDir.mkdirs();\n\n for (File f : new File[]{messagesDir, promptsDir}) {\n if (!f.exists() && !f.mkdirs()) {\n throw (new TBBuilder.TBBuilderException(String.format(\"Unable to create directory: %s%n\", f)));\n }\n }\n if (builderContext.deDuplicateAudio) {\n for (File f : new File[]{shadowMessagesDir, shadowPromptsDir}) {\n if (!f.exists() && !f.mkdirs()) {\n throw (new TBBuilder.TBBuilderException(String.format(\"Unable to create directory: %s%n\", f)));\n }\n }\n }\n\n // Create the empty directory structure\n PackageData packageData = packagesData.addPackage(getPackageName(packageInfo))\n .withPromptPath(makePath(promptsDir));\n addPackageContentToImage(packageData);\n\n addSystemPromptsToImage();\n addSystemDirFilesToImage();\n if (packageInfo.hasTutorial()) {\n addTutorialToImage(packageData);\n }\n if (packageInfo.isUfPublic()) {\n addUfToImage(packageData);\n }\n\n allPackagesData.addPackagesData(packagesData);\n File of = new File(contentDir, PackagesData.PACKAGES_DATA_TXT);\n try (FileOutputStream fos = new FileOutputStream(of)) {\n packagesData.exportPackageDataFile(fos, getPackageName(packageInfo));\n }\n\n builderContext.reportStatus(\n String.format(\"Done with adding image for %s and %s.%n\",\n getPackageName(packageInfo),\n packageInfo.getLanguageCode()));\n }", "private void createImageFiles() {\n\t\tswitchIconClosed = Icon.createImageIcon(\"/images/events/switchImageClosed.png\");\n\t\tswitchIconOpen = Icon.createImageIcon(\"/images/events/switchImageOpen.png\");\n\t\tswitchIconEmpty = Icon.createImageIcon(\"/images/events/switchImageEmpty.png\");\n\t\tswitchIconOff = Icon.createImageIcon(\"/images/events/switchImageOff.png\");\n\t\tswitchIconOn = Icon.createImageIcon(\"/images/events/switchImageOn.png\");\n\t\tleverIconClean = Icon.createImageIcon(\"/images/events/leverImageClean.png\");\n\t\tleverIconRusty = Icon.createImageIcon(\"/images/events/leverImageRusty.png\");\n\t\tleverIconOn = Icon.createImageIcon(\"/images/events/leverImageOn.png\");\n\t}", "private static String moveFiles(File origen, Long id, String pref) throws Exception{\n\n String customImgPath = Play.applicationPath.getAbsolutePath()+\"/public/images/custom/\";\n\n String destinationName = origen.getName();\n if(destinationName.lastIndexOf(\".\") != -1 && destinationName.lastIndexOf(\".\") != 0)\n destinationName = \"u\"+id + \"_\"+pref+ Calendar.getInstance().getTimeInMillis() + \".\" +destinationName.substring(destinationName.lastIndexOf(\".\")+1);\n\n File destination = new File(customImgPath, destinationName);\n\n if(destination.exists()){\n destination.delete();\n }\n FileUtils.moveFile(origen, destination);\n\n return destinationName;\n }", "public void genPNGSoloUsuarios() {\n String entrada = genStrSoloUsuarios();\n generarPNG(\"usuarios\", entrada);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n ImageIcon dog = new ImageIcon(\"dog.jpg\");\n File file = new File(\"dog.jpg\");\n System.out.println(file.getAbsolutePath());\n label.setIcon(dog);\n label.setText(null);\n System.out.println(\"눌러따\");\n }", "public static ComponentBuilder<?, ?> createCustomTitleComponent(String label) {\n\n StyleBuilder bold12CenteredStyle = stl.style(boldStyle).setFontSize(12);\n StyleBuilder bold16CenteredStyle = stl.style(boldStyle).setFontSize(16).setForegroundColor(new Color(0, 0, 0));\n //StyleBuilder italicStyle = stl.style(rootStyle).italic();\n ComponentBuilder<?, ?> logoComponent = cmp.verticalList(\n //cmp.image(Templates.class.getResource(\"/logopalm.png\")).setFixedDimension(150, 60),\n cmp.text(label).setStyle(bold16CenteredStyle).setHorizontalAlignment(HorizontalAlignment.CENTER) \n );\n return logoComponent;\n }", "public String getLogo() {\r\n return logo;\r\n }", "public String getLogo() {\r\n return logo;\r\n }", "public String getLogo() {\r\n return logo;\r\n }", "@SuppressLint(\"SimpleDateFormat\")\n public static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + JPEG_FILE_SUFFIX;\n String nameAlbum = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\" + nameDir;// getString(R.string.app_name);\n File albumF = new File(nameAlbum);\n if (!albumF.exists()) {\n albumF.mkdirs();\n File noMedia = new File(albumF, \".nomedia\");\n noMedia.createNewFile();\n }\n\n File imageF = new File(albumF, imageFileName);\n imageF.createNewFile();\n return imageF;\n }", "public static BufferedImage iconMaker(String s){\n BufferedImage buttonIcon;\n try{\n buttonIcon = ImageIO.read(new File(FILE_PATH + s));\n }catch(IOException e){\n buttonIcon = null;\n System.out.println(\"BooHOO\");\n }\n return buttonIcon;\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Icons/logo musica.png\")));\n }", "static String getImage() {\n int rand = (int) (Math.random() * 13);\n return \"file:src/images/spaceships/\" + rand + \".png\";\n }", "private void saveImageInstantly() {\n\n if (movie != null) {\n\n // Get movie's title and set an initial file name\n String movieTitle = movie.getMovieTitle();\n\n // Replace any invalid characters\n movieTitle = movieTitle.replaceAll(\"[\\\"/?\\\"*><|]\", \"\").replace(\":\", \"-\");\n\n // If preferences file is empty\n if (userDirectoryString.equals(\"empty\")) {\n\n userDirectoryString = System.getProperty(\"user.home\");\n }\n\n File userDirectory = new File(userDirectoryString + \"/\" + movieTitle + \".jpg\");\n\n // If it can't access User Home, default to C drive\n if (!userDirectory.getParentFile().canRead()) {\n userDirectory = new File(\"D:\\\\\" + movieTitle + \".jpg\");\n }\n\n // Check file isn't null, so it the image view\n if (imgPoster.getImage() != null) {\n\n try {\n\n ImageIO.write(SwingFXUtils.fromFXImage(imgPoster.getImage(), null), \"jpg\", userDirectory);\n setLblStatus(\"Poster saved successfully.\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public static void copy(String suffix) {\r\n boolean success = false;\r\n boolean doVideo = true;\r\n String imgSrcDir = zipDir0 + \"/R\";\r\n String videoSrcDir = zipDir0 + \"/Video\";\r\n String imgDstDir = rImagesDir0 + \"/Images\" + suffix;\r\n String videoDstDir = rVideoDir0 + \"/Video\" + suffix;\r\n File imgSrcDirFile = new File(imgSrcDir);\r\n File videoSrcDirFile = new File(videoSrcDir);\r\n File imgDstDirFile = new File(imgDstDir);\r\n File videoDstDirFile = new File(videoDstDir);\r\n\r\n // Check and create directories\r\n if(!imgSrcDirFile.isDirectory()) {\r\n System.err.println(\"Not a directory: \" + imgSrcDirFile.getPath());\r\n System.exit(1);\r\n }\r\n if(!videoSrcDirFile.isDirectory()) {\r\n doVideo = false;\r\n }\r\n if(!imgDstDirFile.isDirectory()) {\r\n success = imgDstDirFile.mkdir();\r\n if(!success) {\r\n System.err.println(\"Cannot create: \" + imgDstDirFile.getPath());\r\n System.exit(1);\r\n }\r\n }\r\n if(doVideo && !videoDstDirFile.isDirectory()) {\r\n success = videoDstDirFile.mkdir();\r\n if(!success) {\r\n System.err.println(\"Cannot create: \" + videoDstDirFile.getPath());\r\n System.exit(1);\r\n }\r\n }\r\n\r\n // Images\r\n System.out.println(\"\\nCopying images:\");\r\n System.out.println(\"From: \" + imgSrcDirFile.getPath());\r\n System.out.println(\"To: \" + imgDstDirFile.getPath());\r\n success = CopyUtils.copyDirectory(imgSrcDirFile, imgDstDirFile, saveSuffix);\r\n if(!success) {\r\n System.err.println(\"Copy failed:\\n From: \" + imgSrcDirFile.getPath()\r\n + \"\\n To: \" + imgDstDirFile.getPath() + \"\\n\");\r\n }\r\n\r\n // Video\r\n System.out.println(\"\\nCopying video:\");\r\n if(!doVideo) {\r\n System.out.println(\"No video found\");\r\n return;\r\n }\r\n System.out.println(\"From: \" + videoSrcDirFile.getPath());\r\n System.out.println(\"To: \" + videoDstDirFile.getPath());\r\n success = CopyUtils.copyDirectory(videoSrcDirFile, videoDstDirFile,\r\n saveSuffix);\r\n if(!success) {\r\n System.err.println(\"Copy failed:\\n From: \" + videoSrcDirFile.getPath()\r\n + \"\\n To: \" + videoDstDirFile.getPath() + \"\\n\");\r\n }\r\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"MainLogo.png\")));\n }", "@Override\n\tpublic String getIconFileName() {\n\t\treturn null;\n\t}", "public void reportLogo(String nomRep, String nomlogoiReport, String logo, String tituloReport) {\n try {\n Connection connection = Conexion.getInstance().getConnection();\n Map parame = new HashMap();\n String rta = System.getProperties().getProperty(\"user.dir\") + \"/src/reportes/\" + nomRep + \".jasper\";\n parame.put(nomlogoiReport, this.getClass().getResourceAsStream(logo));\n JasperPrint prt = JasperFillManager.fillReport(rta, parame, connection);\n JasperViewer JsperView = new JasperViewer(prt, false);\n JsperView.setTitle(tituloReport);\n JsperView.setExtendedState(6);\n JsperView.setVisible(true);\n connection.close();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Reporte con logo\");\n }\n }", "public static String createScreenshot(WebDriver driver) {\r\n\t \r\n\t UUID uuid = UUID.randomUUID();\r\n\t File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\t try {\r\n\t org.apache.commons.io.FileUtils.copyFile(scrFile, new File(\"/img\" + uuid + \".png\"));\r\n\t System.out.println(\"/img/screen\" + uuid + \".png\");\r\n\t } catch (IOException e) {\r\n\t System.out.println(\"Error while generating screenshot:\\n\" + e.toString());\r\n\t }\r\n\t return \"/img\" + uuid + \".png\";\r\n\t}", "public void screenShot(String data) throws IOException {\nTakesScreenshot screenShot=(TakesScreenshot) driver;\nFile screenshotAs = screenShot.getScreenshotAs(OutputType.FILE);\nFile file=new File(System.getProperty(\"user.dir\")+\"\\\\target\\\\\"+data+\".png\");\nFileUtils.copyFile(screenshotAs, file);\n\n}", "public Image getIconImage(){\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"Reportes/logoAlk.jpg\"));\n return retValue;\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tcopy(new RandomAccessFile(\"copyfrom.jpg\", \"r\"), new RandomAccessFile(\"copyto.jpg\",\"rw\"));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) throws Exception{\n Home_Page.lnk_SignIn().click();\n LogIn_Page.txtbx_UserName().sendKeys(Constant.Username);\n LogIn_Page.txtbx_Password().sendKeys(Constant.Password);\n LogIn_Page.btn_LogIn().click();\n System.out.println(\" Login Successfully, now it is the time to Log Off buddy.\");\n Home_Page.lnk_LogOut().click(); \n File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n System.out.println(System.getProperty(\"user.dir\") + \"//data//CaptureScreenshot//google.jpg\");\n FileUtils.copyFile(scrFile, new File(System.getProperty(\"user.dir\") + \"//data//CaptureScreenshot//google.jpg\"));\n driver.quit();\n }", "private void updateImageFile() throws FileNotFoundException {\n \t\tfinal PrintWriter out = new PrintWriter(asciiImageFile);\n \t\tout.print(asciiImage(false));\n \t\tout.close();\n \t}" ]
[ "0.6195254", "0.597754", "0.5969466", "0.5914362", "0.56665945", "0.5586709", "0.55424803", "0.5484398", "0.54081", "0.53827214", "0.53823125", "0.5364132", "0.5354363", "0.53364646", "0.53236556", "0.52605915", "0.5243982", "0.5238558", "0.5204729", "0.5180321", "0.5179883", "0.5172913", "0.51677716", "0.516271", "0.51598346", "0.5158403", "0.5155454", "0.5137964", "0.5123108", "0.510642", "0.50992566", "0.50978947", "0.50855356", "0.50833094", "0.5047429", "0.5046033", "0.5039986", "0.5025104", "0.5025104", "0.50240415", "0.50015646", "0.4995417", "0.49948743", "0.49868122", "0.4983067", "0.49807763", "0.49797326", "0.49787664", "0.4967669", "0.49645343", "0.4962874", "0.49449867", "0.4935177", "0.49343768", "0.49297878", "0.49222022", "0.49148488", "0.49059567", "0.49007523", "0.4895872", "0.4895328", "0.488375", "0.48752075", "0.48750973", "0.4859784", "0.4846716", "0.4843156", "0.48420584", "0.48384014", "0.4833037", "0.48297563", "0.48278862", "0.48230544", "0.4816162", "0.48130515", "0.48059073", "0.4804061", "0.48018134", "0.48006296", "0.48005775", "0.4795343", "0.47948712", "0.47859848", "0.47859848", "0.47859848", "0.4771549", "0.47602385", "0.4749217", "0.4748899", "0.47477937", "0.47388178", "0.47328717", "0.47288454", "0.47229987", "0.47227192", "0.47194278", "0.4714717", "0.47086975", "0.47004077", "0.4689663" ]
0.72898597
0
we should be able to grab the item's description
public String getDescription() { return description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized String getDescription(){\n \treturn item_description;\n }", "public String getItemDesc() {\n return itemDesc;\n }", "public String getItemDescription() {\n return itemDescription;\n }", "public String getItemDescription() {\r\n\t\treturn itemDescription;\r\n\t}", "java.lang.String getDesc();", "@Test\n\tvoid descriptionTest() {\n\t\tfor(MedicalItem item: itemList) {\n\t\t\tString expected = \"Name: \" + item.toString() + \"\\nHeal Amount: \" + item.getHealAmount() +\n\t\t\t\t\t\"\\nCures Plague: \" + item.getCure() +\"\\nOutpost Cost: $\" + item.getPrice();\n\t\t\tassertEquals(item.itemDescription(), expected);\n\t\t}\n\t}", "public String getItemDescription(String itemName) {\n return driver.findElement(By.xpath(\"//div[text()='\" + itemName + \"']/../../div\")).getText();\n }", "private String getAgendaItemDescription(AgendaItem item) {\n StringBuilder description = new StringBuilder();\n description.append(Parser.parseToHTML(item.getDescription(), true));\n description.append(\"<br/>\");\n description.append(\"<br/><b>Wie</b>: \" + item.getWho());\n description.append(\"<br/><b>Wat</b>: \" + item.getWhat());\n description.append(\"<br/><b>Waar</b>: \" + item.getLocation());\n description.append(\"<br/><b>Wanneer</b>: \" + item.getWhen());\n description.append(\"<br/><b>Kosten</b>: \" + item.getCosts());\n\n return description.toString();\n }", "@Override\n\tpublic ItemDescription getItemDescription() {\n\t\tItemDescription item = new ItemDescription();\n\t\titem.title = \"电池充电测试\";\n\t\titem.board = \"通用\";\n\t\titem.desc = \"电池充电\";\n\t\treturn item;\n\t}", "XBCXDesc getItemDesc(XBCItem item, XBCXLanguage language);", "public String getDesc() {\n ListIterator<Item> roomContents = contents.listIterator();\n String contentString = \"\";\n while (roomContents.hasNext()) {\n contentString\n = contentString + (roomContents.next()).getDesc() + \" \";\n }\n\n return description + '\\n' + '\\n'\n + \"Room Contents: \" + contentString + '\\n';\n }", "String getDesc();", "public String getDesc()\r\n {\r\n return description;\r\n }", "public void setItemDescription(String description){\r\n\t\tthis.itemDescription = description;\r\n\t}", "public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }", "@Override\n\tpublic String getdescription() {\n\t\treturn this.description.getDesc();\n\t}", "public String getItemInformation()\n {\n return this.aDescription + \" qui a un poids de \" + this.aWeight;\n\n }", "java.lang.String getProductDescription();", "public String getFirstItemDescription() {\r\n return firstItemDescription;\r\n }", "public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }", "public String getDesc(){\r\n\t\treturn this.desc;\r\n\t}", "public String getDescription() {return \"Use an item in your inventory\"; }", "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();", "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "protected String getDescription()\n {\n return description;\n }", "public String getDescr() {\r\n return descr;\r\n }", "public String getDESCRIPTION() {\r\n return DESCRIPTION;\r\n }", "public String getDescription() {\r\n return _description;\r\n }", "public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }", "public final String getDescription() { return mDescription; }", "public String getDescription()\r\n\t{\treturn this.description;\t}", "public String getDescription() {\n return mDescription;\n }", "protected abstract void onBindDescription(ViewHolder vh, Object item);", "public List<String> Description() {\n XPathFactory xpath = XPathFactory.instance();\n XPathExpression<Element> expr = xpath.compile(\"//item/description\", Filters.element());\n List<Element> news = expr.evaluate(this.data);\n List<String> description = new ArrayList<String>();\n news.forEach(post -> description.add(post.getValue().trim()));\n return description;\n }", "public java.lang.String getDescription(){\r\n return this.description;\r\n }", "@Override\n public String getDescription()\n {\n return m_description;\n }", "public String getDescription(){return description;}", "public String getDescription(){return description;}", "String getdescription() {\n\t\treturn description;\n\t}", "public java.lang.Object getDescription() {\n return description;\n }", "public String getInfo()\r\n\t{\r\n\t\treturn theItem.getNote();\r\n\t}", "protected String getDescription() {\n return description;\n }", "public String getDescription(){ return description; }", "public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String get_description() {\n return description;\n }", "@Override\n\tpublic TbItemDesc getItemDescByItemId(long itemId) {\n\t\tString httpClientResult = HttpClientUtil.doGet(HTTPCLIENTURL + HTTPCLIENTITEMDESC + itemId);\n\t\tTbItemDesc formatToPojo = JsonUtils.jsonToPojo(httpClientResult, TbItemDesc.class);\n\t\treturn formatToPojo;\n\t}", "public String getProductDescription() {\r\n/* 221 */ return this._productDescription;\r\n/* */ }", "public String getDescriptionText() {\n return m_DescriptionText;\n }", "public String getDescription() {\r\n return Description; \r\n }", "public CharSequence getDescription() {\n return description;\n }", "public String getDescription(){\n return description;\n }", "public String getDescription(){\n return description;\n }", "public String getDescription()\n {\n return this.mDescription;\n }", "public String getDescription() {\n return description; \n }", "public String getDescr() {\n\t\treturn _descr;\n\t}", "public String getDescr() {\n\t\treturn _descr;\n\t}", "public String getDescription() { return description; }", "public String getDescription() {\r\n return this.description;\r\n }", "public String getDescription() {\r\n return this.description;\r\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "public String getDescription()\r\n {\r\n\treturn desc;\r\n }", "public String getDescription()\r\n {\r\n return description;\r\n }", "public CharSequence getDescription() {\n return description;\n }", "public Item(String description) {\n this.description = description;\n }", "public java.lang.String getDesc() {\r\n return desc;\r\n }", "String getDisplay_description();", "public vrealm_350275.Buyer.Ariba.ERPOrder_PurchOrdSplitDetailsLineItemsItemDescription getDescription() {\n return description;\n }", "public String getDescription() {\n return (desc);\n }", "public String getDescription() {\n return this.Description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return _description;\n }", "public String getDescription() {\n return _description;\n }", "public String description() {\n return this.descr;\n }", "public String getDescription()\n {\n return this.description;\n }", "public abstract String getContentDescription();", "@Override\n public String getItemDescription() {\n\treturn \"<html>The rare goblin sword: <br>+4 Strength, +1 craft<br>\"\n\t\t+ \"If you unequipped or loose the sword, you lose 2 lives,<br> unless it would kill you.\";\n }", "@Override\n public String getDescription() {\n return \"Digital goods listing\";\n }", "public String getItem()\n {\n // put your code here\n return \"This item weighs: \" + weight + \"\\n\" + description + \"\\n\";\n }", "public String getDesc() {\r\n\t\treturn desc;\r\n\t}", "public String getDesc() {\r\n\t\treturn desc;\r\n\t}", "public String getDescInfo() {\n return descInfo;\n }" ]
[ "0.7938913", "0.78848964", "0.7792981", "0.7732546", "0.7547139", "0.75442433", "0.7538005", "0.7474431", "0.7440442", "0.73355216", "0.730615", "0.72744226", "0.72411084", "0.7156299", "0.71384317", "0.7101424", "0.7083846", "0.7078574", "0.70733964", "0.70596886", "0.7025272", "0.70195884", "0.7006535", "0.7006535", "0.7006535", "0.7006535", "0.7006535", "0.7006535", "0.7006535", "0.7006535", "0.7006535", "0.6999542", "0.69789803", "0.6969027", "0.6951786", "0.6947544", "0.69351596", "0.6932971", "0.69242626", "0.69162124", "0.69155556", "0.6914579", "0.68975765", "0.68697166", "0.68671423", "0.68671423", "0.68668026", "0.6865659", "0.6860711", "0.6859674", "0.685929", "0.6852891", "0.68513924", "0.68513924", "0.68513924", "0.68513924", "0.68473077", "0.68450826", "0.68384856", "0.6835796", "0.68325645", "0.68256855", "0.6824727", "0.6824727", "0.6808811", "0.68063915", "0.68036675", "0.68036675", "0.6792778", "0.67909896", "0.67909896", "0.6788137", "0.6788137", "0.6788137", "0.6788137", "0.6788137", "0.6787912", "0.6787711", "0.6784806", "0.67845106", "0.67644936", "0.6764237", "0.6761494", "0.6758013", "0.6753799", "0.675209", "0.67499304", "0.67499304", "0.67499304", "0.6749584", "0.67463064", "0.67463064", "0.6740988", "0.6740034", "0.6739693", "0.6739274", "0.67316693", "0.6727686", "0.6725304", "0.6725304", "0.6718387" ]
0.0
-1
and to be able to edit the description
public void editDescription(String description) { this.description = description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDescription(String description){this.description=description;}", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription(String descr);", "public void setDescription (String description);", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) { this.description = description; }", "public void setDescription(String desc);", "public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }", "public void setDescription(String description){\n this.description = description;\n }", "public abstract void setDescription(String description);", "public abstract void setDescription(String description);", "public void setDescription(String desc) {\n this.desc = desc;\n }", "void setDescription(String description);", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n\n }", "public void setDescription(String desc)\r\n {\r\n\tthis.desc = desc;\r\n }", "public String getDescription(){return description;}", "public String getDescription(){return description;}", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "@Override\n public String getDescription() {\n return descriptionText;\n }", "public void setDescription(String description)\n/* */ {\n/* 67 */ this.description = description;\n/* */ }", "public void setDescription(String newdescription) {\n description=newdescription;\n }", "void setDescription(java.lang.String description);", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String Description) {\n this.Description = Description;\n }", "@Override\n public String getDescription() {\n return description;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\n \tthis.description = description;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "@Override\n public void setDescription(String arg0)\n {\n \n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public String getDescription(){ return description; }", "public void setDescription(String des){\n description = des;\n }", "public abstract void description();", "public void setDescription(String description) {\n this.description = description;\r\n // changeSupport.firePropertyChange(\"description\", oldDescription, description);\r\n }", "public void setDescription(String value) {\r\n this.description = value;\r\n }", "@Updatable\n public String getDescription() {\n return description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n this.updated = new Date();\n }", "public abstract void setContentDescription(String description);", "public void setDescription(String sDescription);", "public void setDescription(String description )\n {\n this.description = description;\n }", "void setdescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }" ]
[ "0.81195086", "0.79456586", "0.79456586", "0.79456586", "0.79456586", "0.79456586", "0.79456586", "0.7795806", "0.7781852", "0.7779442", "0.7779442", "0.77758294", "0.77305967", "0.7726888", "0.7722619", "0.7659308", "0.7659308", "0.7622877", "0.7600007", "0.75993806", "0.75952154", "0.7581061", "0.75595826", "0.75595826", "0.75386685", "0.75386685", "0.75386685", "0.75386685", "0.75386685", "0.75112385", "0.7509981", "0.7507188", "0.75018144", "0.7459953", "0.7449506", "0.7448842", "0.74430084", "0.7442924", "0.7437039", "0.74276197", "0.74276197", "0.74276197", "0.74276197", "0.74276197", "0.74267185", "0.7420403", "0.7420403", "0.7420403", "0.7416395", "0.7416395", "0.7416395", "0.7416395", "0.7416395", "0.74134433", "0.74079686", "0.7405032", "0.7403351", "0.74015117", "0.7401348", "0.7395102", "0.7395102", "0.7395102", "0.7386923", "0.7348859", "0.7344763", "0.7343517", "0.7336748", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573", "0.73355573" ]
0.796099
1
the item's description must be between 1 and 256 characters in length
public boolean checkDescription() { int size = description.length(); return size >= 1 && size <= 256; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void validateDescription(ValidationError error, int length) {\n String fieldName = \"description\";\n if (length > 128) {\n logger.error(\"Length (\" + length + \") of Description must not exceed 128 on a FinanceCube\");\n error.addFieldError(fieldName, \"Length (\" + length + \") of Description must not exceed 128 on a FinanceCube\");\n }\n }", "@Test\n public void enforcedTitleAndDescriptionLength() {\n logon(\"AutoTest\", \"automated\");\n\n // Start with a title and description less than 150 chars.\n String itemName = context.getFullName(FIFTY_CHARS);\n assertTrue(itemName.length() < 150);\n\n WizardPageTab wizard =\n new ContributePage(context).load().openWizard(GENERIC_TESTING_COLLECTION);\n wizard.editbox(1, itemName);\n wizard.editbox(2, itemName);\n SummaryPage summary = wizard.save().publish();\n assertEquals(summary.getItemTitle(), itemName);\n assertEquals(summary.getItemDescription(), itemName);\n\n // Now make them longer than 150 chars.\n itemName += FIFTY_CHARS + FIFTY_CHARS;\n assertTrue(itemName.length() > 150);\n\n wizard = summary.edit();\n wizard.editbox(1, itemName);\n wizard.editbox(2, itemName);\n summary = wizard.saveNoConfirm();\n\n // Expected name is the first 150 characters and an ellipsis char.\n String expectedName = itemName.substring(0, 150) + \"\\u2026\";\n assertEquals(summary.getItemTitle(), expectedName);\n assertEquals(summary.getItemDescription(), expectedName);\n\n logout();\n }", "public boolean descriptionIsValid() {\n return bikeDescription.length() > 0 && bikeDescription.length() < MAX_DESCRIPTION_LENGTH;\n }", "@Test\n\tvoid descriptionTest() {\n\t\tfor(MedicalItem item: itemList) {\n\t\t\tString expected = \"Name: \" + item.toString() + \"\\nHeal Amount: \" + item.getHealAmount() +\n\t\t\t\t\t\"\\nCures Plague: \" + item.getCure() +\"\\nOutpost Cost: $\" + item.getPrice();\n\t\t\tassertEquals(item.itemDescription(), expected);\n\t\t}\n\t}", "public Item(String description) {\n this.description = description;\n }", "public void testAddPaymentTerm_ExceedDescription() throws Exception {\r\n try {\r\n PaymentTerm paymentTerm = this.getPaymentTermWithOutId();\r\n paymentTerm.setDescription(this.getStringWithLength65());\r\n this.getManager().addPaymentTerm(paymentTerm);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n assertTrue(e.getMessage()\r\n .indexOf(\"The description of PaymentTerm to be added should\"\r\n + \" not be with length greater than 64\") >= 0);\r\n }\r\n }", "public void setItemDescription(String description){\r\n\t\tthis.itemDescription = description;\r\n\t}", "public void setItemDesc(String itemDesc) {\n this.itemDesc = itemDesc == null ? null : itemDesc.trim();\n }", "public void testUpdatePaymentTerm_ExceedDescription() throws Exception {\r\n try {\r\n PaymentTerm paymentTerm = this.getPaymentTermWithId(1);\r\n paymentTerm.setDescription(this.getStringWithLength65());\r\n this.getManager().updatePaymentTerm(paymentTerm);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n assertTrue(e.getMessage()\r\n .indexOf(\"The description of PaymentTerm to be updated should\"\r\n + \" not be with length greater than 64\") >= 0);\r\n }\r\n }", "public void validateDescription (String description){\n boolean isValid = description != null && !description.isEmpty();\n setDescriptionValid(isValid);\n }", "@Override\n\tpublic ItemDescription getItemDescription() {\n\t\tItemDescription item = new ItemDescription();\n\t\titem.title = \"电池充电测试\";\n\t\titem.board = \"通用\";\n\t\titem.desc = \"电池充电\";\n\t\treturn item;\n\t}", "public synchronized String getDescription(){\n \treturn item_description;\n }", "@Override\n public String getItemDescription() {\n\treturn \"<html>The rare goblin sword: <br>+4 Strength, +1 craft<br>\"\n\t\t+ \"If you unequipped or loose the sword, you lose 2 lives,<br> unless it would kill you.\";\n }", "public String getDescription() {return \"Use an item in your inventory\"; }", "public void setDescription(CharSequence value) {\n this.description = value;\n }", "public Item(){\n description = \"No description avaible for this item\";\n weight = 0;\n }", "public void isDescriptionCorrect(String description) {\n\t\tSystem.out.println(description);\n\t\tString text = WebUtility.getText(Locators.getLocators(\"loc.text.description\"));\n\t\tSystem.out.println(text);\n\t\tAssert.assertTrue(text.contains(data.getValidatingData(description)), \"Description is not present\");\n\n\t}", "public static String validateJobDescription(String description) {\n if (isEmpty(description)) {\n return \"Description cannot be empty\";\n } else if (description.length() > 400) {\n return \"Description cannot be more than 400 characters\";\n } else {\n return null;\n }\n }", "@Test\n public void descriptionIsNotOutOfRange() {\n propertyIsNot(\n labelS,\n StringUtil.createJString(MAX_RANGE_10485760 + 1),\n CodeI18N.FIELD_SIZE,\n \"description property must not be of size lesser than 0 and larger than \" + MAX_RANGE_10485760\n + \" characters\"\n );\n }", "public void setDescription(String description){this.description=description;}", "private Boolean checkFields(String title, String description) {\n if (title.trim().length() > 30) {\n Toast.makeText(getActivity(), R.string.too_long_title, Toast.LENGTH_SHORT).show();\n } else if (description.trim().length() > 150) {\n Toast.makeText(getActivity(), R.string.too_long_description, Toast.LENGTH_SHORT).show();\n } else if (title.trim().length() == 0 || title.isEmpty()) {\n Toast.makeText(getActivity(), R.string.title_field_empty, Toast.LENGTH_SHORT).show();\n } else if (description.trim().length() == 0 || description.isEmpty()) {\n Toast.makeText(getActivity(), R.string.description_field_empty, Toast.LENGTH_SHORT).show();\n } else if (!isValidDate()) {\n Toast.makeText(getActivity(), R.string.wrong_date, Toast.LENGTH_SHORT).show();\n } else {\n return false;\n }\n return true;\n }", "@NotNull\n 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();", "public String clientToString(){\n return leftPad(itemId, 15) + itemDescription;\n }", "public void setDescription(String description)\n {\n this.description = description.trim();\n }", "public void setDESCRIPTION(java.lang.CharSequence value) {\n this.DESCRIPTION = value;\n }", "public String getItemDescription() {\n return itemDescription;\n }", "public String getDescription(){return description;}", "public String getDescription(){return description;}", "private String getAgendaItemDescription(AgendaItem item) {\n StringBuilder description = new StringBuilder();\n description.append(Parser.parseToHTML(item.getDescription(), true));\n description.append(\"<br/>\");\n description.append(\"<br/><b>Wie</b>: \" + item.getWho());\n description.append(\"<br/><b>Wat</b>: \" + item.getWhat());\n description.append(\"<br/><b>Waar</b>: \" + item.getLocation());\n description.append(\"<br/><b>Wanneer</b>: \" + item.getWhen());\n description.append(\"<br/><b>Kosten</b>: \" + item.getCosts());\n\n return description.toString();\n }", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public String getItemDesc() {\n return itemDesc;\n }", "public void setDescription(String description) { this.description = description; }", "public String updateDescription() {\r\n\t\tIrUser user = userService.getUser(userId, false);\r\n\t\tif( !item.getOwner().equals(user) && !user.hasRole(IrRole.ADMIN_ROLE) && \r\n\t\t\t\t!institutionalCollectionPermissionHelper.isInstitutionalCollectionAdmin(user, genericItemId))\r\n\t\t{\r\n\t\t return \"accessDenied\";\r\n\t\t}\r\n\t\tItemObject itemObject = item.getItemObject(itemObjectId, itemObjectType);\r\n\t\titemObject.setDescription(description);\r\n\r\n\t\titemService.makePersistent(item);\r\n\r\n\t\treturn getFiles();\r\n\t}", "public String getItemDescription() {\r\n\t\treturn itemDescription;\r\n\t}", "protected void validateLogItem(LogItem logItem) throws WikiException {\r\n\t\tcheckLength(logItem.getUserDisplayName(), 200);\r\n\t\tcheckLength(logItem.getLogParamString(), 500);\r\n\t\tlogItem.setLogComment(StringUtils.substring(logItem.getLogComment(), 0, 200));\r\n\t}", "public void setDescription(String description)\n/* */ {\n/* 67 */ this.description = description;\n/* */ }", "void setdescription(String description) {\n\t\tthis.description = description;\n\t}", "@Test public void readStringDescriptionsNotJustSingleWord() {\n fail( \"Not yet implemented\" );\n }", "public void setDescr(String descr) {\r\n this.descr = descr;\r\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description){\n this.description = description;\n }", "public void setDescription(String tmp) {\n this.description = tmp;\n }", "public void setDescription(String tmp) {\n this.description = tmp;\n }", "public Description(String aValue) {\n super(aValue);\n }", "public CharSequence getDescription() {\n return description;\n }", "@Test\r\n\tvoid testCreateToDoItem() {\r\n\t\tToDoItem newItem = new ToDoItem(\"Item 1\", \"2/6/21\", 1, \"Body text 1\");\r\n\t\tString correctInfo = \"Name: Item 1\\nDue Date: 2/6/21\\nPriority: High\\nNotes: Body text 1\\nLate: Yes\\nItem Complete: No\";\r\n\r\n\t\tif (!newItem.getAllInfo().equals(correctInfo)) {\r\n\t\t\tfail(\"Error creating ToDoItem\");\r\n\t\t}\r\n\r\n\t}", "public String getLongDescription() {\n StringBuilder s = new StringBuilder();\n s.append(ChatColor.WHITE).append(getChanceDescription());\n s.append(ChatColor.YELLOW).append(getCountDescription());\n s.append(ChatColor.GOLD).append(_dropType).append(' ');\n\n if (_dropType == DropType.ITEM) {\n Item item = BeastMaster.ITEMS.getItem(_id);\n s.append((item == null) ? ChatColor.RED : (item.isImplicit() ? ChatColor.YELLOW : ChatColor.GREEN));\n s.append(_id);\n\n // Only items can have an associated objective.\n if (_objectiveType != null) {\n s.append(ChatColor.GREEN).append(\"(objective: \").append(_objectiveType).append(\") \");\n }\n } else if (_dropType == DropType.MOB) {\n MobType mobType = BeastMaster.MOBS.getMobType(_id);\n s.append((mobType == null) ? ChatColor.RED : ChatColor.GREEN);\n s.append(_id);\n }\n\n if (_restricted) {\n s.append(ChatColor.LIGHT_PURPLE).append(\" restricted\");\n }\n\n if (_alwaysFits) {\n s.append(ChatColor.YELLOW).append(\" always-fits\");\n }\n\n if (_logged) {\n s.append(ChatColor.GOLD).append(\" logged\");\n }\n\n if (getExperience() > 0 || getSound() != null || isInvulnerable() || isGlowing() || isDirect()) {\n s.append(\"\\n \");\n\n if (getExperience() > 0) {\n s.append(' ');\n s.append(ChatColor.GOLD).append(\"xp \");\n s.append(ChatColor.YELLOW).append(getExperience());\n }\n\n if (getSound() != null) {\n s.append(' ').append(getSoundDescription());\n }\n\n if (isGlowing()) {\n s.append(ChatColor.GOLD).append(\" glowing\");\n }\n\n if (isInvulnerable()) {\n s.append(ChatColor.GOLD).append(\" invulnerable\");\n }\n\n if (isDirect()) {\n s.append(ChatColor.GOLD).append(\" direct-to-inv\");\n }\n\n }\n return s.toString();\n }", "public Item(String itemName, String itemDescription){\n this.itemName = itemName;\n this.itemDescription = itemDescription;\n}", "public String getDescription(){ return description; }", "public String getDesc()\r\n {\r\n return description;\r\n }", "public String getLongDescription() {\n return String.format(\"%1$s\\nSize: %2$d MiB\\nSHA1: %3$s\", getShortDescription(), Math.round(getSize() / (1024 * 1024)), getChecksum());\n }", "public void setDescription(String s){\r\n \t// check is s is null or the length of the string is 0\r\n if(s == null || s.length() == 0) {\r\n \t//throw an exception\r\n throw new PizzaException(\"exception in the setDescription method: string is null or the length of string is 0\"); \r\n }\r\n this.description = s;\r\n }", "public void setDescription(String description) {\n\n }", "protected abstract void onBindDescription(ViewHolder vh, Object item);", "@java.lang.Override\n public com.google.protobuf.ByteString getDescriptionBytes() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n description_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getDescriptionBytes() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n description_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getDescriptionBytes() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n description_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getDescriptionBytes() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n description_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getDescriptionBytes() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n description_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setDescription (String description);", "public abstract void setDescription(String description);", "public abstract void setDescription(String description);", "public maestro.payloads.FlyerFeaturedItem.Builder setDescription(CharSequence value) {\n validate(fields()[4], value);\n this.description = value;\n fieldSetFlags()[4] = true;\n return this;\n }", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "public void setDescription(String value) {\r\n this.description = value;\r\n }", "@Override\n public String storeItem() {\n return \"N/\" + description;\n }", "public Data(String itemId, String itemDescription) {\n this.itemId = itemId;\n this.itemDescription = itemDescription;\n }", "public Todo(String description) throws InvalidDescriptionException {\n super(description);\n if (description.isBlank()) {\n throw new InvalidDescriptionException(\"Hey! \"\n + \"Todo description shouldn't be blank.\");\n }\n }", "@Override\n public void updateDescription() {\n description = DESCRIPTIONS[0]+ ReceiveBlockAmount + DESCRIPTIONS[1];\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescr(String descr) {\n\t\tthis._descr = descr;\n\t}", "public void setDescr(String descr) {\n\t\tthis._descr = descr;\n\t}", "public CharSequence getDescription() {\n return description;\n }", "public static String descriptrionForDisplay(String description){\n /*\n if(description == null || description.equals(CommonConstant.EMPTY_STRING)){\n return null;\n } \n description = description.replaceAll(Serializable.toStringRegex(DESC_OPEN), CommonConstant.EMPTY_STRING);\n description = description.replaceAll(Serializable.toStringRegex(DESC_CLOSE), CommonConstant.EMPTY_STRING);\n description = description.replaceAll(Serializable.toStringRegex(DESC_FIELD_SEPARATOR), CommonConstant.LINE_SEPARATOR); \n */\n return description;\n }" ]
[ "0.7146846", "0.6897114", "0.68072206", "0.6728721", "0.66329616", "0.66243786", "0.6434576", "0.6416183", "0.63924485", "0.6226524", "0.6208507", "0.6199733", "0.61811054", "0.59926873", "0.59897184", "0.59042686", "0.5868991", "0.5839405", "0.58390623", "0.5838392", "0.5797926", "0.57814485", "0.57783175", "0.57783175", "0.57783175", "0.57783175", "0.57783175", "0.57783175", "0.57783175", "0.57783175", "0.57783175", "0.5776772", "0.5766568", "0.5750548", "0.57140356", "0.57118005", "0.57118005", "0.5700732", "0.5684706", "0.5684706", "0.5684706", "0.5684706", "0.5684706", "0.5684706", "0.56699866", "0.56443644", "0.5619937", "0.5618912", "0.56186706", "0.56178766", "0.5609084", "0.5603428", "0.5594729", "0.5586602", "0.5586602", "0.5585044", "0.5580433", "0.5580433", "0.5574764", "0.5573191", "0.5559548", "0.5558204", "0.5557797", "0.55568594", "0.55547416", "0.555381", "0.5551305", "0.554037", "0.55395514", "0.55325496", "0.55325496", "0.55325496", "0.55325496", "0.55325496", "0.55276746", "0.5524511", "0.5524511", "0.5522679", "0.55205077", "0.55205077", "0.55205077", "0.55205077", "0.55205077", "0.55205077", "0.55205077", "0.55205077", "0.55205077", "0.55205077", "0.55205077", "0.55205077", "0.5517591", "0.55146825", "0.5507745", "0.5501931", "0.5500927", "0.5499157", "0.5496184", "0.5496184", "0.5493681", "0.54861" ]
0.7022304
1
we should be able to edit the due date
public void editDueDate(Calendar newDate) { this.dueDate = newDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDueDate(Date d){dueDate = d;}", "public static void dateDue() {\n Date date = new Date();\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n String strDate = formatter.format(date);\r\n NewProject.due_date = getInput(\"Please enter the due date for this project(dd/mm/yyyy): \");\r\n\r\n UpdateData.updateDueDate();\r\n updateMenu();\t//Return back to previous menu.\r\n }", "public void setDueDate(String dueDate) {\n }", "public void editDueDate(Calendar newDueDate) {\n dueDate = newDueDate;\n }", "public void setDue(LocalDate due) {\n this.due = due;\n }", "public void setDueDate(String dueDate)\n {\n this.dueDate = dueDate;\n }", "public void setDueDate(Date dueDate) {\r\n\t\tthis.dueDate = dueDate;\r\n\t}", "void updateTaskDueDate(int id, LocalDateTime dueDate);", "Date getDueDate();", "Date getDueDate();", "public String getDueDate()\r\n {\r\n return dueDate;\r\n }", "public void setDueDate(Date dueDate) {\n\t\tthis.dueDate = dueDate;\n\t}", "public void setDueDate(Date dueDate) {\n\t\tthis.dueDate = dueDate;\n\t}", "public void setDueDate(String newDueDate) {\n if (this.validateDate(newDueDate)) {\n dueDate = new GregorianCalendar();\n DateFormat dateForm = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH);\n\n try {\n dueDate.setTime(dateForm.parse(newDueDate));//set this.DueDate = new due date\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }\n }", "public Date getDue() {\n return this.due;\n }", "public void doChangeItemDueDate(ActionEvent actionEvent) {\n // grab the item\n // setDueDate(item);\n }", "public Calendar getDueDate(){\n return dueDate;\n }", "private void setDueDateView(){\n mDueDate.setText(mDateFormatter.format(mDueDateCalendar.getTime()));\n }", "public void edit_task_due_date(String due_date_string)\n throws DateTimeParseException\n {\n LocalDate local_date_ref;\n\n local_date_ref = LocalDate.parse(due_date_string);\n task_due_date = local_date_ref;\n\n }", "public Date getDueDate() {\n\t\treturn date; //changed DaTe to date\r\n\t}", "public IssueBuilderAbstract dueDate(Calendar dueDate){\n fieldDueDate = dueDate;\n return this;\n }", "public LocalDate getDue() {\n return this.due;\n }", "public Date getDueDate() {\r\n\t\treturn dueDate;\r\n\t}", "public void setDueDate(FinanceDate dueDate) {\r\n\t\tthis.dueDate = dueDate;\r\n\t}", "public Date getDueDate() {\n\t\treturn dueDate;\n\t}", "public void setDateDue(java.util.Date dateDue) {\n this.dateDue = dateDue;\n }", "private void updateDueList() {\n boolean status = customerDue.storeSellsDetails(new CustomerDuelDatabaseModel(\n selectedCustomer.getCustomerCode(),\n printInfo.getTotalAmountTv(),\n printInfo.getPayableTv(),\n printInfo.getCurrentDueTv(),\n printInfo.getInvoiceTv(),\n date,\n printInfo.getDepositTv()\n ));\n\n if (status) Log.d(TAG, \"updateDueList: --------------successful\");\n else Log.d(TAG, \"updateDueList: --------- failed to store due details\");\n }", "public static void updateDueDate(){\n projectChosen = getQuestionInput();\r\n try {\r\n Connection myConn = DriverManager.getConnection(url, user, password);\r\n String sqlInsert = \"UPDATE projects SET due_date = ? \" +\r\n \"WHERE project_num = \" + projectChosen;\r\n\r\n PreparedStatement pstmt = myConn.prepareStatement(sqlInsert);\r\n pstmt.setString(1, NewProject.due_date);\r\n pstmt.executeUpdate(); //Execute update of database.\r\n pstmt.close();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public String getDueDate() {\n\t\tDateFormat df = new SimpleDateFormat(\"MM-dd-yyyy\");\n\t\tif (dueDate != null) {\n\t\t\treturn df.format(dueDate);\t\t\t\n\t\t} else {\n\t\t\treturn null;\n\t\t}\t\n\t}", "public java.util.Date getDateDue() {\n return this.dateDue;\n }", "public Date getEditDate()\r\n/* */ {\r\n/* 186 */ return this.editDate;\r\n/* */ }", "public LocalDate get_raw_due_date()\n {\n return task_due_date;\n }", "public void setEditDate(Date editDate)\r\n/* */ {\r\n/* 193 */ this.editDate = editDate;\r\n/* */ }", "public String get_task_due_date()\n {\n return task_due_date.toString();\n }", "private JFormattedTextField getTextFieldDueDate() {\r\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n JFormattedTextField textFieldDueDate = new JFormattedTextField(dateFormat);\r\n textFieldDueDate.setBounds(100, 160, 150, 25);\r\n textFieldDueDate.setName(\"DueDate\");\r\n return textFieldDueDate;\r\n }", "public ToDoBuilder addDueDate(String due) throws ParseException {\n if(!due.equals(\"null\") && !due.equals(\"?\")){\n this.due = DATE_FORMAT.parse(due);\n }\n return this;\n }", "@ApiModelProperty(required = true, value = \"payment order due date\")\n public DateTime getDueDate() {\n return dueDate;\n }", "private void setDueTimeView(){\n mDueTime.setText(mTimeFormatter.format(mDueDateCalendar.getTime()));\n }", "public char getDueDate(){\n\t\treturn this.dueDate;\n\t}", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Due date for the document, use in conjunction with Auto Expire.\")\n @JsonIgnore\n\n public OffsetDateTime getDueDateField() {\n return dueDateField.orElse(null);\n }", "private void calculatePaymentDate() {\n\t\t\tBmoReqPayType bmoReqPayType = (BmoReqPayType)reqPayTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoReqPayType == null && bmoRequisition.getReqPayTypeId().toInteger() > 0) {\n\t\t\t\tbmoReqPayType = bmoRequisition.getBmoReqPayType();\n\t\t\t}\n\t\t\tif (bmoReqPayType != null) {\n\t\t\t\tif (!deliveryDateBox.getTextBox().getValue().equals(\"\")) {\n\t\t\t\t\tDate dueDate = DateTimeFormat.getFormat(getUiParams().getSFParams().getDateFormat()).parse(deliveryDateBox.getTextBox().getValue());\n\t\t\t\t\tCalendarUtil.addDaysToDate(dueDate, bmoReqPayType.getDays().toInteger());\n\t\t\t\t\tpaymentDateBox.getDatePicker().setValue(dueDate);\n\t\t\t\t\tpaymentDateBox.getTextBox().setValue(GwtUtil.dateToString(dueDate, getSFParams().getDateFormat()));\n\t\t\t\t}\n\t\t\t} else reqPayTypeListBox.setSelectedId(\"-1\");\t\t\t\t\n\t\t}", "@Override\n public void edit() {\n this.parent.handleEditSignal(this.deadline);\n }", "private String formatDueDate(Date date) {\n\t\t//TODO locale formatting via ResourceLoader\n\t\t\n\t\tif(date == null) {\n\t\t\treturn getString(\"label.studentsummary.noduedate\");\n\t\t}\n\t\t\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yy\");\n \treturn df.format(date);\n\t}", "@FXML\n public void changeDueDate(ActionEvent actionEvent) {\n }", "@FXML\n\tprivate void dateSelected(ActionEvent event) {\n\t\tint selectedIndex = taskList.getSelectionModel().getSelectedIndex();\n\t\tString task = taskList.getSelectionModel().getSelectedItem();\n\t\tString selectedDate = dateSelector.getValue().toString();\n\t\tif (task.contains(\" due by \")) {\n\t\t\ttask = task.substring(0, task.lastIndexOf(\" \")) + \" \" + selectedDate;\n\n\t\t} else {\n\t\t\ttaskList.getItems().add(selectedIndex, task +\" due by \" + selectedDate );\n\t\t\ttaskList.getItems().remove(selectedIndex + 1);\n\t\t}\n\t\ttask = task.replace(\"@task \", \"\");\n\t\tString task_split[] = task.split(\" \", 2);\n\t\tclient.setTaskDeadline(task_split[1].replace(\"\\n\", \"\"), selectedDate);\n\t}", "private void modifyDepositDue(PrintItinerary itinerary, String xslFormat) {\n\t\tif (xslFormat.equalsIgnoreCase(\"CUSTOMERFORMATBOOKING\")) {\n\t\t\t// long datediff = DateUtils.dateDifferenceInDays(itinerary\n\t\t\t// .getBookingHeader().getBookingDate(), itinerary\n\t\t\t// .getBookingHeader().getDepartureDate());\n\t\t\t// if (datediff <= 45) { //CQ#8927 - Condition added for equal to 45\n\n\t\t\t// for Holiday period 60 days and non holdiday persion 45 scenarion\n\t\t\t// both opt date and finalpayment date will be same\n\t\t\t// according to kim\n\t\t\tlong datediff = DateUtils.dateDifferenceInDays(itinerary\n\t\t\t\t\t.getBookingHeader().getOptionDate(), itinerary\n\t\t\t\t\t.getBookingHeader().getFinalDueDate());\n\t\t\tif (datediff == 0) { // CQ#8927 - Condition added for equal to 45\n\t\t\t\titinerary.getBookingHeader().setMinimumAmount(\n\t\t\t\t\t\titinerary.getBookingHeader().getTourPrice()\n\t\t\t\t\t\t\t\t- itinerary.getBookingHeader().getAmountPaid());\n\t\t\t}\n\t\t\t// CQ#8955 - Added for displaying Gross balance Due in Agent\n\t\t} else if (xslFormat.equalsIgnoreCase(\"AGENTFORMATBOOKING\")) {\n\t\t\tlong datediff = DateUtils.dateDifferenceInDays(itinerary\n\t\t\t\t\t.getBookingHeader().getBookingDate(), itinerary\n\t\t\t\t\t.getBookingHeader().getDepartureDate());\n\t\t\t// if (datediff > 45) {\n\t\t\titinerary.getBookingHeader().setGrossBalanceDue(\n\t\t\t\t\titinerary.getBookingHeader().getTourPrice()\n\t\t\t\t\t\t\t- itinerary.getBookingHeader().getAmountPaid());\n\t\t\t// }\n\n\t\t}\n\t}", "public Date getDueDate(String s){\r\n Date today = new Date();\r\n if (dueDate.after(today)){\r\n\r\n System.out.println(s);\r\n }\r\n return dueDate;\r\n }", "public int getDueDatePriority(){\n\t return duedate_priority;\n\t}", "public void setEditDate(Date editDate) {\n this.editDate = editDate;\n }", "public Date getTargetDueDate() {\n\t\treturn targetDueDate;\n\t}", "public void expiredate() {\n\t\tdr.findElement(By.xpath(\"//input[@id='expiryDate']\")).sendKeys(\"05/2028\");\r\n\t\t\r\n\t\t\r\n\t\t}", "private void updateDatedeparture() {\n String myFormat = \"MM/dd/yy\";\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.FRANCE);\n\n departureDate.setText(sdf.format(myCalendar.getTime()));\n }", "public String availableDate(Lab lab) {\r\n String available = this.rentSettings.getDueDate();\r\n return available;\r\n }", "public void setDeadlineDate(Date deadlineDate) {\r\n this.deadlineDate = deadlineDate;\r\n }", "public Date getEditDate() {\n return editDate;\n }", "public void createToDoPageWithNameAndDate(String toDoName, String dueDate) {\n try {\n getLogger().info(\"Run createToDoPageWithNameAndDate(String toDoName, String dueDate)\");\n Thread.sleep(smallTimeOut);\n clickCreateToDoTask();\n Thread.sleep(smallTimeOut);\n\n sendKeyTextBox(createToDoNameTextBoxEle, toDoName, \"To Do Name Input\");\n\n clickElement(eleIdDueDate, \"Due Date Input\");\n DatePicker datePicker = new DatePicker(getDriver(), eleXpathChooseDate);\n datePicker.pickADate(dueDate);\n\n clickElement(toDoSaveIconEle, \"Save New Todo Icon\");\n NXGReports.addStep(\"Created a new To-Do with given name and dueDate.\", LogAs.PASSED, null);\n } catch (Exception e) {\n getLogger().info(e);\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Created a new To-Do with given name and dueDate.\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }", "public void checkOverDue() {\n\t\tif (state == loanState.current && //changed 'StAtE' to 'state' and ' lOaN_sTaTe.CURRENT to loanState.current\r\n\t\t\tCalendar.getInstance().getDate().after(date)) { //changed Calendar.gEtInStAnCe to Calender.getInstance and gEt_DaTe to getDate and DaTe to date\r\n\t\t\tthis.state = loanState.overDue; //changed 'StAtE' to 'state' and lOaN_sTaTe.OVER_DUE to loanState.overDue\t\t\t\r\n\t\t} //added curly brackets\r\n\t}", "@Override\n\tprotected void setDate() {\n\n\t}", "public void setDepartureDate(Date departureDate);", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public String enterFutureDuedateForCE(String object, String data) {\n\t\tlogger.debug(\"Entering Due date\");\n\t\ttry {\n\t\t\tdata = OR.getProperty(\"ce_future_due_date_txt\");\n\t\t\tWebElement ele=wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object))));\n\t ((JavascriptExecutor) driver).executeScript(\"arguments[0].value = arguments[1]\", ele,data);\n\t\t} \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\t\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + \" Unable to write \" + e.getLocalizedMessage();\n\t\t}\n\t\treturn Constants.KEYWORD_PASS + \"--Due Date entered successfully\";\n\t}", "public void setTargetDueDate(Date targetDueDate) {\n\t\tthis.targetDueDate = targetDueDate;\n\t}", "public String enterFutureDate(String object, String data) {\n logger.debug(\"Entering Future's date\");\n try {\n int extend = Integer.parseInt(data);\n\n int flag = 0;\n Calendar calendar = Calendar.getInstance();\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n timeFormat.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n calendar.add(Calendar.DATE, extend);\n String dueDate = timeFormat.format(calendar.getTime());\n WebElement ele= wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object))));\n ((JavascriptExecutor) driver).executeScript(\"arguments[0].value = arguments[1]\", ele,dueDate);\n flag = 1;\n if (flag == 1) {\n return Constants.KEYWORD_PASS + \"--dueDate has been Entered.. \";\n } else {\n return Constants.KEYWORD_FAIL + \"--dueDate has not been Entered.. \";\n }\n } \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception e) {\n \n return Constants.KEYWORD_FAIL + e.getMessage();\n }\n\n }", "public void updateAttendance(Date date);", "private void modifyProjectTask(ActionEvent actionEvent) {\n Calendar dueDate = dueDateModel.getValue();\n String title = titleEntry.getText();\n String description = descriptionEntry.getText();\n Project parent = (Project) parentEntry.getSelectedItem();\n modifyProjectTask(title, description, parent, dueDate);\n }", "public void updateDate(){\n\t duedate_priority++;\n\t}", "@Override\n public int getDate() {\n return this.deadline.getDay();\n }", "public void setPayDue(String payDue){\n this.payDue = payDue;\n }", "public void setFechaModificacion(String p) { this.fechaModificacion = p; }", "public void setFechaModificacion(String p) { this.fechaModificacion = p; }", "@Override\n public String toString() {\n return \"[D]\" + super.toString() + \"(by:\" + dueDate + \")\";\n }", "public static boolean isPastDue(Date date) {\n\t\tthrow new IllegalStateException(\"no database connection\");\r\n\t}", "public void setIssuedDate(Date v) \n {\n \n if (!ObjectUtils.equals(this.issuedDate, v))\n {\n this.issuedDate = v;\n setModified(true);\n }\n \n \n }", "public boolean pastDueDate(Date d){\r\n if(dueDate.after(d)){\r\n return false;\r\n }\r\n return true;\r\n }", "public void setDateFinContrat(Date dateFinContrat) {\r\n this.dateFinContrat = dateFinContrat;\r\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }", "public boolean verifyInputCorrectFormatDate(String dateValue, boolean isNewToDoPage) {\n boolean result = true;\n try {\n // If isNewToDoPage = true :verify in add new to-do page | isNewToDoPage = false, verify in to-do list page\n if (isNewToDoPage) {\n waitForClickableOfElement(eleIdDueDate, \"Due date text box\");\n clickElement(eleIdDueDate, \"Due date text box\");\n sendKeyTextBox(eleIdDueDate, dateValue, \"Due date text box\");\n result = validateAttributeElement(eleIdDueDate, \"value\", \"\");\n } else {\n waitForClickableOfElement(eleToDoNewRowDueDateText.get(0), \"Select due date text box\");\n clickElement(eleToDoNewRowDueDateText.get(0), \"Select due date text box\");\n sendKeyTextBox(eleToDoNewRowDueDateText.get(0), dateValue, \"Select due date text box\");\n result = validateAttributeElement(eleToDoNewRowDueDateText.get(0), \"value\", \"\");\n\n }\n //If result = false : before and after value as not same --> can not input correct data into due date control\n if (!result) {\n NXGReports.addStep(\"TestScript Failed: Input correct date format in due date text box \", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n return false;\n }\n NXGReports.addStep(\"Input correct date format in due date text box \", LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"TestScript Failed: Input correct date format in due date text box \", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n return false;\n }\n return result;\n }", "public void updateDate(Date date);", "public void setDateEnd_CouponsTab_Marketing() {\r\n\t\tthis.dateEnd_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.add(Calendar.DATE, 1);\r\n\t\tString tomorrow = (String) (formattedDate.format(c.getTime()));\r\n\t\tSystem.out.println(\"tomorrows date is \"+tomorrow);\r\n\t\tthis.dateEnd_CouponsTab_Marketing.sendKeys(tomorrow);\r\n\t}", "public void setDealingTime(Date dealingTime)\n/* */ {\n/* 171 */ this.dealingTime = dealingTime;\n/* */ }", "private Constraint scheduleTasksWithDueDates(ConstraintFactory factory) {\n return factory.from(TaskAssignment.class)\n .filter(TaskAssignment::isTaskAssignedWithDueDate)\n .rewardConfigurable(\"Schedule tasks with due dates\");\n }", "public String enterBeforeDueDate(String object, String data) {\n\t\tlogger.debug(\"Entering Due date....\");\n\n\t\ttry {\n\t\t\tdata = OR.getProperty(\"ce_fall_due_date_txt\");\n\n\t\t\tWebElement ele=wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object))));\n\t ((JavascriptExecutor) driver).executeScript(\"arguments[0].value = arguments[1]\", ele,data);\n\t\t\treturn Constants.KEYWORD_PASS + \"--Due Date entered successfully\";\n\t\t} \n\t\t\ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + \" Unable to write \" + e.getLocalizedMessage();\n\t\t}\n\t\t\n\n\t}", "public String getDate()\n {\n SimpleDateFormat newDateFormat = new SimpleDateFormat(\"EE d MMM yyyy\");\n String MySDate = newDateFormat.format(this.dueDate);\n return MySDate;\n }", "@Override\n public void tuitionDue()\n {\n // Studies Abroad\n if(isStudyAbroad == true) {\n this.setTuitionDue( Student.UNIVERSITY_FEE + Student.ADDITIONAL_FEE);\n }\n // Full-Time and Credits > 16 and Not Study Abroad\n else if(this.getStatus() == FULL_TIME && this.getCreditHours() > CREDIT_HOURS_MAX && isStudyAbroad == false) {\n this.setTuitionDue(Student.NON_RES_FULL_TIME_TUITION + Student.UNIVERSITY_FEE + Student.ADDITIONAL_FEE +\n Student.NON_RES_PART_TIME_TUITION_RATE * (this.getCreditHours() - CREDIT_HOURS_MAX));\n }\n // Full-Time and Credits Between 12 and 16\n else if(this.getStatus() == FULL_TIME)\n {\n this.setTuitionDue(Student.NON_RES_FULL_TIME_TUITION + Student.UNIVERSITY_FEE + Student.ADDITIONAL_FEE);\n }\n\n double newTuition = (getTuitionDue() - getTotalPayment()) > 0 ? getTuitionDue()-getTotalPayment() : 0;\n this.setTuitionDue(newTuition);\n }", "public boolean checkDefaultDueDateValue() {\n waitForVisibleElement(eleDueDateValue, \"Engagement Due date\");\n waitForVisibleElement(eleIdDueDate, \"Default Due date\");\n String engagementDueDate = eleDueDateValue.getText().substring(5, eleDueDateValue.getText().length());\n String defaultDueDate = eleIdDueDate.getText();\n getLogger().info(engagementDueDate);\n getLogger().info(defaultDueDate);\n return engagementDueDate.equals(defaultDueDate);\n }", "private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n datetxt2.setText(sdf.format(date));\n }", "public void setRenewalEffectiveDate(java.util.Date value);", "public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }", "public void setClosedDate(Date v) \n {\n \n if (!ObjectUtils.equals(this.closedDate, v))\n {\n this.closedDate = v;\n setModified(true);\n }\n \n \n }", "public String addDeadline(String name, String due) {\n USER_TASKS.add(new Deadline(name, due));\n return \" \" + USER_TASKS.get(USER_TASKS.size() - 1).toString();\n }", "public void setEffectiveDate(java.util.Date value);", "public void setRealEstablish(Date realEstablish) {\r\n this.realEstablish = realEstablish;\r\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(expireDateEditText);\n\n // TODO: is ther better way to get date?\n GregorianCalendar gc = new GregorianCalendar(TimeZone.getDefault());\n gc.clear();\n gc.set(year, monthOfYear, dayOfMonth, 23, 59, 0);\n Log.d(\"set expire date: \", \"mItem: \" + mItem);\n if (mItem != null) {\n mItem.setExpirationDate(gc.getTimeInMillis());\n SimpleDateFormat sdf = new SimpleDateFormat();\n sdf.setTimeZone(TimeZone.getDefault());\n Log.d(\"get purchase date: \", sdf.format(new Date(mItem.getPurchaseDate())));\n Log.d(\"get expiration date: \", sdf.format(new Date(mItem.getExpirationDate())));\n\n }\n }", "public boolean checkPastDate(boolean said)\n {\n try\n {\n if( date==null ){\n if(this.getDateString()!=null) date = DateHelper.stringToDate(this.getDateString());\n if(super.isMandatory() && date==null)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n } }\n\n }\n catch (Exception e)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n if(date==null)\n {\n if(said)\n {\n super.setMessage(\"Date is no correct\");\n }\n return false;\n }\n if(!date.before(currentDate))\n {\n if(said)\n {\n super.setMessage(\"Date is no correct\");\n }\n return false;\n\n }\n else\n {\n return true;\n }\n }", "public AgendaItem(String task, Calendar dueDate) {\n this.task = task;\n this.dueDate = dueDate;\n }", "Date getModifyDate();", "@Override\n public void updateDate(int year, int month, int day) {\n calendar = new GregorianCalendar();\n calendar.set(year, month, day);\n // set the textview\n SimpleDateFormat sdf = new SimpleDateFormat(\"MMMM dd, yyyy\");\n sdf.setCalendar(calendar);\n expiration.setText(sdf.format(calendar.getTime()));\n }" ]
[ "0.79154", "0.79005384", "0.77116114", "0.7680244", "0.7616526", "0.7490894", "0.7275839", "0.72191966", "0.7207624", "0.7207624", "0.71874624", "0.714088", "0.714088", "0.70923585", "0.7086094", "0.70745176", "0.7066882", "0.7031619", "0.69972986", "0.6993659", "0.69794494", "0.69676614", "0.6954883", "0.6900351", "0.68470293", "0.67728645", "0.6717298", "0.66780335", "0.6641292", "0.6622402", "0.6604098", "0.6585935", "0.6549166", "0.6518967", "0.6508772", "0.64843076", "0.63995594", "0.63934386", "0.6389393", "0.6370633", "0.6314084", "0.6264309", "0.62628996", "0.6259791", "0.6199135", "0.61585546", "0.61551046", "0.61425436", "0.6123657", "0.6112943", "0.6102645", "0.6087698", "0.6067286", "0.60641956", "0.6028889", "0.6028119", "0.60164154", "0.60107744", "0.60003567", "0.59968495", "0.59968495", "0.59968495", "0.59968495", "0.59880114", "0.598198", "0.59738964", "0.5971391", "0.5968069", "0.59649426", "0.59441805", "0.594259", "0.5939999", "0.5939999", "0.5933527", "0.5925877", "0.5919845", "0.59157914", "0.5915757", "0.5904983", "0.5904461", "0.5896864", "0.5888882", "0.58714855", "0.58661014", "0.5847579", "0.58424556", "0.58420295", "0.5837484", "0.58352226", "0.583443", "0.58330786", "0.58249044", "0.5822933", "0.5817325", "0.5816659", "0.5813998", "0.58127224", "0.58107615", "0.5804289", "0.5801285" ]
0.7807116
2
we should be able to set it to be done
public void setDone(boolean done) { this.done = done; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void aktualisieren() {\r\n\r\n\t}", "private void assignment() {\n\n\t\t\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic boolean postIt() {\n\t\treturn false;\n\t}", "protected void performDefaults() {\r\n\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void done() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void postRun() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic boolean paie() {\n\t\treturn false;\n\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected void runBeforeIteration() {}", "@Override\n\t\tpublic void done() {\n\n\t\t}", "@Override\n public void onSetSuccess() {\n }", "@Override\n public void onSetSuccess() {\n }", "public void setDone() {\n isDone = true;\n }", "public void smell() {\n\t\t\n\t}", "public void prePerform() {\n // nothing to do by default\n }", "@Override\n\tpublic void doIt() {\n\t\t\n\t}", "@Override\n public void done() {\n }", "@Override\n public void done() {\n }", "@Override\n\tpublic void postRun() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private stendhal() {\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void conferenceroom() {\n\t\t\n\t}", "@Override\n public void preRun() {\n super.preRun();\n }", "public void working()\n {\n \n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic boolean paie() {\n\n\t\treturn true;\n\t}", "@Override\n public Object preProcess() {\n return null;\n }", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "@Override\n public void bankrupt() {\n this.mortgaged = false;\n }", "public void baocun() {\n\t\t\n\t}", "void berechneFlaeche() {\n\t}", "@Override\r\n\tprotected void execute() {\r\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void worked(int work) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}", "@Override\r\n\tprotected void doF3() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "@Override\r\n\tprotected void doFirst() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "private void getStatus() {\n\t\t\n\t}", "protected void beforeJobExecution() {\n\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void atirou() {\n\n\t\t\tatirou=true;\n\t\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void doBeforeJob() {\n\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void postInit() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "protected void run() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void initial() {\n\t\t\n\t}", "public void done() {\n \t\t\t\t\t\t}", "protected void afterPropertiesSetInternal() {\n\t\t// override this method\n\t}", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "protected void setToDefault(){\n\n\t}", "@Override\n\t\tpublic boolean shouldContinueExecuting() {\n\t\t\treturn false;\n\t\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void setDirty() {\n\t}", "public void SetDone(){\n this.isDone = true;\n }", "@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic String run() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t}" ]
[ "0.6502018", "0.64725536", "0.64150697", "0.6318544", "0.6263173", "0.6252284", "0.6224381", "0.6224381", "0.6214119", "0.6214119", "0.6214119", "0.6214119", "0.6214119", "0.62108475", "0.6192866", "0.6139648", "0.612402", "0.61033875", "0.6100926", "0.61009157", "0.6072603", "0.6026516", "0.6013681", "0.6007512", "0.60016626", "0.5988544", "0.5985958", "0.5971661", "0.5967322", "0.5967322", "0.5959456", "0.5937524", "0.59283733", "0.5923388", "0.59053785", "0.59053785", "0.59001887", "0.58989596", "0.58986324", "0.58966047", "0.58966047", "0.58764064", "0.5875202", "0.5870526", "0.5864767", "0.58592296", "0.58534855", "0.5851779", "0.58382785", "0.5835331", "0.5821704", "0.5817389", "0.5807489", "0.5803452", "0.57993937", "0.5792602", "0.5791482", "0.57857525", "0.57850474", "0.57705206", "0.57703817", "0.5767697", "0.5757089", "0.5752913", "0.57490695", "0.5746024", "0.5746024", "0.5738496", "0.5738461", "0.573816", "0.5727012", "0.5724222", "0.5724222", "0.5720825", "0.57195", "0.5716217", "0.5712129", "0.5704957", "0.5704225", "0.5703599", "0.5702066", "0.57018197", "0.56966543", "0.56876105", "0.5687084", "0.5684039", "0.5680877", "0.5680877", "0.5680877", "0.5680877", "0.5678373", "0.56758577", "0.5673755", "0.5673755", "0.5671273", "0.5671235", "0.5669977", "0.5667659", "0.5656984", "0.5655778", "0.56532496" ]
0.0
-1
TODO Autogenerated method stub
public String save(String userInfo, String saveJson){ DubboServiceResultInfo info=new DubboServiceResultInfo(); try { StandardRole standardRole=JacksonUtils.fromJson(saveJson, StandardRole.class); StandardRole fa = standardRoleService.getObjectById(standardRole.getCatalogId()); standardRole.setPrefixId(fa.getPrefixId()+"/"+standardRole.getId()); standardRole.setPrefixName(fa.getPrefixName()+"/"+standardRole.getName()); saveJson = JacksonUtils.toJson(standardRole); saveJson=saveJson.replaceAll("\\\\", "\\\\\\\\"); saveJson=saveJson.replaceAll("\\'", "\\\\\\\\\'"); standardRole=JacksonUtils.fromJson(saveJson, StandardRole.class); standardRoleService.save(standardRole); info.setResult(JacksonUtils.toJson(standardRole)); info.setSucess(true); info.setMsg("保存对象成功!"); } catch (Exception e) { log.error("保存对象失败!"+e.getMessage()); info.setSucess(false); info.setMsg("保存对象失败!"); info.setExceptionMsg(e.getMessage()); } return JacksonUtils.toJson(info); }
{ "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
TODO Autogenerated method stub
@Override public String saveBatch(String userInfo, String saveJsonList) { return null; }
{ "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
TODO Autogenerated method stub
@Override public String updateBatch(String userInfo, String updateJsonList) { return null; }
{ "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
TODO Autogenerated method stub
@Override public String update(String userInfo, String updateJson) { DubboServiceResultInfo info=new DubboServiceResultInfo(); try { StandardRole standardRole=JacksonUtils.fromJson(updateJson, StandardRole.class); StandardRole standardRoleOld=standardRoleService.getObjectById(standardRole.getId()); Map<String,Object> map = new HashMap<String,Object>(); map.put("delflag", "0"); //如果状态没有改变不更改下级 if(!standardRole.getStatus().equals(standardRoleOld.getStatus())){ //启用角色,并启用其上级目录 if(standardRole.getStatus().equals("1")){//启用角色,并启用其上级目录 String prefixId=standardRoleOld.getPrefixId(); String orgIds[]=prefixId.split("/"); map.put("roleIds", orgIds); roleCatalogService.unLockRole(map); } } //如果名称或者上级目录进行更改了,同时要更改全路径 if(standardRoleOld.getCatalogId().equals(standardRole.getCatalogId()) || standardRoleOld.getName().equals(standardRole.getName())){ RoleCatalog parentRoleCatalog = roleCatalogService.getObjectById(standardRole.getCatalogId()); standardRole.setPrefixId(parentRoleCatalog.getPrefixId()+"/"+standardRole.getId()); standardRole.setPrefixName(parentRoleCatalog.getPrefixName()+"/"+standardRole.getName()); standardRole.setPrefixSort(parentRoleCatalog.getPrefixSort()+"-"+String.format("B%05d", standardRole.getSort())); } //检查是否重名 Map mapcon = new HashMap<>(); mapcon.put("pId", standardRole.getCatalogId()); mapcon.put("name", standardRole.getName()); mapcon.put("type", "role"); mapcon.put("id", standardRole.getId()); Integer c=roleCatalogService.checkName(mapcon); if(c>0){ throw new InvalidCustomException("名称已存在,不可重复"); } int result= standardRoleService.update(standardRole); info.setResult(JacksonUtils.toJson(result)); info.setSucess(true); info.setMsg("更新对象成功!"); } catch (Exception e) { log.error("更新对象失败!"+e.getMessage()); info.setSucess(false); info.setMsg("更新对象失败!"); info.setExceptionMsg(e.getMessage()); } return JacksonUtils.toJson(info); }
{ "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
TODO Autogenerated method stub
@Override public String deleteAllObjectByIds(String userInfo, String deleteJsonList) { DubboServiceResultInfo info=new DubboServiceResultInfo(); try { if (StringUtils.isNotBlank(deleteJsonList)) { Map map=JacksonUtils.fromJson(deleteJsonList, HashMap.class); List<String> list=Arrays.asList(map.get("id").toString().split(",")); int result= standardRoleService.deleteAllObjectByIds(list); info.setResult(JacksonUtils.toJson(result)); info.setSucess(true); info.setMsg("删除对象成功!"); } } catch (Exception e) { log.error("删除对象失败!"+e.getMessage()); info.setSucess(false); info.setMsg("删除更新对象失败!"); info.setExceptionMsg(e.getMessage()); } return JacksonUtils.toJson(info); }
{ "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
TODO Autogenerated method stub
@Override public String getObjectById(String userInfo, String getJson) { DubboServiceResultInfo info=new DubboServiceResultInfo(); try { StandardRole standardRole=JacksonUtils.fromJson(getJson, StandardRole.class); StandardRole result = standardRoleService.getObjectById(standardRole.getId()); info.setResult(JacksonUtils.toJson(result)); info.setSucess(true); info.setMsg("获取对象成功!"); } catch (Exception e) { // TODO Auto-generated catch block log.error("获取对象失败!"+e.getMessage()); info.setSucess(false); info.setMsg("获取对象失败!"); info.setExceptionMsg(e.getMessage()); } return JacksonUtils.toJson(info); }
{ "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
TODO Autogenerated method stub
@Override public String getPage(String userInfo, String paramater) { DubboServiceResultInfo info=new DubboServiceResultInfo(); try { if(StringUtils.isNotBlank(paramater)){ Map map=JacksonUtils.fromJson(paramater, HashMap.class); Page page=standardRoleService.getPage(map, (Integer)map.get("start"), (Integer)map.get("limit")); info.setResult(JacksonUtils.toJson(page)); info.setSucess(true); info.setMsg("获取分页对象成功!"); }else{ Page page=standardRoleService.getPage(new HashMap(), null, null); info.setResult(JacksonUtils.toJson(page)); info.setSucess(true); info.setMsg("获取分页对象成功!"); } } catch (Exception e) { // TODO Auto-generated catch block log.error("获取分页对象失败!"+e.getMessage()); info.setSucess(false); info.setMsg("获取分页对象失败!"); info.setExceptionMsg(e.getMessage()); } return JacksonUtils.toJson(info); }
{ "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
TODO Autogenerated method stub
@Override public String queryList(String userInfo, String paramater){ DubboServiceResultInfo info=new DubboServiceResultInfo(); try { if(StringUtils.isNotBlank(paramater)){ Map map=JacksonUtils.fromJson(paramater, HashMap.class); List list=standardRoleService.queryList(map); info.setResult(JacksonUtils.toJson(list)); info.setSucess(true); info.setMsg("获取列表对象成功!"); }else{ List list=standardRoleService.queryList(null); info.setResult(JacksonUtils.toJson(list)); info.setSucess(true); info.setMsg("获取列表对象成功!"); } } catch (Exception e) { // TODO Auto-generated catch block log.error("获取列表对象失败!"+e.getMessage()); info.setSucess(false); info.setMsg("获取列表对象失败!"); info.setExceptionMsg(e.getMessage()); } return JacksonUtils.toJson(info); }
{ "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
TODO Autogenerated method stub
@Override public String getCount(String userInfo, String paramater) { return null; }
{ "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
TODO Autogenerated method stub
@Override public String queryRoleListByOrgId(String userInfo, String paramater){ DubboServiceResultInfo info=new DubboServiceResultInfo(); try { if(StringUtils.isNotBlank(paramater)){ Map map = JacksonUtils.fromJson(paramater, HashMap.class); List<RoleNodeDto> list=standardRoleService.queryRoleListByOrgId(map); info.setResult(JacksonUtils.toJson(list)); info.setSucess(true); info.setMsg("获取列表对象成功!"); }else{ List list=standardRoleService.queryRoleListByOrgId(null); info.setResult(JacksonUtils.toJson(list)); info.setSucess(true); info.setMsg("获取列表对象成功!"); } } catch (Exception e) { // TODO Auto-generated catch block log.error("获取列表对象失败!"+e.getMessage()); info.setSucess(false); info.setMsg("获取列表对象失败!"); info.setExceptionMsg(e.getMessage()); } return JacksonUtils.toJson(info); }
{ "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
TODO Autogenerated method stub
@Override public String deletePseudoObjectById(String userInfo, String deleteJson) { DubboServiceResultInfo info=new DubboServiceResultInfo(); try { StandardRole standardRole=JacksonUtils.fromJson(deleteJson, StandardRole.class); //查询角色下有没有岗位,如果有不让删除 Map<String,Object> map = new HashMap<String,Object>(); map.put("roleId", standardRole.getId()); map.put("delflag", "0"); List<Post> listPost = postService.queryList(map); //查询虚拟角色下有没有用户,如果有不让删除 Map<String,Object> mapRoleUser = new HashMap<String,Object>(); mapRoleUser.put("roleId", standardRole.getId()); mapRoleUser.put("delflag", "0"); List<RoleUser> listRoleUser = roleUserService.queryList(mapRoleUser); if(null!=listPost && listPost.size()>0){ info.setResult("标准岗位被引用,不能进行删除"); info.setSucess(false); info.setMsg("标准岗位被引用,不能进行删除"); }else if(null!=listRoleUser && listRoleUser.size()>0){ info.setResult("角色被引用,不能进行删除"); info.setSucess(false); info.setMsg("角色被引用,不能进行删除"); }else{ int result= standardRoleService.deletePseudoObjectById(standardRole.getId()); info.setResult(JacksonUtils.toJson(result)); info.setSucess(true); info.setMsg("删除对象成功!"); } } catch (Exception e) { log.error("更新对象失败!"+e.getMessage()); info.setSucess(false); info.setMsg("删除更新对象失败!"); info.setExceptionMsg(e.getMessage()); } return JacksonUtils.toJson(info); }
{ "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
TODO Autogenerated method stub
@Override public String deletePseudoAllObjectByIds(String userInfo, String deleteJsonList) { DubboServiceResultInfo info=new DubboServiceResultInfo(); try { if (StringUtils.isNotBlank(deleteJsonList)) { Map map=JacksonUtils.fromJson(deleteJsonList, HashMap.class); List<String> list=Arrays.asList(map.get("id").toString().split(",")); int result= standardRoleService.deletePseudoAllObjectByIds(list); info.setResult(JacksonUtils.toJson(result)); info.setSucess(true); info.setMsg("删除对象成功!"); } } catch (Exception e) { log.error("删除对象失败!"+e.getMessage()); info.setSucess(false); info.setMsg("删除更新对象失败!"); info.setExceptionMsg(e.getMessage()); } return JacksonUtils.toJson(info); }
{ "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
Very simple method, simply exits the program. Runs when the exit button is pressed.
public void exitTheProgram(){ System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void exit();", "public void exit() {\n\t\tSystem.exit(0);\n\t}", "public void exit() {\n\t\tSystem.exit(0);\n\t}", "public void quit() {System.exit(0);}", "public void quit() {\n\t\tSystem.exit(0);\n\t}", "void exit();", "protected void exit() {\n\t\tSystem.exit(0);\n\t}", "private static void exit(){\n\t\t\n\t\tMain.run=false;\n\t\t\n\t}", "static void exit()\r\n\t {\n\t\t System.exit(0);\r\n\t }", "public void exit() {\r\n \t\t// Send a closing signat to main window.\r\n \t\tmainWindow.dispatchEvent(new WindowEvent(mainWindow, WindowEvent.WINDOW_CLOSING));\r\n \t}", "public static void exitProgram() {\n\r\n System.out.println(\"Thank you for using 'Covid 19 Vaccination Center Program'. \\n Stay safe!\");\r\n System.exit(0);\r\n }", "public static void ender()\n{\n\tSystem.exit(0); \n}", "public void quit(){\n\t\tSystem.out.println(\"Quitting game\");\n\t\tSystem.exit(0);\n\t}", "public void exit()\r\n\t{\r\n\t\tmainFrame.exit();\r\n\t}", "public void a_exit() {\r\n\t\tSystem.exit(0);\r\n\t}", "static void quit()\n {\n clrscr();\n System.out.println(\"You don't suck in life human. Life sucks you in.\");\n System.exit(0);\n }", "private void btnExitActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "public void quit(){\n this.println(\"Bad news!!! The library has been cancelled!\");\n System.exit(0);\n\n }", "public abstract void exit();", "private void exitApplication()\r\n {\r\n System.exit(0);\r\n }", "private void exitGame() {\n System.exit(0);\n }", "public void quitGame() {\n\t\t\tdisplay(\"Goodbye!\");\n\t\t\tSystem.exit(0);\n\t\t}", "@Override\r\n\tpublic void exit() {\n\t\t\r\n\t}", "public void quitProgram(){}", "public void quit();", "@Override\n\tpublic void exit() {\n\t\t\n\t}", "@Override\n\tpublic void exit() {\n\t\t\n\t}", "public void exit() {\n System.out.println(\"Thank you for playing Nim\");\n }", "private static void exit()\n {\n System.out.println(\"Graceful exit\");\n System.exit(0);\n }", "abstract public void exit();", "void quit();", "void quit();", "public static void End()\n\t{\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(\"End of java application\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void exit() {\n dvm.exit();\n stop = true;\n }", "@Override\n\tpublic void exit() {\n\n\t}", "private void runExit() {\n new Thread(new Runnable() {\n public void run() {\n System.exit(0);\n }\n }).start();\n }", "public void exitGame() {\n System.out.println(\"Thank you and good bye!\");\n System.exit(0);\n }", "@Override\n\tpublic void exit() {\n\t\t//do nothing\n\t}", "public void exitButtonClicked() {\r\n\t\tSystem.exit(0); \r\n\t\treturn;\r\n\t}", "@Override\n\tpublic int exit() {\n\t\treturn 0;\n\t}", "public void exit() {\r\n\t\tdispose();\r\n\t}", "private void exitButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitButtonActionPerformed\n System.exit(0);\n }", "@Override\n public void exit() {\n super.exit();\n }", "private void btn_ExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_ExitActionPerformed\n System.exit(0);\n }", "private void quit() {\n\r\n\t}", "public void showExit();", "@Override\n\tpublic void exit() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void clickedQuitButton(Button button) {\r\n System.exit(0);\r\n }", "void exit() throws Exception;", "public void Quit();", "public void exitApp() {\n\t\tSystem.out.println(\"Exiting PhoneBook\");\n\n\t}", "@FXML\n public void ExitProgram(ActionEvent e) {\n Runtime.getRuntime().exit(0);\n }", "public void exitProgram() {\n System.out.println(\"Closing Ranking....\");\n ScannerInputs.closeScanner();\n System.exit(0);\n }", "private void quit()\n\t{\n\t\tapplicationView.showChatbotMessage(quitMessage);\n\t\tSystem.exit(0);\n\t\t\n\t}", "private void processQuit() {\n System.exit(0);\n }", "@Override\r\n\tpublic void exit() {\n\r\n\t}", "public void exitProgram() {\n\t\tgoOffline();\n\t\tmainWindow.dispose();\n\t\tif (config_ok)\n\t\t\tsaveConnectionConfiguration();\n\t\tSystem.exit(0);\n\t\t\n\t}", "protected void quit() {\n if (display != null) {\n display.close();\n }\n System.exit(0);\n }", "static void goodbye() {\n printGoodbyeMessage();\n System.exit(0);\n }", "private void jmiExitActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\r\n }", "public void close() {\n System.exit(0);\n }", "@Override\n\tpublic void actionPerformed( ActionEvent e ) {\n\t\t// Quit the program\n\t\tSystem.exit( 0 );\n\t}", "public static int quit() {\r\n int quit = JOptionPane.showConfirmDialog(null, \"Exit Program? \", null, JOptionPane.YES_NO_OPTION);\r\n if (quit != 0) {//Confirms Program Termination\r\n //do nothing \r\n } else\r\n System.exit(quit);\r\n return quit;\r\n }", "private void exitApplication() {\n\t\tBPCC_Logger.logInfoMessage(classNameForLogger, logMessage_applicationFrameClosed);\r\n\t\tSystem.exit(0);\r\n\t}", "private void sairButtonActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\r\n }", "private void exitAction() {\n\t}", "private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "public void Exit(){\n\t\t\t\tclose();\n\t\t\t}", "private void exitButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_exitButtonActionPerformed\n\tSystem.exit(0);\n }", "public void quit(String dummy) {\n System.exit(1);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n System.exit(1);\n }", "public static void main(String[] args) throws InterruptedException {\n while (Button.waitForAnyPress() == Button.ID_ESCAPE)\n System.exit(0);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }", "public void exit() {\n Intent intent = new Intent(this, MainActivity.class);\n this.startActivity(intent);\n }", "private void exit() {\n\n // Farewell message\n pOutput.println(\"Good Bye!\");\n pOutput.close();\n\n try {\n pClient.close();\n\n } catch (final IOException ex) {\n pShellService.error(\"Shell::exit()\", ex);\n }\n\n // Clean up\n pShellService = null;\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}", "public void exit () {\r\n System.out.println(\"Desligando aplicação...\");\r\n this.stub.killStub();\r\n }", "private void jb_CloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_CloseActionPerformed\n System.exit(0);\n }", "private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void _test_exit() throws Exception {\n System.exit(0);\n }", "public void _test_exit() throws Exception {\n System.exit(0);\n }", "public void _test_exit() throws Exception {\n System.exit(0);\n }", "public void _test_exit() throws Exception {\r\n System.exit(0);\r\n }", "private void quitButtonActionPerformed(ActionEvent evt) {\r\n\t\tlogger.info(\"Quit button Clicked.\");\r\n\t\tSystem.exit(0);\r\n\t}", "public void quit (ActionEvent aAe)\n\t{\n\t\t\tSystem.exit (0);\n\n\t}", "private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }", "@Override\n\tpublic void Quit() {\n\t\t\n\t}", "private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "public void exit() throws DynamicCallException, ExecutionException{\n call(\"exit\").get();\n }", "private void jb_closeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_closeActionPerformed\n System.exit(0);\n }", "public void onExit();", "private static void exit(int i) {\n\t\t\n\t}", "void onExit();", "private void btnKeluarActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\tpublic void quit() {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}", "public static void exitAll() {\r\n\t\tSystem.exit(0);\r\n\t}" ]
[ "0.85064405", "0.84453213", "0.84453213", "0.8332031", "0.8296706", "0.82952744", "0.8170252", "0.8043229", "0.8016193", "0.8006182", "0.798944", "0.79890114", "0.7940127", "0.7905476", "0.78863776", "0.7883183", "0.7865592", "0.7857592", "0.7837002", "0.7824637", "0.7809517", "0.7798216", "0.77894866", "0.7789113", "0.77885115", "0.77857566", "0.77857566", "0.7746027", "0.774578", "0.7742662", "0.77227217", "0.77227217", "0.7714521", "0.77100354", "0.7701067", "0.7699534", "0.7697268", "0.7678594", "0.76615864", "0.76575553", "0.7650121", "0.7633719", "0.7631706", "0.7613961", "0.7611585", "0.76082397", "0.76060146", "0.7603531", "0.76013184", "0.7596366", "0.7588646", "0.7573534", "0.75391495", "0.7538878", "0.75357145", "0.7527038", "0.75072044", "0.74615043", "0.744587", "0.744189", "0.74397784", "0.743763", "0.74314237", "0.7396722", "0.7391294", "0.7360668", "0.7353264", "0.73462653", "0.73303765", "0.73288757", "0.7326756", "0.7316552", "0.73147947", "0.73059404", "0.7295513", "0.7295119", "0.72936046", "0.7291498", "0.7274419", "0.7273176", "0.72444516", "0.72444516", "0.72444516", "0.7240126", "0.72320515", "0.722352", "0.72233677", "0.72210366", "0.7218846", "0.72177273", "0.72132015", "0.72111493", "0.7194934", "0.7192543", "0.71820265", "0.7176758", "0.71725726", "0.7163469", "0.7162454", "0.7159636" ]
0.8567404
0
The initialize method here sets the CellValueFactories, and gets all relevant data from DataArray (See those methods in that class for more information) And sets all that data into the TableViews.
@Override public void initialize(URL url, ResourceBundle resourceBundle) { idColPart.setCellValueFactory(new PropertyValueFactory<>("id")); nameColPart.setCellValueFactory(new PropertyValueFactory<>("name")); invColPart.setCellValueFactory(new PropertyValueFactory<>("stock")); priceColPart.setCellValueFactory(new PropertyValueFactory<>("price")); idColProduct.setCellValueFactory(new PropertyValueFactory<>("id")); nameColProduct.setCellValueFactory(new PropertyValueFactory<>("name")); invColProduct.setCellValueFactory(new PropertyValueFactory<>("stock")); priceColProduct.setCellValueFactory(new PropertyValueFactory<>("price")); partTableView.setItems(Inventory.getAllParts()); productTableView.setItems(Inventory.getAllProducts()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializeTable()\n {\n mTable = new ListView(mData);\n mTable.setPrefSize(200, 250);\n mTable.setEditable(false);\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n id.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n title.setCellValueFactory(new PropertyValueFactory<>(\"title\"));\n nbPerson.setCellValueFactory(new PropertyValueFactory<>(\"nbPerson\"));\n nbTable.setCellValueFactory(new PropertyValueFactory<>(\"nbTable\"));\n band.setCellValueFactory(new PropertyValueFactory<>(\"band\"));\n status.setCellValueFactory(new PropertyValueFactory<>(\"status\"));\n startDate.setCellValueFactory(new PropertyValueFactory<>(\"startDate\"));\n tableEvent.setItems(getEvent()); \n \n \n\n }", "private void initTablesViews()\n {\n // Tokens\n tc_token_id.setCellValueFactory(new PropertyValueFactory<>(\"token\"));\n tc_tipo_token_id.setCellValueFactory(new PropertyValueFactory<>(\"tipoToken\"));\n tc_linea_token_id.setCellValueFactory(new PropertyValueFactory<>(\"linea\"));\n tv_tokens_encontrados_id.setItems(info_tabla_tokens);\n\n // Errores\n tc_error_id.setCellValueFactory(new PropertyValueFactory<>(\"error\"));\n tc_tipo_error_id.setCellValueFactory(new PropertyValueFactory<>(\"tipoError\"));\n tc_linea_error_id.setCellValueFactory(new PropertyValueFactory<>(\"linea_error\"));\n tv_errores_lexicos_id.setItems(info_tabla_errores);\n }", "@FXML\n\tprivate void initialize() {\n\t\tcode_column.setCellValueFactory(\n \t\tcellData -> cellData.getValue().Index());\n\t\tname_column.setCellValueFactory(\n \t\tcellData -> cellData.getValue().Name());\n\t\tdate_column.setCellValueFactory(\n \t\tcellData -> cellData.getValue().Date());\n\t\texpert_column.setCellValueFactory(\n \t\tcellData -> cellData.getValue().Type());\n\t\tcode_column.setStyle(\"-fx-alignment: CENTER;\");\n\t\tname_column.setStyle(\"-fx-alignment: CENTER;\");\n\t\tdate_column.setStyle(\"-fx-alignment: CENTER;\");\n\t\texpert_column.setStyle(\"-fx-alignment: CENTER;\");\n\t\tloadData();\n\t}", "@Override\n public void initialize(URL location, ResourceBundle resources){\n setCellTable();\n data=FXCollections.observableArrayList();\n loadData();\n }", "public Table() {\n // <editor-fold desc=\"Initialize Cells\" defaultstate=\"collapsed\">\n for (int row = 0; row < 3; row++) {\n for (int column = 0; column < 3; column++) {\n if (cells[row][column] == null) {\n cells[row][column] = new Cell(row, column);\n }\n }\n }\n // </editor-fold>\n }", "private void initTableView() {\n // nastaveni sloupcu pro zobrazeni spravne hodnoty a korektniho datoveho typu\n this.colId.setCellValueFactory(cellData -> cellData.getValue().getPersonalIdProperty());\n this.colName.setCellValueFactory(cellData -> cellData.getValue().getDisplayNameProperty());\n this.colAge.setCellValueFactory(cellData -> cellData.getValue().getAgeProperty().asObject());\n this.colGender.setCellValueFactory(cellData -> cellData.getValue().getGenderProperty());\n this.colPrice.setCellValueFactory(cellData -> cellData.getValue().getPriceProperty().asObject());\n\n // nastaveni listu prvku tabulce\n this.offerTable.setItems(this.marketplace.getOfferList());\n\n // listener pro zjisteni, ktery prvek tabulky uzivatel oznacil a naplneni aktualni reference na vybrane dite\n this.offerTable.getSelectionModel().getSelectedCells().addListener(new ListChangeListener<TablePosition>() {\n\n @Override\n public void onChanged(Change<? extends TablePosition> change) {\n ObservableList selectedCells = offerTable.getSelectionModel().getSelectedCells();\n TablePosition tablePosition = (TablePosition) selectedCells.get(0);\n currentChild = marketplace.getOfferList().get(tablePosition.getRow());\n System.out.println(currentChild);\n updateUi();\n }\n });\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n //Sets initial TableView Data\n ObservableList<customer> custData = Query.getAllCustomer();\n \n\n custId_col.setCellValueFactory(new PropertyValueFactory<>(\"customerId\"));\n custName_col.setCellValueFactory(new PropertyValueFactory<>(\"customerName\"));\n custPhone_col.setCellValueFactory(new PropertyValueFactory<>(\"customerPhone\"));\n custAddId_col.setCellValueFactory(new PropertyValueFactory<>(\"addressId\"));\n custAddress_col.setCellValueFactory(new PropertyValueFactory<>(\"address\"));\n custCity_col.setCellValueFactory(new PropertyValueFactory<>(\"city\"));\n custCountry_col.setCellValueFactory(new PropertyValueFactory<>(\"country\"));\n custZip_col.setCellValueFactory(new PropertyValueFactory<>(\"postalCode\"));\n \n customerTableView.setItems(custData);\n \n }", "@Override\n\tpublic void init() {\n\t\ttable = new JTable(dm);\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\n\t\tadd(scrollPane);\n\t}", "@Override\r\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\r\n\t\t columnMaPhieuThue.setCellValueFactory(new PropertyValueFactory<>(\"MaPhieuThue\"));\r\n\t\t columnNgayThue.setCellValueFactory(new PropertyValueFactory<>(\"NgayThue\")); \r\n\t\t columnNgayHenTra.setCellValueFactory(new PropertyValueFactory<>(\"NgayHenTra\"));\t \r\n\t\t columnMaKhachThue.setCellValueFactory(new PropertyValueFactory<>(\"KhachHangThue\"));\r\n\t\t columnMaNhanVien.setCellValueFactory(new PropertyValueFactory<>(\"NhanVienTiepNhan\"));\r\n\t\t columnTienDatCoc.setCellValueFactory(new PropertyValueFactory<>(\"HoaDonDatCoc\"));\r\n\t\t columnTinhTrang.setCellValueFactory(new PropertyValueFactory<>(\"TrangThai\"));\r\n\t\t try {\r\n\t\t\t\ttbViewPhieuChoThue.setItems(data());\r\n\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (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 \t\r\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n TableColumn classId = new TableColumn(\"Class ID\");\n TableColumn classname = new TableColumn(\"Ten lop\");\n TableColumn numofPeople = new TableColumn(\"So nguoi\");\n TableColumn MaximumPeople = new TableColumn(\"So nguoi quy dinh\");\n TableColumn courseID = new TableColumn(\"Course ID\");\n TableColumn basic_grade = new TableColumn(\"Diem dau vao\");\n \n classId.setCellValueFactory(new PropertyValueFactory<Class,String>(\"classId\"));\n classname.setCellValueFactory(new PropertyValueFactory<>(\"className\"));\n numofPeople.setCellValueFactory(new PropertyValueFactory<>(\"numberOfPeople\"));\n MaximumPeople.setCellValueFactory(new PropertyValueFactory<>(\"maxNumberOfPeople\"));\n courseID.setCellValueFactory(new PropertyValueFactory<>(\"courseId\"));\n basic_grade.setCellValueFactory(new PropertyValueFactory<>(\"BasicGrade\"));\n \n maintable.getColumns().addAll(classId,classname,numofPeople,MaximumPeople,courseID,basic_grade);\n\n\n data = class_dal.GetData();\n maintable.setItems(data);\n }", "private void initTable() {\n \t\t// init table\n \t\ttable.setCaption(TABLE_CAPTION);\n \t\ttable.setPageLength(10);\n \t\ttable.setSelectable(true);\n \t\ttable.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);\n \t\ttable.setColumnCollapsingAllowed(true);\n \t\ttable.setColumnReorderingAllowed(true);\n \t\ttable.setSelectable(true);\n \t\t// this class handles table actions (see handleActions method below)\n \t\ttable.addActionHandler(this);\n \t\ttable.setDescription(ACTION_DESCRIPTION);\n \n \t\t// populate Toolkit table component with test SQL table rows\n \t\ttry {\n \t\t\tQueryContainer qc = new QueryContainer(\"SELECT * FROM employee\",\n \t\t\t\t\tsampleDatabase.getConnection());\n \t\t\ttable.setContainerDataSource(qc);\n \t\t} catch (SQLException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\t// define which columns should be visible on Table component\n \t\ttable.setVisibleColumns(new Object[] { \"FIRSTNAME\", \"LASTNAME\",\n \t\t\t\t\"TITLE\", \"UNIT\" });\n \t\ttable.setItemCaptionPropertyId(\"ID\");\n \t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n instance = this;\n components = new LinkedList<>();\n\n tc_Category.setCellValueFactory(new PropertyValueFactory<>(\"category\"));\n\n tc_Component.setCellValueFactory((TableColumn.CellDataFeatures<Component, String> param) -> {\n return new ReadOnlyObjectWrapper<>(param.getValue().getProduct().getFullName());\n });\n\n tc_Width.setCellValueFactory((TableColumn.CellDataFeatures<Component, String> param) -> {\n if (param.getValue().getProduct().getWidthProduct() != null) {\n return new ReadOnlyObjectWrapper<>(UtilityFormat.getStringForTableColumn(param.getValue().getProduct().getWidthProduct()));\n } else {\n return new ReadOnlyObjectWrapper<>(\"\");\n }\n });\n\n tc_Height.setCellValueFactory((TableColumn.CellDataFeatures<Component, String> param) -> {\n if (param.getValue().getProduct().getHeightProduct() != null) {\n return new ReadOnlyObjectWrapper<>(UtilityFormat.getStringForTableColumn(param.getValue().getProduct().getHeightProduct()));\n } else {\n return new ReadOnlyObjectWrapper<>(\"\");\n }\n });\n\n tc_Length.setCellValueFactory((TableColumn.CellDataFeatures<Component, String> param) -> {\n if (param.getValue().getProduct().getLengthProduct() != null) {\n return new ReadOnlyObjectWrapper<>(UtilityFormat.getStringForTableColumn(param.getValue().getProduct().getLengthProduct()));\n } else {\n return new ReadOnlyObjectWrapper<>(\"\");\n }\n });\n\n tc_Amount.setCellValueFactory((TableColumn.CellDataFeatures<Component, String> param) -> {\n if (param.getValue().getNumberOfProducts() != null) {\n return new ReadOnlyObjectWrapper<>(UtilityFormat.getStringForTableColumn(param.getValue().getNumberOfProducts()));\n } else {\n return new ReadOnlyObjectWrapper<>(\"\");\n }\n });\n\n tc_Unit.setCellValueFactory(new PropertyValueFactory<>(\"unit\"));\n\n tc_PricePerUnit.setCellValueFactory((TableColumn.CellDataFeatures<Component, String> param) -> {\n if (param.getValue().getPriceComponent() != null) {\n return new ReadOnlyObjectWrapper<>(UtilityFormat.getStringForTableColumn(param.getValue().getPriceComponent()) + \" €\");\n } else {\n return new ReadOnlyObjectWrapper<>(\"\");\n }\n });\n\n tc_TotalCosts.setCellValueFactory((TableColumn.CellDataFeatures<Component, String> param) -> {\n if (param.getValue().getProduct() != null && param.getValue().getNumberOfProducts() != null) {\n return new ReadOnlyObjectWrapper<>(UtilityFormat.getStringForTableColumn(param.getValue().getNumberOfProducts() * param.getValue().getPriceComponent()) + \" €\");\n } else {\n return new ReadOnlyObjectWrapper<>(\"\");\n }\n });\n\n refreshTableView();\n }", "@Override\n public void initialize(URL location, ResourceBundle resources) {\n monthCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getMonth()));\n monthTypeCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getType()));\n monthNumberCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getNumber()));\n apptByMonthTableFill();\n\n //Report 2 fill\n consultantsFieldFill();\n apptStartCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getStart()));\n apptEndCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getEnd()));\n apptTitleCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getTitle()));\n apptTypeCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getType()));\n apptCustomerCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getCustomer().getCustomerName()));\n //add listener to consultant combo box\n consultantsField.valueProperty().addListener((ov, t, t1) -> onUserSelection());\n consultantsField.setValue(\"All\");\n onUserSelection();\n\n //Report 2 fill\n todCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getHour()));\n aveApptCol.setCellValueFactory(cellData -> new SimpleStringProperty(cellData.getValue().getCount()));\n aveApptTableFill();\n\n }", "protected void fillTable() {\r\n\t\ttabDate.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, String>(\"transactionDate\"));\r\n\t\ttabSenderNumber.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, String>(\"senderNumber\"));\r\n\t\ttabReceiverNumber\r\n\t\t\t\t.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, String>(\"receiverNumber\"));\r\n\t\ttabAmount.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, BigDecimal>(\"amount\"));\r\n\t\ttabReference.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, String>(\"reference\"));\r\n\r\n\t\tList<TableRowAllTransactions> tableRows = new ArrayList<TableRowAllTransactions>();\r\n\r\n\t\tfor (Transaction transaction : transactionList) {\r\n\t\t\tTableRowAllTransactions tableRow = new TableRowAllTransactions();\r\n\t\t\ttableRow.setTransactionDate(\r\n\t\t\t\t\tnew SimpleDateFormat(\"dd.MM.yyyy HH:mm:ss\").format(transaction.getTransactionDate()));\r\n\t\t\ttableRow.setSenderNumber(transaction.getSender().getNumber());\r\n\t\t\ttableRow.setReceiverNumber(transaction.getReceiver().getNumber());\r\n\t\t\ttableRow.setAmount(transaction.getAmount());\r\n\t\t\ttableRow.setReferenceString(transaction.getReference());\r\n\t\t\ttableRows.add(tableRow);\r\n\r\n\t\t}\r\n\r\n\t\tObservableList<TableRowAllTransactions> data = FXCollections.observableList(tableRows);\r\n\t\ttabTransaction.setItems(data);\r\n\t}", "@Override\n public void initialiseUiCells() {\n }", "@Override\r\n\tpublic void initializeTableContents() {\n\t\t\r\n\t}", "private void initCols(){\n facilityNameColumn.setCellValueFactory(data -> new SimpleStringProperty(data.getValue().getFacilityName()));\n facilityTypeColumn.setCellValueFactory(data -> new SimpleStringProperty(data.getValue().getFacilityType()));\n seatRowColumn.setCellValueFactory(data -> new SimpleStringProperty(Integer.toString(data.getValue().getRows())));\n seatNumberColumn.setCellValueFactory(data -> new SimpleStringProperty(Integer.toString(data.getValue().getColumns())));\n totalSeats.setCellValueFactory(data-> new SimpleStringProperty(Integer.toString(data.getValue().getMaxAntSeats())));\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n itemName.setCellValueFactory(new PropertyValueFactory<Item, String>(\"Name\"));\n type.setCellValueFactory(new PropertyValueFactory<Item, String>(\"Type\"));\n category.setCellValueFactory(new PropertyValueFactory<Category, String>(\"CategoryName\"));\n description.setCellValueFactory(new PropertyValueFactory<Item, String>(\"Description\"));\n price.setCellValueFactory(new PropertyValueFactory<Item, Double>(\"Price\"));\n quantity.setCellValueFactory(new PropertyValueFactory<Item, Integer>(\"Quantity\"));\n rating.setCellValueFactory(new PropertyValueFactory<Item, Integer>(\"Rating\"));\n author.setCellValueFactory(new PropertyValueFactory<Item, String>(\"Author\"));\n publishDate.setCellValueFactory(new PropertyValueFactory<Item, Date>(\"PublishDate\"));\n pageNumber.setCellValueFactory(new PropertyValueFactory<Item, Integer>(\"PageNumber\"));\n\n ArrayList<Item> items = sba.selectItems();\n\n ObservableList<Item> data = FXCollections.<Item>observableArrayList(items);\n itemsTable.setItems(data);\n\n if (ws.getWishlistId(cs.showcustomer(idlogin).getUserid()) == 0) {\n cs.showcustomer(idlogin).setWishId((ws.createWishlist(cs.showcustomer(idlogin).getUserid())));\n }\n\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) { \r\n dateColumn.setCellValueFactory(cellData -> cellData.getValue().dateProperty());\r\n startColumn.setCellValueFactory(cellData -> cellData.getValue().startProperty());\r\n endColumn.setCellValueFactory(cellData -> cellData.getValue().endProperty());\r\n clientColumn.setCellValueFactory(cellData -> cellData.getValue().customerNameProperty());\r\n locationColumn.setCellValueFactory(cellData -> cellData.getValue().locationProperty());\r\n titleColumn.setCellValueFactory(cellData -> cellData.getValue().titleProperty());\r\n typeColumn.setCellValueFactory(cellData -> cellData.getValue().typeProperty());\r\n descriptionColumn.setCellValueFactory(cellData -> cellData.getValue().descriptionProperty());\r\n detailsTableView.setItems(AccessDB.selectedAppointment());\r\n }", "public void initTable(){\n if(counter == 0){\n getDataSemua();\n }else if(counter == 1){\n getDataMakan();\n }else if(counter == 2){\n getDataMinum();\n }else if(counter == 3){\n getDataPaket();\n }\n id.setCellValueFactory(new PropertyValueFactory<casher, String>(\"Id\"));\n nama.setCellValueFactory(new PropertyValueFactory<casher, String>(\"Nama\"));\n kategori.setCellValueFactory(new PropertyValueFactory<casher, String>(\"Kategori\"));\n harga.setCellValueFactory(new PropertyValueFactory<casher, Integer>(\"Harga\"));\n status.setCellValueFactory(new PropertyValueFactory<casher, String>(\"Status\"));\n tambah.setCellValueFactory(new PropertyValueFactory<casher,Button>(\"Tambah\"));\n\n table.setItems(list);\n\n }", "private void initialize() {\r\n\t\tfor (int i = -1; i < myRows; i++)\r\n\t\t\tfor (int j = -1; j < myColumns; j++) {\r\n\t\t\t\tCell.CellToken cellToken = new Cell.CellToken(j, i);\r\n\r\n\t\t\t\tif (i == -1) {\r\n\t\t\t\t\tif (j == -1)\r\n\t\t\t\t\t\tadd(new JLabel(\"\", null, SwingConstants.CENTER));\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tadd(new JLabel(cellToken.columnString(), null,\r\n\t\t\t\t\t\t\t\tSwingConstants.CENTER));\r\n\t\t\t\t} else if (j == -1)\r\n\t\t\t\t\tadd(new JLabel(Integer.toString(i), null,\r\n\t\t\t\t\t\t\tSwingConstants.CENTER));\r\n\t\t\t\telse {\r\n\t\t\t\t\tcellArray[i][j] = new CellsGUI(cellToken);\r\n\r\n\t\t\t\t\tsetCellText(cellArray[i][j]);\r\n\t\t\t\t\tcellArray[i][j].addMouseListener(new MouseCellListener());\r\n\t\t\t\t\tcellArray[i][j].addKeyListener(new KeyCellListener());\r\n\t\t\t\t\tcellArray[i][j].addFocusListener(new FocusCellListener());\r\n\r\n\t\t\t\t\tadd(cellArray[i][j]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t}", "public void initTable() {\n this.table.setSelectable(true);\n this.table.setImmediate(true);\n this.table.setWidth(\"100%\");\n this.table.addListener(this);\n this.table.setDropHandler(this);\n this.table.addActionHandler(this);\n this.table.setDragMode(TableDragMode.ROW);\n this.table.setSizeFull();\n\n this.table.setColumnCollapsingAllowed(true);\n // table.setColumnReorderingAllowed(true);\n\n // BReiten definieren\n this.table.setColumnExpandRatio(LABEL_ICON, 1);\n this.table.setColumnExpandRatio(LABEL_DATEINAME, 3);\n this.table.setColumnExpandRatio(LABEL_DATUM, 2);\n this.table.setColumnExpandRatio(LABEL_GROESSE, 1);\n this.table.setColumnExpandRatio(LABEL_ACCESS_MODES, 1);\n this.table.setColumnHeader(LABEL_ICON, \"\");\n }", "@Override\n public void initialize(URL location, ResourceBundle resources) {\n nameCol.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n surnameCol.setCellValueFactory(new PropertyValueFactory<>(\"surname\"));\n loginCol.setCellValueFactory(new PropertyValueFactory<>(\"login\"));\n passwordCol.setCellValueFactory(new PropertyValueFactory<>(\"password\"));\n\n setCoachesTable();\n setTableHeight();\n\n }", "public void initialize() {\n allAppointments = DBAppointments.returnAllAppointments();\n allUsers = DBUser.returnAllUsers();\n allContacts = DBContacts.returnAllContacts();\n Contact_Choicebox.setItems(allContacts);\n Contact_Choicebox.setConverter(new StringConverter<Contact>() {\n @Override\n public String toString(Contact contact) {\n return contact.getName();\n }\n\n @Override\n public Contact fromString(String s) {\n return null;\n }\n });\n Contact_Id_Column.setCellValueFactory(new PropertyValueFactory<Appointment, Integer>(\"id\"));\n Contact_Title_Column.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"title\"));\n Contact_Description_Column.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"description\"));\n Contact_Start_Column.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"startString\"));\n Contact_End_Column.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"endString\"));\n Contact_Customer_Id_Column.setCellValueFactory(new PropertyValueFactory<Appointment, Integer>(\"customerId\"));\n //Lambda\n FilteredList<Appointment> filteredAppointments = new FilteredList<>(allAppointments, a -> true);\n Contact_Table.setItems(filteredAppointments);\n Contact_Choicebox.getSelectionModel().selectedItemProperty().addListener(obs -> {\n filteredAppointments.setPredicate(Appointment -> {\n return Appointment.getContactId() == Contact_Choicebox.getSelectionModel().getSelectedItem().getId();\n });\n });\n Contact_Choicebox.getSelectionModel().selectFirst();\n //Setup Appointment description list\n ObservableList<String> monthData = FXCollections.observableArrayList();\n Month currentMonth = LocalDate.now().getMonth();\n ObservableList<Appointment> monthAppointments = FXCollections.observableArrayList();\n for (Appointment allAppointment : allAppointments) {\n if (currentMonth == allAppointment.getStart().getMonth()) {\n monthAppointments.add(allAppointment);\n }\n }\n for (int i=0; i < monthAppointments.size(); i++) {\n String description = monthAppointments.get(i).getDescription();\n int count = 0;\n for (Appointment monthAppointment : monthAppointments) {\n if (monthAppointment.getDescription().equals(description)) {\n count++;\n }\n }\n monthData.add(description + \" - \" + count);\n }\n Month_Appointment_List.setItems(monthData);\n\n ObservableList<String> userData = FXCollections.observableArrayList();\n for (int i = 0; i < allUsers.size(); i++) {\n int count = 0;\n for(int j = 0; j < allAppointments.size(); j++) {\n if (allUsers.get(i).getId() == allAppointments.get(j).getUserId()) {\n count ++;\n }\n }\n userData.add(allUsers.get(i).getName() + \" - \" + count);\n }\n User_Appointment_List.setItems(userData);\n }", "public void initView() {\n tableModel.containerInitialized(peripheralJobsContainer.getPeripheralJobs());\n }", "@Override\n public void initialize(URL url, ResourceBundle resourceBundle) {\n\n //configure the TableView to get data from the DB!\n getTableData();\n MSAppointmentsTableView.setItems(allAppointments);\n\n\n\n\n\n\n\n }", "@FXML public void initialize() {\n reportTableView.setItems((ObservableList<Ingredient>) model.getKitchen().getIngredients()); \n \n // set cell value factory for each column\n ingredientColumn.setCellValueFactory(cellData -> cellData.getValue().nameProperty()); \n priceColumn.setCellValueFactory(cellData -> cellData.getValue().priceProperty().asString(\"$%.2f\")); \n soldColumn.setCellValueFactory(cellData -> cellData.getValue().soldProperty().asString());\n incomeColumn.setCellValueFactory(cellData -> (cellData.getValue().totalOfSold()).asString(\"$%.2f\"));\n \n // bind the total text.\n totalText.textProperty().bind(model.getKitchen().totalIncomeProperty().asString(\"$%.2f\"));\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n \r\n \r\n try{\r\n Connection conn = dbconnection.getConnection();\r\n data = FXCollections.observableArrayList();\r\n \r\n ResultSet rs = conn.createStatement().executeQuery(\"SELECT * FROM gameweb.item\");\r\n \r\n while (rs.next()){\r\n data.add(new gamedetail(rs.getString(2), rs.getString(3), rs.getString(4), rs.getString(5), rs.getString(6)));\r\n \r\n }\r\n \r\n } catch(SQLException ex){\r\n \r\n System.err.println(\"Error\" + ex);\r\n \r\n }\r\n \r\n colGameType.setCellValueFactory(new PropertyValueFactory<>(\"gameType\"));\r\n colGameTitle.setCellValueFactory(new PropertyValueFactory<>(\"gameTitle\"));\r\n colDescription.setCellValueFactory(new PropertyValueFactory<>(\"description\"));\r\n colRegularPrice.setCellValueFactory(new PropertyValueFactory<>(\"rPrice\"));\r\n colDiscountedPrice.setCellValueFactory(new PropertyValueFactory<>(\"dPrice\"));\r\n \r\n gameTable.setItems(null);\r\n gameTable.setItems(data);\r\n \r\n // TODO\r\n }", "@FXML\n\tprivate void initialize() {\n\t\t// Initialize the person table with the two columns.\n\t\t\n\t\tloadDataFromDatabase();\n\n\t\tsetCellTable();\n\n\t\tstagiereTable.setItems(oblist);\n\t\tshowPersonDetails(null);\n\n\t\t// Listen for selection changes and show the person details when\n\t\t// changed.\n\t\tstagiereTable\n\t\t\t\t.getSelectionModel()\n\t\t\t\t.selectedItemProperty()\n\t\t\t\t.addListener(\n\t\t\t\t\t\t(observable, oldValue, newValue) -> showPersonDetails(newValue));\n\t}", "@Override\r\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\tnomCol.setCellValueFactory(\r\n\t\t\t\tnew Callback<CellDataFeatures<List<String>, String>, ObservableValue<String>>() {\r\n\t\t\t @Override\r\n\t\t\t public ObservableValue<String> call(CellDataFeatures<List<String>, String> data) {\r\n\t\t\t return new ReadOnlyStringWrapper(data.getValue().get(0)) ;\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\t) ;\r\n\t\tprenomCol.setCellValueFactory(\r\n\t\t\t\t\tnew Callback<CellDataFeatures<List<String>, String>, ObservableValue<String>>() {\r\n\t\t\t\t\t @Override\r\n\t\t\t\t\t public ObservableValue<String> call(CellDataFeatures<List<String>, String> data) {\r\n\t\t\t\t\t return new ReadOnlyStringWrapper(data.getValue().get(1)) ;\r\n\t\t\t\t\t }\r\n\t\t\t\t\t}) ;\r\n\t\tcinCol.setCellValueFactory(\r\n\t\t\t\t\tnew Callback<CellDataFeatures<List<String>, String>, ObservableValue<String>>() {\r\n\t\t\t\t\t @Override\r\n\t\t\t\t\t public ObservableValue<String> call(CellDataFeatures<List<String>, String> data) {\r\n\t\t\t\t\t return new ReadOnlyStringWrapper(data.getValue().get(2)) ;\r\n\t\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t\t) ;\r\n\t\ttypeCol.setCellValueFactory(\r\n\t\t\t\t\tnew Callback<CellDataFeatures<List<String>, String>, ObservableValue<String>>() {\r\n\t\t\t\t\t @Override\r\n\t\t\t\t\t public ObservableValue<String> call(CellDataFeatures<List<String>, String> data) {\r\n\t\t\t\t\t return new ReadOnlyStringWrapper(data.getValue().get(3)) ;\r\n\t\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t\t) ;\r\n\t}", "public void initTable();", "public void initialize() {\n tableIDColumn.setCellValueFactory(new PropertyValueFactory<Table, String>(\"tableID\"));\n occupiedTableColumn.setCellValueFactory(new PropertyValueFactory<Table, Boolean>(\"isOccupied\"));\n\n notification = new Notification();\n notificationArea.getChildren().setAll(notification);\n\n }", "@Override\r\n public void initialize(URL url, ResourceBundle resourceBundle) {\r\n\r\n //Initialize Parts Table\r\n partsTableView.setItems(Inventory.getAllParts());\r\n\r\n partIDCol.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\r\n partNameCol.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\r\n partInvCol.setCellValueFactory(new PropertyValueFactory<>(\"stock\"));\r\n partPriceCol.setCellValueFactory(new PropertyValueFactory<>(\"price\"));\r\n\r\n\r\n //Initialize Products Table\r\n productsTableView.setItems(Inventory.getAllProducts());\r\n\r\n productIDCol.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\r\n productNameCol.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\r\n productInvCol.setCellValueFactory(new PropertyValueFactory<>(\"stock\"));\r\n productPriceCol.setCellValueFactory(new PropertyValueFactory<>(\"price\"));\r\n\r\n }", "private void initTableView() {\n try {\n NonEditableDefaultTableModel dtm = new NonEditableDefaultTableModel();\n dtm.setColumnIdentifiers(new String[]{\"Id\", \"Code\", \"From\", \"To\", \"Prepared\", \"Status\"});\n\n for (PayrollPeriod p : ppDao.getPayrollPeriods()) {\n\n try {\n Object[] o = new Object[]{p.getId(), p,\n sdf.format(p.getDateFrom()), sdf.format(p.getDateTo()),\n sdf.format(p.getDatePrepared()), p.getStatus()};\n dtm.addRow(o);\n } catch (Exception ex) {\n }\n\n }\n tablePayrollPeriod.setModel(dtm);\n } catch (Exception ex) {\n Logger.getLogger(PayrollPeriodInformation.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public void tableViewSetup() {\n nameColumn.setCellValueFactory(new PropertyValueFactory<>(\"Name\"));\n productTable.getColumns().add(nameColumn);\n\n manuColumn.setCellValueFactory(new PropertyValueFactory<>(\"Manufacturer\"));\n productTable.getColumns().add(manuColumn);\n\n typeColumn.setCellValueFactory(new PropertyValueFactory<>(\"Type\"));\n productTable.getColumns().add(typeColumn);\n }", "@Override\n public void initialize(URL location, ResourceBundle resources) {\n list = FXCollections.observableArrayList();\n userID.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n tableID.setCellValueFactory(new PropertyValueFactory<>(\"table\"));\n status.setCellValueFactory(new PropertyValueFactory<>(\"status\"));\n\n try {\n list = bookingModel.getTableDetails();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n userTable.setItems(list);\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n people.addAll(sp.getAll());\n idP.setCellValueFactory(new PropertyValueFactory<>(\"path_photo\"));\n price1.setCellValueFactory(new PropertyValueFactory<>(\"price\"));\n\n tabble1.setItems(people);\n try {\n ResultSet rs = c.createStatement().executeQuery(\"select path_photo, price from shoppingcart\");\n while(rs.next()){\n data1.add(new ShoppingCart(rs.getString(\"path_photo\"), rs.getDouble(\"price\")));\n \n }\n \n\n// TODO\n } catch (SQLException ex) {\n Logger.getLogger(ShoppingCartController.class.getName()).log(Level.SEVERE, null, ex);\n }\n Item2.setCellValueFactory(new PropertyValueFactory<>(\"path_photo\"));\n Price2.setCellValueFactory(new PropertyValueFactory<>(\"price\"));\n table.setItems(data1);\n }", "private void initializeColumns() {\n\n // nameColumn\n nameColumn.setCellValueFactory(record -> new ReadOnlyStringWrapper(\n record.getValue().getFullName()\n ));\n\n // ageColumn\n organColumn.setCellValueFactory(record -> new ReadOnlyStringWrapper(\n record.getValue().getOrgan()));\n\n // genderColumn\n regionColumn.setCellValueFactory(record -> new\n ReadOnlyStringWrapper(record.getValue().getRegion()));\n\n // dateColumn. Depends on the given string\n dateColumn.setCellValueFactory(record -> new ReadOnlyStringWrapper(\n TransplantWaitingList.formatCreationDate(record.getValue().getTimestamp())));\n\n }", "@Override\n public void initialize(URL url, ResourceBundle resourceBundle) {\n\n CustomerTableview.setItems(allCustomers);\n CustomerTableIDColumn.setCellValueFactory(new PropertyValueFactory<>(\"customerID\"));\n CustomerTableNameColumn.setCellValueFactory(new PropertyValueFactory<>(\"customerName\"));\n CustomerTableAddressColumn.setCellValueFactory(new PropertyValueFactory<>(\"customerAddress\"));\n CustomerTablePostalColumn.setCellValueFactory(new PropertyValueFactory<>(\"customerPostal\"));\n CustomerTablePhoneColumn.setCellValueFactory(new PropertyValueFactory<>(\"customerPhone\"));\n CustomerTableCreatedColumn.setCellValueFactory(new PropertyValueFactory<>(\"createDate\"));\n CustomerTableCreatedByColumn.setCellValueFactory(new PropertyValueFactory<>(\"createdBy\"));\n CustomerTableUpdatedColumn.setCellValueFactory(new PropertyValueFactory<>(\"lastUpdate\"));\n CustomerTableUpdatedByColumn.setCellValueFactory(new PropertyValueFactory<>(\"lastUpdatedBy\"));\n CustomerTableDivisionIDColumn.setCellValueFactory(new PropertyValueFactory<>(\"customerDivision\"));\n\n try {\n populateCustomerTable();\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n }\n }", "private void initView() {\n\t\ttable = new JTable(ttm);\n\t\tfor (int i = 0; i < colWidths.length; i++) {\n\t\t\tTableColumn col = table.getColumnModel().getColumn(i);\n\t\t\tcol.setPreferredWidth(colWidths[i]);\n\t\t}\n\t\ttable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n\t\ttable.setFillsViewportHeight(false);\n\t\tsetViewportView(table);\n\t\tsetBorder(BorderFactory.createLineBorder(Color.black));\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n try {\n populateAppointmentsTable();\n } catch (SQLException ex) {\n Logger.getLogger(AppointmentsViewController.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n customerNameColumn.setCellValueFactory(new PropertyValueFactory<>(\"customerName\"));\n consultantNameColumn.setCellValueFactory(new PropertyValueFactory<>(\"consultantName\"));\n titleColumn.setCellValueFactory(new PropertyValueFactory<>(\"title\"));\n descriptionColumn.setCellValueFactory(new PropertyValueFactory<>(\"description\"));\n locationColumn.setCellValueFactory(new PropertyValueFactory<>(\"location\"));\n contactColumn.setCellValueFactory(new PropertyValueFactory<>(\"contact\"));\n typeColumn.setCellValueFactory(new PropertyValueFactory<>(\"type\"));\n startColumn.setCellValueFactory(new PropertyValueFactory<>(\"formattedStart\"));\n endColumn.setCellValueFactory(new PropertyValueFactory<>(\"formattedEnd\"));\n dateColumn.setCellValueFactory(new PropertyValueFactory<>(\"date\"));\n\n appointmentsTable.setItems(allAppointments);\n }", "@FXML\n\t private void initialize () {\n\t \n\t \tprodIdColumn.setCellValueFactory(cellData -> cellData.getValue().productIdProperty().asObject());\n\t \tprodDenumireColumn.setCellValueFactory(cellData -> cellData.getValue().denumireProperty());\n\t \tprodProducatorColumn.setCellValueFactory(cellData -> cellData.getValue().producatorProperty());\n\t \tprodPretColumn.setCellValueFactory(cellData -> cellData.getValue().priceProperty().asObject());\n\t \tprodMarimeColumn.setCellValueFactory(cellData -> cellData.getValue().marimeProperty().asObject());\n\t \tprodCuloareColumn.setCellValueFactory(cellData -> cellData.getValue().culoareProperty());\n\t }", "private void fillData() {\n table.setRowList(data);\n }", "void initTable();", "public void initialize(){\n equipoColumn.setCellValueFactory(new PropertyValueFactory<>(\"equipo\"));\n }", "@FXML\n private void initialize() {\n \t// Initialize the Taxi table with the two columns.\n nameColumn.setCellValueFactory(\n \t\tcellData -> cellData.getValue().nameProperty());\n// cityColumn.setCellValueFactory(\n// \t\tcellData -> cellData.getValue().cityProperty());\n taxiNumberColumn.setCellValueFactory(\n \t\tcellData -> cellData.getValue().taxiNumberProperty());\n // Clear Taxi details.\n showTaxiDetails(null);\n\n // Listen for selection changes and show the Taxi details when changed.\n\t\tTaxiTable.getSelectionModel().selectedItemProperty().addListener(\n\t\t\t\t(observable, oldValue, newValue) -> showTaxiDetails(newValue));\n }", "public void initialize(){\n // Creating the columns for the table and adding data to them\n TableColumn name = new TableColumn(\"Name\");\n TableColumn hostName = new TableColumn(\"Host Name\");\n TableColumn price = new TableColumn(\"Price\");\n TableColumn neighbouthood = new TableColumn(\"Neighbourhood\");\n TableColumn noOfNights = new TableColumn(\"Minimum Nights\");\n TableColumn aptType = new TableColumn(\"Apt Type\");\n name.setPrefWidth(300);\n hostName.setPrefWidth(70);\n neighbouthood.setPrefWidth(100);\n price.setPrefWidth(50);\n noOfNights.setPrefWidth(100);\n aptType.setPrefWidth(75);\n\n // This column contains a button which deletes the particular row from the list\n TableColumn<AirbnbListing, AirbnbListing> removeColumn = new TableColumn<>(\"\");\n removeColumn.setCellValueFactory(\n param -> new ReadOnlyObjectWrapper<>(param.getValue())\n );\n removeColumn.setCellFactory(param -> new TableCell<>() {\n private final Button deleteButton = new Button(\"Remove\");\n\n @Override\n protected void updateItem(AirbnbListing property, boolean empty) {\n super.updateItem(property, empty);\n\n if (property == null) {\n setGraphic(null);\n return;\n }\n\n setGraphic(deleteButton);\n deleteButton.setOnMouseClicked(\n event -> getTableView().getItems().remove(property)\n );\n }\n });\n removeColumn.setPrefWidth(75);\n\n compareTable.getColumns().addAll(name, hostName, neighbouthood , price, aptType, noOfNights, removeColumn);\n\n ObservableList<AirbnbListing> compareList = FXCollections.observableArrayList(UserInput.getCompareList());\n\n name.setCellValueFactory(new PropertyValueFactory<AirbnbListing, String>(\"name\"));\n hostName.setCellValueFactory(new PropertyValueFactory<AirbnbListing, String>(\"host_name\"));\n neighbouthood.setCellValueFactory(new PropertyValueFactory<AirbnbListing, String>(\"neighbourhood\"));\n price.setCellValueFactory(new PropertyValueFactory<AirbnbListing, String>(\"price\"));\n noOfNights.setCellValueFactory(new PropertyValueFactory<AirbnbListing, String>(\"minimumNights\"));\n aptType.setCellValueFactory(new PropertyValueFactory<AirbnbListing, String>(\"room_type\"));\n\n new PropertyDescriptionCreator().propertyDescriptionMouseEvent(compareTable);\n\n compareTable.setItems(compareList);\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n //set up the columns in the table\r\n idNumberColumn.setCellValueFactory\r\n (new PropertyValueFactory<Student, Integer>(\"idNumber\"));\r\n firstNameColumn.setCellValueFactory\r\n (new PropertyValueFactory<Student, String>(\"firstName\"));\r\n lastNameColumn.setCellValueFactory\r\n (new PropertyValueFactory<Student, String>(\"lastName\"));\r\n birthdayColumn.setCellValueFactory\r\n (new PropertyValueFactory<Student, LocalDate>(\"birthday\"));\r\n covidColumn.setCellValueFactory\r\n (new PropertyValueFactory<Student, LocalDate>(\"covidCase\"));\r\n \r\n try {\r\n // cast to ObservableList of Student objects\r\n tableView.setItems(FXCollections.observableList(\r\n covidMngrService.fetchStudents()));\r\n } catch (RemoteException ex) {\r\n Logger.getLogger(SecretaryStudentsTableCntrl.class.getName()).\r\n log(Level.SEVERE, null, ex);\r\n }\r\n \r\n // Update the table to allow for the first and last name fields\r\n // to be not editable\r\n tableView.setEditable(false);\r\n \r\n // firstNameColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n // lastNameColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n \r\n // This will disable the table to select multiple rows at once\r\n tableView.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);\r\n \r\n // Disable the detailed student view button until a row is selected\r\n this.detailedStudentViewButton.setDisable(true);\r\n }", "public void initialize() {\n ResourceMap resourceMap = BDApp.getResourceMap(LoadTestReportTable.class);\n for (int i = 0; i < LoadTestReportTableModel.columnNames.length; i++) {\n TableColumn column = getColumnModel().getColumn(i);\n column.setResizable(true);\n final String headerText = resourceMap.getString(LoadTestReportTableModel.columnNames[i] + \"ColumnHeader.text\");\n column.setHeaderValue(headerText);\n int width = resourceMap.getInteger(LoadTestReportTableModel.columnNames[i] + \"Column.width\");\n column.setPreferredWidth(width);\n if (headerText.length() == 0) {\n column.setMinWidth(width);\n column.setMaxWidth(width);\n }\n // Install our special column renderer.\n column.setCellRenderer(specialCellRenderer);\n }\n cvsHeaders = resourceMap.getString(\"cvsHeaders.text\");\n }", "private void init() {\n try {\n renderer = new TableNameRenderer(tableHome);\n if (listId != null) {\n model = new DefaultComboBoxModel(listId);\n }\n else {\n Object[] idList = renderer.getTableIdList(step, extraTableRef);\n model = new DefaultComboBoxModel(idList);\n }\n setRenderer(renderer);\n setModel(model);\n }\n catch (PersistenceException ex) {\n ex.printStackTrace();\n }\n }", "private void setUpTable()\n {\n //Setting the outlook of the table\n bookTable.setColumnReorderingAllowed(true);\n bookTable.setColumnCollapsingAllowed(true);\n \n \n bookTable.setContainerDataSource(allBooksBean);\n \n \n //Setting up the table data row and column\n /*bookTable.addContainerProperty(\"id\", Integer.class, null);\n bookTable.addContainerProperty(\"book name\",String.class, null);\n bookTable.addContainerProperty(\"author name\", String.class, null);\n bookTable.addContainerProperty(\"description\", String.class, null);\n bookTable.addContainerProperty(\"book genres\", String.class, null);\n */\n //The initial values in the table \n db.connectDB();\n try{\n allBooks = db.getAllBooks();\n }catch(SQLException ex)\n {\n ex.printStackTrace();\n }\n db.closeDB();\n allBooksBean.addAll(allBooks);\n \n //Set Visible columns (show certain columnes)\n bookTable.setVisibleColumns(new Object[]{\"id\",\"bookName\", \"authorName\", \"description\" ,\"bookGenreString\"});\n \n //Set height and width\n bookTable.setHeight(\"370px\");\n bookTable.setWidth(\"1000px\");\n \n //Allow the data in the table to be selected\n bookTable.setSelectable(true);\n \n //Save the selected row by saving the change Immediately\n bookTable.setImmediate(true);\n //Set the table on listener for value change\n bookTable.addValueChangeListener(new Property.ValueChangeListener()\n {\n public void valueChange(ValueChangeEvent event) {\n \n }\n\n });\n }", "public void initialize() {\n resultsTable.setItems(null);\n resultsTable.setRowFactory(tv -> {\n TableRow<SuperAgentAppRecord> row = new TableRow<>();\n // Open window if row double-clicked\n row.setOnMouseClicked(event -> {\n if (event.getClickCount() == 2 && (!row.isEmpty())) {\n SuperAgentAppRecord rowData = row.getItem();\n try {\n // Open selected row in new window\n displayInspectApplications(rowData);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n return row;\n });\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n dateCol.setCellValueFactory( new PropertyValueFactory<>(\"date\") );\n amountCol.setCellValueFactory( new PropertyValueFactory<>(\"amoun\") );\n detailsCol.setCellValueFactory( new PropertyValueFactory<>(\"details\") );\n payerCol.setCellValueFactory( new PropertyValueFactory<>(\"payername\") );\n approverCol.setCellValueFactory( new PropertyValueFactory<>(\"employee_ID\") );\n typeCol.setCellValueFactory( new PropertyValueFactory<>(\"type\") );\n }", "@Override\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\tcolName.setCellValueFactory(new PropertyValueFactory<>(\"PlayerName\"));\n\t\tcolDate.setCellValueFactory(new PropertyValueFactory<>(\"PlayerDate\"));\n\t\tcolLevel.setCellValueFactory(new PropertyValueFactory<>(\"PlayerLevel\"));\n\t\ttableview.setItems(observableList);\n\n\t}", "@Override\r\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\tMySQLDAO dao;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tdao = new MySQLDAO();\r\n\t\t\tTestsList tList = dao.loadAllTests();\r\n\t\t\tdata = FXCollections.observableList(tList);\r\n\t\t\t\r\n\t\t\tid.setCellValueFactory(new PropertyValueFactory<Test, Integer>(\"id\"));\r\n\t\t\t\r\n\t\t\tname.setCellValueFactory(new PropertyValueFactory<Test, String>(\"name\"));\r\n\t\t\tname.setCellFactory(TextFieldTableCell.<Test>forTableColumn());\r\n\t\t\t\r\n\t\t\ttestsTable.setItems(data);\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void initData() {\n\t\tcomboBoxInit();\n\t\tinitList();\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // configure orders table\n orderID_column.setCellValueFactory(new PropertyValueFactory<>(\"order_id\"));\n brandName_column.setCellValueFactory(new PropertyValueFactory<>(\"brand_name\"));\n price_column.setCellValueFactory(new PropertyValueFactory<>(\"total_price\"));\n date_column.setCellValueFactory(new PropertyValueFactory<>(\"order_date\"));\n }", "@Override public void initialize(URL url, ResourceBundle rb) {\n partTableView.setItems(Inventory.getAllParts());\n partIdCol.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n partInvCol.setCellValueFactory(new PropertyValueFactory<>(\"stock\"));\n partNameCol.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n partPriceCol.setCellValueFactory(new PropertyValueFactory<>(\"price\"));\n\n //initialize is called with every button action\n associatedPartIdCol.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n associatedPartInvCol.setCellValueFactory(new PropertyValueFactory<>(\"stock\"));\n associatedPartNameCol.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n associatedPartPriceCol.setCellValueFactory(new PropertyValueFactory<>(\"price\"));\n\n }", "private void initTable() {\n\t\tDefaultTableModel dtm = (DefaultTableModel)table.getModel();\n\t\tdtm.setRowCount(0);\t\t\n\t\tfor(int i=0;i<MainUi.controller.sale.items.size();i++){\n\t\t\tVector v1 = new Vector();\n\t\t\tv1.add(MainUi.controller.sale.items.get(i).getProdSpec().getTitle());\n\t\t\tv1.add(MainUi.controller.sale.items.get(i).getCopies());\n\t\t\tdtm.addRow(v1);\n\t\t}\n\t\tlblNewLabel.setText(\"\"+MainUi.controller.sale.getTotal());\n\t}", "public void initialize() throws SQLException {\n\t \n\tTypesReport typesObject = new TypesReport();\n\tObservableList<TypesReport> typeList = FXCollections.observableArrayList();\n\ttypeList.add(typesObject);\n\ttableViewType.setItems(typeList);\n\n\t\n\ttableColumnJan.setCellValueFactory(new PropertyValueFactory(\"january\"));\n\ttableColumnFeb.setCellValueFactory(new PropertyValueFactory(\"february\"));\n\ttableColumnMar.setCellValueFactory(new PropertyValueFactory(\"march\"));\n\ttableColumnApr.setCellValueFactory(new PropertyValueFactory(\"april\"));\n\ttableColumnMay.setCellValueFactory(new PropertyValueFactory(\"may\"));\n\ttableColumnJune.setCellValueFactory(new PropertyValueFactory(\"june\"));\n\ttableColumnJuly.setCellValueFactory(new PropertyValueFactory(\"july\"));\n\ttableColumnAug.setCellValueFactory(new PropertyValueFactory(\"august\"));\n\ttableColumnSept.setCellValueFactory(new PropertyValueFactory(\"september\"));\n\ttableColumnOct.setCellValueFactory(new PropertyValueFactory(\"october\"));\n\ttableColumnNov.setCellValueFactory(new PropertyValueFactory(\"november\"));\n\ttableColumnDec.setCellValueFactory(new PropertyValueFactory(\"december\"));\n\n\n buttonHome.setOnAction((event)-> {\n\ttry {\n\tFXMLLoader homeScreen = new FXMLLoader(getClass().getResource(\"HomeScreen.fxml\"));\n AnchorPane homeScreenPane = homeScreen.load();\n rootPane.getChildren().setAll(homeScreenPane);\n\t}catch(Exception ex){ex.getMessage();}});\n\n\tbuttonReports.setOnAction((event)-> {\n\ttry {\n\tFXMLLoader homeScreen = new FXMLLoader(getClass().getResource(\"Reports.fxml\"));\n AnchorPane homeScreenPane = homeScreen.load();\n rootPane.getChildren().setAll(homeScreenPane);\n\t}catch(Exception ex){ex.getMessage();}});\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n\n try {\n\n day.setCellValueFactory(c -> new SimpleStringProperty(c.getValue().getDay()));\n seance1.setCellValueFactory(c -> new SimpleStringProperty(c.getValue().getSeance1()));\n seance2.setCellValueFactory(c -> new SimpleStringProperty(c.getValue().getSeance2()));\n seance3.setCellValueFactory(c -> new SimpleStringProperty(c.getValue().getSeance3()));\n seance4.setCellValueFactory(c -> new SimpleStringProperty(c.getValue().getSeance4()));\n seance5.setCellValueFactory(c -> new SimpleStringProperty(c.getValue().getSeance5()));\n\n subject = new ServicesTimeTable().readAllSubject();\n scCombo1.setItems(FXCollections.observableArrayList(subject));\n scCombo2.setItems(FXCollections.observableArrayList(subject));\n scCombo3.setItems(FXCollections.observableArrayList(subject));\n scCombo4.setItems(FXCollections.observableArrayList(subject));\n t = timeTable.getSelectionModel().getSelectedItem();\n\n } catch (Exception e) {\n System.out.println(e.getMessage());\n\n }\n }", "public ARCTable() {\n initComponents();\n table = new MyJTable();\n tableScrollPane.setViewportView(table);\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n ServicesTournaments_intr sp=new ServicesTournaments_intr();\r\n Tournaments_intr ts= new Tournaments_intr();\r\n trlist=sp.getInitialTableData();\r\n tableview.setItems(trlist);\r\n \r\n tb_tr_id.setCellValueFactory(new PropertyValueFactory<>(\"tr_id\"));\r\ntb_tr_cover.setCellValueFactory(new PropertyValueFactory<>(\"imageView\"));\r\ntb_tr_link.setCellValueFactory(new PropertyValueFactory<>(\"tr_link\"));\r\n\r\n\r\n \r\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) \r\n {\r\n \r\n \r\n // bind des colonnes\r\n columnTodo.setCellValueFactory(cellData->cellData.getValue().titreProperty());\r\n columnDateCreation.setCellValueFactory(cellData->cellData.getValue().dateCreationProperty());\r\n columnDateRappel.setCellValueFactory(cellData->cellData.getValue().dateRappelProperty());\r\n columnRappel.setCellValueFactory(cellData->cellData.getValue().rappelProperty());\r\n // cellfactory\r\n columnRappel.setCellFactory(a->new RappelTableCell());\r\n columnDateRappel.setCellFactory(a->new DateRappelTableCell());\r\n \r\n // ajout du callback tablerow sur la table todo pour changer la couleur en fonction d'un rappel\r\n tabTodo.setRowFactory(a->new RappelTableRow());\r\n \r\n \r\n // listener d'enregistrement automatique sur la perte du focus\r\n listener = new CommentaireChangeListener();\r\n commentaire.focusedProperty().addListener(listener);\r\n // listener sur le changement de l'état checkbox \r\n \r\n\r\n }", "protected abstract void initialiseTable();", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n //set up the columns in the table view for Available Parts\n fxidAvailablePartListIDCol.setCellValueFactory(new PropertyValueFactory<Part, Integer>(\"id\"));\n fxidAvailablePartListNameCol.setCellValueFactory(new PropertyValueFactory<Part, String>(\"name\"));\n fxidAvailablePartListInvCol.setCellValueFactory(new PropertyValueFactory<Part, Integer>(\"stock\"));\n fxidAvailablePartListPriceCol.setCellValueFactory(new PropertyValueFactory<Part, String>(\"price\"));\n //populate the tableview with all the parts\n this.fxidAddProdAvailableParts.setItems(Inventory.getAllParts());\n \n //set up the columns in the table view for Selected Parts\n fxidSelectedPartListIDCol.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n fxidSelectedPartListNameCol.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n fxidSelectedPartListInvCol.setCellValueFactory(new PropertyValueFactory<>(\"stock\"));\n fxidSelectedPartListPriceCol.setCellValueFactory(new PropertyValueFactory<>(\"price\"));\n \n //set the ID of the Product\n fxidAddProdID.setText(Integer.toString(Inventory.getAllProducts().size()));\n }", "private void initTable() {\n// String col[] = {\"Seq#\",\"PCode\",\"BCode\",\"ProductName\",\"PurPCS\",\"PurCTN\",\"PurQTY\",\"PurDMG\",\"PurRate\",\"GrossAmount\",\"Disc%\",\"DiscRS\",\"Tax%\",\"TaxRS\",\"TOPcs\",\"UCHRS\",\"SCHRS\",\"FMR%\",\"FMRRS\",\"TaxRS\",\"Expiry\",\"Batch\",\"NetAmount\"};\n String col[] = {\"Seq#\",\"PCode\",\"BCode\"};\n int k=0; \n Object row[][] = new Object[][] { { \"1\", new ButtonTextFieldCellTest.ButtonTextFieldCell(), new ButtonTextFieldCellTest.ButtonTextFieldCell() },\n { \"2\", new ButtonTextFieldCellTest.ButtonTextFieldCell(), new ButtonTextFieldCellTest.ButtonTextFieldCell() },\n { \"3\", new ButtonTextFieldCellTest.ButtonTextFieldCell(), new ButtonTextFieldCellTest.ButtonTextFieldCell() },\n { \"4\", new ButtonTextFieldCellTest.ButtonTextFieldCell(), new ButtonTextFieldCellTest.ButtonTextFieldCell() } };\n// String row[][] =new String[3][23];\n /*\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 23; j++){\n row[i][j]=\"\"+k++;\n }\n }\n \n */\n// row=new String[][]{{\"Seq#\",\"PCode\",\"BCode\",\"ProductName\",\"PurPCS\",\"PurCTN\",\"PurQTY\",\"PurDMG\",\"PurRate\",\"GrossAmount\",\"Disc%\",\"DiscRS\",\"Tax%\",\"TaxRS\",\"TOPcs\",\"UCHRS\",\"SCHRS\",\"FMR%\",\"FMRRS\",\"TaxRS\",\"Expiry\",\"Batch\",\"NetAmount\"},\n// {\"1Seq#\",\"1PCode\",\"1BCode\",\"ProductName\",\"PurPCS\",\"PurCTN\",\"PurQTY\",\"PurDMG\",\"PurRate\",\"GrossAmount\",\"Disc%\",\"DiscRS\",\"Tax%\",\"TaxRS\",\"TOPcs\",\"UCHRS\",\"SCHRS\",\"FMR%\",\"FMRRS\",\"TaxRS\",\"Expiry\",\"Batch\",\"NetAmount\"},\n// {\"2Seq#\",\"2PCode\",\"2BCode\",\"ProductName\",\"PurPCS\",\"PurCTN\",\"PurQTY\",\"PurDMG\",\"PurRate\",\"GrossAmount\",\"Disc%\",\"DiscRS\",\"Tax%\",\"TaxRS\",\"TOPcs\",\"UCHRS\",\"SCHRS\",\"FMR%\",\"FMRRS\",\"TaxRS\",\"Expiry\",\"Batch\",\"NetAmount\"}};\n model = new DefaultTableModel(row,col);\n jTable1=new JTable(model);\n jTable1.setRowHeight(30);\n jTable1.setRowHeight(0,30);\n jTable1.setPreferredSize(new Dimension(purchaseScrollPane.getWidth(), 35));\n purchaseScrollPane.setViewportView(jTable1);\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n\r\n //make iterms\r\n // add 20 more rows\r\n Thread readDataThread = new Thread(() -> {\r\n Logs.e(\"wait for refreshing\");\r\n while (GlobalParameters.isRefreshingStockList) {\r\n\r\n try {\r\n Thread.sleep(1000);\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(ReviewTabController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n }\r\n\r\n recordIterms = readRecords();\r\n\r\n stockFilter = new StockFilter(GlobalParameters.getStockInfoObservableList());\r\n\r\n int size = recordIterms.size();\r\n\r\n for (int i = 1; i <= 30; i++) {\r\n recordIterms.add(new ReviewRecords(i + size));\r\n }\r\n\r\n reviewRecordsList = FXCollections.observableArrayList(recordIterms);\r\n reviewTableView.setItems(reviewRecordsList);\r\n });\r\n\r\n readDataThread.start();\r\n\r\n reviewTableView.setEditable(true);\r\n\r\n idCol.setCellValueFactory(cellData -> cellData.getValue().idProperty());\r\n stockCodeCol.setCellValueFactory(cellData -> cellData.getValue().stockCodeProperty());\r\n stockNameCol.setCellValueFactory(cellData -> cellData.getValue().stockNameProperty());\r\n referenceCol.setCellValueFactory(cellData -> cellData.getValue().obReferenceProperty());\r\n methodCol.setCellValueFactory(cellData -> cellData.getValue().obMethodPropertys().getComboBox());\r\n startDateCol.setCellValueFactory(cellData -> cellData.getValue().obStartDatePicker().getObserveDatePicker());\r\n startPriceCol.setCellValueFactory(cellData -> cellData.getValue().obStartClosePriceProperty());\r\n endDateCol.setCellValueFactory(cellData -> cellData.getValue().obEndDatePicker().getObserveDatePicker());\r\n endPriceCol.setCellValueFactory(cellData -> cellData.getValue().obEndClosePriceProperty());\r\n profitCol.setCellValueFactory(cellData -> cellData.getValue().obProfitProperty());\r\n efficencyCol.setCellValueFactory(cellData -> cellData.getValue().obEfficiencyProperty());\r\n commentsCol.setCellValueFactory(cellData -> cellData.getValue().obCommentsProperty());\r\n\r\n stockCodeCol.setCellFactory(TextFieldTableCell.forTableColumn());\r\n referenceCol.setCellFactory(TextFieldTableCell.forTableColumn());\r\n commentsCol.setCellFactory(TextFieldTableCell.forTableColumn());\r\n profitCol.setCellFactory(ratiolCellCallback);\r\n efficencyCol.setCellFactory(ratiolCellCallback);\r\n\r\n //set column editable\r\n for (int i = 0; i < reviewTableView.getColumns().size(); i++) {\r\n reviewTableView.getColumns().get(i).setEditable(true);\r\n\r\n }\r\n\r\n// comfirmCol.setCellValueFactory(cellData -> cellData.getValue().obEfficiencyProperty());\r\n }", "@FXML\n\tprivate void initialize() {\n\n\t\tfirstNameColumn.setCellValueFactory(cell -> cell.getValue().firstNameProperty());\n\t\tlastNameColumn.setCellValueFactory(cell -> cell.getValue().lastNameProperty());\n\t\taddress1Column.setCellValueFactory(cell -> cell.getValue().address1Property());\n\t\taddress2Column.setCellValueFactory(cell -> cell.getValue().address2Property());\n\t\tpostalCodeColumn.setCellValueFactory(cell -> cell.getValue().postalCodeProperty());\n\t\tphoneColumn.setCellValueFactory(cell -> cell.getValue().phoneProperty());\n\t\tcityColumn.setCellValueFactory(cell -> cell.getValue().cityProperty());\n\t\tcountryColumn.setCellValueFactory(cell -> cell.getValue().countryProperty());\n\n\t\tcustomerTable.getSelectionModel().selectedItemProperty().addListener((obs, oldSel, newSel) -> {\n\t\t\teditButton.setDisable(newSel == null);\n\t\t\tdelButton.setDisable(newSel == null);\n\t\t});\n\n\t}", "@Override\npublic void initialize(URL url, ResourceBundle rb) {\n\t\n\tcategoryColumn.setCellValueFactory(new PropertyValueFactory<Questions, String>(\"categoryName\"));\n\tquestionColumn.setCellValueFactory(new PropertyValueFactory<Questions, String>(\"questionInput\"));\n\tletterLabelColumn.setCellValueFactory(new PropertyValueFactory<Questions, String>(\"letterLabel\"));\n\tletterALabelColumn.setCellValueFactory(new PropertyValueFactory<Questions, String>(\"letterALabel\"));\n\tletterBLabelColumn.setCellValueFactory(new PropertyValueFactory<Questions, String>(\"letterBLabel\"));\n\tletterCLabelColumn.setCellValueFactory(new PropertyValueFactory<Questions, String>(\"letterCLabel\"));\n\tletterDLabelColumn.setCellValueFactory(new PropertyValueFactory<Questions, String>(\"letterDLabel\"));\n}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n\r\n appointments = FXCollections.observableArrayList();\r\n customers = FXCollections.observableArrayList();\r\n\r\n //Get the user's login name and display it. \r\n usernameLabel.setText(user.getUserName());\r\n try {\r\n\r\n } catch (Exception ex) {\r\n Logger.getLogger(MainScreenController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n //G. Write two or more lambda expressions to make your program more efficient, justifying the use of each lambda expression with an in-line comment. \r\n //************LAMBDAS FOR APPOINTMENT TABLEVIEW COLUMNS*************************\r\n\r\n //Lines 152-194 are lambda expressions that generate the table columns for the table views. \r\n DateTimeFormatter tdtf = DateTimeFormatter.ofPattern(\"HH:mm\");\r\n startTimeColumn.setCellValueFactory(cellData -> {\r\n return new SimpleStringProperty(tdtf.format(cellData.getValue().getStartTime()));\r\n });\r\n\r\n endTimeColumn.setCellValueFactory(cellData -> {\r\n return new SimpleStringProperty(tdtf.format(cellData.getValue().getEndTime()));\r\n });\r\n\r\n appointmentTypeColumn.setCellValueFactory(cellData -> {\r\n return cellData.getValue().getAppointmentType();\r\n });\r\n\r\n appointmentCustomerCol.setCellValueFactory(cellData -> {\r\n return cellData.getValue().getAssociatedCustomer();\r\n });\r\n\r\n DateTimeFormatter dformat = DateTimeFormatter.ofPattern(\"YYYY-MM-dd\");\r\n dateColumn.setCellValueFactory(cellData -> {\r\n return new SimpleStringProperty(dformat.format(cellData.getValue().getStartTime()));\r\n });\r\n //*************LAMBDAS FOR CUSTOMER TABLEVIEW COLUMNS**********************\r\n\r\n column_Customer_Name.setCellValueFactory(cellData -> {\r\n return cellData.getValue().getCustomerName();\r\n });\r\n\r\n column_Customer_Address.setCellValueFactory(cellData -> {\r\n return cellData.getValue().getCustomerAddress();\r\n });\r\n\r\n column_Customer_Phone.setCellValueFactory(cellData -> {\r\n return cellData.getValue().getCustomerPhoneNumber();\r\n });\r\n\r\n column_Customer_City.setCellValueFactory(cellData -> {\r\n return cellData.getValue().getCustomerCity();\r\n });\r\n\r\n column_Customer_Country.setCellValueFactory(cellData -> {\r\n return cellData.getValue().getCustomerCountry();\r\n });\r\n\r\n try {\r\n\r\n appointments.clear();\r\n appointments.addAll(AppointmentImplementation.getAppointmentData());\r\n\r\n customerTable.getItems().clear();\r\n customerTable.getItems().addAll(customers);\r\n customerTable.setItems(customers);\r\n customers.addAll(CustomerImplementation.getCustomerData());\r\n\r\n table.setItems(appointments);\r\n\r\n //SECTION H: WRITE CODE TO ALERT USER IF AN APPOINTMENT IS WITHIN 15 MINUTES OF USER'S LOGIN\r\n Appointment appts = apptAlert(appointments);\r\n\r\n DateTimeFormatter tformat = DateTimeFormatter.ofPattern(\"HH:mm\");\r\n if (appts != null) {\r\n Alert alert = new Alert(AlertType.INFORMATION);\r\n alert.setHeaderText(\"Upcoming appointment\");\r\n alert.setContentText(\"You have an appointment with client \" + appts.getAssociatedCustomer().get() + \" \" + \" at\" + tformat.format(appts.getStartTime()));\r\n alert.showAndWait();\r\n System.out.println(\"apptAlert\");\r\n }\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n\r\n }", "@Override\n public void initData() {\n customerResponses = distributorController.getAllDistributorResponseObject();\n Object[] obj = new Object[]{\"STT\", \"Mã Nhà phân phối\", \"Tên nhà phân phối\", \"Địa chỉ\", \"Số điện thoại\", \"Email\", \"Ghi chú\"};\n tableModel = new DefaultTableModel(obj, 0);\n tableRowSorter = new TableRowSorter<>(tableModel);\n tblDistribute.setModel(tableModel);\n tblDistribute.setRowSorter(tableRowSorter);\n count = 0;\n tableModel.setRowCount(0);\n try {\n customerResponses.forEach((Object[] item) -> {\n item[0] = ++count;\n tableModel.addRow(item);\n\n });\n } catch (Exception exception) {\n log.error(\"Can't add row to table model \");\n exception.printStackTrace();\n\n }\n setButtonsEnable(btnUpdate, false, btnAdd, true, btnEdit, false, btnDelete, false, btnCancel, true);\n }", "private void preencherTabela() {\n\t\tList<Cidade> listCidade;\n\t\tCidadeDAO cidadeDAO;\n\t\tObservableList<Cidade> oListCidade;\n\n\t\t// Determina os atributos que irão preencher as colunas\n\t\tcolCidade.setCellValueFactory(new PropertyValueFactory<>(\"nomeCidades\"));\n\t\tcolEstado.setCellValueFactory(new PropertyValueFactory<>(\"nomeEstado\"));\n\t\tcolSigla.setCellValueFactory(new PropertyValueFactory<>(\"siglaEstado\"));\n\t\tcolCodigoCidade.setCellValueFactory(new PropertyValueFactory<>(\"idCidade\"));\n\t\tcolIdEstado.setCellValueFactory(new PropertyValueFactory<>(\"idEstado\"));\n\n\t\t// Instancia a lista de cidades e a DAO\n\t\tlistCidade = new ArrayList<Cidade>();\n\t\tcidadeDAO = new CidadeDAO();\n\n\t\t// Chama o metodo para selecionar todas as cidades e atribuir a lista\n\t\tlistCidade = cidadeDAO.selecionar();\n\n\t\t// Converte a lista de cidades em observablearray\n\t\toListCidade = FXCollections.observableArrayList(listCidade);\n\n\t\t// Adiciona a lista na tabela\n\t\ttblCidades.setItems(oListCidade);\n\t}", "public void initializeUserOrdersTableView() {\n\t\tSystemUser user = restaurant.returnUser(txtSystemUserUsername.getText());\n\t\t\n\t\tObservableList<Order> userOrder = FXCollections.observableArrayList(user.getOrders());\n\t\tObservableList<Order> orders = FXCollections.observableArrayList();\n\n\t\tfor (int i = 0; i < userOrder.size(); i++) {\n\t\t\tOrder order = userOrder.get(i);\n\n\t\t\tif (order.getUser().getUserName().equals(empleadoUsername)) {\n\t\t\t\torders.add(order);\n\t\t\t}\n\t\t}\n\n\t\ttableViewOrders.getItems().clear();\n\n\t\tcolumnOrderCode.setCellValueFactory(new PropertyValueFactory<Order, String>(\"code\"));\n\t\tcolumnOrderState.setCellValueFactory(new PropertyValueFactory<Order, State>(\"state\"));\n\t\tcolumnOrderEmployee.setCellValueFactory(new PropertyValueFactory<Order, String>(\"employeeName\"));\n\t\tcolumnOrderClient.setCellValueFactory(new PropertyValueFactory<Order, String>(\"clientName\"));\n\t\tcolumnOrderProducts.setCellValueFactory(new PropertyValueFactory<Order, String>(\"products\"));\n\t\tcolumnOrderCant.setCellValueFactory(new PropertyValueFactory<Order, String>(\"stringQuantity\"));\n\t\tcolumnOrderDate.setCellValueFactory(new PropertyValueFactory<Order, String>(\"date\"));\n\t\tcolumnOrderHour.setCellValueFactory(new PropertyValueFactory<Order, String>(\"hour\"));\n\t\tcolumnOrderObservations.setCellValueFactory(new PropertyValueFactory<Order, String>(\"observations\"));\n\t\t\n\n\t\ttableViewOrders.setItems(orders);\n\n\t\ttableViewOrders.setRowFactory(tv -> {\n\t\t\tTableRow<Order> row = new TableRow<>();\n\t\t\trow.setOnMouseClicked(event -> {\n\t\t\t\tif (event.getClickCount() == 2 && (!row.isEmpty())) {\n\t\t\t\t\tOrder order = row.getItem();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFXMLLoader updateClientFxml = new FXMLLoader(getClass().getResource(\"update-OrderState.fxml\"));\n\t\t\t\t\t\tupdateClientFxml.setController(this);\n\t\t\t\t\t\tParent root = updateClientFxml.load();\n\t\t\t\t\t\tmainPane_OptionsWindow.getChildren().setAll(root);\n\n\t\t\t\t\t\tlabelOrderCode.setText(order.getCode());\n\n\t\t\t\t\t\tObservableList<State> statesOrderUser; \n\t\t\t\t\t\tif (order.getState().equals(State.REQUESTED)) {\n\t\t\t\t\t\t\tstatesOrderUser = FXCollections.observableArrayList(State.IN_PROCESS);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else if (order.getState().equals(State.IN_PROCESS)) {\n\t\t\t\t\t\t\tstatesOrderUser = FXCollections.observableArrayList(State.SENT);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else if (order.getState().equals(State.SENT)) {\n\t\t\t\t\t\t\tstatesOrderUser = FXCollections.observableArrayList(State.DELIVERED);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tstatesOrderUser = FXCollections.observableArrayList(State.DELIVERED);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tinitializeChoiceState(statesOrderUser);\n\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn row;\n\t\t});\n\t}", "private RowData() {\n initFields();\n }", "@Override\n public void initialize(URL location, ResourceBundle resources) {\n //Initialize the tableView\n columnNames = PresentationCtrl.getInstance().getHistoryColumnNames();\n ObservableList<String[]> data = PresentationCtrl.getInstance().getHistories();\n for (int i = 0; i < 5; ++i) {\n final int index = i;\n TableColumn<String[], String> tblCol = new TableColumn<String[], String>(columnNames.get(i));\n tblCol.setCellValueFactory(cellData-> new SimpleStringProperty(cellData.getValue()[index]));\n tableView.getColumns().add(tblCol);\n }\n\n //set default behaviour while double clicks on a row\n setDoubleClickOnTable();\n tableView.setItems(data);\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n //bind table height\n month_Table.prefHeightProperty().bind(scroll_Pane.heightProperty());\n //fixed Main\n split_1_Pane_1.maxHeightProperty().bind(splitPane1.heightProperty().multiply(0.10));\n splitPane2.maxHeightProperty().bind(splitPane1.heightProperty().multiply(0.90));\n //fixed Inner\n split_2_Pane1.maxWidthProperty().bind(splitPane2.widthProperty().multiply(0.70));\n split_2_Pane_2.maxWidthProperty().bind(splitPane2.widthProperty().multiply(0.30));\n con = SqlConection.ConnectDB();\n data = FXCollections.observableArrayList();\n //settig date\n DateFormat dateFormat1 = new SimpleDateFormat(\"MM\");\n DateFormat dateFormat2 = new SimpleDateFormat(\"yyyy\");\n Calendar cal1 = Calendar.getInstance();\n month = logic.getMonth(dateFormat1.format(cal1.getTime()));\n year = dateFormat2.format(cal1.getTime());\n this.setTable();\n this.loadData(month + \"_\" + year);\n this.setChartScale(month + \"_\" + year);\n this.search();\n this.SelectCell();\n }", "public void init() {\n initComponents();\n initData();\n }", "@Override\n protected void SetCellFactories() {\n columnID.setCellValueFactory(new PropertyValueFactory<>(\"airlineID\"));\n columnName.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n columnAlias.setCellValueFactory(new PropertyValueFactory<>(\"alias\"));\n columnIATA.setCellValueFactory(new PropertyValueFactory<>(\"IATA\"));\n columnICAO.setCellValueFactory(new PropertyValueFactory<>(\"ICAO\"));\n columnCallsign.setCellValueFactory(new PropertyValueFactory<>(\"callsign\"));\n columnCountry.setCellValueFactory(new PropertyValueFactory<>(\"country\"));\n columnActive.setCellValueFactory(new PropertyValueFactory<>(\"active\"));\n }", "@Override\n\tpublic void configTable() {\n\t\tString[][] colNames = { { \"Name\", \"name\" }, { \"Ward No\", \"wardNo\" }, { \"Max. patients\", \"maxPatients\" }, { \"No of Patients\", \"patientCount\" },\n\t\t\t\t{ \"No of Employees\", \"employeeCount\" }};\n\n\t\tfor (String[] colName : colNames) {\n\t\t\tTableColumn<Ward, String> col = new TableColumn<>(colName[0]);\n\t\t\tcol.setCellValueFactory(new PropertyValueFactory<>(colName[1]));\n\t\t\ttable.getColumns().add(col);\n\t\t}\n\n\t\ttable.setItems(tableData);\n\t\t\n\t}", "@Override\n public void initialize(URL location, ResourceBundle resources) {\n article.setCellValueFactory(new PropertyValueFactory<Getnews, String>(\"description\")); //creating news article column\n actionbookmark.setCellValueFactory(new PropertyValueFactory<Getnews, Button>(\"button\")); //creating bookmark event column .\n newstable.setItems(createList());\n\n //enabling wrapping text property for table cells having news about covid 19.\n article.setCellFactory(new Callback<TableColumn<Getnews,String>, TableCell<Getnews,String>>() {\n @Override\n public TableCell<Getnews, String> call( TableColumn<Getnews, String> param) {\n final TableCell<Getnews, String> cell = new TableCell<Getnews, String>() {\n private Text text;\n @Override\n public void updateItem(String item, boolean empty) {\n super.updateItem(item, empty);\n if (!isEmpty()) {\n text = new Text(item.toString());\n text.setWrappingWidth(400); // Setting the wrapping width to the Text\n setGraphic(text);\n }\n }\n };\n return cell;\n }\n });\n }", "public void init() {\r\n\t\tsetModel(new ProductTableModel());\r\n\t}", "private void buildTable() {\n\t\tObservableList<Record> data;\r\n\t\tdata = FXCollections.observableArrayList();\r\n\r\n\t\t// get records from the database\r\n\t\tArrayList<Record> list = new ArrayList<Record>();\r\n\t\tlist = getItemsToAdd();\r\n\r\n\t\t// add records to the table\r\n\t\tfor (Record i : list) {\r\n\t\t\tSystem.out.println(\"Add row: \" + i);\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\ttableView.setItems(data);\r\n\t}", "public void initTable_Pesanan(){\n //Set cell TableView\n id_pesan.setCellValueFactory(new PropertyValueFactory<Order, String>(\"Id\"));\n jumlah_pesan.setCellValueFactory(new PropertyValueFactory<Order, String>(\"Jumlah\"));\n harga_pesan.setCellValueFactory(new PropertyValueFactory<Order, Integer>(\"Harga\"));\n catatan_pesan.setCellValueFactory(new PropertyValueFactory<Order, String>(\"Catatan\"));\n hapus_pesan.setCellValueFactory(new PropertyValueFactory<Order, Button>(\"Hapus\"));\n\n //Editable\n catatan_pesan.setCellFactory(TextFieldTableCell.forTableColumn());\n catatan_pesan.setOnEditCommit(event ->\n {\n event.getTableView().getItems().get(event.getTablePosition().getRow()).setCatatan(event.getNewValue());\n });\n tablePesanan.setEditable(true);\n //Set TableView\n tablePesanan.setItems(list_order);\n }", "void initializeView() {\n displayProjectFilter();\n displayTimeFrameFilter();\n\n setUsersIntoComboBox();\n setClientsIntoComboBox();\n setProjectsIntoComboBox();\n setDateRestrictions();\n setValidators();\n setTable();\n\n selectUser();\n selectClient();\n selectProject();\n listenDatePickerStart();\n listenDatePickerEnd();\n\n removeUserFilter();\n removeProjectFilter();\n removeTimeFrameFilter();\n clearAllFilters();\n\n // this is important for hiding user combo box and stuff\n setUpUserRules();\n\n //vBox.translateXProperty().bind((scrollPane.widthProperty().subtract(vBox.widthProperty())).divide(2));\n scrollPane.widthProperty().addListener((observable, oldValue, newValue) -> {\n if (newValue != null) {\n grid.setPrefWidth(newValue.doubleValue() - (oldValue.doubleValue() - scrollPane.getViewportBounds().getWidth()));\n }\n });\n\n //TODO: Refactor this.\n setUpBarChart();\n tbvTasks.getItems().addListener((ListChangeListener.Change<? extends TaskConcrete2> c) -> {\n setUpBarChart();\n });\n\n setToolTipsForButtons();\n changeTableSize();\n }", "private void initTable(){\n TableCellEditor nonSelEditor = new TableCellEditor() {\n @Override\n public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {\n return null;\n }\n @Override\n public Object getCellEditorValue() {return null; }\n\n @Override\n public boolean isCellEditable(EventObject anEvent) {return false;}\n\n @Override\n public boolean shouldSelectCell(EventObject anEvent) {return false;}\n\n @Override\n public boolean stopCellEditing() {return false;}\n\n @Override\n public void cancelCellEditing() {/*NOP*/}\n\n @Override\n public void addCellEditorListener(CellEditorListener l) {/*NOP*/}\n\n @Override\n public void removeCellEditorListener(CellEditorListener l) {/*NOP*/}\n };\n\n tableModelArrays = new DefaultTableModel();\n\n String[] columns = {\"N\", \"Data type\", \"Length\", \"State\",\"Kit\"};\n for(String s : columns){\n tableModelArrays.addColumn(s);\n }\n\n /*\n * Add information about have generated structures to the table model\n */\n if(dataList != null){\n for(int i = 0; i<dataList.getLength(); i++){\n tableModelArrays.addRow(new String[]{\n Integer.toString(i + 1),\n dataList.getData(i).getType(),\n Integer.toString(dataList.getData(i).getLength(0)),\n dataList.getData(i).getState()\n });\n }\n }\n\n /*\n * Create table from table model\n */\n final JTable tableArrays = new JTable(tableModelArrays);\n\n /*\n * Runs popup menu for edition notices which contain in table.\n */\n tableArrays.addMouseListener(new PopupMenu(popupMenu){\n @Override\n public void maybeShowPopup(MouseEvent e) {\n if (e.isPopupTrigger()) {\n popupMenu.show(e.getComponent(),\n e.getX(), e.getY());\n if (e.getButton() == MouseEvent.BUTTON3) {\n Point point = e.getPoint();\n int column = tableArrays.columnAtPoint(point);\n int row = tableArrays.rowAtPoint(point);\n tableArrays.setColumnSelectionInterval(column, column);\n tableArrays.setRowSelectionInterval(row, row);\n selectedRow = tableArrays.getSelectedRow();\n }\n }\n }\n });\n\n tableArrays.setRowHeight(20);\n tableArrays.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n /*\n * Changes width all the columns in the table\n */\n tableArrays.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n tableArrays.getColumnModel().getColumn(0).setPreferredWidth(23);\n tableArrays.getColumnModel().getColumn(1).setPreferredWidth(67);\n tableArrays.getColumnModel().getColumn(2).setPreferredWidth(70);\n tableArrays.getColumnModel().getColumn(3).setPreferredWidth(65);\n tableArrays.getColumnModel().getColumn(4).setPreferredWidth(27);\n\n /*\n * Each notice sets as manually no editable\n */\n for (int i = 0; i<tableArrays.getColumnCount(); i++ ){\n tableArrays.getColumnModel().getColumn(i).setCellEditor(nonSelEditor);\n }\n\n /*\n * Add scroll controls to table\n */\n JScrollPane scrollTable = new JScrollPane(tableArrays);\n scrollTable.setSize(TABLE_WIDTH,getHeight()-FIELD_HEIGHT-150);\n scrollTable.setLocation(getWidth()-scrollTable.getWidth()-15, FIELD_HEIGHT+60);\n\n /*\n * Add table to frame\n */\n add(scrollTable);\n\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // tableViewBook.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);\n initCol();\n dbHandler = DatabaseHandler.getInstance();\n localData();\n\n }", "public void initializeTable(){\r\n\t \r\n\t // Adding a button to tableView\r\n\t /*\r\n\t TableColumn actionCol = new TableColumn( \"Action\" );\r\n actionCol.setCellValueFactory( new PropertyValueFactory<>( \"DUMMY\" ) );\r\n\r\n Callback<TableColumn<WorkflowEntry, String>, TableCell<WorkflowEntry, String>> cellFactory = //\r\n new Callback<TableColumn<WorkflowEntry, String>, TableCell<WorkflowEntry, String>>()\r\n {\r\n public TableCell<WorkflowEntry, String> call( final TableColumn<WorkflowEntry, String> param )\r\n {\r\n final TableCell<WorkflowEntry, String> cell = new TableCell<WorkflowEntry, String>()\r\n {\r\n\r\n final Button btn = new Button( \"Approve\" );\r\n\r\n @Override\r\n public void updateItem( String item, boolean empty )\r\n {\r\n super.updateItem( item, empty );\r\n if ( empty )\r\n {\r\n setGraphic( null );\r\n setText( null );\r\n }\r\n else\r\n {\r\n btn.setOnAction( ( ActionEvent event ) ->\r\n {\r\n WorkflowEntry person = getTableView().getItems().get( getIndex() );\r\n System.out.println( person.getName() );\r\n } );\r\n setGraphic( btn );\r\n setText( null );\r\n }\r\n }\r\n };\r\n return cell;\r\n }\r\n };\r\n\r\n actionCol.setCellFactory( cellFactory );*/\r\n\t\t\r\n\t\ttableView.setItems(data);\r\n\t}", "private void initDatas(){\r\n \t\r\n \tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(discountService.getAllDiscountInfo(),\"Discount\"));\r\n }", "private void setTableModelData() {\r\n\t\t//Spin through the list and add the individual country fields.\r\n\t\tVector<String> fields;\r\n\t\tfor (Country c : countryList) {\r\n\t\t\tfields = new Vector<String>();\r\n\t\t\tfields.add(c.getName());\r\n\t\t\tfields.add(c.getCapital());\r\n\t\t\tfields.add(c.getFoundation().toString());\r\n\t\t\tfields.add(c.getContinent());\r\n\t\t\tfields.add(String.valueOf(c.getPopulation()));\r\n\t\t\tcountryData.add(fields);\r\n\t\t}\r\n\t}", "public void getTableData() {\n MSApptIDCol.setCellValueFactory(new PropertyValueFactory<Appointment, Integer>(\"appointmentID\"));\n MSCustIDCol.setCellValueFactory(new PropertyValueFactory<Appointment, Integer>(\"customerID\"));\n MSTitleCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"appointmentTitle\"));\n MSDescriptionCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"description\"));\n MSContactCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"contactName\"));\n MSLocationCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"location\"));\n MSTypeCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"appointmentType\"));\n MSStartTimeCol.setCellValueFactory(new PropertyValueFactory<Appointment, LocalDateTime>(\"appointmentStart\"));\n MSEndTimeCol.setCellValueFactory(new PropertyValueFactory<Appointment, LocalDateTime>(\"appointmentEnd\"));\n }", "@Override\r\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\ttbColumnNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\r\n\t\ttbColumnCPF.setCellValueFactory(new PropertyValueFactory<>(\"cpf\"));\r\n\t\ttbColumnIdade.setCellValueFactory(new PropertyValueFactory<>(\"idade\"));\r\n\t\ttbColumnTipoSanguineo.setCellValueFactory(new PropertyValueFactory<>(\"tipoSanguineo\"));\r\n\t\ttbColumnSexo.setCellValueFactory(new PropertyValueFactory<>(\"sexo\"));\r\n\t\ttbColumnStatusPessoa.setCellValueFactory(new PropertyValueFactory<>(\"statusDaPessoa\"));\r\n\t\ttbColumnLogin.setCellValueFactory(new PropertyValueFactory<>(\"login\"));\r\n\t\ttbColumnSenha.setCellValueFactory(new PropertyValueFactory<>(\"senha\"));\r\n\t\ttbColumnStatusDeUsuario.setCellValueFactory(new PropertyValueFactory<>(\"statusDeUsuario\"));\r\n\t\ttbColumnNumeroDeRegistro.setCellValueFactory(new PropertyValueFactory<>(\"numeroderegistro\"));\r\n\t\tEnfermeiroDAO eDAO = new EnfermeiroDAO();\r\n\t\tList<Enfermeiro> enfermeiro = eDAO.select();\r\n\t\tObservableList<Enfermeiro> obsm = FXCollections.observableArrayList(enfermeiro);\r\n\t\tlistaEnfermeiro.setItems(obsm);\r\n\t}", "@Override\n public void initialize(URL location, ResourceBundle resources) {\n String searchId = Controller.rId;\n char ch1 = searchId.charAt(0);\n\n\n String sql = \"select * from notifications where rolenum = \" + ch1 + \"\";\n\n try {\n Connection conn = DBConnector.getConnection();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql);\n System.out.println(\"connection succesfull\");\n\n while (rs.next()) {\n System.out.println(\"trying2\");\n oblist.add(new NotificationTable(\n rs.getString(\"nsubj\"),\n rs.getDate(\"ndate\")));\n }\n\n rs.close();\n stmt.close();\n conn.close();\n System.out.println(\"connection closed\");\n\n\n col_nsubj.setCellValueFactory(new PropertyValueFactory<>(\"nsubj\"));\n col_ndate.setCellValueFactory(new PropertyValueFactory<>(\"ndate\"));\n table.setItems(oblist);\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n cidRuta.setCellValueFactory(new PropertyValueFactory<>(\"idRuta\"));\n cZona.setCellValueFactory(new PropertyValueFactory<>(\"zona\"));\n cNombre.setCellValueFactory(new PropertyValueFactory<>(\"nombreRepartidor\"));\n cApellido.setCellValueFactory(new PropertyValueFactory<>(\"apellidoRepartidor\"));\n \n cIdEntrega.setCellValueFactory(new PropertyValueFactory<>(\"idEntrega\"));\n cFecha.setCellValueFactory(new PropertyValueFactory<>(\"fecha\"));\n cDireccion.setCellValueFactory(new PropertyValueFactory<>(\"direccion\"));\n cEstado.setCellValueFactory(new PropertyValueFactory<>(\"estado\"));\n cIdRutaE.setCellValueFactory(new PropertyValueFactory<>(\"idRuta\"));\n \n llenarTableRuta();\n llenarTableRutaEntrega();\n }", "private void initialize() {\r\n\t\tsetLayout(new BorderLayout());\r\n\t\tadd(createInfoTable(), BorderLayout.CENTER);\r\n\r\n\t\t// load the data\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tEnumeration names = props.propertyNames();\r\n\t\t\twhile (names.hasMoreElements()) {\r\n\t\t\t\tString name = (String) names.nextElement();\r\n\t\t\t\tString value = props.getProperty(name);\r\n\t\t\t\tObject[] row = new Object[2];\r\n\t\t\t\trow[0] = name;\r\n\t\t\t\trow[1] = value;\r\n\t\t\t\tm_model.addRow(row);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n //esse passo ensina como as colunas devem receber os atributos do objeto cargo\n //A propriedade nome deve coincidir com o nome do atributo da classe cargo\n// colNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n// colDescricao.setCellValueFactory(new PropertyValueFactory<>(\"descricao\"));\n// \n// colStatus.setVisible(false);\n Field[] f = Cargo.class.getDeclaredFields();\n\n for (int i = 0; i < f.length; i++) {\n if (f[i].getName().contains(\"pk_Cargo\")) {\n continue;\n }\n TableColumn<Cargo, String> t = new TableColumn<>(f[i].getName());\n t.setCellValueFactory(new PropertyValueFactory<>(f[i].getName()));\n tvCargo.getColumns().add(t);\n }\n\n tvCargo.setItems(FXCollections.observableArrayList(CargosDAO.retreaveAll()));\n }", "@FXML\n\tpublic void initialize() {\n\t\t// Fill the knowledge level selector\n\t\tknowledgeLevelSelector.getItems().setAll(KnowledgeLevel.BEGINNER,\n\t\t\t\tKnowledgeLevel.INTERMEDIATE, KnowledgeLevel.EXPERT);\n\t\tknowledgeLevelSelector.getSelectionModel().selectFirst();\n\t\tstartButtonBox.setBackground(new Background(new BackgroundImage(\n\t\t\t\tlearning, BackgroundRepeat.SPACE, BackgroundRepeat.SPACE, null, null)));\n\t\t// Create table (search table) columns\n\t\tfor (int i = 0; i < columnTitles.length; i++) {\n\t\t\t// Create table column\n\t\t\tTableColumn<Map, String> column = new TableColumn<>(columnTitles[i]);\n\t\t\t// Set map factory\n\t\t\tcolumn.setCellValueFactory(new MapValueFactory(columnTitles[i]));\n\t\t\t// Set width of table column\n\t\t\tcolumn.prefWidthProperty().bind(table.widthProperty().divide(columnTitles.length));\n\t\t\t// Add column to the table\n\t\t\ttable.getColumns().add(column);\n\t\t}\n\t}", "public TableViewFactory() {\n }", "public void init(){\n obsSongs = FXCollections.observableArrayList(bllfacade.getAllSongs());\n obsPlaylists = FXCollections.observableArrayList(bllfacade.getAllPlaylists());\n \n \n ClTitle.setCellValueFactory(new PropertyValueFactory<>(\"title\"));\n ClArtist.setCellValueFactory(new PropertyValueFactory<>(\"artist\"));\n ClCategory.setCellValueFactory(new PropertyValueFactory<>(\"genre\"));\n ClTime.setCellValueFactory(new PropertyValueFactory<>(\"time\"));\n lstSongs.setItems(obsSongs); \n \n ClName.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n ClSongs.setCellValueFactory(new PropertyValueFactory<>(\"totalSongs\"));\n ClPTime.setCellValueFactory(new PropertyValueFactory<>(\"totalTime\"));\n lstPlaylists.setItems(obsPlaylists);\n }" ]
[ "0.7111802", "0.70058554", "0.69885206", "0.6970588", "0.69088537", "0.6881676", "0.6839819", "0.68344826", "0.6776733", "0.6765934", "0.67509454", "0.67501986", "0.67479736", "0.67366916", "0.6730179", "0.6705906", "0.6672188", "0.66563255", "0.6633783", "0.66209066", "0.6601583", "0.658801", "0.6562195", "0.65573764", "0.6555163", "0.6549846", "0.65490484", "0.6545856", "0.65387285", "0.6538617", "0.6535134", "0.6526732", "0.65258706", "0.6523287", "0.6522152", "0.65073264", "0.65031826", "0.6501091", "0.6500808", "0.6495509", "0.64825064", "0.6466102", "0.6465755", "0.644614", "0.6434734", "0.6407592", "0.6392156", "0.63868535", "0.63852924", "0.6354519", "0.63436174", "0.6328576", "0.6321645", "0.63169163", "0.63146746", "0.6313759", "0.63075787", "0.6305592", "0.6303003", "0.6301003", "0.62964237", "0.62906164", "0.6278843", "0.62775815", "0.6267128", "0.62668556", "0.6258181", "0.6233", "0.6223155", "0.62197995", "0.62188405", "0.62134254", "0.62117565", "0.62053734", "0.6194904", "0.61919165", "0.61913943", "0.61901957", "0.61874896", "0.61614877", "0.61569184", "0.61539984", "0.61529773", "0.61515015", "0.61490875", "0.614479", "0.61407995", "0.6139157", "0.61317027", "0.612433", "0.61219925", "0.6120247", "0.6111473", "0.6109516", "0.610277", "0.608712", "0.6084525", "0.60752964", "0.60731304", "0.6070377" ]
0.677453
9
Uses the first SearchBar (searchBar0) to check the partTableView for Part IDs and or Part Names. Initially checks to make sure the searchbar isn't empty, otherwise it displays all Parts. Otherwise, the method uses Regex to check for numbers that match the Part ID, it accomplishes this with the help of lookupPart from the Inventory Class. If a string is being inputted instead, it uses the other lookupPart method from Inventory, and this one finds Parts that contain the String that is being inputted into the TextField. This method runs on key lift and activation of the searchBar0 TextField.
public void searchParts() { if(!searchBar0.getText().equals("")) { if(searchBar0.getText().matches("[0-9]*")) { int number = Integer.parseInt(searchBar0.getText()); ObservableList<Part> newPartList = FXCollections.observableArrayList(); Part part = Inventory.lookupPart(number); newPartList.add(part); partTableView.setItems(newPartList); if(newPartList.contains(null)) { alert.setAlertType(Alert.AlertType.ERROR); alert.setContentText("No Part with that Name or ID found."); alert.show(); } } else { ObservableList<Part> newPartList = FXCollections.observableArrayList(); newPartList = Inventory.lookupPart(searchBar0.getText()); partTableView.setItems(newPartList); if(newPartList.isEmpty()) { alert.setAlertType(Alert.AlertType.ERROR); alert.setContentText("No Part with that Name or ID found."); alert.show(); } } } else { partTableView.setItems(Inventory.getAllParts()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleSearchParts()\n {\n int searchPartID;\n Part searchedPart;\n ObservableList<Part> searchedParts;\n if (!partSearchTextField.getText().isEmpty())\n {\n // Clear selection from table\n partTable.getSelectionModel().clearSelection();\n\n try {\n // First try to search for part ID\n searchPartID = Integer.parseInt(partSearchTextField.getText());\n searchedPart = this.inventory.lookupPart(searchPartID);\n if (searchedPart != null)\n partTable.getSelectionModel().select(searchedPart);\n else // if ID parsed and not found\n throw new Exception(\"Item not found\");\n\n } catch (Exception e) {\n // If ID cannot be parsed, try to search by name\n searchedParts = this.inventory.lookupPart(partSearchTextField.getText());\n if (searchedParts != null && searchedParts.size() > 0)\n {\n // If part search yields results\n searchedParts.forEach((part -> {\n partTable.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n partTable.getSelectionModel().select(part);\n }));\n }\n else\n {\n // Alert user that no part was found\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"No part was found!\");\n alert.setHeaderText(\"No part was found!\");\n alert.setContentText(\"Your search returned no results.\\n\" +\n \"Please enter the part ID or part name and try again.\");\n alert.show();\n }\n }\n }\n else\n {\n partTable.getSelectionModel().clearSelection();\n }\n }", "@FXML\r\n public void lookupPart() {\r\n \r\n String text = partSearchTxt.getText().trim();\r\n if (text.isEmpty()) {\r\n //No text was entered. Displaying all existing parts from inventory, if available\r\n displayMessage(\"No text entered. Displaying existing parts, if available\");\r\n updatePartsTable(stock.getAllParts());\r\n }\r\n else{\r\n ObservableList<Part> result = stock.lookupPart(text);\r\n if (!result.isEmpty()) {\r\n //Part foung in inventory. Displaying information available. \r\n updatePartsTable(result);\r\n }\r\n else {\r\n //Part not found in inventory. Displaying all existing parts from inventory, if available\r\n displayMessage(\"Part not found. Displaying existing parts, if available\");\r\n updatePartsTable(stock.getAllParts());\r\n }\r\n }\r\n \r\n }", "@FXML\n void RefresheSearchPart(KeyEvent event) {\n\n if (partSearchText.getText().isEmpty()) {\n partTableView.setItems(Inventory.getAllParts());\n }\n }", "@FXML\n void searchBtnClick(ActionEvent event) {\n String searchTerm = searchField.getText();\n partList.getItems().clear();\n partHashMap.clear();\n\n // If the search term inputted by the user is empty, the system refreshes the list with every value available.\n if(searchTerm.isEmpty()) {\n refreshList();\n }\n\n // Otherwise, it only adds the parts that contain the currently inputted value as either their ID, stock level or\n // name to the list of available parts.\n else {\n PartDAO partDAO = new PartDAO();\n for(Part p: partDAO.getAll()) {\n if((p.getPartID().contains(searchTerm) || p.getName().contains(searchTerm) || String.valueOf(p.getStockLevel()).contains(searchTerm))\n && p.getStockLevel() > 0) {\n Label partLabel = new Label(\"ID: \" + p.getPartID() + \" / Name: \" + p.getName() + \" / Stock: \" + p.getStockLevel());\n partHashMap.put(partLabel.getText(), p);\n partList.getItems().add(partLabel);\n }\n }\n }\n }", "@FXML void onActionPPartSearch(ActionEvent event) throws IOException{\n String searchStr = pPartSearchField.getText();\n ObservableList<Part> searchedParts = Inventory.lookupPart(searchStr);\n\n if (searchedParts.isEmpty()) {\n try {\n int id = Integer.parseInt(searchStr);\n Part returnedPart = Inventory.lookupPart(id);\n if (returnedPart != null){\n searchedParts.add(returnedPart);\n }\n } catch (NumberFormatException e) {\n }\n }\n\n partTableView.setItems(searchedParts);\n }", "@FXML\n void partSearchButton(ActionEvent event) {\n\n ObservableList<Part> allParts = Inventory.getAllParts();\n ObservableList<Part> partsFound = FXCollections.observableArrayList();\n String searchString = partSearchText.getText();\n\n allParts.stream().filter((part) -> (String.valueOf(part.getId()).contains(searchString) ||\n part.getName().contains(searchString))).forEachOrdered((part) -> {\n partsFound.add(part);\n });\n\n partTableView.setItems(partsFound);\n\n if (partsFound.isEmpty()) {\n AlartMessage.displayAlertAdd(1);\n }\n }", "@FXML\r\n public void onActionSearchParts(ActionEvent actionEvent) {\r\n String search = searchParts.getText();\r\n\r\n ObservableList<Part> searched = Inventory.lookupPart(search);\r\n\r\n if (searched.size() == 0) {\r\n Alert alert1 = new Alert(Alert.AlertType.ERROR);\r\n alert1.setTitle(\"Error Message\");\r\n alert1.setContentText(\"Part name not found. If a number is entered in the search box, an id search will occur\");\r\n alert1.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\r\n alert1.showAndWait();\r\n try {\r\n int id = Integer.parseInt(search);\r\n Part part1 = Inventory.lookupPart(id);\r\n if (part1 != null) {\r\n searched.add(part1);\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setTitle(\"Error Message\");\r\n alert2.setContentText(\"Part name and id not found.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (NumberFormatException e) {\r\n //ignore\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }\r\n partsTableView.setItems(searched);\r\n }", "public void partSearchFieldTrigger(ActionEvent actionEvent) {\n String searchInput = partSearchField.getText();\n\n ObservableList<Part> foundParts = lookUpPart(searchInput);\n partsTableView.setItems(foundParts);\n\n //shows alert message if searchInput produced 0 results.\n if (partsTableView.getItems().size() == 0) {\n Utility.searchProducedNoResults(searchInput);\n }\n partSearchField.setText(\"\");\n\n }", "public void associatePartSearchFieldTrigger(ActionEvent actionEvent) {\n String searchInput = associatedPartSearchField.getText();\n\n ObservableList<Part> foundParts = lookUpPart(searchInput);\n associatedPartsTableView.setItems(foundParts);\n\n //shows alert message if searchInput produced 0 results.\n if (associatedPartsTableView.getItems().size() == 0) {\n Utility.searchProducedNoResults(searchInput);\n }\n associatedPartSearchField.setText(\"\");\n\n }", "@FXML\n\tprivate void searchButtonAction(ActionEvent clickEvent) {\n\t\t\n\t\tString searchParameter = partsSearchTextField.getText().trim();\n\t\tScanner scanner = new Scanner(searchParameter);\n\t\t\n\t\tif (scanner.hasNextInt()) {\n\t\t\t\n\t\t\tPart part = Inventory.lookupPart(Integer.parseInt(searchParameter));\n\t\t\t\n\t\t\tif (part != null) {\n\t\t\t\t\n\t\t\t\tpartSearchProductTable.setItems(\n\t\t\t\t\tInventory.lookupPart(part.getName().trim().toLowerCase()));\n\t\t\t}\n\t\t} else {\n\t\t\t\n\t\t\tpartSearchProductTable.setItems(\n\t\t\t\t\tInventory.lookupPart(searchParameter.trim().toLowerCase()));\n\t\t}\n\t}", "@FXML\r\n private void searchTxtAction(ActionEvent event) throws IOException {\r\n \r\n if (event.getSource() == partSearchTxt) {\r\n lookupPart();\r\n }\r\n else {\r\n if (event.getSource() == productSearchTxt) {\r\n lookupProduct();\r\n }\r\n }\r\n }", "@FXML\r\n private void search(){\n \r\n String s = tfSearch.getText().trim(); \r\n String type = cmbType.getSelectionModel().getSelectedItem();\r\n String col = cmbFilterBy.getSelectionModel().getSelectedItem();\r\n \r\n /**\r\n * Column Filters\r\n * \r\n */\r\n \r\n \r\n if(!s.isEmpty()){\r\n if(!chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%' AND status<>'active'\", tblTrainingList);\r\n }\r\n\r\n if(chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%'\", tblTrainingList);\r\n } \r\n } \r\n }", "public void searchProducts()\n {\n if(!searchBar1.getText().equals(\"\"))\n {\n if(searchBar1.getText().matches(\"[0-9]*\"))\n {\n int number = Integer.parseInt(searchBar1.getText());\n ObservableList<Product> newProductList = FXCollections.observableArrayList();\n Product product = Inventory.lookupProduct(number);\n newProductList.add(product);\n productTableView.setItems(newProductList);\n if(newProductList.contains(null)) {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"No Product with that Name or ID found.\");\n alert.show();\n }\n } else {\n ObservableList<Product> newProductList = FXCollections.observableArrayList();\n newProductList = Inventory.lookupProduct(searchBar1.getText());\n productTableView.setItems(newProductList);\n if(newProductList.isEmpty()) {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"No Product with that Name or ID found.\");\n alert.show();\n }\n }\n } else {\n productTableView.setItems(Inventory.getAllProducts());\n }\n }", "@FXML\r\n public void lookupProduct() {\r\n \r\n String text = productSearchTxt.getText().trim();\r\n if (text.isEmpty()) {\r\n //No text was entered. Displaying all existing products from inventory, if available\r\n displayMessage(\"No text entered. Displaying existing products, if available\");\r\n updateProductsTable(stock.getAllProducts());\r\n }\r\n else{\r\n ObservableList<Product> result = stock.lookupProduct(text);\r\n if (!result.isEmpty()) {\r\n //Product found in inventory. Displaying information available. \r\n updateProductsTable(result);\r\n }\r\n else {\r\n //Product not found in inventory. Displaying all existing products from inventory, if available\r\n displayMessage(\"Product not found. Displaying existing products, if available\");\r\n updateProductsTable(stock.getAllProducts());\r\n }\r\n }\r\n }", "@FXML\n void modifyProductSearchOnAction(ActionEvent event) {\n if (modifyProductSearchField.getText().matches(\"[0-9]+\")) {\n modProdAddTable.getSelectionModel().select(Inventory.partIndex(Integer.valueOf(modifyProductSearchField.getText())));\n } else {\n modProdAddTable.getSelectionModel().select(Inventory.partName(modifyProductSearchField.getText()));\n }\n //modProdAddTable.getSelectionModel().select(Inventory.partIndex(Integer.valueOf(modifyProductSearchField.getText())));\n }", "public void handleSearchProducts()\n {\n int searchProductID;\n Product searchedProduct;\n ObservableList<Product> searchedProducts;\n if (!productSearchTextField.getText().isEmpty())\n {\n // Clear selection from table\n productTable.getSelectionModel().clearSelection();\n\n try {\n // First try to search for part ID\n searchProductID = Integer.parseInt(productSearchTextField.getText());\n searchedProduct = this.inventory.lookupProduct(searchProductID);\n if (searchedProduct != null)\n productTable.getSelectionModel().select(searchedProduct);\n else // if ID parsed and not found\n throw new Exception(\"Item not found\");\n\n } catch (Exception e) {\n // If ID cannot be parsed, try to search by name\n searchedProducts = this.inventory.lookupProduct(productSearchTextField.getText());\n\n if (searchedProducts != null && searchedProducts.size() > 0)\n {\n // If product search yields results\n searchedProducts.forEach((product -> {\n productTable.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n productTable.getSelectionModel().select(product);\n }));\n }\n else\n { // If no products found alert user\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"No product was found!\");\n alert.setHeaderText(\"No product was found!\");\n alert.setContentText(\"Your search returned no results.\\n\" +\n \"Please enter the product ID or part name and try again.\");\n alert.show();\n }\n }\n }\n else\n {\n productTable.getSelectionModel().clearSelection();\n }\n }", "private void performSearch() {\n String text = txtSearch.getText();\n String haystack = field.getText();\n \n // Is this case sensitive?\n if (!chkMatchCase.isSelected()) {\n text = text.toLowerCase();\n haystack = haystack.toLowerCase();\n }\n \n // Check if it is a new string that the user is searching for.\n if (!text.equals(needle)) {\n needle = text;\n curr_index = 0;\n }\n \n // Grab the list of places where we found it.\n populateFoundList(haystack);\n \n // Nothing was found.\n if (found.isEmpty()) {\n Debug.println(\"FINDING\", \"No occurrences of \" + needle + \" found.\");\n JOptionPane.showMessageDialog(null, \"No occurrences of \" + needle + \" found.\",\n \"Nothing found\", JOptionPane.INFORMATION_MESSAGE);\n \n return;\n }\n \n // Loop back the indexes if we have reached the end.\n if (curr_index == found.size()) {\n curr_index = 0;\n }\n \n // Go through the findings one at a time.\n int indexes[] = found.get(curr_index);\n field.select(indexes[0], indexes[1]);\n curr_index++;\n }", "private void searchQuery() {\n edit_search.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n if (paletteComposition.getVisibility() == View.VISIBLE){\n paletteComposition.setVisibility(View.GONE);\n setComposer.setVisibility(View.VISIBLE);\n }\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n setContactThatNameContains(s.toString().trim());\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n }", "private void getSearchButtonSemantics() {\n //TODO implement method\n searchView.getResultsTextArea().setText(\"\");\n if (searchView.getFieldComboBox().getSelectedItem() == null) {\n JOptionPane.showMessageDialog(new JFrame(), \"Please select a field!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getFieldComboBox().requestFocus();\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"SKU\")) {\n Optional<Product> skuoptional = inventoryModel.searchBySku(searchView.getSearchValueTextField().getText());\n if (skuoptional.isPresent()) {//check if there is an inventory with that SKU\n searchView.getResultsTextArea().append(skuoptional.get().toString());\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified SKU was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Name\")) {\n List<Product> name = inventoryModel.searchByName(searchView.getSearchValueTextField().getText());\n if (!name.isEmpty()) {\n for (Product nameproduct : name) {\n searchView.getResultsTextArea().append(nameproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified name was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Wholesale price\")) {\n try {\n List<Product> wholesaleprice = inventoryModel.searchByWholesalePrice(Double.parseDouble(searchView.getSearchValueTextField().getText()));\n if (!wholesaleprice.isEmpty()) {//check if there is an inventory by that wholesale price\n for (Product wholesalepriceproduct : wholesaleprice) {\n searchView.getResultsTextArea().append(wholesalepriceproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified wholesale price was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified wholesale price is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Retail price\")) {\n try {\n List<Product> retailprice = inventoryModel.searchByRetailPrice(Double.parseDouble(searchView.getSearchValueTextField().getText()));\n if (!retailprice.isEmpty()) {\n for (Product retailpriceproduct : retailprice) {\n searchView.getResultsTextArea().append(retailpriceproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified retail price was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified retail price is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Quantity\")) {\n try {\n List<Product> quantity = inventoryModel.searchByQuantity(Integer.parseInt(searchView.getSearchValueTextField().getText()));\n if (!quantity.isEmpty()) {\n for (Product quantityproduct : quantity) {\n searchView.getResultsTextArea().append(quantityproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified quantity was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified quantity is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n }\n }", "public void searchFunction1() {\n textField_Search.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n tableView_recylce.setPredicate(new Predicate<TreeItem<EntryProperty>>() {\n @Override\n public boolean test(TreeItem<EntryProperty> entryTreeItem) {\n Boolean flag = entryTreeItem.getValue().titleProperty().getValue().toLowerCase().contains(newValue.toLowerCase()) ||\n entryTreeItem.getValue().usernameProperty().getValue().toLowerCase().contains(newValue.toLowerCase());\n return flag;\n }\n });\n }\n });\n }", "@FXML\r\n private void searchBtnAction(ActionEvent event) throws IOException {\r\n \r\n if (event.getSource() == partSearchBtn) {\r\n lookupPart();\r\n }\r\n else {\r\n if (event.getSource() == productSearchBtn) {\r\n lookupProduct();\r\n }\r\n }\r\n \r\n }", "@FXML\n void searchForLocation(KeyEvent event) {\n\n if (event.getCode().equals(KeyCode.ENTER)) // if the Enter key is pressed\n {\n\n String key = locationName.getText();\n List<String> locationsInDataBase = new LinkedList<>();\n CrawlifyController.masterList = new PubList(key);\n\n try {\n locationsInDataBase =\n PubList.getLocations(\"http://users.aber.ac.uk/mop14/Group2/locations.php\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n if (!locationsInDataBase.isEmpty()) {\n for (String location : locationsInDataBase) {\n if (location.equalsIgnoreCase(key)) {\n generateAlert(\"\\\"\" + key + \"\\\"\" + \" is already a location name within the database.\" +\n \"Opening the list.\",\n Alert.AlertType.INFORMATION, ButtonType.CLOSE);\n key = location;\n CrawlifyController.masterList = new PubList(key);\n CrawlifyController.masterList.loadJson(\"http://users.aber.ac.uk/mop14/Group2/download.php\");\n break;\n }\n }\n }\n\n Stage stageThatTextFieldBelongs =\n (Stage) locationName.getScene().getWindow();\n\n try {\n FXMLLoader loader =\n new FXMLLoader(getClass().getResource(\"resources/fxml_files/newPub.fxml\"));\n\n Parent parent = loader.load();\n NewPubController nextController =\n loader.getController();\n nextController.setKey(key);\n nextController.setMasterList(getMasterList());\n Scene prev = locationName.getScene();\n nextController.setPreviousScreen(prev);\n stageThatTextFieldBelongs.setScene(new Scene(parent, getNormalHeight(), getNormalWidth()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }\n }", "@FXML\r\n\tvoid search_btn_clicked(MouseEvent event) {\r\n\t\tObservableList<SalePattern> found_sales = FXCollections.observableArrayList();\r\n\t\ttry {\r\n\t\t\tif (!search_txt.getText().isEmpty()) {\r\n\t\t\t\tfor (SalePattern sale : sale_patterns_list) {\r\n\t\t\t\t\tInteger search = new Integer(search_txt.getText());\r\n\t\t\t\t\tif (search <= 0) {\r\n\t\t\t\t\t\tthrow new Exception();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (sale.getGasStationTag().toString().startsWith(search.toString())) {\r\n\t\t\t\t\t\tfound_sales.add(sale);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsales_table.setItems(FXCollections.observableArrayList());\r\n\t\t\t\tif (found_sales != null) {\r\n\t\t\t\t\tsales_table.getItems().addAll(found_sales);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsales_table.setItems(sale_patterns_list);\r\n\t\t\t}\r\n\t\t\tsearch_txt.setStyle(null);\r\n\t\t} catch (Exception e) {\r\n\t\t\tsearch_txt.setStyle(\"-fx-text-box-border: #FF0000; -fx-focus-color: #FF0000;\");\r\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\talert.setTitle(\"Invalid input\");\r\n\t\t\talert.setHeaderText(null);\r\n\t\t\talert.setContentText(\"Input entered is not valid please try again\");\r\n\t\t\talert.show();\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "public void searchFunction() {\n textField_Search.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n tableView.setPredicate(new Predicate<TreeItem<EntryProperty>>() {\n @Override\n public boolean test(TreeItem<EntryProperty> entryTreeItem) {\n Boolean flag = entryTreeItem.getValue().titleProperty().getValue().toLowerCase().contains(newValue.toLowerCase()) ||\n entryTreeItem.getValue().usernameProperty().getValue().toLowerCase().contains(newValue.toLowerCase());\n return flag;\n }\n });\n }\n });\n }", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "private void processSearchButton() {\n try {\n //Stop a user from searching before a World exists to search\n if(this.world == null) {\n JOptionPane.showMessageDialog(null, \"You must read a data file first!\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n //Declarations\n StringBuilder searchResults;\n String searchCriteria;\n String unfoundItem;\n int dropDownSelection;\n\n //initialize\n searchResults = new StringBuilder();\n searchCriteria = this.searchCriteriaField.getText().trim().toLowerCase();\n unfoundItem = this.searchCriteriaField.getText().trim().toLowerCase();\n dropDownSelection = this.searchCriteriaBox.getSelectedIndex();\n\n //Stop users from searching before selecting and entering any search criteria\n if(searchCriteria.equals(\"\") || searchCriteriaBox.equals(0)) {\n JOptionPane.showMessageDialog(null, \"You must SELECT and ENTER the search criteria before searching!\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n //handle each dropdown selection\n switch(dropDownSelection) {\n case 0: //empty string to allow a blank default\n break;\n case 1: //by name\n for(Thing myThing : this.world.getAllThings()) {\n if (myThing.getName().toLowerCase().equals(searchCriteria)) {\n searchResults = new StringBuilder(myThing.getName() + \" \" + myThing.getIndex() + \" (\" + myThing.getClass().getSimpleName() + \")\");\n }\n } //end of forLoop for case 1\n if(searchResults.toString().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Search criteria '\" + unfoundItem + \"' does not exist in this World.\", \"Unknown Item\", JOptionPane.WARNING_MESSAGE);\n } else {\n JOptionPane.showMessageDialog(null, searchResults.toString());\n }\n break;\n case 2: //by index\n for(Thing myThing : this.world.getAllThings()) {\n if (myThing.getIndex() == Integer.parseInt(searchCriteria)) {\n searchResults = new StringBuilder(myThing.getName() + \" \" + myThing.getIndex() + \" (\" + myThing.getClass().getSimpleName() + \")\");\n }\n } //end of forLoop for case 2\n if(searchResults.toString().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Search criteria '\" + unfoundItem + \"' does not exist in this World.\", \"Unknown Item\", JOptionPane.WARNING_MESSAGE);\n } else {\n JOptionPane.showMessageDialog(null, searchResults.toString());\n }\n break;\n case 3: //by skill\n for(SeaPort mySeaPort : this.world.getPorts()) {\n for(Person myPerson : mySeaPort.getPersons()) {\n if(myPerson.getSkill().toLowerCase().equals(searchCriteria)) {\n searchResults.append(myPerson.getName()).append(\" \").append(myPerson.getIndex()).append(\" (\").append(myPerson.getClass().getSimpleName()).append(\")\\n Skill: \").append(myPerson.getSkill()).append(\"\\n\\n\");\n }\n }\n } //end of forLoop for case 3\n if(searchResults.toString().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Search criteria '\" + unfoundItem + \"' does not exist in this World.\", \"Unknown Item\", JOptionPane.WARNING_MESSAGE);\n } else {\n JOptionPane.showMessageDialog(null, searchResults.toString());\n }\n break;\n default: break;\n } //end of switch()\n } catch(Exception e5) {\n JOptionPane.showMessageDialog(null, \"Something went wrong in the search!\\n\\n\" + e5.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n } //end of catch()\n }", "@FXML\r\n\t ArrayList<String> handleSearch(ActionEvent event) throws Exception {\r\n\t \t//check for fields being filled in \r\n\t \tname = placeName.getText();\r\n\t \tcity = City.getText(); \t\r\n\r\n\t \t// both fields are filled, checking for special characters\r\n\t\t\tif (!psearch.isValidInput(name)) {\r\n\t\t\t\tSystem.out.println(\"Please enter valid entries only consisting of letters!\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\telse if (!psearch.isValidInput_City(city)) {\r\n\t\t\t\tSystem.out.println(\"Please enter a city name consisting of only letters!\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\t\t\t\t//System.out.println(\"this is name \" + name + \" \" + city);\r\n\t\t\t\treturn initialize();\r\n\t\t\t}\r\n\t }", "protected void lookForNumber(String searchString) {\n\t\tif(rdbtnExactMatch.isSelected()) {\r\n\t\t\tfor(int i = 0; i < phoneList.length; i++)\r\n\t\t\t\tif(chckbxIgnoreCase.isSelected()) {\r\n\t\t\t\t\tif(phoneList[i][0].toLowerCase().equals(searchString.toLowerCase()))\r\n\t\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\t\r\n\t\t\t\t}\r\n\t\t\t\telse if(phoneList[i][0].equals(searchString))\r\n\t\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\t\r\n\t\t}\r\n\t\t\r\n\t\t// Look for a name starting with searchString\r\n\t\telse if(rdbtnStartsWith.isSelected()) {\r\n\t\t\tfor(int i = 0; i < phoneList.length; i++)\r\n\t\t\t\tif(chckbxIgnoreCase.isSelected()) {\r\n\t\t\t\t\tif(phoneList[i][0].toLowerCase().startsWith(searchString.toLowerCase())) {\r\n\t\t\t\t\t\ttxtName.setText(phoneList[i][0]);\r\n\t\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if(phoneList[i][0].startsWith(searchString)) {\r\n\t\t\t\t\ttxtName.setText(phoneList[i][0]);\r\n\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Look for a name ending with searchString\r\n\t\telse {\r\n\t\t\tfor(int i = 0; i < phoneList.length; i++)\r\n\t\t\t\tif(chckbxIgnoreCase.isSelected()) {\r\n\t\t\t\t\tif(phoneList[i][0].toLowerCase().endsWith(searchString.toLowerCase())) {\r\n\t\t\t\t\t\ttxtName.setText(phoneList[i][0]);\r\n\t\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if(phoneList[i][0].endsWith(searchString)) {\r\n\t\t\t\t\ttxtName.setText(phoneList[i][0]);\r\n\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "private void performSearch() {\n try {\n final String searchVal = mSearchField.getText().toString().trim();\n\n if (searchVal.trim().equals(\"\")) {\n showNoStocksFoundDialog();\n }\n else {\n showProgressDialog();\n sendSearchResultIntent(searchVal);\n }\n }\n catch (final Exception e) {\n showSearchErrorDialog();\n logError(e);\n }\n }", "@FXML\n\tvoid search(ActionEvent event) {\n\n\t\ttry {\n\n\t\t\tif(idEditText.getText().equals(\"\")) {\n\n\t\t\t\tthrow new InsufficientInformationException();\n\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\tPlanetarySystem ps = ns.search(Integer.parseInt(idEditText.getText()));\n\n\t\t\t\tif(ps != null) {\n\t\t\t\t\t\n\t\t\t\t\tloadInformation(ps);\t\t\t\t\t\n\t\t\t\t\teditSelectionAlerts();\n\t\t\t\t\tupdateValidationsAvailability(true);\n\t\t\t\t\tupdateButtonsAvailability(true, true, true);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsystemNotFoundAlert();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tcatch(InsufficientInformationException e) {\n\t\t\tinsufficientDataAlert();\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tsystemNotFoundAlert();\n\t\t}\n\n\t}", "private void search() {\n \t\tString searchString = m_searchEditText.getText().toString();\n \n \t\t// Remove the refresh if it's scheduled\n \t\tm_handler.removeCallbacks(m_refreshRunnable);\n \t\t\n\t\tif ((searchString != null) && (!searchString.equals(\"\"))) {\n \t\t\tLog.d(TAG, \"Searching string: \\\"\" + searchString + \"\\\"\");\n \n \t\t\t// Save the search string\n \t\t\tm_lastSearch = searchString;\n \n \t\t\t// Disable the Go button to show that the search is in progress\n \t\t\tm_goButton.setEnabled(false);\n \n \t\t\t// Remove the keyboard to better show results\n \t\t\t((InputMethodManager) this\n \t\t\t\t\t.getSystemService(Service.INPUT_METHOD_SERVICE))\n \t\t\t\t\t.hideSoftInputFromWindow(m_searchEditText.getWindowToken(),\n \t\t\t\t\t\t\t0);\n \n \t\t\t// Start the search task\n \t\t\tnew HTTPTask().execute(searchString);\n \t\t\t\n \t\t\t// Schedule the refresh\n \t\t\tm_handler.postDelayed(m_refreshRunnable, REFRESH_DELAY);\n \t\t} else {\n \t\t\tLog.d(TAG, \"Ignoring null or empty search string.\");\n \t\t}\n \t}", "@Step(\"Work Order ServiceActivity Search Lookup\")\n public boolean lookupWorkOrderServiceActivitySearch(String searchText) {\n boolean flag = false;\n try {\n pageActions.clickAt(assignToMeBtn, \"Clicking on Assign to me button\");\n pageActions.clickAt(itemizedCostsButton, \"Clicking on Itemized Cost Button\");\n new WebDriverWait(driver, 45)\n .until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(itemizedFrame));\n logger.info(\"Switched to ItemizedCost Frame successfully\");\n new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(itemizedSubmitButton));\n pageActions.selectDropDown(itemize_CostType, \"Local Job Code\");\n pageActions.clickAt(localJobCodeLookup, \"Clicking on Local Job Code Look Up Search\");\n\n SeleniumWait.hold(GlobalVariables.ShortSleep);\n functions.switchToWindow(driver, 1);\n pageActions.selectDropDown(wrkOrdLookupSearchBy, \"Short Description\");\n pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText,\n \"Searching in the lookUp Window\");\n pageActions.typeAndPressEnterKey(shortDescriptionSearch, searchText,\n \"Searching in the lookUp Window Grid\");\n new WebDriverWait(driver, 30).until(ExpectedConditions\n .elementToBeClickable(By.xpath(\"//td[contains(text(),'\" + searchText + \"')]\")));\n flag =\n driver.findElement(By.xpath(\"//td[contains(text(),'\" + searchText + \"')]\")).isDisplayed();\n } catch (Exception e) {\n e.printStackTrace();\n System.out.println(e.getMessage());\n }\n finally {\n functions.switchToWindow(driver, 0);\n }\n return flag;\n }", "public static ObservableList<Part> lookupPart(String partName) {\n ObservableList<Part> partsContainingSubstring = FXCollections.observableArrayList();\n\n // The for loop variable to the left of the colon is a temporary variable containing a single element from the collection on the right\n // With each iteration through the loop, Java pulls the next element from the collection and assigns it to the temp variable.\n for (Part currentPart : Inventory.getAllParts()) {\n if (currentPart.getName().toLowerCase().contains(partName.toLowerCase())) {\n partsContainingSubstring.add(currentPart);\n }\n }\n return partsContainingSubstring;\n }", "@FXML\r\n void onActionModifyPart(ActionEvent event) throws IOException {\r\n \r\n try {\r\n int id = currPart.getId();\r\n String name = partNameTxt.getText();\r\n int stock = Integer.parseInt(partInvTxt.getText());\r\n double price = Double.parseDouble(partPriceTxt.getText());\r\n int max = Integer.parseInt(maxInvTxt.getText());\r\n int min = Integer.parseInt(minInvTxt.getText());\r\n int machineId;\r\n String companyName;\r\n boolean partAdded = false;\r\n \r\n if (name.isEmpty()) {\r\n //RUNTIME ERROR: Name empty exception\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Name cannot be empty.\");\r\n errorTxtLabel.setVisible(true);\r\n } else {\r\n if (minVerify(min, max) && inventoryVerify(min, max, stock)) {\r\n \r\n if(inHouseRBtn.isSelected()) {\r\n try {\r\n machineId = Integer.parseInt(partIDTxt.getText());\r\n InHousePart newInHousePart = new InHousePart(id, name, price, stock, min, max, machineId);\r\n newInHousePart.setId(currPart.getId());\r\n Inventory.addPart(newInHousePart);\r\n partAdded = true;\r\n } catch (Exception e) {\r\n //LOGICAL ERROR: Invalid machine ID error\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Invalid machine ID.\");\r\n errorTxtLabel.setVisible(true);\r\n }\r\n } \r\n if (outsourcedRBtn.isSelected()) {\r\n companyName = partIDTxt.getText();\r\n OutsourcedPart newOutsourcedPart = new OutsourcedPart(id, name, price, stock, min, max, companyName);\r\n newOutsourcedPart.setId(currPart.getId());\r\n Inventory.addPart(newOutsourcedPart);\r\n partAdded = true;\r\n }\r\n if (partAdded){\r\n errorLabel.setVisible(false); \r\n errorTxtLabel.setVisible(false);\r\n Inventory.deletePart(currPart);\r\n //Confirm modify\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Modify Part\");\r\n alert.setContentText(\"Save changes and return to main menu?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n stage = (Stage) ((Button)event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/View/Main.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }\r\n }\r\n }\r\n }\r\n } catch(Exception e) {\r\n //RUNTIME ERROR: Blank fields exception\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Form contains blank fields or errors.\");\r\n errorTxtLabel.setVisible(true);\r\n }\r\n\r\n }", "@FXML\n void saveModifiedParts(MouseEvent event) {\n if (nameTxt.getText().isEmpty()) {\n errorWindow(2);\n return;\n }\n if (invTxt.getText().isEmpty()) {\n errorWindow(10);\n return;\n }\n if (maxTxt.getText().isEmpty()) {\n errorWindow(4);\n return;\n }\n if (minTxt.getText().isEmpty()) {\n errorWindow(5);\n return;\n }\n if (costTxt.getText().isEmpty()) {\n errorWindow(3);\n return;\n }\n if (companyNameTxt.getText().isEmpty()) {\n errorWindow(9);\n return;\n }\n // trying to parce the entered values into an int or double for price\n try {\n min = Integer.parseInt(minTxt.getText());\n max = Integer.parseInt(maxTxt.getText());\n inv = Integer.parseInt(invTxt.getText());\n id = Integer.parseInt(idTxt.getText());\n price = Double.parseDouble(costTxt.getText());\n } catch (NumberFormatException e) {\n errorWindow(11);\n return;\n }\n if (min >= max) {\n errorWindow(6);\n return;\n }\n if (inv < min || inv > max) {\n errorWindow(7);\n return;\n }\n if (min < 0) {\n errorWindow(12);\n }\n // if the in-house radio is selected \n if (inHouseRbtn.isSelected()) {\n try {\n machID = Integer.parseInt(companyNameTxt.getText());\n } catch (NumberFormatException e) {\n errorWindow(11);\n return;\n }\n\n Part l = new InHouse(id, nameTxt.getText(), price, inv, min, max, machID);\n inventory.updatePart(l);\n\n }// if out sourced radio button is selected \n if (outSourcedRbtn.isSelected()) {\n Part t = new OutSourced(id, nameTxt.getText(), price, inv, min, max, companyNameTxt.getText());\n inventory.updatePart(t);\n }\n // going back to main screen once part is added\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/View/FXMLmain.fxml\"));\n View.MainScreenController controller = new MainScreenController(inventory);\n\n loader.setController(controller);\n Parent root = loader.load();\n Scene scene = new Scene(root);\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n stage.setScene(scene);\n stage.setResizable(false);\n stage.show();\n } catch (IOException e) {\n\n }\n\n }", "private void search(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.clearEditText(0);\n solo.typeText(0, searchTerm);\n }", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "public void initSearchWidget(){\n\n searchview.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n\n //Closes the keyboard once query is submitted\n searchview.clearFocus();\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n\n //New arraylist for filtered products\n List<product> filteredList = new ArrayList<>();\n\n //Iterating over the array with products and adding every product that matches\n //the query to the new filtered list\n for (product product : listOfProducts){\n if (product.getProductName().toLowerCase().contains(newText.toLowerCase())){\n filteredList.add(product);\n }\n }\n\n //Hides the product list and display \"not found\" message when can't find match\n if (filteredList.size()<1){\n recyclerView.setVisibility(View.GONE);\n noResults.setVisibility(View.VISIBLE);\n }else {\n recyclerView.setVisibility(View.VISIBLE);\n noResults.setVisibility(View.GONE);\n }\n\n //Sets new adapter with filtered products to the recycler view\n productAdapter = new Adapter(MainActivity.this,filteredList);\n recyclerView.setAdapter(productAdapter);\n\n return true;\n }\n });\n }", "private void searchExec(){\r\n\t\tString key=jComboBox1.getSelectedItem().toString();\r\n\t\tkey=NameConverter.convertViewName2PhysicName(\"Discount\", key);\r\n\t\tString valueLike=searchTxtArea.getText();\r\n\t\tList<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike);\r\n\t\tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,\"Discount\"));\r\n\t}", "@FXML\r\n void search(ActionEvent event) {\r\n \tPlacement p1 = new Placement();\r\n \tif(startDate.getValue()!=null){p1.setStartDate(startDate.getValue().toString());}\r\n \tp1.setCohort(Cohort.getText());\r\n \tif(year.getValue()!=null){p1.setYear(year.getValue());}\r\n \tp1.setLocation(Location.getText());\r\n \tp1.setModule(Subject.getText());\r\n \tif(endDate.getValue()!=null){p1.setEndDate(endDate.getValue().toString());}\r\n \tList<Placement> searched = new ArrayList<Placement>();\r\n \ttry {\r\n \t\tsearched.addAll(SearchQueries.ComboSearchPlacement(p1));\r\n \t} catch (SQLException e) {\r\n \t\tGeneralMethods.show(\"Error in searching Lectures\", \"Error\");\r\n \t\te.printStackTrace();\r\n \t}\r\n \t\t\tObservableList<Placement> list = FXCollections.observableArrayList();\r\n \t\t\tlist.addAll(searched);\r\n \t\t\tTablePlacement.setItems(list);\r\n \t\r\n }", "public void search(String searchTerm)\r\n\t{\r\n\t\tpalicoWeapons = FXCollections.observableArrayList();\r\n\t\tselect(\"SELECT * FROM Palico_Weapon WHERE name LIKE '%\" + searchTerm + \"%'\");\r\n\t}", "private void startSearch()\n {\n model.clear();\n ArrayList<String> result;\n if (orRadio.isSelected())\n {\n SearchEngine.search(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n else\n {\n SearchEngine.searchAnd(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n for (String s : result)\n {\n model.addElement(s);\n }\n int paragraphsRetrieved = result.size();\n reviewedField.setText(\" Retrieved \" + paragraphsRetrieved + \" paragraphs\");\n }", "public ObservableList<Part> lookupPart(String partName) {\n ObservableList<Part> namedParts = FXCollections.observableArrayList();\n for ( Part part : allParts ) {\n if(part.getName().toLowerCase().contains(partName.toLowerCase())) {\n namedParts.add(part);\n }\n }\n return namedParts;\n }", "@FXML\n private void btnSearchClick() {\n\n // Check if search field isn't empty\n if (!txtSearch.getText().equals(\"\")) {\n\n // Display the progress indicator\n resultsProgressIndicator.setVisible(true);\n\n // Get query results\n MovieAPIImpl movieAPIImpl = new MovieAPIImpl();\n movieAPIImpl.getMovieList(Constants.SERVICE_API_KEY, txtSearch.getText(), this);\n }\n }", "public void searchFor(View view) {\n // Get a handle for the editable text view holding the user's search text\n EditText userInput = findViewById(R.id.user_input_edit_text);\n // Get the characters from the {@link EditText} view and convert it to string value\n String input = userInput.getText().toString();\n\n // Search filter for search text matching book titles\n RadioButton mTitleChecked = findViewById(R.id.title_radio);\n // Search filter for search text matching authors\n RadioButton mAuthorChecked = findViewById(R.id.author_radio);\n // Search filter for search text matching ISBN numbers\n RadioButton mIsbnChecked = findViewById(R.id.isbn_radio);\n\n if (!input.isEmpty()) {\n // On click display list of books matching search criteria\n // Build intent to go to the {@link QueryResultsActivity} activity\n Intent results = new Intent(MainActivity.this, QueryListOfBookActivity.class);\n\n // Get the user search text to {@link QueryResultsActivity}\n // to be used while creating the url\n results.putExtra(\"topic\", mUserSearch.getText().toString().toLowerCase());\n\n // Pass search filter, if any\n if (mTitleChecked.isChecked()) {\n // User is searching for book titles that match the search text\n results.putExtra(\"title\", \"intitle=\");\n } else if (mAuthorChecked.isChecked()) {\n // User is searching for authors that match the search text\n results.putExtra(\"author\", \"inauthor=\");\n } else if (mIsbnChecked.isChecked()) {\n // User is specifically looking for the book with the provided isbn number\n results.putExtra(\"isbn\", \"isbn=\");\n }\n\n // Pass on the control to the new activity and start the activity\n startActivity(results);\n\n } else {\n // User has not entered any search text\n // Notify user to enter text via toast\n\n Toast.makeText(\n MainActivity.this,\n getString(R.string.enter_text),\n Toast.LENGTH_SHORT)\n .show();\n }\n }", "private void searchGuide(EditText searchBar, boolean forward)\n \t{\t\n \t\t//private ArrayList<View> guideTextViews;\n \t\t//private int guideIndex;\n \t\t//private int textBlockIndex;\n \t\t\n \t\tString query = searchBar.getText().toString().toLowerCase(AlgorithmContainer.CURRENT_LOCALE);\n \t\tScrollView scrollBar = (ScrollView) findViewById(R.id.scroll_bar);\n \t\t\n \t\twhile(guideIndex >= 0 && guideIndex < guideTextViews.size())\n \t\t{\n \t\t\tView view = guideTextViews.get(guideIndex);\n \t\t\tTextView block = null;\n \t\t\tString textBlock = null;\n \t\t\t\n \t\t\tif(view instanceof TextView)\n \t\t\t{\n \t\t\t\tblock = (TextView) view;\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tsearchBar.setHint(\"An error has occurred\");\n \t\t\t\treturn;\n \t\t\t}\n \t\t\t\n \t\t\ttextBlock = (String) block.getText().toString().toLowerCase(AlgorithmContainer.CURRENT_LOCALE);\n \t\t\t\n \t\t\t\n \t\t\t//Search the given block of text\n \t\t\twhile(textBlockIndex < textBlock.length())\n \t\t\t{\n \t\t\t\ttextBlockIndex = textBlock.indexOf(query,textBlockIndex);\n \t\t\t\tif(textBlockIndex == -1)\n \t\t\t\t{\n \t\t\t\t\ttextBlockIndex = 0;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tint loc[] = {0,1};\n \t\t\t\t\tblock.getLocationInWindow(loc);\n \t\t\t\t\tscrollBar.scrollTo(loc[0],loc[1]);\n \t\t\t\t\tif(forward)\n \t\t\t\t\t{\tsearchBar.clearFocus();\n \t\t\t\t\t\tblock.requestFocus(View.FOCUS_DOWN);\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tsearchBar.clearFocus();\n \t\t\t\t\t\tblock.requestFocus(View.FOCUS_UP);\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t}\n \t\t\ttextBlockIndex = 0;\n \t\t\tif(forward)\n \t\t\t{\n \t\t\t\t++guideIndex;\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\t--guideIndex;\n \t\t\t}\n \t\t}\n \t\tif(guideIndex >= guideTextViews.size() || guideIndex < 0)\n \t\t{\n \t\t\tsearchBar.setText(\"Reached end for \\\"\" + query + \"\\\"\");\n \t\t\tif(forward)\n \t\t\t{\n \t\t\t\tguideIndex = 0;\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tguideIndex = guideTextViews.size() - 1;\n \t\t\t}\n \t\t}\n \t\t\n \t\treturn;\n \t}", "protected final void searchForText() {\n Logger.debug(\" - search for text\");\n final String searchText = theSearchEdit.getText().toString();\n\n MultiDaoSearchTask task = new MultiDaoSearchTask() {\n @Override\n protected void onSearchCompleted(List<Object> results) {\n adapter.setData(results);\n }\n\n @Override\n protected int getMinSearchTextLength() {\n return 0;\n }\n };\n task.readDaos.add(crDao);\n task.readDaos.add(monsterDao);\n task.readDaos.add(customMonsterDao);\n task.execute(searchText.toUpperCase());\n }", "@Step(\"Work Order Type Search Lookup\")\n public boolean lookupWorkOrderTypeSearch(String searchText) {\n boolean flag = false;\n pageActions.clickAt(workOrderTypeLookup, \"Clicking on Work Order Type Look Up Search\");\n try {\n SeleniumWait.hold(GlobalVariables.ShortSleep);\n functions.switchToWindow(driver, 1);\n pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText,\n \"Searching in the lookUp Window\");\n new WebDriverWait(driver, 20)\n .until(ExpectedConditions.elementToBeClickable(searchInTypeGrid));\n pageActions.typeAndPressEnterKey(searchInTypeGrid, searchText,\n \"Searching in the lookUp Window Grid\");\n new WebDriverWait(driver, 20).until(ExpectedConditions\n .elementToBeClickable(By.xpath(\"//a[contains(text(),'\" + searchText + \"')]\")));\n flag =\n driver.findElement(By.xpath(\"//a[contains(text(),'\" + searchText + \"')]\")).isDisplayed();\n } catch (Exception e) {\n e.printStackTrace();\n logger.error(e.getMessage());\n }\n finally {\n functions.switchToWindow(driver, 0);\n }\n return flag;\n }", "public void searchbarChanges() throws UnsupportedEncodingException {\n // filters the rooms on the searchbar input. It searches for matches in the building name and room name.\n String searchBarInput = searchBar.getText();\n if (searchBarInput == \"\") {\n loadCards();\n } else {\n List<Room> roomsToShow = SearchViewLogic.filterBySearch(roomList, searchBarInput, buildings);\n //Load the cards that need to be shown\n getCardsShown(roomsToShow);\n }\n }", "@Override\n protected void search() {\n \n obtainProblem();\n if (prioritizedHeroes.length > maxCreatures){\n frame.recieveProgressString(\"Too many prioritized creatures\");\n return;\n }\n bestComboPermu();\n if (searching){\n frame.recieveDone();\n searching = false;\n }\n }", "@FXML\n private void handleFilter(ActionEvent event) {\n if(!inSearch){\n btnFind.setImage(imageC);\n //query here\n String querry = txtInput.getText();\n if(querry !=null){\n obsSongs = FXCollections.observableArrayList(bllfacade.querrySongs(querry));\n lstSongs.setItems(obsSongs);\n }\n inSearch = true;\n }else{\n btnFind.setImage(imageF); \n txtInput.setText(\"\");\n init();\n inSearch = false;\n }\n }", "private static void searchForItem() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println(\" Please type your search queries\");\r\n\t\tSystem.out.println();\r\n\t\tString choice = \"\";\r\n\t\tif (scanner.hasNextLine()) {\r\n\t\t\tchoice = scanner.nextLine();\r\n\t\t}\r\n\t\t//Currently only supports filtering by name\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" All products that matches your search are as listed\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Id|Name |Brand |Price |Total Sales\");\r\n\t\tint productId = 0;\r\n\t\tfor (Shop shop : shops) {\r\n\t\t\tint l = shop.getAllSales().length;\r\n\t\t\tfor (int j = 0; j < l; j++) {\r\n\t\t\t\tif (shop.getAllSales()[j].getName().contains(choice)) {\r\n\t\t\t\t\tprintProduct(productId, shop.getAllSales()[j]);\r\n\t\t\t\t}\r\n\t\t\t\tproductId++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void searchItem(String itemnum){\t\r\n\t\tString searchitem = getValue(itemnum);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+searchitem);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Item should be searched in the search box\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\twaitforElementVisible(locator_split(\"txtSearch\"));\r\n\t\t\tclearWebEdit(locator_split(\"txtSearch\"));\r\n\t\t\tsendKeys(locator_split(\"txtSearch\"), searchitem);\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Item is searched in the search box\");\r\n\t\t\tSystem.out.println(\"Search item - \"+searchitem+\" is entered\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Item is not entered in the search box \"+elementProperties.getProperty(\"txtSearch\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtSearch\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\t\t}", "private void setSearchItems(Number index) {\n String searchSelected;\n if (index == null) {\n searchSelected = searchSelection.getSelectionModel().getSelectedItem();\n } else {\n searchSelected = menuItems[index.intValue()];\n }\n\n final String searchText = searchField.getText().trim().toUpperCase();\n if (searchText == null || \"\".equals(searchText)) {\n // Search field is blank, remove filters if active\n if (searchFilter != null) {\n filterList.remove(searchFilter);\n searchFilter = null;\n }\n applyFilters();\n return;\n }\n\n boolean matchAny = MATCHANY.equals(searchSelected);\n\n if (searchFilter == null) {\n searchFilter = new CustomerListFilter();\n searchFilter.setOr(true);\n filterList.add(searchFilter);\n } else {\n searchFilter.getFilterList().clear();\n }\n if ((matchAny || SURNAME.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aSurname = a.getSurname().toUpperCase();\n return (aSurname.contains(searchText));\n });\n }\n if ((matchAny || FORENAME.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aForename = a.getForename().toUpperCase();\n return (aForename.contains(searchText));\n });\n }\n if (matchAny || CHILD.equals(searchSelected)) {\n searchFilter.addFilter(a -> {\n String aChildname = a.getChildrenProperty().getValue().toUpperCase();\n return (aChildname.contains(searchText));\n });\n }\n if ((matchAny || CARREG.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aCars = a.getCarRegProperty().getValue().toUpperCase();\n return (aCars.contains(searchText));\n });\n }\n // No filter to apply?\n if (searchFilter.getFilterList().size() == 0) {\n filterList.remove(searchFilter);\n searchFilter = null;\n }\n applyFilters();\n }", "protected void lbl_searchEvent() {\n\t\tif(text_code.getText().isEmpty()){\n\t\t\tlbl_notice.setText(\"*请输入股票代码\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\tif(text_code.getText().length()!=6||!Userinfochange.isNumeric(text_code.getText())){\n\t\t\tlbl_notice.setText(\"*股票代码为6位数字\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\tif(text_place.getText().isEmpty()){\n\t\t\tlbl_notice.setText(\"*请输入股票交易所\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(!text_place.getText().equals(\"sz\") && !text_place.getText().equals(\"sh\")){\n\t\t\tlbl_notice.setText(\"*交易所填写:sz或sh\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tString[] informationtemp = null ;\n\t\ttry {\n\n\t\t\tinformationtemp = Internet.share.Internet.getSharedata(text_place.getText(), text_code.getText());\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \"网络异常或者不存在该只股票\", \"异常\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\n\t\t}\n\t\tString name = informationtemp[0];\n\t\tif (name == null) {\n\t\t\tlbl_notice.setText(\"*不存在的股票\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\tString[] names = new String[2];\n\t\tSystem.out.println(\"搜索出的股票名:\" + name + \"(Dia_buy 297)\");\n\t\tnames = name.split(\"\\\"\");\n\t\tname = names[1];\n\t\tif (name.length() == 0) {\n\t\t\tlbl_notice.setText(\"*不存在的股票\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tinformation = informationtemp;\n\t\tplace = text_place.getText();\n\t\tcode=text_code.getText();\n\t\t\n\t\ttrade_shortsell();//显示文本框内容\n\t\t\n\t\tlbl_notice.setText(\"股票信息获取成功!\");\n\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_GREEN));\n\t}", "public IndexedList<Task> search(String partTitle) {\n\t\tpartTitle=partTitle.toLowerCase();\n\t\tLinkedList<Task> result=new LinkedList<Task>();\n\t\tfor(Task task : tasks) {\n\t\t\tif(task.getTitle().toLowerCase().contains(partTitle))\n\t\t\t\tresult.add(task);\n\t\t}\n\t\treturn result;\n\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\t\tString productNameInput = textField_search_input.getText();\r\n\t\t\t\t\t\t\t\tproductNameInput.trim();\r\n\t\t\t\t\t\t\t\tif(validateEmpty(productNameInput) == false){\r\n\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Search cannot be empty. Please enter a product name, description or notes.\");\t\t\r\n\t\t\t\t\t\t\t\t\tfillTableFindByName(model_search);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(productNameInput.trim().matches(\"^[-0-9A-Za-z.,'() ]*$\")){\r\n\t\t\t\t\t\t\t\t\tCashier cashierProductByName = new Cashier();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tfor (int i = model_search.getRowCount()-1; i >= 0; --i) {\r\n\t\t\t\t\t\t\t\t\t\tmodel_search.removeRow(i);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tproductByLike = new Vector<Product>();\r\n\t\t\t\t\t\t\t\t\tcashierProductByName.findProductUsingLike(productNameInput.trim(),productByLike);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"\");\r\n\t\t\t\t\t\t\t\t\t\tfor(int i = 0; i < productByLike.size(); i++){\r\n\t\t\t\t\t\t\t\t\t\t\tif(productBySearch.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor(int j = 0; j < productBySearch.size(); j++){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(productByLike.get(i).getID() == productBySearch.get(j).getID()){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tproductByLike.get(i).setQuantity(productBySearch.get(j).getQuantity());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//No match\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t//Printing it in the outside loop, the value doesn't alter here, values that alter will and will print them outside\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"No product was found in inventory.\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\tfor(int k = 0; k < productByLike.size(); k++){\r\n\t\t\t\t\t\t\t\t\t\t\tmodel_search.addRow(new Object[]{k+1,productByLike.get(k).getName(),productByLike.get(k).getDescription(),productByLike.get(k).getQuantity(),productByLike.get(k).getSalePrice(),productByLike.get(k).getNotes()});\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}", "public void keyReleased(KeyEvent e) {\n if (searchFieldLength > searchField.getText().length()) {\n componentsList.setModel(ingredientsListModel);\n filterList();\n } else {\n filterList();\n }\n }", "public void setUpTextWatcher(EditText searchFriendText) {\n searchFriendText.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n Log.i(TAG,\"beforeTextChanged\");\n }\n\n @Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n Log.i(TAG,\"onTextCHanged\");\n Log.i(TAG,charSequence.toString());\n if (charSequence.length() == 0) {\n searchRecyclerview.setVisibility(View.INVISIBLE);\n } else {\n searchRecyclerview.setVisibility(View.VISIBLE);\n }\n Query query = databaseReference.orderByChild(\"UserData/displayname\")\n .startAt(charSequence.toString())\n .endAt(charSequence.toString() + \"\\uf8ff\");\n query.addValueEventListener(valueEventListener);\n }\n\n @Override\n public void afterTextChanged(Editable editable) {\n Log.i(TAG,\"afterTextChanged\");\n }\n });\n }", "@FXML\n void OnActionSave(ActionEvent event) throws IOException {\n int partId = Integer.parseInt(ModPartIDField.getText());\n String name = ModPartNameField.getText();\n int stock = Integer.parseInt(ModPartInventoryField.getText()); //wrapper to convert string to int\n double price = Double.parseDouble(ModPartPriceField.getText());\n int max = Integer.parseInt(ModPartMaxField.getText());\n int min = Integer.parseInt(ModPartMinField.getText());\n\n //create new part from modified fields\n try {\n if (inHouseRadBtn.isSelected()) { //assigns value based on which radio button is selected\n //labelPartSource.setText(\"Machine ID\");\n int machineID = Integer.parseInt(partSourceField.getText());\n InHouse modifiedPart = new InHouse(partId, name, price, stock, max, min, machineID);\n isValid();\n Inventory.addPart(modifiedPart);\n } else if(OutsourcedRadBtn.isSelected()){\n //labelPartSource.setText(\"Company Name\");\n String companyName = partSourceField.getText();\n Outsourced modifiedPart = new Outsourced(partId, name, price, stock, max, min, companyName);\n isValid();\n Inventory.addPart(modifiedPart);\n }\n //remove former part when replaced with modified part\n Inventory.allParts.remove(part);\n //onActionSave should return to MainScreen\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/view/MainScreen.fxml\"));\n stage.setTitle(\"Inventory Management System\");\n stage.setScene(new Scene(scene));\n stage.show();\n\n }\n //in case inventory does not fall in between min and max\n catch (NumberFormatException e) {\n Alert alert = new Alert(Alert.AlertType.WARNING, \"Please enter a valid value for each text field.\");\n alert.showAndWait();\n }\n\n }", "private void searchBoxUsed(String txt){\n\t\t\tJFrame frame = new JFrame();\n\t\t\tArrayList<location> simLoc = dataBase.search(txt);\n\t\t\tif (simLoc == null) JOptionPane.showMessageDialog(frame, \"'\" + txt + \"' not found.\");\n\t\t\telse if (simLoc.size() == 1){\n\t\t\t\tlocation searchedLoc = simLoc.get(0);\n\t\t\t\tapp.addLocation(searchedLoc);\n\t\t\t\tapp.setVisibleLocation(searchedLoc);\n\t\t\t\tlocBar.removeActionListener(Jcombo);\n\t\t\t\tpopulateMyLocationsBox();\n\t\t\t\trefreshPanels();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tString [] possibilities = new String[simLoc.size()];\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < simLoc.size(); i ++){\n\t\t\t\t\tpossibilities[i] = i + 1 + \". \" + simLoc.get(i).getName() + \", \" + simLoc.get(i).getCountryCode() + \" Lat: \" \n\t\t\t\t\t\t\t+ simLoc.get(i).getLatitude() + \" Long: \" + simLoc.get(i).getLongitude();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString response = (String) JOptionPane.showInputDialog(frame, \"Which '\" + txt + \"' did you mean?\", \"Search Location\", \n\t\t\t\t\t\tJOptionPane.QUESTION_MESSAGE, null, possibilities, \"Titan\");\n\t\t\t\n\t\t\t\tif (response != null) {\n\t\t\t\t\t\tlocation searchedLoc = simLoc.get(Integer.parseInt(response.substring(0, response.indexOf('.'))) - 1);\n\t\t\t\t\t\tString[] temp = response.split(\" \");\n\t\t\t\t\t\tint length = app.getMyLocations().length;\n\t\t\t\t\t\tboolean add = true;\n\t\t\t\t\t\tfor (int i = 0; i < length; i ++){\n\t\t\t\t\t\t\tlocation checkLoc = app.getMyLocations()[i];\n\t\t\t\t\t\t\tif (checkLoc.getCityID() == searchedLoc.getCityID())\n\t\t\t\t\t\t\t\tadd = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (add) {\n\t\t\t\t\t\t\tapp.addLocation(searchedLoc);\n\t\t\t\t\t\t\tlocBar.removeActionListener(Jcombo);\n\t\t\t\t\t\t\tpopulateMyLocationsBox();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tapp.setVisibleLocation(searchedLoc);\n\t\t\t\t\t\trefreshPanels();\n\t\t\t\t }\n\t\t\t}\n\t\t}", "public static void refreshStringSearchResults() {\n\t\tString fullSearchText = stringSearchTextField.getText();\n\t\tint fullSearchTextLength = fullSearchText.length();\n\t\t//get rid of any spaces, they're only good for loosening length verification\n\t\tchar[] searchText = fullSearchText.replace(\" \", \"\").toLowerCase().toCharArray();\n\t\tint searchTextLength = searchText.length;\n\t\tif (searchTextLength < 1)\n\t\t\tstringSearchResultsList.setEnabled(false);\n\t\telse {\n\t\t\tstringSearchResultsListModel.removeAllElements();\n\t\t\tsearchableStringsFoundIndices.clear();\n\t\t\t//go through every string and see if it matches the input\n\t\t\tint searchableStringsLength = searchableStrings.length;\n\t\t\tchar startChar = searchText[0];\n\t\t\tfor (int i = 0; i < searchableStringsLength; i++) {\n\t\t\t\tchar[] resultString = searchableStrings[i];\n\t\t\t\tint resultStringLength = resultString.length;\n\t\t\t\t//it can't start at an index if it would go past the end of the string\n\t\t\t\tint maxSearchIndex = resultStringLength - searchTextLength;\n\t\t\t\t//keep track of stats so that we can sort\n\t\t\t\tboolean stringPasses = false;\n\t\t\t\tint matchedLength = Integer.MAX_VALUE;\n\t\t\t\t//first, look for this char in the string\n\t\t\t\tfor (int k = 0; k <= maxSearchIndex; k++) {\n\t\t\t\t\t//we found a spot where it starts\n\t\t\t\t\t//now go through and see if we found our string here\n\t\t\t\t\t//if we find one, keep looking through the string to see if we can find a shorter match\n\t\t\t\t\tif (resultString[k] == startChar) {\n\t\t\t\t\t\t//1 character strings always match single characters\n\t\t\t\t\t\tif (searchTextLength == 1) {\n\t\t\t\t\t\t\tstringPasses = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfor (int j = 1, newK = k + 1; newK < resultStringLength;) {\n\t\t\t\t\t\t\t\tif (searchText[j] == resultString[newK]) {\n\t\t\t\t\t\t\t\t\tj++;\n\t\t\t\t\t\t\t\t\t//if we got through all our characters, the string matches\n\t\t\t\t\t\t\t\t\tif (j == searchTextLength) {\n\t\t\t\t\t\t\t\t\t\tstringPasses = true;\n\t\t\t\t\t\t\t\t\t\tmatchedLength = Math.min(matchedLength, newK - k + 1);\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}\n\t\t\t\t\t\t\t\tnewK++;\n\t\t\t\t\t\t\t\t//the string appears not to match, stop searching here\n\t\t\t\t\t\t\t\tif (newK - k >= fullSearchTextLength * 2)\n\t\t\t\t\t\t\t\t\tbreak;\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\tif (stringPasses)\n\t\t\t\t\tsearchableStringsFoundIndices.add(new mark(i, matchedLength, resultStringLength));\n\t\t\t}\n\t\t\tif (searchableStringsFoundIndices.size() <= MAX_SEARCH_RESULTS) {\n\t\t\t\tstringSearchResultsList.setEnabled(true);\n\t\t\t\tCollections.sort(searchableStringsFoundIndices);\n\t\t\t\tfor (mark foundIndexStats : searchableStringsFoundIndices)\n\t\t\t\t\tstringSearchResultsListModel.addElement(allStringsListModel.get(foundIndexStats.searchableStringFoundIndex));\n\t\t\t} else {\n\t\t\t\tstringSearchResultsList.setEnabled(false);\n\t\t\t\tstringSearchResultsListModel.addElement(\"Please narrow your search to no more than \" +\n\t\t\t\t\tMAX_SEARCH_RESULTS + \" results (got \" + searchableStringsFoundIndices.size() + \")\");\n\t\t\t}\n\t\t}\n\t}", "private void findClubEvent () {\n \n findClubEvent (\n findButton.getText(), \n findText.getText().trim(), \n true);\n \n if (findText.getText().trim().length() == 0) {\n findText.grabFocus();\n statusBar.setStatus(\"Enter a search string\");\n }\n }", "private void filterRecyvlerView() {\n String query = etSearch.getText().toString();\n String[] querySplited = query.split(\" \");\n\n if(query.equals(\"\")){\n rvPostalCodes.removeAllViews();\n adapter.setRealmResults(Realm.getDefaultInstance().where(Locations.class).findAll());\n }else{rvPostalCodes.removeAllViews();\n if(querySplited.length == 1) {\n adapter = new LocationsAdapter(fragment, Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0], Case.INSENSITIVE).findAll());\n rvPostalCodes.setAdapter(adapter);\n\n\n }else if(querySplited.length == 2){\n adapter = new LocationsAdapter(fragment, Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[1],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[1],Case.INSENSITIVE).or()\n .findAll());\n rvPostalCodes.setAdapter(adapter);\n }else if(querySplited.length == 3){\n adapter = new LocationsAdapter(getTargetFragment(), Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[1],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[1],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[2],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[2],Case.INSENSITIVE).or()\n .findAll());\n rvPostalCodes.setAdapter(adapter);\n }\n }\n\n }", "public void setUpFab() {\n FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.mapSearch);\n fab.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n // Get text from edittext\n fromtext = fromedittext.getText().toString();\n totext = toedittext.getText().toString();\n\n // If user marked no location, tell them\n if (lat == null || lng == null) {\n Toast.makeText(getApplicationContext(),\n \"Need location\", Toast.LENGTH_SHORT).show();\n } else {\n // If spinners have same category and editTexts are empty, tell user\n // spinners cant be same category\n if (Objects.equals(fromitem, toitem) && Objects.equals(fromtext, \"\")\n && Objects.equals(totext, \"\")) {\n Toast.makeText(getApplicationContext(),\n \"Same category\", Toast.LENGTH_SHORT).show();\n } else {\n // Here input is valid, so clear previous results from map\n mMap.clear();\n // If editTexts are empty, query both spinners\n if (Objects.equals(fromtext, \"\") && Objects.equals(totext, \"\")) {\n prepareQuery(false, false);\n // Else if only one editText is filled in, query that and the other spinner\n } else if (Objects.equals(fromtext, \"\") && !Objects.equals(totext, \"\")) {\n prepareQuery(false, true);\n } else if (!Objects.equals(fromtext, \"\") && Objects.equals(totext, \"\")) {\n prepareQuery(true, false);\n // Else query both editTexts\n } else {\n prepareQuery(true, true);\n }\n try {\n // Set jsonStrings\n String from = queryJson(fromquery);\n String to = queryJson(toquery);\n\n // Put query results in JSONArray\n JSONArray fromArray = getResults(from);\n JSONArray toArray = getResults(to);\n\n // Add markers of found places\n addMarkers(fromArray, 270, \"from\");\n addMarkers(toArray, 120, \"to\");\n } catch (ExecutionException | InterruptedException | JSONException e) {\n e.printStackTrace();\n }\n }\n }\n }\n });\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static HBox startRecipeSearch(BorderPane mainWindow)\n\t{\n \tHBox hBox = new HBox();\n \t\t// SearchBar is the first Pane on the left side of the recipeSearch, RecipeDroppingPanes will follow on the right\n \tPane searchBar = new Pane();\n\t\t\t\tLabel lblSearch = new Label(\"Suche nach:\t\t\t\t(mit \\\", \\\" trennen)\");\n\t\t\t\t\tlblSearch.setMinWidth(300);\n\t\t\t\t\tlblSearch.setAlignment(Pos.CENTER);\n\t\t\t\tButton btnStartSearch = new Button(\"Suche starten\");\n\t\t\t\t\tbtnStartSearch.setMinWidth(305);\n\t\t\t\tTextField txfSearch= new TextField();\n\t\t\t\t\ttxfSearch.setMinWidth(308);\n\n\t\t\t\t// Table to show the found recipes with their ingredients\n\t\t\t\tTableView<Recipes> tbvRecipes = new TableView<>();\n\t\t\t\t\tTableColumn<Recipes, String> tbcRecipes = new TableColumn<Recipes, String>(\"Cocktails\");\n\t\t\t\t\t\ttbcRecipes.setMinWidth(150);\n\t\t\t\t\t\ttbcRecipes.setResizable(false);\n\t\t\t\t\t\ttbcRecipes.getStyleClass().add(\"tableColumnRecipes\");\n\t\t\t\t\t\ttbcRecipes.setStyle(\"-fx-border-width:2px;-fx-border-color:black;-fx-border-style:hidden dotted solid hidden;\");\n\t\t\t\t TableColumn<Recipes, String> tbcIngredients = new TableColumn<Recipes, String>(\"Zutaten\");\n\t\t\t\t \ttbcIngredients.setMinWidth(150);\n\t\t\t\t \ttbcIngredients.setResizable(false);\n\t\t\t\t \ttbcIngredients.setSortable(false);\n\t\t\t\t \ttbcIngredients.getStyleClass().add(\"tableColumnRecipes\");\n\t\t\t\t \ttbcIngredients.setStyle(\"-fx-border-width:2px;fx-border-color:black;-fx-border-style:hidden hidden solid hidden;\");\n\t\t\t\ttbvRecipes.getColumns().addAll(tbcRecipes, tbcIngredients);\n\t\t\t tbvRecipes.setPlaceholder(new Label(\"Suche nach einem Rezeptname oder Zutaten.\"));\n\t\t\t tbvRecipes.setMinHeight(mainWindow.getHeight()-420);\n\t\t\t tbvRecipes.setMaxHeight(mainWindow.getHeight()-420);\n\t\t\t tbvRecipes.setId(\"tableViewRecipes\");\n\t\t\t tbvRecipes.setStyle(\"-fx-border-width:2px;-fx-border-color:black;\");\n\t\t\t tbvRecipes.setMinWidth(300);\n\t\t\tsearchBar.getChildren().addAll(lblSearch, btnStartSearch, txfSearch, tbvRecipes);\n\t\t\tsearchBar.setMinWidth(310);\n\t\thBox.getChildren().add(searchBar);\n\t\thBox.setPadding(new Insets(10));\n\t\thBox.setMinHeight(mainWindow.getHeight()-300);\n\t\thBox.setMaxHeight(mainWindow.getHeight()-300);\n\t\thBox.setSpacing(10);\n\n\t\t// EventHandler that reacts if recipes start dragging from the tableview\n\t\ttbvRecipes.setOnDragDetected(event ->\n\t\t{\n\t\t\tif(!tbvRecipes.getSelectionModel().isEmpty())\n\t\t\t{\n\t\t String tmp = tbvRecipes.getSelectionModel().getSelectedItem().toString();\n\t\t Dragboard db = tbvRecipes.startDragAndDrop(TransferMode.MOVE);\n\t\t ClipboardContent content = new ClipboardContent();\n\t\t content.putString(tmp);\n\t\t db.setContent(content);\n\t\t\t}\n\t\t event.consume();\n\t });\n\n\t\t// EventHandler that reacts if recipes are draggedOver the recipe panes to enable droppable\n\t\tEventHandler<DragEvent> dragOver = new EventHandler<DragEvent>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void handle(DragEvent event)\n\t\t\t{\n\t\t\t\tevent.acceptTransferModes(TransferMode.COPY_OR_MOVE);\n\t\t\t event.consume();\n\t\t\t}\n\t\t};\n\n\t\t// EventHandler that reacts if recipes are dropped on the recipe panes\n\t\tEventHandler<DragEvent> dragDropped = new EventHandler<DragEvent>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void handle(DragEvent event)\n\t\t\t{\n\t\t\t\tDragboard db = event.getDragboard();\n\n\t\t\t\tRecipes recipe = null;\n\t\t\t\tif(recipeArrayList != null && db.getString() != \"\")\n\t\t\t\t\tfor (int i = 0; i < recipeArrayList.size(); i++)\n\t\t\t\t\t\tif(recipeArrayList.get(i).getRecipeName().equals(db.getString()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\trecipe = recipeArrayList.get(i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\tif(recipe != null)\t//TODO doesn't work\n\t\t\t\t{\n\t\t\t\t\t// Writing content in labels and set them visible\n\t\t\t\t\t((Label) ((Pane) event.getSource()).getChildren().get(0)).setText(recipe.getRecipeName());\n\t\t\t\t\t((Label) ((Pane) event.getSource()).getChildren().get(2)).setText(recipe.getIngredient());\n\t\t\t\t\t((Label) ((Pane) event.getSource()).getChildren().get(3)).setText(recipe.getAmount());\n\t\t\t\t\t((Label) ((Pane) event.getSource()).getChildren().get(5)).setText(recipe.getDescription());\n\t\t\t\t\t((Label) ((Pane) event.getSource()).getChildren().get(1)).setVisible(true);\n\t\t\t\t\t((Label) ((Pane) event.getSource()).getChildren().get(2)).setVisible(true);\n\t\t\t\t\t((Label) ((Pane) event.getSource()).getChildren().get(3)).setVisible(true);\n\t\t\t\t\t((Label) ((Pane) event.getSource()).getChildren().get(4)).setVisible(true);\n\t\t\t\t\t((Label) ((Pane) event.getSource()).getChildren().get(5)).setVisible(true);\n\t\t\t\t}\n\t\t\t event.setDropCompleted(true);\n\t\t\t event.consume();\n\t\t\t}\n\t };\n\n\t // Number of Panes for Recipes change with the resolution width of the primary Window\n\t int recipePanes = 3;\n//\t if(mainWindow.getWidth() < 1801)\t//TODO reactive + fix\n//\t \trecipePanes = 4;\n//\t if(mainWindow.getWidth() < 1501)\n//\t \trecipePanes = 3;\n//\t if(mainWindow.getWidth() < 1201)\n//\t \trecipePanes = 2;\n//\t if(mainWindow.getWidth() < 901)\n//\t \trecipePanes = 1;\n\n\t // Creating Panes to Show Recipes dragged into them from the tableView\n\t\tfor (int i = 0; i < recipePanes; i++)\n\t\t{\n\t\t\t// Creating a pane with labels to show a formatted recipe with more information\n\t\t\t// and disabling not needed labels first\n\t\t\tAnchorPane recipePane = new AnchorPane();\n\t\t\t\tLabel lblName = new Label(\"Rezept hierher ziehen\");\n\t\t\t\t\tlblName.setMinWidth(300);\n\t\t\t\t\tlblName.setAlignment(Pos.CENTER);\n\t\t\t\t\tlblName.setFont(new Font(25));\n\t\t\t\t\tlblName.setUnderline(true);\n\t\t\t\t\tlblName.setStyle(\"-fx-text-fill:white;\");\n\t\t\t\tLabel lblHeader1 = new Label(\"Zutaten:\");\n\t\t\t\t\tlblHeader1.setFont(new Font(20));\n\t\t\t\t\tlblHeader1.setVisible(false);\n\t\t\t\t\tlblHeader1.setUnderline(true);\n\t\t\t\t\tlblHeader1.setStyle(\"-fx-text-fill:white;\");\n\t\t\t\tLabel lblIngredients = new Label(\"Zutaten:\");\n\t\t\t\t\tlblIngredients.setFont(new Font(15));\n\t\t\t\t\tlblIngredients.setAlignment(Pos.CENTER_RIGHT);\n\t\t\t\t\tlblIngredients.setVisible(false);\n\t\t\t\t\tlblIngredients.setStyle(\"-fx-text-fill:white;\");\n\t\t\t\tLabel lblAmount = new Label();\n\t\t\t\t\tlblAmount.setFont(new Font(15));\n\t\t\t\t\tlblAmount.setVisible(false);\n\t\t\t\t\tlblAmount.setStyle(\"-fx-text-fill:white;\");\n\t\t\t\tLabel lblHeader2 = new Label(\"Beschreibung:\");\n\t\t\t\t\tlblHeader2.setFont(new Font(20));\n\t\t\t\t\tlblHeader2.setVisible(false);\n\t\t\t\t\tlblHeader2.setUnderline(true);\n\t\t\t\t\tlblHeader2.setStyle(\"-fx-text-fill:white;\");\n\t\t\t\tLabel lblDescription= new Label();\n\t\t\t\t\tlblDescription.setFont(new Font(15));\n\t\t\t\t\tlblDescription.setMaxWidth(300);\n\t\t\t\t\tlblDescription.setWrapText(true);\n\t\t\t\t\tlblDescription.setVisible(false);\n\t\t\t\t\tlblDescription.setStyle(\"-fx-text-fill:white;\");\n\n\t\t\trecipePane.getChildren().addAll(lblName, lblHeader1, lblIngredients, lblAmount, lblHeader2, lblDescription);\n\t\t\trecipePane.setMinHeight(mainWindow.getHeight()-330);\n\t\t\trecipePane.setMaxHeight(mainWindow.getHeight()-330);\n\t\t\trecipePane.setMinWidth(315);\n\t\t\trecipePane.setId(\"recipePane\");\n\t\t\trecipePane.setOnDragOver(dragOver);\n\t\t\trecipePane.setOnDragDropped(dragDropped);\n\t\t\tAnchorPane.setTopAnchor(lblName, 0.0);\n\t\t\tAnchorPane.setTopAnchor(lblHeader1, 30.0);\n\t\t\tAnchorPane.setLeftAnchor(lblHeader1, 10.0);\n\t\t\tAnchorPane.setTopAnchor(lblIngredients, 55.0);\n\t\t\tAnchorPane.setRightAnchor(lblIngredients, 115.0);\n\t\t\tAnchorPane.setLeftAnchor(lblIngredients, 10.0);\n\t\t\tAnchorPane.setTopAnchor(lblAmount, 55.0);\n\t\t\tAnchorPane.setLeftAnchor(lblAmount, 200.0);\n\t\t\tAnchorPane.setTopAnchor(lblHeader2, 200.0);\n\t\t\tAnchorPane.setLeftAnchor(lblHeader2, 10.0);\n\t\t\tAnchorPane.setTopAnchor(lblDescription, 230.0);\n\t\t\tAnchorPane.setLeftAnchor(lblDescription, 10.0);\n\n\t\t\thBox.getChildren().add(recipePane);\n\t\t}\n\n\t\t// Start search for recipes in database by clicking on button, keywords are read from txfIngredient\n\t\tbtnStartSearch.setOnAction(new EventHandler<ActionEvent>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event)\n\t\t\t{\n\t\t\t\trecipeArrayList = RecipeManipulation.searchRecipeByIngriedientsArray(txfSearch.getText());\n\n\t\t\t\t// Fill the table with recipes and all information.\n\t\t\t\tfinal ObservableList<Recipes> recipeObserver = FXCollections.observableArrayList(recipeArrayList);\n\t\t tbvRecipes.setItems(recipeObserver);\n\t\t tbcRecipes.setCellValueFactory(new PropertyValueFactory<>(\"recipeName\"));\n\t\t tbcIngredients.setCellValueFactory(new PropertyValueFactory<>(\"ingredient\"));\n\n\t\t // Tells the User if there are no recipes that matches the keywords\n\t\t if(recipeObserver.size() == 0)\n\t\t {\n\t\t \tLabel placeholder = new Label(\"Es existieren keine Rezepte zu dieser Suche.\");\n\t\t \tplaceholder.setWrapText(true);\n\t\t \ttbvRecipes.setPlaceholder(placeholder);\n\t\t }\n\t\t event.consume();\n\t\t\t}\n\t\t});\n\n\t\t// Start search for recipes in database by pressing enter on textfield, keywords are read from this textfield\n\t\ttxfSearch.setOnKeyPressed(new EventHandler<KeyEvent>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void handle(KeyEvent event)\n\t\t\t{\n\t\t\t\tif (txfSearch.isFocused())\n\t\t\t\t{\n\t\t\t\t\tif(event.getCode() == KeyCode.ENTER)\n\t\t\t\t\t{\n\t\t\t\t\t\trecipeArrayList = RecipeManipulation.searchRecipeByIngriedientsArray(txfSearch.getText());\n\n\t\t\t\t\t\t// Fill the table with recipes and all information.\n\t\t\t\t\t\tfinal ObservableList<Recipes> recipeObserver = FXCollections.observableArrayList(recipeArrayList);\n\t\t\t\t tbvRecipes.setItems(recipeObserver);\n\t\t\t\t tbcRecipes.setCellValueFactory(new PropertyValueFactory<>(\"recipeName\"));\n\t\t\t\t tbcIngredients.setCellValueFactory(new PropertyValueFactory<>(\"ingredient\"));\n\n\t\t\t\t // Tells the User if there are no recipes that matches the keywords\n\t\t\t\t if(recipeObserver.size() == 0)\n\t\t\t\t {\n\t\t\t\t \tLabel placeholder = new Label(\"Es existieren keine Rezepte zu dieser Suche.\");\n\t\t\t\t \tplaceholder.setWrapText(true);\n\t\t\t\t \ttbvRecipes.setPlaceholder(placeholder);\n\t\t\t\t }\n\t\t\t\t event.consume();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// translate elements on the recipe search pane\n\t\tlblSearch.setTranslateY(30);\n\t\tbtnStartSearch.setTranslateY(0);\n\t\ttxfSearch.setTranslateY(60);\n\t\ttxfSearch.setTranslateX(0);\n\t\ttbvRecipes.setTranslateY(90);\n\n\t\treturn hBox;\n\t}", "public void addPart() {\n\n if(isValidPart()) {\n double price = Double.parseDouble(partPrice.getText());\n String name = partName.getText();\n int stock = Integer.parseInt(inventoryCount.getText());\n int id = Integer.parseInt(partId.getText());\n int minimum = Integer.parseInt(minimumInventory.getText());\n int maximum = Integer.parseInt(maximumInventory.getText());\n String variableText = variableTextField.getText();\n\n if (inHouse.isSelected()) {\n InHouse newPart = new InHouse(id,name,price,stock,minimum,maximum,Integer.parseInt(variableText));\n if (PassableData.isModifyPart()) {\n Controller.getInventory().updatePart(PassableData.getPartIdIndex(), newPart);\n } else {\n Controller.getInventory().addPart(newPart);\n }\n\n } else if (outsourced.isSelected()) {\n Outsourced newPart = new Outsourced(id,name,price,stock,minimum,maximum,variableText);\n if (PassableData.isModifyPart()) {\n Controller.getInventory().updatePart(PassableData.getPartIdIndex(), newPart);\n } else {\n Controller.getInventory().addPart(newPart);\n }\n }\n try {\n InventoryData.getInstance().storePartInventory();\n InventoryData.getInstance().storePartIdIndex();\n } catch (IOException e) {\n e.printStackTrace();\n }\n exit();\n\n }\n }", "private void searchParts(AbstractFile part1) {\r\n \t\tAbstractFile parent = part1.getParentSilently();\r\n \t\tif (parent == null) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tString ext = part1.getExtension();\r\n \t\tint firstIndex;\r\n \t\ttry {\r\n \t\t\tfirstIndex = Integer.parseInt(ext);\r\n \t\t} catch (NumberFormatException e) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tString name = part1.getNameWithoutExtension();\r\n \t\tFilenameFilter startsFilter = new StartsFilenameFilter(name, false);\r\n \t\tAttributeFileFilter filesFilter = new AttributeFileFilter(AttributeFileFilter.FILE);\r\n \t\tEqualsFilenameFilter part1Filter = new EqualsFilenameFilter(part1.getName(), false);\r\n \t\tpart1Filter.setInverted(true);\r\n \t\tAndFileFilter filter = new AndFileFilter();\r\n \t\tfilter.addFileFilter(startsFilter);\r\n \t\tfilter.addFileFilter(filesFilter);\r\n \t\tfilter.addFileFilter(part1Filter);\r\n \t\ttry {\r\n \t\t\tAbstractFile[] otherParts = parent.ls(filter);\r\n \t\t\tfor (int i = 0; i < otherParts.length; i++) {\r\n \t\t\t\tString ext2 = otherParts[i].getExtension();\r\n \t\t\t\ttry {\r\n \t\t\t\t\tint partIdx = Integer.parseInt(ext2);\r\n \t\t\t\t\tif (partIdx > firstIndex)\r\n \t\t\t\t\t\tfiles.add(otherParts[i]);\r\n \t\t\t\t} catch (NumberFormatException e) {\r\n \t\t\t\t\t// nothing\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} catch (IOException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n\t\tsetFiles(files);\r\n \t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry{\r\n\t\t\t\t\tif(!table.isEditing()){\r\n\t\t\t\t\t\tJPanel findByName_panel = new JPanel();\r\n\t\t\t\t\t\tfindByName_panel.setLayout(null);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Product Name\r\n\t\t\t\t\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\t\t\t\t\ttabbedPane.setBounds(250, 10, 400, 200);\r\n\t\t\t\t\t\tfindByName_panel.add(tabbedPane);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tJPanel panel_searchDetail = new JPanel();\r\n\t\t\t\t\t\ttabbedPane.addTab(\"Find Product using Name, Description, Notes:\", null, panel_searchDetail, null);\r\n\t\t\t\t\t\tpanel_searchDetail.setLayout(null);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Text\r\n\t\t\t\t\t\tJTextPane txtpnsearch_1 = new JTextPane();\r\n\t\t\t\t\t\ttxtpnsearch_1.setText(\"Search:\");\r\n\t\t\t\t\t\ttxtpnsearch_1.setBackground(Color.decode(defaultColor));\r\n\t\t\t\t\t\ttxtpnsearch_1.setBounds(10, 13, 50, 18);\r\n\t\t\t\t\t\tpanel_searchDetail.add(txtpnsearch_1);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Messages\r\n\t\t\t\t\t\ttxtpnsearch_2 = new JTextPane();\r\n\t\t\t\t\t\ttxtpnsearch_2.setBackground(Color.decode(defaultColor));\r\n\t\t\t\t\t\ttxtpnsearch_2.setBounds(10, 80, 370, 120);\r\n\t\t\t\t\t\tpanel_searchDetail.add(txtpnsearch_2);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Textfield input\r\n\t\t\t\t\t\tJTextField textField_search_input = new JTextField();\r\n\t\t\t\t\t\ttextField_search_input.setBounds(60, 6, 310, 30);\r\n\t\t\t\t\t\tpanel_searchDetail.add(textField_search_input);\r\n\t\t\t\t\t\ttextField_search_input.setColumns(10);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Search button\r\n\t\t\t\t\t\tJButton product_search_button = new JButton(\"Search\");\r\n\t\t\t\t\t\tproduct_search_button.setBounds(3, 45, 190, 29);\r\n\t\t\t\t\t\tpanel_searchDetail.add(product_search_button);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Cancel button\r\n\t\t\t\t\t\tJButton product_cancel_button = new JButton(\"Cancel\");\r\n\t\t\t\t\t\tproduct_cancel_button.setBounds(190, 45, 185, 29);\r\n\t\t\t\t\t\tpanel_searchDetail.add(product_cancel_button);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Add button\r\n\t\t\t\t\t\tJButton product_add_button = new JButton(\"Add\");\r\n\t\t\t\t\t\tproduct_add_button.setBounds(38, 575, 820, 40);\r\n\t\t\t\t\t\tfindByName_panel.add(product_add_button);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Places cursor in ID field as soon as page loads, like focus in html\r\n\t\t\t\t\t\ttextField_search_input.addAncestorListener(new AncestorListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void ancestorRemoved(AncestorEvent event) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void ancestorMoved(AncestorEvent event) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void ancestorAdded(AncestorEvent event) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\ttextField_search_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Table\r\n\t\t\t\t\t\tJTabbedPane tabbedPane_search_table = new JTabbedPane(JTabbedPane.TOP);\r\n\t\t\t\t\t\ttabbedPane_search_table.setBounds(30, 204, 835, 375);\r\n\t\t\t\t\t\tfindByName_panel.add(tabbedPane_search_table);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tJPanel panel_table_search = new JPanel(new BorderLayout());\r\n\t\t\t\t\t\ttabbedPane_search_table.addTab(\"List of suggestions: \", null, panel_table_search, null);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tVector<String> search_row_data = new Vector<String>();\r\n\t\t\t\t\t\tVector<String> search_column_name = new Vector<String>();\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"#\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Name\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Description\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Quantity Remaining\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Sale Price\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Notes\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Add\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tJTable table_search = new JTable(search_row_data, search_column_name){\r\n\t\t\t\t\t\t\tpublic boolean isCellEditable(int row, int column) {\r\n\t\t\t\t\t\t\t\t//Return true if the column (number) is editable, else false\r\n\t\t\t\t\t\t\t\t//if(column == 3 || column == 6){ \r\n\t\t\t\t\t\t\t\tif(column == 6){\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tpanel_table_search.add(table_search.getTableHeader(), BorderLayout.NORTH);\r\n\t\t\t\t\t\tpanel_table_search.add(table_search, BorderLayout.CENTER);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Row Height\r\n\t\t\t\t\t\ttable_search.setRowHeight(30);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Column Width\r\n\t\t\t\t\t\tTableColumnModel columnModel_search = table_search.getColumnModel();\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(0).setPreferredWidth(1); //#\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(1).setPreferredWidth(110); //Name\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(2).setPreferredWidth(100); //Description\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(3).setPreferredWidth(1); //Quantity \r\n\t\t\t\t\t\tcolumnModel_search.getColumn(4).setPreferredWidth(30); //Sale Price\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(5).setPreferredWidth(75); //Notes\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(6).setPreferredWidth(10); //Add/Remove\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Columns won't be able to moved around\r\n\t\t\t\t\t\ttable_search.getTableHeader().setReorderingAllowed(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Center table data \r\n\t\t\t\t\t\tDefaultTableCellRenderer centerRenderer_search = new DefaultTableCellRenderer();\r\n\t\t\t\t\t\tcenterRenderer_search.setHorizontalAlignment( SwingConstants.CENTER );\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(0).setCellRenderer( centerRenderer_search ); //ID\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(1).setCellRenderer( centerRenderer_search ); //Product ID\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(2).setCellRenderer( centerRenderer_search ); //Name\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(3).setCellRenderer( centerRenderer_search ); //Quantity\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(4).setCellRenderer( centerRenderer_search ); //Price\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(5).setCellRenderer( centerRenderer_search ); //Quantity * Price\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(6).setCellRenderer( centerRenderer_search ); //Remove\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Center table column names\r\n\t\t\t\t\t\tcenterRenderer_search = (DefaultTableCellRenderer) table_search.getTableHeader().getDefaultRenderer();\r\n\t\t\t\t\t\tcenterRenderer_search.setHorizontalAlignment(JLabel.CENTER);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tJScrollPane jsp2 = new JScrollPane(table_search);\r\n\t\t\t\t\t\tjsp2.setBounds(2, 2, 810, 344);\r\n\t\t\t\t\t\tjsp2.setVisible(true);\r\n\t\t\t\t\t\tpanel_table_search.add(jsp2);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Setting Checkbox\r\n\t\t\t\t\t\tTableColumn tc2 = table_search.getColumnModel().getColumn(productRemove_column);\r\n\t\t\t\t\t\ttc2.setCellEditor(table_search.getDefaultEditor(Boolean.class));\r\n\t\t\t\t\t\ttc2.setCellRenderer(table_search.getDefaultRenderer(Boolean.class));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tDefaultTableModel model_search = (DefaultTableModel) table_search.getModel();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tTableRowSorter<TableModel> sorter = new TableRowSorter<>(table_search.getModel());\r\n\t\t\t\t\t\ttable_search.setRowSorter(sorter);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Disable column\r\n\t\t\t\t\t\tsorter.setSortable(0, false);\r\n\t\t\t\t\t\tsorter.setSortable(4, false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Button listener\r\n\t\t\t\t\t\tproduct_search_button.addActionListener(new ActionListener() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tString productNameInput = textField_search_input.getText();\r\n\t\t\t\t\t\t\t\tproductNameInput.trim();\r\n\t\t\t\t\t\t\t\tif(validateEmpty(productNameInput) == false){\r\n\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Search cannot be empty. Please enter a product name, description or notes.\");\t\t\r\n\t\t\t\t\t\t\t\t\tfillTableFindByName(model_search);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(productNameInput.trim().matches(\"^[-0-9A-Za-z.,'() ]*$\")){\r\n\t\t\t\t\t\t\t\t\tCashier cashierProductByName = new Cashier();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tfor (int i = model_search.getRowCount()-1; i >= 0; --i) {\r\n\t\t\t\t\t\t\t\t\t\tmodel_search.removeRow(i);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tproductByLike = new Vector<Product>();\r\n\t\t\t\t\t\t\t\t\tcashierProductByName.findProductUsingLike(productNameInput.trim(),productByLike);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"\");\r\n\t\t\t\t\t\t\t\t\t\tfor(int i = 0; i < productByLike.size(); i++){\r\n\t\t\t\t\t\t\t\t\t\t\tif(productBySearch.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor(int j = 0; j < productBySearch.size(); j++){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(productByLike.get(i).getID() == productBySearch.get(j).getID()){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tproductByLike.get(i).setQuantity(productBySearch.get(j).getQuantity());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//No match\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t//Printing it in the outside loop, the value doesn't alter here, values that alter will and will print them outside\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"No product was found in inventory.\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\tfor(int k = 0; k < productByLike.size(); k++){\r\n\t\t\t\t\t\t\t\t\t\t\tmodel_search.addRow(new Object[]{k+1,productByLike.get(k).getName(),productByLike.get(k).getDescription(),productByLike.get(k).getQuantity(),productByLike.get(k).getSalePrice(),productByLike.get(k).getNotes()});\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Cancel button closes the window\r\n\t\t\t\t\t\tproduct_cancel_button.addActionListener(new ActionListener() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\td5.dispose();\r\n\t\t\t\t\t\t\t\ttextField_productID_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Checking for double click\r\n\t\t\t\t\t\ttable_search.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\t\tif (e.getClickCount() == 1) {\r\n\t\t\t\t\t\t\t\t\t//System.out.println(\"1\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (e.getClickCount() == 2) {\r\n\t\t\t\t\t\t\t\t\t//JTable target = (JTable)e.getSource();\r\n\t\t\t\t\t\t\t\t\tint row = table_search.getSelectedRow();\r\n\t\t\t\t\t\t\t\t\tint column = table_search.getSelectedColumn();\r\n\t\t\t\t\t\t\t\t\tif(column == 0 || column == 1 || column == 2 || column == 3 || column == 4 || column == 5){\r\n\t\t\t\t\t\t\t\t\t\tif(row > -1){\r\n\t\t\t\t\t\t\t\t\t\t\tString n = (String) model_search.getValueAt(row, 1);\r\n\t\t\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor(int i = 0; i < productByLike.size(); i++){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(n.equals(productByLike.get(i).getName())){ //maybe change to using ID\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint items = 0;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tboolean b = (boolean) model_search.getValueAt(i, productRemove_column);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(b == true){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titems++;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}catch(Exception e2){}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(items == 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField_productID_input.setText(String.valueOf(productByLike.get(i).getID()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td5.dispose();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField_productID_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"Please use the add button at the bottom use add multiple items at a time.\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t//Quantity\r\n\t\t\t\t\t\t\t\t\telse if(column == 3){\r\n\t\t\t\t\t\t\t\t\t\ttable_search.setRowSelectionInterval(row, row);\r\n\t\t\t\t\t\t\t\t\t\ttable_search.setColumnSelectionInterval(0, 0);\r\n\t\t\t\t\t\t\t\t\t\ttextField_search_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t//Checkbox\r\n\t\t\t\t\t\t\t\t\telse if(column == 6){\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Add button listener\r\n\t\t\t\t\t\tRunnable runAdd = new Runnable() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\tproduct_add_button.addActionListener(new ActionListener() {\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\t\t\t\t\tVector<Integer> searchID = new Vector<Integer>();\r\n\t\t\t\t\t\t\t\t\t\tif(model_search.getRowCount() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"\");\r\n\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < model_search.getRowCount(); i++) {\r\n\t\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tboolean b = (boolean) model_search.getValueAt(i, productRemove_column);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (b == true){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor(int j = 0; j < productByLike.size(); j++){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(String.valueOf(model_search.getValueAt(i, 1)).equals(productByLike.get(j).getName())){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsearchID.add(productByLike.get(i).getID());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td5.dispose();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField_productID_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Else\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}catch(Exception e2){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"Table is empty. Please enter keywords into search bar.\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif(model_search.getRowCount() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\tif(searchID.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tnew Timer(1, new ActionListener() {\r\n\t\t\t\t\t\t\t\t\t\t int it = 0;\r\n\t\t\t\t\t\t\t\t\t\t @Override\r\n\t\t\t\t\t\t\t\t\t\t public void actionPerformed(ActionEvent e2) {\r\n\t\t\t\t\t\t\t\t\t\t \ttextField_productID_input.setText(String.valueOf(searchID.get(it)));\r\n\t\t\t\t\t\t\t\t\t\t if (++it == searchID.size()){\r\n\t\t\t\t\t\t\t\t\t\t ((Timer)e2.getSource()).stop();\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t }).start();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"Please select/check a product before adding it to the table.\");\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tSwingUtilities.invokeLater(runAdd);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfillTableFindByName(model_search);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tComponent component = (Component) e.getSource();\r\n\t\t\t\t\t\tJFrame topFrame2 = (JFrame) SwingUtilities.getRoot(component);\r\n\t\t\t\t\t\td5 = new JDialog(topFrame2, \"\", Dialog.ModalityType.DOCUMENT_MODAL);\r\n\t\t\t\t\t\td5.getContentPane().add(findByName_panel);\r\n\t\t\t\t\t\td5.setSize(900, 650);\r\n\t\t\t\t\t\td5.setLocationRelativeTo(null);\r\n\t\t\t\t\t\td5.getRootPane().setDefaultButton(product_search_button);\r\n\t\t\t\t\t\td5.setVisible(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Please make sure the table is not in edit mode.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(Exception e1){}\r\n\t\t\t}", "private void search(ActionEvent x) {\n\t\tString text = this.searchText.getText();\n\t\tif (text.equals(\"\")) {\n\t\t\tupdate();\n\t\t\treturn;\n\t\t}\n\t\tboolean flag = false;\n\t\tfor (Project p : INSTANCE.getProjects()) {\n\t\t\tif (p.getName().indexOf(text) != -1) {\n\t\t\t\tif (!flag) {\n\t\t\t\t\tthis.projects.clear();\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tthis.projects.addElement(p);\n\t\t\t}\n\t\t}\n\n\t\tif (!flag) {\n\t\t\tINSTANCE.getCurrentUser().sendNotification(new Notification((Object) INSTANCE, \"No results\"));\n\t\t\tthis.searchText.setText(\"\");\n\t\t}\n\t}", "private void txtSearchingBrandKeyReleased(java.awt.event.KeyEvent evt) {\n String query=txtSearchingBrand.getText().toUpperCase();\n filterData(query);\n }", "public void firstSearch() {\n\n\t\tif ((workspaceSearchField.getText() == null) || \"\".equals(workspaceSearchField.getText())) {\n\t\t\tworkspaceSearchField.setText(mainGUI.getSearchFieldText());\n\t\t\tsearchInWorkspaceFor(workspaceSearchField.getText());\n\t\t}\n\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\n\t\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == RESULT_CODE_SEARCH) {\n if (resultCode == Activity.RESULT_OK) {\n String street_name;\n String street_number;\n String meter_number;\n try {\n street_name = data.getStringExtra(\"street_name\");\n street_number = data.getStringExtra(\"street_number\");\n meter_number = data.getStringExtra(\"meter_number\");\n } catch (Exception e) {\n e.printStackTrace();\n return;\n }\n\n ArrayList<model_pro_mr_route_rows> rows = new ArrayList<>();\n for (MeterReaderController.Keys rid : MeterReaderController.route_row_keys) {\n rows.add(\n DBHelper.pro_mr_route_rows.getRouteRow(rid.getInstNode_id(),\n rid.getMobnode_id(),\n rid.getCycle(),\n rid.getRoute_number(),\n rid.getMeter_id(),\n rid.getWalk_sequence()));\n }\n\n //We have a meter number, only on record will have the entry\n if (!meter_number.isEmpty()) {\n for (model_pro_mr_route_rows r : rows) {\n if ((r.getMeter_number().compareToIgnoreCase(meter_number) == 0)) {\n setCurrentFragmentView(\n new MeterReaderController.Keys(r.getCycle(),\n r.getInstNode_id(),\n r.getMeter_id(),\n r.getMobnode_id(),\n r.getRoute_number(),\n r.getWalk_sequence()));\n return;\n }\n }\n }\n\n //We have a complete address\n if (!street_name.isEmpty() & !street_number.isEmpty()) {\n for (model_pro_mr_route_rows r : rows) {\n if ((r.getAddress_name().compareToIgnoreCase(street_name) == 0) &\n (r.getStreet_number().compareToIgnoreCase(street_number) == 0)) {\n setCurrentFragmentView(\n new MeterReaderController.Keys(r.getCycle(),\n r.getInstNode_id(),\n r.getMeter_id(),\n r.getMobnode_id(),\n r.getRoute_number(),\n r.getWalk_sequence()));\n return;\n }\n }\n }\n\n //We have a street name but no number\n if (!street_name.isEmpty()) {\n for (model_pro_mr_route_rows r : rows) {\n if (r.getAddress_name().compareToIgnoreCase(street_name) == 0) {\n setCurrentFragmentView(\n new MeterReaderController.Keys(r.getCycle(),\n r.getInstNode_id(),\n r.getMeter_id(),\n r.getMobnode_id(),\n r.getRoute_number(),\n r.getWalk_sequence()));\n return;\n }\n }\n }\n\n //We have a street number but no nname\n if (!street_number.isEmpty()) {\n for (model_pro_mr_route_rows r : rows) {\n if (r.getStreet_number().compareToIgnoreCase(street_number) == 0) {\n setCurrentFragmentView(\n new MeterReaderController.Keys(r.getCycle(),\n r.getInstNode_id(),\n r.getMeter_id(),\n r.getMobnode_id(),\n r.getRoute_number(),\n r.getWalk_sequence()));\n }\n }\n }\n }\n }\n }", "private void searchWord()\n {\n String inputWord = searchField.getText();\n \n if(inputWord.isEmpty())\n queryResult = null;\n \n else\n {\n char firstLetter = inputWord.toUpperCase().charAt(0);\n \n for(int i = 0 ; i < lexiNodeTrees.size() ; i++)\n {\n if(lexiNodeTrees.get(i).getCurrentCharacter() == firstLetter)\n {\n queryResult = lexiNodeTrees.get(i).searchWord(inputWord, false);\n i = lexiNodeTrees.size(); // escape the loop\n }\n }\n }\n \n // update the list on the GUI\n if(queryResult != null)\n {\n ArrayList<String> words = new ArrayList<>();\n for(WordDefinition word : queryResult)\n {\n words.add(word.getWord());\n }\n \n // sort the list of words alphabetically \n Collections.sort(words);\n \n // display the list of wordsin the UI\n DefaultListModel model = new DefaultListModel();\n for(String word : words)\n {\n model.addElement(word);\n }\n\n this.getSearchSuggestionList().setModel(model);\n }\n \n else\n this.getSearchSuggestionList().setModel( new DefaultListModel() );\n }", "@Override\n public boolean onQueryTextChange(String s) {\n if(s.isEmpty() && amenList.isEmpty()){\n searchResultsCard.setVisibility(View.GONE);\n }else {\n searchResultsCard.setVisibility(View.VISIBLE);\n }\n placesAdaptor.getFilter( ).filter(s);\n //if no results available, hide the result card\n //self-checking if there is any results, as filter results only available after\n //this method ends\n boolean noResult=true;\n ArrayList<PlacesDataClass> tempFilter=placesAdaptor.getFiltered( );\n if(tempFilter.isEmpty()) {\n ArrayList<String> temp_filter=new ArrayList<String>(Arrays.asList(placesName));\n for(String a:temp_filter){\n if(a.toLowerCase().contains(s.toLowerCase())){\n noResult=false;\n }\n }\n }else {\n for (PlacesDataClass object : tempFilter) {\n // the filtering itself:\n if (object.toString( ).toLowerCase( ).contains(s.toLowerCase( )))\n noResult=false;\n }\n }//if no results available then display the no results text\n if (noResult) {\n noResultsFoundText.setVisibility(View.VISIBLE);\n } else noResultsFoundText.setVisibility(View.GONE);\n Log.i(\"results number\", \"query: \"+s+\"; no result: \"+noResult);\n // ---------------Change-----------------\n while (!origin.isEmpty( )) {\n origin.remove(0);\n }\n\n return false;\n }", "public void onActionSearchProducts(ActionEvent actionEvent) {\r\n\r\n try {\r\n String search = searchProducts.getText();\r\n\r\n ObservableList<Product> searched = Inventory.lookupProduct(search);\r\n\r\n if (searched.size() == 0) {\r\n Alert alert1 = new Alert(Alert.AlertType.ERROR);\r\n alert1.setTitle(\"Name not found\");\r\n alert1.setContentText(\"Product name not found. If a number is entered in the search box, an id search will occur.\");\r\n alert1.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\r\n alert1.showAndWait();\r\n try {\r\n int id = Integer.parseInt(search);\r\n Product product1 = Inventory.lookupProduct(id);\r\n if (product1 != null) {\r\n searched.add(product1);\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setTitle(\"Error Message\");\r\n alert2.setContentText(\"Product name and id not found.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (NumberFormatException e) {\r\n //ignore\r\n }\r\n }\r\n\r\n productsTableView.setItems(searched);\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) {\n if (!txtSearch.getText().equals(\"\")) {\n Flights x = new Flights();\n Flights returned = x.searchFlight(txtSearch.getText());\n if (returned.getFlightID().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Not Found\");\n } else {\n SetData(returned);\n \n }\n } else {\n JOptionPane.showMessageDialog(null, \"Enter Data\");\n }\n }", "@Step(\"Work Order Resolution Code Search Lookup\")\n public boolean lookupWorkOrderResolutionCodeSearch(String searchText) {\n boolean flag = false;\n pageActions.clickAt(resolutionTab, \"Clicking on Resolution Tab\");\n pageActions.clickAt(resolutionCodeLookup, \"Clicking on Resolution Code Look Up Search\");\n try {\n SeleniumWait.hold(GlobalVariables.ShortSleep);\n functions.switchToWindow(driver, 1);\n pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText,\n \"Searching in the lookUp Window\");\n pageActions.typeAndPressEnterKey(searchInResolutionCodesGrid, searchText,\n \"Searching in the lookUp Window Grid\");\n new WebDriverWait(driver, 40).until(ExpectedConditions\n .elementToBeClickable(By.xpath(\"//a[contains(text(),'\" + searchText + \"')]\")));\n flag =\n driver.findElement(By.xpath(\"//a[contains(text(),'\" + searchText + \"')]\")).isDisplayed();\n } catch (Exception e) {\n e.printStackTrace();\n System.out.println(e.getMessage());\n }\n finally {\n functions.switchToWindow(driver, 0);\n }\n return flag;\n }", "@FXML\n void search(ActionEvent event) {\n if(idSearch.getText().isEmpty())\n \talert.reportError(\"Please fill in with clients id before searching!\");\n else {\n \tthis.list = resHandler.getReservation(idSearch.getText().toString(),list);\n reservationsTable.setItems(list);\n }\n\t}", "@FXML\n void partSaveButtonAction(ActionEvent event) {\n if (Integer.parseInt(partMaxField.getText()) > Integer.parseInt(partMinField.getText())) {\n if (Integer.parseInt(partLnvField.getText()) < Integer.parseInt(partMaxField.getText())) {\n String companyNameOrMachineID;\n if (inHouse) {\n companyNameOrMachineID = partMachineIDField.getText();\n } else {\n companyNameOrMachineID = partCompanyNameField.getText();\n }\n\n // If edit data flag is risen updatePart method is called upon to modify dara row\n if (editData == true) {\n documentController.updatePart(\n Integer.parseInt(partIDTextField.getText()), // Parsing String to Integer format to send as parameter \n partNameTextField.getText(),\n Integer.parseInt(partLnvField.getText()), // Parsing String to Integer format to send as parameter \n Double.parseDouble(partPriceField.getText()), // Parsing String to Double format to send as parameter \n selectedPart, // Referencing Selected part to modify data of\n Integer.parseInt(partMaxField.getText()), // Parsing max value from text field to integer\n Integer.parseInt(partMinField.getText()), // Parsing min value from text field to integer\n companyNameOrMachineID,\n inHouse,\n asProID\n );\n\n // Show data update successful dialog\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Success!\");\n alert.setHeaderText(\"Successfully Updated Part Data!\");\n alert.setContentText(null);\n alert.showAndWait();\n\n } else { // If edit data flag is not risen addNewPart method is called upon to add new dara row\n documentController.addNewPart(\n Integer.parseInt(partIDTextField.getText()), // Parsing String to Integer format to send as parameter \n partNameTextField.getText(),\n Integer.parseInt(partLnvField.getText()), // Parsing String to Integer format to send as parameter \n Double.parseDouble(partPriceField.getText()), // Parsing String to Double format to send as parameter \n Integer.parseInt(partMaxField.getText()), // Parsing max value from text field to integer\n Integer.parseInt(partMinField.getText()), // Parsing min value from text field to integer\n companyNameOrMachineID,\n inHouse,\n asProID\n );\n\n // Show succefully new part addition dialog\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Success!\");\n alert.setHeaderText(\"Successfully Added new Part!\");\n alert.setContentText(null);\n alert.showAndWait();\n }\n\n // Closing the window after the save/update has been successfully finished\n final Node source = (Node) event.getSource();\n final Stage stage = (Stage) source.getScene().getWindow();\n stage.close();\n\n } else {\n // Show succefully new part addition dialog\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error!\");\n alert.setHeaderText(\"Max value can not be lower then inventory level value!\");\n alert.setContentText(null);\n alert.showAndWait();\n }\n } else {\n // Show succefully new part addition dialog\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error!\");\n alert.setHeaderText(\"Max value can not be lower then min value!\");\n alert.setContentText(null);\n alert.showAndWait();\n }\n }", "public void searchInkAndTonnerItem(String itemnum){\t\r\n\t\tString searchitem = getValue(itemnum);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+searchitem);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Item should be searched in the Ink and Tonner search box\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\twaitforElementVisible(locator_split(\"txtInkSearch\"));\r\n\t\t\tclearWebEdit(locator_split(\"txtInkSearch\"));\r\n\t\t\tsendKeys(locator_split(\"txtInkSearch\"), searchitem);\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Item is searched in the Ink and Tonner search box\");\r\n\t\t\tSystem.out.println(\"Ink and Tonner Search item - \"+searchitem+\" is entered\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Item is not entered in the search box \"+elementProperties.getProperty(\"txtSearch\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtInkSearch\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@FXML\n void addPartBtnClicked(ActionEvent event) {\n if(partList.getSelectionModel().isEmpty()) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"No part selected\");\n }\n // Otherwise, the system begins to create an object for the part, which will have its stock adjusted, and the\n // junction table between parts and jobs. The system adds both IDs to the junction object before attempting to\n // get the stock level inputted.\n else {\n Part part = partHashMap.get(partList.getSelectionModel().getSelectedItem().getText());\n PartJob partJob = new PartJob();\n PartJobDAO partJobDAO = new PartJobDAO();\n PartDAO partDAO = new PartDAO();\n partJob.setJobID(jobReference.getJob().getJobID());\n partJob.setPartID(part.getPartID());\n try {\n // The system checks to see if the stock specified by the user is not equal to a value below 1 or\n // above the current stock so that it can actually be used by the system. If it cannot, the system will produce\n // an alert stating this.\n if (Integer.parseInt(stockUsedField.getText()) < 1 || part.getStockLevel() < Integer.parseInt(stockUsedField.getText())) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"Stock out of bounds\");\n }\n // Otherwise, the system sets the stock to the inputted value and begins to check if the part is currently tied to\n // the job. If it is, a boolean value will be marked as true and, instead of adding a new part, simply adjusts the\n // stock taken for the current entry for the junction table as well as the current stock of the part, unless the\n // stock adjustment would cause the part stock to go below zero, in which case the system produces another alert\n // stating this.\n else {\n partJob.setStockUsed(stockUsedField.getText());\n boolean isPartInJob = false;\n int stockDifference = 0;\n for (PartJob pj : partJobDAO.getAll()) {\n if (pj.getPartID().equals(partJob.getPartID()) && pj.getJobID() == partJob.getJobID()) {\n isPartInJob = true;\n stockDifference = Integer.parseInt(pj.getStockUsed()) + Integer.parseInt(partJob.getStockUsed());\n }\n }\n if (stockDifference > part.getStockLevel()) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"Stock out of bounds\");\n }\n else {\n if (isPartInJob) {\n partJobDAO.update(partJob);\n part.setStockLevel(part.getStockLevel() - stockDifference);\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Success\", \"Stock used updated\");\n }\n // If the part is not currently tied to the job, it creates a new entry within the junction table for\n // parts and jobs and then adjusts the stock accordingly, before producing an alert stating that the\n // part was successfully added.\n else {\n partJobDAO.save(partJob);\n part.setStockLevel(part.getStockLevel() - Integer.parseInt(stockUsedField.getText()));\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Success\", \"Added part to job\");\n }\n partDAO.update(part);\n\n // If this action causes the stock level to go below the stock threshold, a notification alerting the\n // user of this will be generated.\n if(part.getStockLevel() <= part.getThresholdLevel()) {\n SystemNotification notification = new SystemNotification(addPartToJobStackPane);\n notification.setNotificationMessage(\"The number of parts has fallen below the threshold, \" +\n \"please order more as soon as possible\");\n notification.showNotification(NavigationModel.UPDATE_STOCK_ID, DBLogic.getDBInstance().getUsername());\n }\n\n //After this is all done, the list of parts is cleared alongside the hashmap, and the list is refreshed.\n partList.getSelectionModel().select(null);\n partList.getItems().clear();\n partHashMap.clear();\n refreshList();\n }\n }\n }\n // If the value for stock is not an integer value, the system will produce an alert stating this.\n catch(Exception e) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"Invalid stock given\");\n }\n }\n }", "private void searchFunction() {\n\t\t\r\n\t}", "private void search() {\n if (isConnected()) {\r\n query = searchField.getText().toString();\r\n mLoader.setVisibility(View.VISIBLE);\r\n emptyStateTextView.setText(\"\");\r\n //restart the loader with the new data\r\n loaderManager.restartLoader(1, null, this);\r\n } else {\r\n String message = getString(R.string.no_internet);\r\n new AlertDialog.Builder(this).setMessage(message).show();\r\n }\r\n }", "private void searchList() {\n String keyword = search_bar.getText().toString();\n try {\n if (!TextUtils.isEmpty(keyword)) {\n RemoteMongoCollection<Document> plants = mongoDbSetup.getCollection(\"plants\");\n RemoteMongoIterable<Document> plantIterator = plants.find();\n\n docsToUse.clear();\n listOfPlants.clear();\n mRecyclerView.removeAllViews();\n\n final ArrayList<Document> docs = new ArrayList<>();\n\n plantIterator\n .forEach(document -> {\n plant_name = document.getString(\"plant_name\");\n picture_url = document.getString(\"picture_url\");\n description = document.getString(\"description\");\n\n if (plant_name.toLowerCase().contains(keyword.toLowerCase())) {\n\n docs.add(document);\n setPlantList(docs);\n listOfPlants.add(new RecyclerViewPlantItem(picture_url, plant_name, description));\n\n }\n })\n\n .addOnCompleteListener(task -> {\n if (listOfPlants.size() == 0) {\n search_bar.requestFocus();\n search_bar.setError(\"No match found\");\n\n listOfPlants.clear();\n }\n mRecyclerView.setHasFixedSize(true);\n mLayoutManager = new LinearLayoutManager(getActivity());\n mAdapter = new RecyclerViewAdapter(listOfPlants, getActivity());\n mAdapter.notifyDataSetChanged();\n\n mRecyclerView.setLayoutManager(mLayoutManager);\n mRecyclerView.setAdapter(mAdapter);\n })\n .addOnFailureListener(e -> Log.e(TAG, \"error \" + e.getMessage()));\n\n } else if (searchButton.isPressed() && TextUtils.isEmpty(keyword)) {\n search_bar.setError(\"Please type a keyword\");\n listOfPlants.clear();\n findPlantsList();\n }\n } catch (Throwable e) {\n Log.e(TAG, \"NullPointerException: \" + e.getMessage());\n }\n }", "@Step(\"Work Order Problem Cause Search Lookup\")\n public boolean lookupWorkOrderProblemCauseSearch(String searchText) {\n boolean flag = false;\n pageActions.clickAt(resolutionTab, \"Clicking on Resolution Tab\");\n pageActions.clickAt(problemCauseLookup, \"Clicking on Problem Cause Look Up Search\");\n try {\n SeleniumWait.hold(GlobalVariables.ShortSleep);\n functions.switchToWindow(driver, 1);\n pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText,\n \"Searching in the lookUp Window\");\n pageActions.typeAndPressEnterKey(searchInProblemCauseGrid, searchText,\n \"Searching in the lookUp Window Grid\");\n new WebDriverWait(driver, 30).until(ExpectedConditions\n .elementToBeClickable(By.xpath(\"//a[contains(text(),'\" + searchText + \"')]\")));\n flag =\n driver.findElement(By.xpath(\"//a[contains(text(),'\" + searchText + \"')]\")).isDisplayed();\n } catch (Exception e) {\n e.printStackTrace();\n System.out.println(e.getMessage());\n }\n finally {\n functions.switchToWindow(driver, 0);\n }\n return flag;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tbl_inventory = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jTextField4 = new javax.swing.JTextField();\n jProgressBar1 = new javax.swing.JProgressBar();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n\n tbl_inventory.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n tbl_inventory.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tbl_inventoryKeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(tbl_inventory);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setText(\"Search:\");\n\n jTextField1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jTextField1KeyPressed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel2.setText(\"Update Barcode\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setText(\"Item Code:\");\n\n jTextField2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextField2.setFocusable(false);\n\n jTextField3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextField3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField3ActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setText(\"Barcode:\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setText(\"Description:\");\n\n jTextField4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextField4.setFocusable(false);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField3))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 793, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField4)\n .addComponent(jTextField1))))\n .addGap(5, 5, 5))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addGap(20, 20, 20)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(1, 1, 1)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(1, 1, 1)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 356, Short.MAX_VALUE)\n .addGap(5, 5, 5))\n );\n\n jProgressBar1.setFont(new java.awt.Font(\"Tahoma\", 0, 8)); // NOI18N\n jProgressBar1.setString(\"\");\n jProgressBar1.setStringPainted(true);\n\n jLabel6.setText(\"Status:\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(25, 25, 25))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "@Override\n public void afterTextChanged(Editable editable) {\n search = editable.toString().toLowerCase();\n\n //make sure we actually have data loaded into the adapter\n if(isDataLoaded) {\n //make sure the search bar isn't empty\n if (search.length() > 0) {\n //clear the arraylist of results\n acesResults.clear();\n awsResults.clear();\n elseResults.clear();\n rcncResults.clear();\n\n activeSearch = true;\n\n //iterate over each list of projects and populate the results lists\n for (int j = 0; j < 4; j++) {\n switch (j) {\n case 0:\n for (Project p : acesList) {\n if (p.name.toLowerCase().contains(search) || p.description.toLowerCase().contains(search))\n acesResults.add(p);\n }\n break;\n case 1:\n for (Project p : awsList) {\n if (p.name.toLowerCase().contains(search) || p.description.toLowerCase().contains(search))\n awsResults.add(p);\n }\n break;\n case 2:\n for (Project p : elseList) {\n if (p.name.toLowerCase().contains(search) || p.description.toLowerCase().contains(search))\n elseResults.add(p);\n }\n break;\n case 3:\n for (Project p : rcncList) {\n if (p.name.toLowerCase().contains(search) || p.description.toLowerCase().contains(search))\n rcncResults.add(p);\n }\n break;\n }\n }\n\n //set the search results\n setProjectSearchResults(acesResults, awsResults, elseResults, rcncResults);\n } else {\n //when no text is available, reuse original adapter\n mProjectsListView.setAdapter(mAdapter);\n activeSearch = false;\n mProjectsListView.expandGroup(0);\n mProjectsListView.expandGroup(1);\n mProjectsListView.expandGroup(2);\n mProjectsListView.expandGroup(3);\n\n }\n //If data was never set in the adapter, display a message explaining this. Also, remove \"this\" TextChangedListener so we don't keep displaying\n //after every character that's entered\n }else{\n Toast.makeText(main, \"Project data may not have been loaded. Make sure you are connected to the Internet and try again.\", Toast.LENGTH_LONG).show();\n searchBox.removeTextChangedListener(this);\n }\n }", "private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter.setSearchText(view.getSearchContent().getText());\n forwardToCurrentView(filter);\n } else {\n eventBus.showPopupNoSearchCriteria();\n }\n }", "@FXML\n public void fieldsEntered() {\n single.setLastTime();\n RoomAccess ra = new RoomAccess();\n int startTimeMil = 0;\n int endTimeMil = 0;\n String date = \"\";\n String endDate = \"\";\n\n if (startTime.getValue() != null && endTime.getValue() != null && datePicker.getValue() != null) {\n date = datePicker.getValue().toString();\n endDate = endDatePicker.getValue().toString();\n date += \"T\" + String.format(\"%02d\", startTime.getValue().getHour()) + \":\" + String.format(\"%02d\", startTime.getValue().getMinute()) + \":00\";\n endDate += \"T\" + String.format(\"%02d\", endTime.getValue().getHour()) + \":\" + String.format(\"%02d\", endTime.getValue().getMinute()) + \":00\";\n availableRooms.getSelectionModel().clearSelection();\n\n rooms = ra.getAvailRooms(date, endDate);\n /*for (int i = 0; i < rooms.size(); i++) {\n System.out.println(\"Available Rooms: \" + rooms.get(i));\n }*/\n\n listOfRooms.clear();\n\n for (int i = 0; i < DisplayRooms.size(); i++) {\n DisplayRooms.get(i).setAvailable(false);\n }\n\n //System.out.println(\"startTimeMil: \" + startTimeMil + \"\\n endTimeMil:\" + endTimeMil);\n rooms = ra.getAvailRooms(date, endDate);\n\n for (int j = 0; j < rooms.size(); j++) {\n listOfRooms.add(rooms.get(j));\n for (int i = 0; i < DisplayRooms.size(); i++) {\n //System.out.println(\"COMPARE \" + DisplayRooms.get(i).roomName + \" AND \" + rooms.get(j));\n if (DisplayRooms.get(i).roomName.equals(rooms.get(j))) {\n DisplayRooms.get(i).setAvailable(true);\n //System.out.println(\"True: \" + i);\n break;\n }\n }\n }\n\n eventName.clear();\n eventDescription.clear();\n eventType.getSelectionModel().clearSelection();\n error.setText(\"\");\n privateEvent.setSelected(false);\n EmployeeAccess ea = new EmployeeAccess();\n ArrayList<ArrayList<String>> emps = ea.getEmployees(\"\",\"\");\n for(int i = 0; i < emps.size(); i++) {\n eventEmployees.getCheckModel().clearCheck(i);\n }\n availableRooms.setItems(listOfRooms);\n displayAllRooms();\n }\n }", "@Step(\"Work Order Sub State Search Lookup\")\n public boolean lookupWorkOrderSubStateSearch(String searchText) {\n boolean flag = false;\n pageActions.clickAt(workOrderSubStateLookup, \"Clicking on Work Order Sub State Look Up Search\");\n try {\n SeleniumWait.hold(GlobalVariables.ShortSleep);\n functions.switchToWindow(driver, 1);\n pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText,\n \"Searching in the lookUp Window\");\n pageActions.typeAndPressEnterKey(searchInSubStateGrid, searchText,\n \"Searching in the lookUp Window Grid\");\n new WebDriverWait(driver, 20).until(ExpectedConditions\n .elementToBeClickable(By.xpath(\"//a[contains(text(),'\" + searchText + \"')]\")));\n flag =\n driver.findElement(By.xpath(\"//a[contains(text(),'\" + searchText + \"')]\")).isDisplayed();\n } catch (Exception e) {\n e.printStackTrace();\n logger.error(e.getMessage());\n }\n finally {\n functions.switchToWindow(driver, 0);\n }\n return flag;\n }", "private void searchPatient() {\r\n String lName, fName;\r\n lName = search_lNameField.getText();\r\n fName = search_fNameField.getText();\r\n // find patients with the Last & First Name entered\r\n patientsFound = MainGUI.pimsSystem.search_patient(lName, fName);\r\n\r\n // more than one patient found\r\n if (patientsFound.size() > 1) {\r\n\r\n // create String ArrayList of patients: Last, First (DOB)\r\n ArrayList<String> foundList = new ArrayList<String>();\r\n String toAdd = \"\";\r\n // use patient data to make patient options to display\r\n for (patient p : patientsFound) {\r\n toAdd = p.getL_name() + \", \" + p.getF_name() + \" (\" + p.getDob() + \")\";\r\n foundList.add(toAdd);\r\n }\r\n int length;\r\n // clear combo box (in case this is a second search)\r\n while ((length = selectPatient_choosePatientCB.getItemCount()) > 0) {\r\n selectPatient_choosePatientCB.removeItemAt(length - 1);\r\n }\r\n // add Patient Options to combo box\r\n for (int i = 0; i < foundList.size(); i++) {\r\n selectPatient_choosePatientCB.addItem(foundList.get(i));\r\n }\r\n\r\n // display whether patients found or not\r\n JOptionPane.showMessageDialog(this, \"Found More than 1 Result for Last Name, First Name: \" + lName + \", \" + fName\r\n + \".\\nPress \\\"Ok\\\" to select a patient.\",\r\n \"Search Successful\", JOptionPane.DEFAULT_OPTION);\r\n\r\n selectPatientDialog.setVisible(true);\r\n }\r\n\r\n // one patient found\r\n else if (patientsFound.size() == 1) {\r\n\r\n JOptionPane.showMessageDialog(this, \"Found one match for Last Name, First Name: \" + lName + \", \" + fName,\r\n \"Search Successful\", JOptionPane.DEFAULT_OPTION);\r\n // display patient data\r\n currentPatient = patientsFound.get(0);\r\n search_fillPatientFoundData(currentPatient);\r\n }\r\n // no patient found\r\n else {\r\n\r\n JOptionPane.showMessageDialog(this, \"No Results found for Last Name, First Name:\" + lName + \", \" + fName,\r\n \"Search Failed\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "@FXML\n private void addNewPartType(ActionEvent event) {\n String name = nameText.getText();\n name = name.trim();\n if(name.equals(\"\")){\n showAlert(\"No Name\", \"This part type has no name, please input a name\");\n return;\n }\n \n String costText = this.costText.getText();\n costText = costText.trim();\n if(costText.equals(\"\")){\n showAlert(\"No Cost\", \"This part type has no cost, please input a cost.\");\n return;\n }\n \n String quantityText = this.quantityText.getText();\n quantityText = quantityText.trim();\n if(quantityText.equals(\"\")){\n showAlert(\"No Quantity\", \"This part type has no quantity, please input a quantity.\");\n return;\n }\n \n String description = descriptionText.getText();\n description = description.trim();\n if(description.equals(\"\")){\n showAlert(\"No Description\", \"This part type has no decription, please input a description.\");\n return;\n }\n \n double cost = Double.parseDouble(costText);\n int quantity = Integer.parseInt(quantityText);\n boolean success = partInventory.addNewPartTypeToInventory(name, \n description, cost, quantity);\n if(success){\n showAlert(\"Part Type Sucessfully Added\", \"The new part type was sucessfully added\");\n }else{\n showAlert(\"Part Type Already Exists\", \"This part already exists. If you would like to add stock, please select \\\"Add Stock\\\" on the righthand side of the screen.\\n\" \n + \"If you would like to edit this part, please double click it in the table.\");\n }\n // gets the popup window and closes it once part added\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n stage.close();\n }", "public static void searchBtnPressed() throws IOException {\r\n // define a search model to search PCs\r\n PC search_model = new PC();\r\n if (nameFilter != null && !nameFilter.isEmpty())\r\n search_model.setName(nameFilter);\r\n if (descriptionFilter != null && !descriptionFilter.isEmpty())\r\n search_model.setDescription(descriptionFilter);\r\n if (instalationDateFilter != null)\r\n search_model.setInstallDate(instalationDateFilter);\r\n switch (statusFilter) {\r\n case 1:\r\n search_model.setStatus(Status.ENABLE);\r\n break;\r\n case 2:\r\n search_model.setStatus(Status.DISABLE);\r\n break;\r\n case 3:\r\n search_model.setStatus(Status.SUSPENDED);\r\n break;\r\n }\r\n if (selectedComponentsFilter != null)\r\n for (int i = 0 ; i < selectedComponentsFilter.length ; i ++)\r\n if (selectedComponentsFilter[i]) {\r\n Calendar cal = Calendar.getInstance();\r\n cal.add(Calendar.DAY_OF_MONTH, 1);\r\n search_model.setInstalledComps(new PCComp(enaComp.get(i).getID(), cal.getTime()));\r\n }\r\n \r\n // define search model options\r\n String search_options = installationDateModeFilter + \",\" + warrentyModeFilter;\r\n if (selectedSpecsFilter != null)\r\n for (int i = 0 ; i < selectedSpecsFilter.length ; i ++)\r\n if (selectedSpecsFilter[i])\r\n search_options = search_options + \",\" + enaSpec.get(i).toString();\r\n PCNMClientModel.sendMessageToServer(new Message(MessageType.PC_SEARCH, search_model, search_options));\r\n }", "void searchUI();", "private void searchSNP(String searchString) {\r\n SNP currentSNP = getController().getActiveSNP();\r\n \r\n if (SNPInputActive) {\r\n System.out.println(\"SNP input is active.\");\r\n return;\r\n }\r\n //viewSelector.setEnabled(false); // TODO: check effects\r\n SNPInputActive = true;\r\n //SNPInformation.setCaption(\"\");\r\n System.out.println(\"searchSNP(): \" + searchString);\r\n //System.out.println(currentSNP == null);\r\n SNPInput.setValue(searchString.replaceFirst(\" \\\\[your input\\\\]$\", \"\"));\r\n searchString = searchString.replaceFirst(\" \\\\[.*?\\\\]$\", \"\");\r\n \r\n if (searchString.equals(\"null\") || searchString.equals(\"\") || (currentSNP != null && currentSNP instanceof VerifiedSNP && searchString.equals(currentSNP.getID()))\r\n || searchString.contains(\"(not found)\")) {\r\n SNPInputActive = false;\r\n System.out.println(\"SNP already chosen\");\r\n //SNPRightGrid.removeComponent(SNPInformation);\r\n //SNPInformation = new Label(\"\");\r\n //SNPRightGrid.addComponent(SNPInformation);\r\n //viewSelector.setEnabled(true);// TODO: check effects\r\n \r\n //return false;\r\n }\r\n \r\n \r\n phenotypeSelector.setEnabled(false);\r\n //System.out.println(\"disabled\");\r\n //Notification.sendPlotOptions(\"disabled\", Notification.Type.TRAY_NOTIFICATION);\r\n currentSNPInputValue = searchString;\r\n \r\n VerifiedSNP verifiedSNP = null;\r\n \r\n SNPIDParser snpIDParser = new SNPIDParser(searchString);\r\n SNPIDFormat IDFormat = snpIDParser.getIDFormat();\r\n \r\n //System.out.println(\"format: \" + snpIDParser.getIDFormat());\r\n \r\n if (IDFormat == SNPIDFormat.UNRECOGNIZED) {\r\n SNPInputActive = false;\r\n verifiedSNP = null;\r\n } \r\n else if (IDFormat.equals(SNPIDFormat.CHROMOSOME_POSITION)) { // SNP entered in format chromosome:position\r\n String chromosome = snpIDParser.getChromosome();\r\n String position = snpIDParser.getPosition();\r\n \r\n verifiedSNP = database.getSNP(chromosome, position);\r\n \r\n if (verifiedSNP != null && !verifiedSNP.hasData() && !verifiedSNP.hasAnnotation()) { // SNP is not found in the database system; try searching the neighbourhood\r\n Map <String, String> result = database.getNearestSNPs(chromosome, Integer.parseInt(position));\r\n System.out.println(\"result: \" + result);\r\n \r\n if (result.get(\"result\").equals(\"exact\")) {\r\n verifiedSNP = database.getSNP(new SNPIDParser(result.get(\"0\")));\r\n }\r\n else {\r\n List <String> snpOptions = new ArrayList();\r\n\r\n if (result.containsKey(\"-1\")) {\r\n snpOptions.add(result.get(\"-1\"));\r\n }\r\n if (result.containsKey(\"1\")) {\r\n snpOptions.add(result.get(\"1\"));\r\n }\r\n\r\n RadioButtonGroup <String> selection = new RadioButtonGroup(\"Select SNP\", snpOptions);\r\n selection.addValueChangeListener(event -> searchSNP(event.getValue()));\r\n String windowCaption = \"SNPs nearest to position \" + position + \" on chromosome \" + chromosome + \":\";\r\n Window window = new Window(windowCaption);\r\n window.center();\r\n window.setContent(selection);\r\n window.setWidth(Math.round(windowCaption.length()*9.7), Sizeable.Unit.PIXELS);\r\n window.setHeight(10, Sizeable.Unit.PERCENTAGE);\r\n getComponent().getUI().addWindow(window);\r\n }\r\n\r\n }\r\n }\r\n else {\r\n verifiedSNP = database.getSNP(snpIDParser);\r\n }\r\n \r\n \r\n \r\n //viewSelector.setEnabled(true);\r\n phenotypeSelector.setEnabled(true);\r\n //Notification.sendPlotOptions(\"enabled\", Notification.Type.TRAY_NOTIFICATION);\r\n //System.out.println(\"enabled\");\r\n if (verifiedSNP == null) {\r\n if (!snpUpdateInProgress) {\r\n if (IDFormat.equals(SNPIDFormat.CHROMOSOME_POSITION)) {\r\n getController().setActiveSNP(new InputSNP(snpIDParser.getChromosome(), snpIDParser.getPosition()));\r\n }\r\n else {\r\n getController().setActiveSNP(new InputSNP(searchString));\r\n }\r\n }\r\n }\r\n else {\r\n getController().setActiveSNP(verifiedSNP);\r\n }\r\n if (!snpUpdateInProgress) {\r\n updateSNP();\r\n }\r\n SNPInputActive = false;\r\n }", "private void initSearchBar(){\n /////// Code to run the autocomplete search bar\n\n //setContentView(R.layout.activity_item);\n\n //Reference the widget\n //AutoCompleteTextView searchBar = findViewById(R.id.search_items);\n searchBar = findViewById(R.id.search_items);\n\n //Create an array adapter to supply suggestions to the bar\n ArrayAdapter<String> itemAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,itemsOnlyList);\n\n //Pass the adapter to the text field\n searchBar.setAdapter(itemAdapter);\n\n searchBar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n InputMethodManager in = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n in.hideSoftInputFromWindow(view.getApplicationWindowToken(), 0);\n }\n });\n\n\n //Add items to the list based on click\n addItemButton = findViewById(R.id.button_AddItem);\n\n //Interact with the recycler view if the user clicks the plus button\n addItemButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //Behaviour to add a new item to the recycler view\n\n // Find the card info class based on the user selection\n for (int m = 0; m < itemsOnlyList.length; m++){\n\n if(searchBar.getText().toString().equals(itemArray[m].getCardName().intern())){\n //Add the new card to the player hand array??\n playerCards.add(itemArray[m]);\n\n //Add the one card in question to this variable.\n playerCard = itemArray[m];\n\n //Leave the loop if a match is found\n break;\n }\n }\n\n updateListView(playerCards);\n }\n });\n\n }", "@Override\n public void onTextChanged(CharSequence cs, int arg1, int arg2, int arg3) {\n \tSystem.out.println(cs);\n \tsearchTxt = cs; \n \tif(searchTxt.length() == 0) {\n \t\tMainActivity.this.adapter.getFilter().filter(null);\n \t}\n }" ]
[ "0.7613495", "0.75798106", "0.7080074", "0.7006497", "0.7003873", "0.69389", "0.6788166", "0.6540765", "0.6487324", "0.6309448", "0.6274016", "0.61205673", "0.6021113", "0.6012043", "0.5971461", "0.5952813", "0.58208567", "0.573832", "0.5654313", "0.5645999", "0.56419593", "0.5607825", "0.55106634", "0.54930055", "0.54627573", "0.54271764", "0.53776723", "0.5287189", "0.5269178", "0.52482015", "0.5228051", "0.52218145", "0.5206963", "0.5204442", "0.51935655", "0.51778173", "0.5158192", "0.515653", "0.5143264", "0.5139576", "0.5134025", "0.51065236", "0.508887", "0.5069757", "0.50630164", "0.5059872", "0.50550944", "0.50517744", "0.5050152", "0.5048724", "0.50409627", "0.50405794", "0.5021406", "0.5020081", "0.5017444", "0.50135386", "0.5010749", "0.50095934", "0.5008609", "0.5001215", "0.50003517", "0.49977133", "0.4996956", "0.49945194", "0.49852008", "0.49844262", "0.4976159", "0.49725237", "0.4968943", "0.49666163", "0.49623618", "0.4958097", "0.4952585", "0.49523872", "0.4950193", "0.49433386", "0.49423182", "0.4939511", "0.49335846", "0.49244016", "0.4920615", "0.4915694", "0.49021992", "0.48933494", "0.48927125", "0.4891771", "0.4889683", "0.48891845", "0.48868993", "0.4875711", "0.48607138", "0.48554215", "0.48414358", "0.4838291", "0.48292834", "0.4816486", "0.48160028", "0.48144484", "0.4813925", "0.48107234" ]
0.8069743
0
Uses the second SearchBar (searchBar1) to check the productTableView for Product IDs and or Product Names. Initially checks to make sure the searchbar isn't empty, otherwise it displays all Products. Otherwise, the method uses Regex to check for numbers that match the Product ID, it accomplishes this with the help of lookupProduct from the Inventory Class. If a string is being inputted instead, it uses the other lookupProduct method from Inventory, and this one finds Products that contain the String that is being inputted into the TextField. This method runs on key lift and activation of the searchBar1 TextField.
public void searchProducts() { if(!searchBar1.getText().equals("")) { if(searchBar1.getText().matches("[0-9]*")) { int number = Integer.parseInt(searchBar1.getText()); ObservableList<Product> newProductList = FXCollections.observableArrayList(); Product product = Inventory.lookupProduct(number); newProductList.add(product); productTableView.setItems(newProductList); if(newProductList.contains(null)) { alert.setAlertType(Alert.AlertType.ERROR); alert.setContentText("No Product with that Name or ID found."); alert.show(); } } else { ObservableList<Product> newProductList = FXCollections.observableArrayList(); newProductList = Inventory.lookupProduct(searchBar1.getText()); productTableView.setItems(newProductList); if(newProductList.isEmpty()) { alert.setAlertType(Alert.AlertType.ERROR); alert.setContentText("No Product with that Name or ID found."); alert.show(); } } } else { productTableView.setItems(Inventory.getAllProducts()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleSearchProducts()\n {\n int searchProductID;\n Product searchedProduct;\n ObservableList<Product> searchedProducts;\n if (!productSearchTextField.getText().isEmpty())\n {\n // Clear selection from table\n productTable.getSelectionModel().clearSelection();\n\n try {\n // First try to search for part ID\n searchProductID = Integer.parseInt(productSearchTextField.getText());\n searchedProduct = this.inventory.lookupProduct(searchProductID);\n if (searchedProduct != null)\n productTable.getSelectionModel().select(searchedProduct);\n else // if ID parsed and not found\n throw new Exception(\"Item not found\");\n\n } catch (Exception e) {\n // If ID cannot be parsed, try to search by name\n searchedProducts = this.inventory.lookupProduct(productSearchTextField.getText());\n\n if (searchedProducts != null && searchedProducts.size() > 0)\n {\n // If product search yields results\n searchedProducts.forEach((product -> {\n productTable.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n productTable.getSelectionModel().select(product);\n }));\n }\n else\n { // If no products found alert user\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"No product was found!\");\n alert.setHeaderText(\"No product was found!\");\n alert.setContentText(\"Your search returned no results.\\n\" +\n \"Please enter the product ID or part name and try again.\");\n alert.show();\n }\n }\n }\n else\n {\n productTable.getSelectionModel().clearSelection();\n }\n }", "@FXML\r\n public void lookupProduct() {\r\n \r\n String text = productSearchTxt.getText().trim();\r\n if (text.isEmpty()) {\r\n //No text was entered. Displaying all existing products from inventory, if available\r\n displayMessage(\"No text entered. Displaying existing products, if available\");\r\n updateProductsTable(stock.getAllProducts());\r\n }\r\n else{\r\n ObservableList<Product> result = stock.lookupProduct(text);\r\n if (!result.isEmpty()) {\r\n //Product found in inventory. Displaying information available. \r\n updateProductsTable(result);\r\n }\r\n else {\r\n //Product not found in inventory. Displaying all existing products from inventory, if available\r\n displayMessage(\"Product not found. Displaying existing products, if available\");\r\n updateProductsTable(stock.getAllProducts());\r\n }\r\n }\r\n }", "public void onActionSearchProducts(ActionEvent actionEvent) {\r\n\r\n try {\r\n String search = searchProducts.getText();\r\n\r\n ObservableList<Product> searched = Inventory.lookupProduct(search);\r\n\r\n if (searched.size() == 0) {\r\n Alert alert1 = new Alert(Alert.AlertType.ERROR);\r\n alert1.setTitle(\"Name not found\");\r\n alert1.setContentText(\"Product name not found. If a number is entered in the search box, an id search will occur.\");\r\n alert1.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\r\n alert1.showAndWait();\r\n try {\r\n int id = Integer.parseInt(search);\r\n Product product1 = Inventory.lookupProduct(id);\r\n if (product1 != null) {\r\n searched.add(product1);\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setTitle(\"Error Message\");\r\n alert2.setContentText(\"Product name and id not found.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (NumberFormatException e) {\r\n //ignore\r\n }\r\n }\r\n\r\n productsTableView.setItems(searched);\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "private void getSearchButtonSemantics() {\n //TODO implement method\n searchView.getResultsTextArea().setText(\"\");\n if (searchView.getFieldComboBox().getSelectedItem() == null) {\n JOptionPane.showMessageDialog(new JFrame(), \"Please select a field!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getFieldComboBox().requestFocus();\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"SKU\")) {\n Optional<Product> skuoptional = inventoryModel.searchBySku(searchView.getSearchValueTextField().getText());\n if (skuoptional.isPresent()) {//check if there is an inventory with that SKU\n searchView.getResultsTextArea().append(skuoptional.get().toString());\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified SKU was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Name\")) {\n List<Product> name = inventoryModel.searchByName(searchView.getSearchValueTextField().getText());\n if (!name.isEmpty()) {\n for (Product nameproduct : name) {\n searchView.getResultsTextArea().append(nameproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified name was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Wholesale price\")) {\n try {\n List<Product> wholesaleprice = inventoryModel.searchByWholesalePrice(Double.parseDouble(searchView.getSearchValueTextField().getText()));\n if (!wholesaleprice.isEmpty()) {//check if there is an inventory by that wholesale price\n for (Product wholesalepriceproduct : wholesaleprice) {\n searchView.getResultsTextArea().append(wholesalepriceproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified wholesale price was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified wholesale price is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Retail price\")) {\n try {\n List<Product> retailprice = inventoryModel.searchByRetailPrice(Double.parseDouble(searchView.getSearchValueTextField().getText()));\n if (!retailprice.isEmpty()) {\n for (Product retailpriceproduct : retailprice) {\n searchView.getResultsTextArea().append(retailpriceproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified retail price was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified retail price is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Quantity\")) {\n try {\n List<Product> quantity = inventoryModel.searchByQuantity(Integer.parseInt(searchView.getSearchValueTextField().getText()));\n if (!quantity.isEmpty()) {\n for (Product quantityproduct : quantity) {\n searchView.getResultsTextArea().append(quantityproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified quantity was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified quantity is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n }\n }", "public void initSearchWidget(){\n\n searchview.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n\n //Closes the keyboard once query is submitted\n searchview.clearFocus();\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n\n //New arraylist for filtered products\n List<product> filteredList = new ArrayList<>();\n\n //Iterating over the array with products and adding every product that matches\n //the query to the new filtered list\n for (product product : listOfProducts){\n if (product.getProductName().toLowerCase().contains(newText.toLowerCase())){\n filteredList.add(product);\n }\n }\n\n //Hides the product list and display \"not found\" message when can't find match\n if (filteredList.size()<1){\n recyclerView.setVisibility(View.GONE);\n noResults.setVisibility(View.VISIBLE);\n }else {\n recyclerView.setVisibility(View.VISIBLE);\n noResults.setVisibility(View.GONE);\n }\n\n //Sets new adapter with filtered products to the recycler view\n productAdapter = new Adapter(MainActivity.this,filteredList);\n recyclerView.setAdapter(productAdapter);\n\n return true;\n }\n });\n }", "@Override\n public boolean onQueryTextChange(String newText) {\n List<product> filteredList = new ArrayList<>();\n\n //Iterating over the array with products and adding every product that matches\n //the query to the new filtered list\n for (product product : listOfProducts){\n if (product.getProductName().toLowerCase().contains(newText.toLowerCase())){\n filteredList.add(product);\n }\n }\n\n //Hides the product list and display \"not found\" message when can't find match\n if (filteredList.size()<1){\n recyclerView.setVisibility(View.GONE);\n noResults.setVisibility(View.VISIBLE);\n }else {\n recyclerView.setVisibility(View.VISIBLE);\n noResults.setVisibility(View.GONE);\n }\n\n //Sets new adapter with filtered products to the recycler view\n productAdapter = new Adapter(MainActivity.this,filteredList);\n recyclerView.setAdapter(productAdapter);\n\n return true;\n }", "private void search(String product) {\n // ..\n }", "public void searchParts()\n {\n if(!searchBar0.getText().equals(\"\"))\n {\n if(searchBar0.getText().matches(\"[0-9]*\"))\n {\n int number = Integer.parseInt(searchBar0.getText());\n ObservableList<Part> newPartList = FXCollections.observableArrayList();\n Part part = Inventory.lookupPart(number);\n newPartList.add(part);\n partTableView.setItems(newPartList);\n if(newPartList.contains(null)) {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"No Part with that Name or ID found.\");\n alert.show();\n }\n } else {\n ObservableList<Part> newPartList = FXCollections.observableArrayList();\n newPartList = Inventory.lookupPart(searchBar0.getText());\n partTableView.setItems(newPartList);\n if(newPartList.isEmpty()) {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"No Part with that Name or ID found.\");\n alert.show();\n }\n }\n } else {\n partTableView.setItems(Inventory.getAllParts());\n }\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\t\tString productNameInput = textField_search_input.getText();\r\n\t\t\t\t\t\t\t\tproductNameInput.trim();\r\n\t\t\t\t\t\t\t\tif(validateEmpty(productNameInput) == false){\r\n\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Search cannot be empty. Please enter a product name, description or notes.\");\t\t\r\n\t\t\t\t\t\t\t\t\tfillTableFindByName(model_search);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(productNameInput.trim().matches(\"^[-0-9A-Za-z.,'() ]*$\")){\r\n\t\t\t\t\t\t\t\t\tCashier cashierProductByName = new Cashier();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tfor (int i = model_search.getRowCount()-1; i >= 0; --i) {\r\n\t\t\t\t\t\t\t\t\t\tmodel_search.removeRow(i);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tproductByLike = new Vector<Product>();\r\n\t\t\t\t\t\t\t\t\tcashierProductByName.findProductUsingLike(productNameInput.trim(),productByLike);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"\");\r\n\t\t\t\t\t\t\t\t\t\tfor(int i = 0; i < productByLike.size(); i++){\r\n\t\t\t\t\t\t\t\t\t\t\tif(productBySearch.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor(int j = 0; j < productBySearch.size(); j++){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(productByLike.get(i).getID() == productBySearch.get(j).getID()){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tproductByLike.get(i).setQuantity(productBySearch.get(j).getQuantity());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//No match\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t//Printing it in the outside loop, the value doesn't alter here, values that alter will and will print them outside\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"No product was found in inventory.\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\tfor(int k = 0; k < productByLike.size(); k++){\r\n\t\t\t\t\t\t\t\t\t\t\tmodel_search.addRow(new Object[]{k+1,productByLike.get(k).getName(),productByLike.get(k).getDescription(),productByLike.get(k).getQuantity(),productByLike.get(k).getSalePrice(),productByLike.get(k).getNotes()});\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}", "@FXML\n\tprivate void searchButtonAction(ActionEvent clickEvent) {\n\t\t\n\t\tString searchParameter = partsSearchTextField.getText().trim();\n\t\tScanner scanner = new Scanner(searchParameter);\n\t\t\n\t\tif (scanner.hasNextInt()) {\n\t\t\t\n\t\t\tPart part = Inventory.lookupPart(Integer.parseInt(searchParameter));\n\t\t\t\n\t\t\tif (part != null) {\n\t\t\t\t\n\t\t\t\tpartSearchProductTable.setItems(\n\t\t\t\t\tInventory.lookupPart(part.getName().trim().toLowerCase()));\n\t\t\t}\n\t\t} else {\n\t\t\t\n\t\t\tpartSearchProductTable.setItems(\n\t\t\t\t\tInventory.lookupPart(searchParameter.trim().toLowerCase()));\n\t\t}\n\t}", "@FXML\n void modifyProductSearchOnAction(ActionEvent event) {\n if (modifyProductSearchField.getText().matches(\"[0-9]+\")) {\n modProdAddTable.getSelectionModel().select(Inventory.partIndex(Integer.valueOf(modifyProductSearchField.getText())));\n } else {\n modProdAddTable.getSelectionModel().select(Inventory.partName(modifyProductSearchField.getText()));\n }\n //modProdAddTable.getSelectionModel().select(Inventory.partIndex(Integer.valueOf(modifyProductSearchField.getText())));\n }", "private static void searchForItem() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println(\" Please type your search queries\");\r\n\t\tSystem.out.println();\r\n\t\tString choice = \"\";\r\n\t\tif (scanner.hasNextLine()) {\r\n\t\t\tchoice = scanner.nextLine();\r\n\t\t}\r\n\t\t//Currently only supports filtering by name\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" All products that matches your search are as listed\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Id|Name |Brand |Price |Total Sales\");\r\n\t\tint productId = 0;\r\n\t\tfor (Shop shop : shops) {\r\n\t\t\tint l = shop.getAllSales().length;\r\n\t\t\tfor (int j = 0; j < l; j++) {\r\n\t\t\t\tif (shop.getAllSales()[j].getName().contains(choice)) {\r\n\t\t\t\t\tprintProduct(productId, shop.getAllSales()[j]);\r\n\t\t\t\t}\r\n\t\t\t\tproductId++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@FXML\r\n private void searchTxtAction(ActionEvent event) throws IOException {\r\n \r\n if (event.getSource() == partSearchTxt) {\r\n lookupPart();\r\n }\r\n else {\r\n if (event.getSource() == productSearchTxt) {\r\n lookupProduct();\r\n }\r\n }\r\n }", "public Boolean enterAndSearchProductName(String productName,int expProduct)\n\t{ Boolean status=false;\n\tString vSearchBoxValue=searchTextBox.getAttribute(\"value\");\n\tif (!vSearchBoxValue.equals(\"\"))\n\t{\n\t\tsearchTextBox.clear();\n\t}\n\tsearchTextBox.sendKeys(productName);\n\ttry {\n\t\tThread.sleep(4000);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\tsearchTextBox.sendKeys(Keys.ENTER);\n\tList<WebElement> getProductIdlstWebElmnts=driver.findElements(By.xpath(\"//div[@class='s-main-slot s-result-list s-search-results sg-row']//div[starts-with(@data-component-type,'s-search-result')]\"));\n\tWebDriverWait wt2= new WebDriverWait(driver,30);\n\twt2.until(ExpectedConditions.visibilityOfAllElements(getProductIdlstWebElmnts));\n\tcollectnToStorePrdktIdLst.add(getProductIdlstWebElmnts.get(expProduct).getAttribute(\"data-asin\") );\n\ttry\n\t{ if (getProductIdlstWebElmnts.get(expProduct).getAttribute(\"data-asin\")!=\"\")\n\t{List<WebElement> getProductNamelstWebelement=driver.findElements(By.xpath(\"//div[@class='s-main-slot s-result-list s-search-results sg-row']//div[starts-with(@data-component-type,'s-search-result')]//h2//a\"));\n\tString getProductNameText=getProductNamelstWebelement.get(expProduct).getText();\n\tcollectnToStorePrdktNameLst.add(getProductNameText);\t\n\tgetProductNamelstWebelement.get(expProduct).click();\n\tstatus=true;\n\t}\n\t}catch(Exception e)\n\t{\n\t\tSystem.out.println(e);\n\t}\n\treturn status;\n\t}", "public void searchForProduct(String productName) {\n setTextOnSearchBar(productName);\n clickOnSearchButton();\n }", "public void searchFunction1() {\n textField_Search.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n tableView_recylce.setPredicate(new Predicate<TreeItem<EntryProperty>>() {\n @Override\n public boolean test(TreeItem<EntryProperty> entryTreeItem) {\n Boolean flag = entryTreeItem.getValue().titleProperty().getValue().toLowerCase().contains(newValue.toLowerCase()) ||\n entryTreeItem.getValue().usernameProperty().getValue().toLowerCase().contains(newValue.toLowerCase());\n return flag;\n }\n });\n }\n });\n }", "private void startSearch(CharSequence text) {\n Query searchByName = product.orderByChild(\"productName\").equalTo(text.toString().trim());\n\n FirebaseRecyclerOptions<Product> productOptions = new FirebaseRecyclerOptions.Builder<Product>()\n .setQuery(searchByName, Product.class)\n .build();\n\n searchAdapter = new FirebaseRecyclerAdapter<Product, ProductViewHolder>(productOptions) {\n @Override\n protected void onBindViewHolder(@NonNull ProductViewHolder viewHolder, int position, @NonNull Product model) {\n\n viewHolder.product_name.setText(model.getProductName());\n\n Picasso.with(getBaseContext()).load(model.getProductImage())\n .into(viewHolder.product_image);\n\n final Product local = model;\n\n viewHolder.setItemClickListener(new ItemClickListener() {\n @Override\n public void onClick(View view, int position, boolean isLongClick) {\n\n Intent product_detail = new Intent(ProductListActivity.this, ProductDetailActivity.class);\n product_detail.putExtra(\"productId\", searchAdapter.getRef(position).getKey());\n startActivity(product_detail);\n }\n });\n }\n\n @NonNull\n @Override\n public ProductViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {\n\n View itemView = LayoutInflater.from(viewGroup.getContext())\n .inflate(R.layout.item_products, viewGroup, false);\n return new ProductViewHolder(itemView);\n }\n };\n searchAdapter.startListening();\n recycler_product.setAdapter(searchAdapter);\n }", "public void handleSearchParts()\n {\n int searchPartID;\n Part searchedPart;\n ObservableList<Part> searchedParts;\n if (!partSearchTextField.getText().isEmpty())\n {\n // Clear selection from table\n partTable.getSelectionModel().clearSelection();\n\n try {\n // First try to search for part ID\n searchPartID = Integer.parseInt(partSearchTextField.getText());\n searchedPart = this.inventory.lookupPart(searchPartID);\n if (searchedPart != null)\n partTable.getSelectionModel().select(searchedPart);\n else // if ID parsed and not found\n throw new Exception(\"Item not found\");\n\n } catch (Exception e) {\n // If ID cannot be parsed, try to search by name\n searchedParts = this.inventory.lookupPart(partSearchTextField.getText());\n if (searchedParts != null && searchedParts.size() > 0)\n {\n // If part search yields results\n searchedParts.forEach((part -> {\n partTable.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n partTable.getSelectionModel().select(part);\n }));\n }\n else\n {\n // Alert user that no part was found\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"No part was found!\");\n alert.setHeaderText(\"No part was found!\");\n alert.setContentText(\"Your search returned no results.\\n\" +\n \"Please enter the part ID or part name and try again.\");\n alert.show();\n }\n }\n }\n else\n {\n partTable.getSelectionModel().clearSelection();\n }\n }", "static void searchProductDB() {\n\n int productID = Validate.readInt(ASK_PRODUCTID); // store product ID of user entry\n\n\n productDB.findProduct(productID); // use user entry as parameter for the findProduct method and if found will print details of product\n\n }", "@FXML\r\n public void lookupPart() {\r\n \r\n String text = partSearchTxt.getText().trim();\r\n if (text.isEmpty()) {\r\n //No text was entered. Displaying all existing parts from inventory, if available\r\n displayMessage(\"No text entered. Displaying existing parts, if available\");\r\n updatePartsTable(stock.getAllParts());\r\n }\r\n else{\r\n ObservableList<Part> result = stock.lookupPart(text);\r\n if (!result.isEmpty()) {\r\n //Part foung in inventory. Displaying information available. \r\n updatePartsTable(result);\r\n }\r\n else {\r\n //Part not found in inventory. Displaying all existing parts from inventory, if available\r\n displayMessage(\"Part not found. Displaying existing parts, if available\");\r\n updatePartsTable(stock.getAllParts());\r\n }\r\n }\r\n \r\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tif(productBySearch.size() > 0){\r\n\t\t\t\t\tproductBySearch.clear();\r\n\t\t\t\t}\r\n\t\t\t\tif(productByLike == null){\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse if(productByLike.size() > 0){\r\n\t\t\t\t\tpreviousValue.clear();\r\n\t\t\t\t}\r\n\t\t\t\tif(previousValue.size() > 0){\r\n\t\t\t\t\tpreviousValue.clear();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\ttempProductSearch = new Product();\r\n\t\t\t\tsubtotal_textField.setText(\"Subtotal: $0.0\");\r\n\t\t\t\ttax_textField.setText(\"Tax: $0.0\");\r\n\t\t\t\ttotal_textField.setText(\"Total: $0.0\");\r\n\t\t\t\t\r\n\t\t\t\ttextField_productID_input.setText(\"\");\r\n\t\t\t\ttextField_name_input.setText(\"\");\r\n\t\t\t\ttextField_description_input.setText(\"\");\r\n\t\t\t\ttextField_quantity_input.setText(\"\");\r\n\t\t\t\ttextPane_productID_notFound.setText(\"\");\r\n\t\t\t\t\r\n\t\t\t\t//Table\r\n\t\t\t\t//private JTable table;\r\n\t\t\t\tremoveTableRows(model); //Clears table rows, model.\r\n\t\t\t\t\r\n\t\t\t\tif(data.size() > 0){\r\n\t\t\t\t\tdata.clear();\r\n\t\t\t\t}\r\n\t\t\t\ttableListenerCount = 0;\r\n\t\t\t\t\r\n\t\t\t\t//Sales Total\r\n\t\t\t\tsubTotal = 0;\r\n\t\t\t\ttax = 0;\r\n\t\t\t\ttotal = 0;\r\n\t\t\t\tc = 0;\r\n\t\t\t\tstringTempPrice = null;\r\n\t\t\t\ttransactionType = null;\r\n\t\t\t\ttransactionMethod = null;\r\n\t\t\t\tpromotionID = 0;\r\n\t\t\t\t\r\n\t\t\t\t//Discount\r\n\t\t\t\tdetail_discountID = 0;\r\n\t\t\t\tdetail_discountType = null;\r\n\t\t\t\toneTimeDiscountCheck = false;\r\n\t\t\t\t//discount_option.setText(\"\");\r\n\t\t\t\tdetail_discountValue = 0;\r\n\t\t\t\t\r\n\t\t\t\t//Discount buttons\r\n\t\t\t\tbutton_discount.setVisible(true);\r\n\t\t\t\tbtnDiscountDetails.setVisible(false);\r\n\t\t\t\t\r\n\t\t\t\ttextField_productID_input.requestFocusInWindow();\r\n\t\t\t}", "public void search(String searchTerm)\r\n\t{\r\n\t\tpalicoWeapons = FXCollections.observableArrayList();\r\n\t\tselect(\"SELECT * FROM Palico_Weapon WHERE name LIKE '%\" + searchTerm + \"%'\");\r\n\t}", "@FXML\n void searchBtnClick(ActionEvent event) {\n String searchTerm = searchField.getText();\n partList.getItems().clear();\n partHashMap.clear();\n\n // If the search term inputted by the user is empty, the system refreshes the list with every value available.\n if(searchTerm.isEmpty()) {\n refreshList();\n }\n\n // Otherwise, it only adds the parts that contain the currently inputted value as either their ID, stock level or\n // name to the list of available parts.\n else {\n PartDAO partDAO = new PartDAO();\n for(Part p: partDAO.getAll()) {\n if((p.getPartID().contains(searchTerm) || p.getName().contains(searchTerm) || String.valueOf(p.getStockLevel()).contains(searchTerm))\n && p.getStockLevel() > 0) {\n Label partLabel = new Label(\"ID: \" + p.getPartID() + \" / Name: \" + p.getName() + \" / Stock: \" + p.getStockLevel());\n partHashMap.put(partLabel.getText(), p);\n partList.getItems().add(partLabel);\n }\n }\n }\n }", "@FXML\r\n\tvoid search_btn_clicked(MouseEvent event) {\r\n\t\tObservableList<SalePattern> found_sales = FXCollections.observableArrayList();\r\n\t\ttry {\r\n\t\t\tif (!search_txt.getText().isEmpty()) {\r\n\t\t\t\tfor (SalePattern sale : sale_patterns_list) {\r\n\t\t\t\t\tInteger search = new Integer(search_txt.getText());\r\n\t\t\t\t\tif (search <= 0) {\r\n\t\t\t\t\t\tthrow new Exception();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (sale.getGasStationTag().toString().startsWith(search.toString())) {\r\n\t\t\t\t\t\tfound_sales.add(sale);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsales_table.setItems(FXCollections.observableArrayList());\r\n\t\t\t\tif (found_sales != null) {\r\n\t\t\t\t\tsales_table.getItems().addAll(found_sales);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsales_table.setItems(sale_patterns_list);\r\n\t\t\t}\r\n\t\t\tsearch_txt.setStyle(null);\r\n\t\t} catch (Exception e) {\r\n\t\t\tsearch_txt.setStyle(\"-fx-text-box-border: #FF0000; -fx-focus-color: #FF0000;\");\r\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\talert.setTitle(\"Invalid input\");\r\n\t\t\talert.setHeaderText(null);\r\n\t\t\talert.setContentText(\"Input entered is not valid please try again\");\r\n\t\t\talert.show();\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "@FXML\n void RefresheSearchPart(KeyEvent event) {\n\n if (partSearchText.getText().isEmpty()) {\n partTableView.setItems(Inventory.getAllParts());\n }\n }", "@Override\n\t\tpublic void searchProduct(HashMap<String, String> searchKeys) {\n\t\t\t \n\t\t\tQueryStringFormatter formatter=new QueryStringFormatter(\"http://www.target.com/s\");\n\t\t\ttry{\n\t\t\t\t//formatter.addQuery1(\"query\", \"ca77b9b4beca91fe414314b86bb581f8en20\");\n\t\t\t\t\n\t\t\t\tString color=(String)searchKeys.get(ProductSearch.COLOR);\n\t\t\t\tString min=(String)searchKeys.get(ProductSearch.MIN_PRICE);\n\t\t\t\tString max=(String)searchKeys.get(ProductSearch.MAX_PRICE);\n\t\t\t\t\n\t\t\t\tif((searchKeys.get(ProductSearch.BRAND_NAME)!=null) && (searchKeys.get(ProductSearch.PRODUCT_NAME)!=null)){\n\t\t\t\t\t\n\t\t\t\tformatter.addQuery1(\"searchTerm\",(String)searchKeys.get(ProductSearch.BRAND_NAME)+\" \"+(String)searchKeys.get(ProductSearch.PRODUCT_NAME));\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\tif(color!=null){\n\t\t\t\tformatter.addQuery1(\"\",color);\n\t\t\t\t}\n\t\t\t\tif(min.length()>0&&max.length()>0)\n\t\t\t\t{\n\t\t\t\t//formatter.addQuery(\"color\",(String)searchKeys.get(HeadPhonesSearch.COLOR_S)+\" Price between $\"+(String)searchKeys.get(HeadPhonesSearch.MIN_PRICE)+\" to $\"+(String)searchKeys.get(HeadPhonesSearch.MAX_PRICE));\n\t\t\t\t\t\n\t\t\t\t\tformatter.addQuery1(\" Price between $\",min +\" to $\"+max);\n\t\t\t\t}\n\t\t\t\tString finalQueryString=\"http://www.target.com/s\"+formatter.getQueryString();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Query:\"+finalQueryString);\n\t\t\t\tprocessMyNodes(finalQueryString);\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}", "public boolean search(String prodName)\n\t{\n\t WebDriverWait wait = new WebDriverWait(driver, 20);\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(searchbox))).sendKeys(prodName);\n \n //Tap on search after entering prod name\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(searchBTN))).click();\n\t\n // When the page is loaded, verify whether the loaded result contains the name of product or not \n String k = driver.findElement(By.xpath(\"//*[@id=\\\"LST1\\\"]/div/div[1]/div[2]\")).getText();\n boolean p = k.contains(prodName);\n return p;\n \n\t}", "@Override\n\tpublic void searchProduct(HashMap<String, String> searchKeys) {\n\t\tQueryStringFormatter formatter=new QueryStringFormatter(\"http://shopper.cnet.com/1770-5_9-0.html\");\n\t\t\n\t\ttry\n\t\t{\n//\t\t\tformatter.addQuery(\"url\", \"search-alias\");\n\t\t\tif(searchKeys.get(ProductSearch.BRAND_NAME)!=null && searchKeys.get(ProductSearch.PRODUCT_NAME)!=null)\n\t\t\t{\n\t\t\t\tformatter.addQuery(\"query\",(String)searchKeys.get(ProductSearch.BRAND_NAME) +\" \"+ (String)searchKeys.get(ProductSearch.PRODUCT_NAME)+\" \" );\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tString color=(String)searchKeys.get(ProductSearch.COLOR);\n\t\t\tString min=(String)searchKeys.get(ProductSearch.MIN_PRICE);\n\t\t\tString max=(String)searchKeys.get(ProductSearch.MAX_PRICE);\n\t\t\tif(color!=null){\n\t\t\t\tformatter.addQuery(\"color\",color);\n\t\t\t}\n\t\t\tif(min.length()>0&&max.length()>0)\n\t\t\t{\n\t\t\t//formatter.addQuery(\"color\",(String)searchKeys.get(HeadPhonesSearch.COLOR_S)+\" Price between $\"+(String)searchKeys.get(HeadPhonesSearch.MIN_PRICE)+\" to $\"+(String)searchKeys.get(HeadPhonesSearch.MAX_PRICE));\n\t\t\t\t\n\t\t\t\tformatter.addQuery(\" Price between $\",min +\" to $\"+max);\n\t\t\t}\n\t\t\tformatter.addQuery(\"tag\",\"srch\");\n\t\t\t\n\t\t\tString finalQueryString=\"http://shopper.cnet.com/1770-5_9-0.html\"+formatter.getQueryString();\n\t\t\tSystem.out.println(\"query string :\"+formatter.getQueryString());\n\t\t\tSystem.out.println(\"Query:\"+finalQueryString);\n\t\t\tprocessMyNodes(finalQueryString);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\t\t\t\n\t\t\n\t}", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "public void searchFunction() {\n textField_Search.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n tableView.setPredicate(new Predicate<TreeItem<EntryProperty>>() {\n @Override\n public boolean test(TreeItem<EntryProperty> entryTreeItem) {\n Boolean flag = entryTreeItem.getValue().titleProperty().getValue().toLowerCase().contains(newValue.toLowerCase()) ||\n entryTreeItem.getValue().usernameProperty().getValue().toLowerCase().contains(newValue.toLowerCase());\n return flag;\n }\n });\n }\n });\n }", "@FXML\r\n private void searchBtnAction(ActionEvent event) throws IOException {\r\n \r\n if (event.getSource() == partSearchBtn) {\r\n lookupPart();\r\n }\r\n else {\r\n if (event.getSource() == productSearchBtn) {\r\n lookupProduct();\r\n }\r\n }\r\n \r\n }", "private void searchExec(){\r\n\t\tString key=jComboBox1.getSelectedItem().toString();\r\n\t\tkey=NameConverter.convertViewName2PhysicName(\"Discount\", key);\r\n\t\tString valueLike=searchTxtArea.getText();\r\n\t\tList<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike);\r\n\t\tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,\"Discount\"));\r\n\t}", "public void searchProd(){\n\t\t\n\t\t// STEP 4:-\n\t\t// Enter 'mobile' in search bar.\n\t\tWebElement search = driver.findElement(By.name(\"q\"));\n\t\tsearch.sendKeys(\"mobiles\");\n\t\tsearch.sendKeys(Keys.ENTER);\n\t\tSystem.out.println(\"Enter name successfully\");\n\t\t\t\t\t\n\t\t// Click on search icon.\n\t\t//WebElement searchClick = driver.findElement(By.className(\"L0Z3Pu\"));\n\t\t//searchClick.click();\n\t\t//System.out.println(\"clicked search button successfully\");\n\t}", "void searchForProducts(String searchQuery) {\n if (searchQuery.isEmpty()) {\n searchQuery = \"%\";\n } else {\n searchQuery = \"%\" + searchQuery + \"%\";\n }\n filter.postValue(searchQuery);\n }", "@FXML\r\n private void search(){\n \r\n String s = tfSearch.getText().trim(); \r\n String type = cmbType.getSelectionModel().getSelectedItem();\r\n String col = cmbFilterBy.getSelectionModel().getSelectedItem();\r\n \r\n /**\r\n * Column Filters\r\n * \r\n */\r\n \r\n \r\n if(!s.isEmpty()){\r\n if(!chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%' AND status<>'active'\", tblTrainingList);\r\n }\r\n\r\n if(chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%'\", tblTrainingList);\r\n } \r\n } \r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString input = ((String)comboBoxProductAuthor.getSelectedItem()).toLowerCase();\n\t\t\t\t//String input = (productAuthorTextField.getText()).toLowerCase();\t// Convert input text to lower case. \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//All names in array should be stored in lower case.\n\t\t\t\t\n\t\t\t\tif(input.trim().equals(\"select\")){ \t// If no value is selected\n\t\t\t\t\tproductTextArea.setText(\"\");\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistofProductTitle.setSelectedItem(\"Select\");\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select Product Author From Drop Down Menu\");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}else{\t\t\t\t\t\t\t// Take in String and Search for it.\n\t\t\t\t\tproductTextArea.setText(product.viewProductByAuthor(input, products));\t\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\t\t// This sets the position of the scroll bar to the top of the page.\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistofProductTitle.setSelectedItem(\"Select\");\n\t\t\t\t\tlistOfProductAuthor.setSelectedItem(\"Select\");\n\t\t\t\t\tpriceRange.clearSelection();\n\t\t\t\t\tquantity.clearSelection();\n\t\t\t\t}\n\t\t\t}", "@FXML\n public void initialize() {\n move();\n dataInFilterCheck();\n firstColumn.setCellValueFactory(new PropertyValueFactory<ProductInMenusShow, String>(\"id\"));\n secondColumn.setCellValueFactory(new PropertyValueFactory<ProductInMenusShow, String>(\"name\"));\n productImageViewTableColumn.setCellValueFactory(new PropertyValueFactory<ProductInMenusShow, ImageView>(\"productImage\"));\n forthColumn.setCellValueFactory(new PropertyValueFactory<ProductInMenusShow, Double>(\"price\"));\n fifthColumn.setCellValueFactory(new PropertyValueFactory<ProductInMenusShow, String>(\"seller\"));\n sixthColumn.setCellValueFactory(new PropertyValueFactory<ProductInMenusShow, String>(\"additionalDetail\"));\n seventh.setCellValueFactory(new PropertyValueFactory<ProductInMenusShow, Category>(\"category\"));\n tenth.setCellValueFactory(new PropertyValueFactory<ProductInMenusShow, String>(\"numberOfProduct\"));\n ninth.setCellValueFactory(new PropertyValueFactory<ProductInMenusShow, Double>(\"score\"));\n isSaleOrN.setCellValueFactory(new PropertyValueFactory<ProductInMenusShow, Label>(\"inSaleOrFinishLabel\"));\n eleventh.setCellValueFactory(new PropertyValueFactory<ProductInMenusShow, String>(\"firm\"));\n twelve.setCellValueFactory(new PropertyValueFactory<ProductInMenusShow, Integer>(\"numberOfViews\"));\n\n try {\n initializeObserverList();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n if(first){\n tableView.getColumns().addAll(firstColumn, secondColumn, productImageViewTableColumn, forthColumn, fifthColumn, sixthColumn, seventh, eleventh, tenth,ninth,twelve,isSaleOrN);\n }first = false;\n// tableView.setItems(data);\n\n\n searchField.textProperty().addListener((observable, oldValue, newValue) -> {\n filteredList.setPredicate(product -> {\n if (newValue == null || newValue.isEmpty()) {\n return true;\n }\n String lowerCaseFilter = newValue.toLowerCase();\n\n if (product.getName().toLowerCase().contains(lowerCaseFilter)) {\n return true;\n } else if (product.getCategory().toLowerCase().contains(lowerCaseFilter)) {\n return true;\n } else return false;\n });\n\n });\n\n minPriceTextField.textProperty().addListener((observable, oldValue, newValue) -> {\n filteredList.setPredicate(product -> {\n if (newValue == null || newValue.isEmpty()) {\n return true;\n }\n try{\n int priceFilter = Integer.parseInt(newValue);\n if (product.getPrice() > priceFilter) {\n return true;\n }\n }catch (NumberFormatException e){\n errorNumberFormat.setVisible(true);\n }\n return false;\n });\n\n });\n\n maxPriceTextField.textProperty().addListener((observable, oldValue, newValue) -> {\n filteredList.setPredicate(product -> {\n if (newValue == null || newValue.isEmpty()) {\n return true;\n }\n try{\n int priceFilter = Integer.parseInt(newValue);\n if (product.getPrice() < priceFilter) {\n return true;\n }\n }catch (NumberFormatException e){\n errorNumberFormat.setVisible(true);\n }\n return false;\n });\n\n });\n\n for (CheckBox checkBox : filterCatCheck) {\n checkBox.selectedProperty().addListener(new ChangeListener<Boolean>() {\n\n @Override\n public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {\n filteredList.setPredicate(obj -> {\n if (!checkBox.isSelected()) {\n return true;\n }\n if (checkBox.isSelected() && checkBox.getText().contains(\"category\")) {\n String[] s = checkBox.getText().split(\" \");\n if (s[1].equals(obj.getCategory())) {\n return true;\n }\n }\n if (checkBox.isSelected() && checkBox.getText().equals(\"isAvailable\") && obj.getNumberOfProduct() != 0){\n if (!filteredList.contains(obj)){\n return true;\n }\n }\n if (checkBox.isSelected() && checkBox.getText().contains(\"firm\")) {\n String[] s = checkBox.getText().split(\" \");\n if (s[1].equals(obj.getFirm())) {\n return true;\n }\n }\n if (checkBox.isSelected() && checkBox.getText().contains(\"seller\")){\n String[] s = checkBox.getText().split(\" \");\n if (s[1].equals(obj.getSeller())){\n return true;\n }\n }\n if (checkBox.isSelected() && checkBox.getText().contains(\"product\")){\n String[] s = checkBox.getText().split(\" \");\n if (s[1].equals(obj.name)){\n return true;\n }\n }\n if (checkBox.isSelected() && checkBox.getText().contains(\"number\")){\n sortedList.comparatorProperty().bind(tableView.comparatorProperty());\n tableView.setItems(sortedList);\n tableView.getSortOrder().addAll(tenth);\n return true;\n }\n if (checkBox.isSelected() && checkBox.getText().contains(\"score\")){\n sortedList.comparatorProperty().bind(tableView.comparatorProperty());\n tableView.setItems(sortedList);\n tableView.getSortOrder().addAll(ninth);\n return true;\n }\n if (checkBox.isSelected() && checkBox.getText().contains(\"price\")){\n sortedList.comparatorProperty().bind(tableView.comparatorProperty());\n tableView.setItems(sortedList);\n tableView.getSortOrder().addAll(forthColumn);\n return true;\n }\n return false;\n });\n }\n });\n\n// checkBox.selectedProperty().addListener(new ChangeListener<Boolean>() {\n// @Override\n// public void changed(ObservableValue<? extends Boolean> observableValue, Boolean aBoolean, Boolean t1) {\n// filteredListCat.setPredicate(obj -> {\n// String[] s = checkBox.getText().split(\" \");\n// if (!checkBox.isSelected()) {\n// return true;\n// }\n// if (checkBox.isSelected()){\n// if (obj.getTraits().contains(s[1])){\n// return true;\n// }\n// }\n// return false;\n// });\n// }\n// });\n }\n tableView.setEditable(true);\n catName.setCellValueFactory(new PropertyValueFactory<Category, String>(\"name\"));\n traits.setCellValueFactory(new PropertyValueFactory<Category, ArrayList<String>>(\"traits\"));\n dataInListView();\n categoriesListView.getColumns().addAll(catName, traits);\n categoriesListView.setItems(dataCat);\n sortedList = new SortedList<>(filteredList);\n sortedList.comparatorProperty().bind(tableView.comparatorProperty());\n tableView.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);\n tableView.getSelectionModel().setCellSelectionEnabled(true);\n tableView.setItems(sortedList);\n\n\n\n sortedList1 = new SortedList<>(filteredListCat);\n sortedList1.comparatorProperty().bind(categoriesListView.comparatorProperty());\n categoriesListView.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);\n categoriesListView.getSelectionModel().setCellSelectionEnabled(true);\n categoriesListView.setItems(sortedList1);\n\n\n }", "protected static void searchById(String Id)\n {\n for (Product element : productList)\n {\n if (element.productIdMatch(Id)) {\n System.out.println(\"\");\n ProductGUI.Display(\"\\n\");\n System.out.println(element);\n ProductGUI.Display(element.toString());\n\n }\n }\n }", "private void txtSearchingBrandKeyReleased(java.awt.event.KeyEvent evt) {\n String query=txtSearchingBrand.getText().toUpperCase();\n filterData(query);\n }", "@FXML\n\tvoid search(ActionEvent event) {\n\n\t\ttry {\n\n\t\t\tif(idEditText.getText().equals(\"\")) {\n\n\t\t\t\tthrow new InsufficientInformationException();\n\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\tPlanetarySystem ps = ns.search(Integer.parseInt(idEditText.getText()));\n\n\t\t\t\tif(ps != null) {\n\t\t\t\t\t\n\t\t\t\t\tloadInformation(ps);\t\t\t\t\t\n\t\t\t\t\teditSelectionAlerts();\n\t\t\t\t\tupdateValidationsAvailability(true);\n\t\t\t\t\tupdateButtonsAvailability(true, true, true);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsystemNotFoundAlert();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tcatch(InsufficientInformationException e) {\n\t\t\tinsufficientDataAlert();\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tsystemNotFoundAlert();\n\t\t}\n\n\t}", "@Override\n\tpublic List<ttu.rakarh1.backend.model.data.Product> searchProducts(\n\t\t\tfinal ProductSearchCriteria ProductSearchCriteria, final HttpServletRequest request)\n\t{\n\t\tList<ttu.rakarh1.backend.model.data.Product> ProductList = null;\n\t\ttry\n\t\t{\n\t\t\tProduct Product;\n\t\t\tProductList = new ArrayList<ttu.rakarh1.backend.model.data.Product>();\n\t\t\tdb = dbconnection.getConnection();\n\t\t\tst = this.db.createStatement();\n\t\t\tString sql_and = \"\";\n\t\t\tString sql_where = \"\";\n\t\t\tString sql_all_together = \"\";\n\t\t\tString sql_criteria = \"\";\n\t\t\tString sql_end = \" ORDER BY name\";\n\t\t\tString sql_additional_attr = \"\";\n\t\t\tString genSql = \"\";\n\t\t\tList<ttu.rakarh1.backend.model.data.FormAttribute> formAttributes = null;\n\t\t\tMyLogger.LogMessage(\"FORMATTRIBUTES1\");\n\t\t\tformAttributes = (List<FormAttribute>) request.getAttribute(\"formAttributes\");\n\n\t\t\tif (formAttributes != null)\n\t\t\t{\n\t\t\t\tMyLogger.LogMessage(\"FORMATTRIBUTES2\");\n\t\t\t\tsql_additional_attr = getAdditionalSqlAttr(formAttributes);\n\t\t\t}\n\n\t\t\tString sql_from = \" FROM item i \"; /* ,unit_type, item_type \"; */\n\t\t\tString sql_start = \"SELECT distinct i.item, i.unit_type_fk, i.supplier_enterprise_fk, i.item_type_fk,name, i.store_price, i.sale_price, i.producer, i.description, i.producer_code, i.created \";\n\t\t\t// MyLogger.LogMessage(\"SEARCH CRITERIA PRODUCT CODE\" +\n\t\t\t// ProductSearchCriteria.getProduct_code());\n\t\t\tif (ProductSearchCriteria.getGenAttrList() != null)\n\t\t\t{\n\t\t\t\tgenSql = getGeneralSqlAttr(ProductSearchCriteria);\n\t\t\t}\n\n\t\t\tif (!(ProductSearchCriteria.getProduct_code().equals(\"\")))\n\t\t\t{\n\t\t\t\tsql_criteria = \"UPPER(i.producer_code) LIKE UPPER('\"\n\t\t\t\t\t\t+ ProductSearchCriteria.getProduct_code() + \"%')\";\n\t\t\t}\n\n\t\t\tif (!(ProductSearchCriteria.getName().equals(\"\")))\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tString search_string = ProductSearchCriteria.getName().replace(\" \", \" & \");\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" (to_tsvector(name) @@ to_tsquery('\"\n\t\t\t\t\t\t+ search_string + \"'))\";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getMin_price() != -1)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" i.store_price >= \"\n\t\t\t\t\t\t+ Float.toString(ProductSearchCriteria.getMin_price()) + \" \";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getMax_price() != -1)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" i.store_price <= \"\n\t\t\t\t\t\t+ Float.toString(ProductSearchCriteria.getMax_price()) + \" \";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getSupplier_enterprise_fk() != 0)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" i.supplier_enterprise_fk = \"\n\t\t\t\t\t\t+ Integer.toString(ProductSearchCriteria.getSupplier_enterprise_fk()) + \" \";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getUnit_type_fk() != 0)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" i.unit_type_fk = \"\n\t\t\t\t\t\t+ Integer.toString(ProductSearchCriteria.getUnit_type_fk()) + \" \";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getItem_type_fk() != 0)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria\n\t\t\t\t\t\t+ sql_and\n\t\t\t\t\t\t+ \" i.item_type_fk in (with recursive sumthis(item_type, super_type_fk) as (\"\n\t\t\t\t\t\t+ \"select item_type, super_type_fk \" + \"from item_type \"\n\t\t\t\t\t\t+ \"where item_type =\"\n\t\t\t\t\t\t+ Integer.toString(ProductSearchCriteria.getItem_type_fk()) + \" \"\n\t\t\t\t\t\t+ \"union all \" + \"select C.item_type, C.super_type_fk \" + \"from sumthis P \"\n\t\t\t\t\t\t+ \"inner join item_type C on P.item_type = C.super_type_fk \" + \") \"\n\t\t\t\t\t\t+ \"select item_type from sumthis\" + \") \";\n\t\t\t}\n\n\t\t\tif (!(sql_criteria.equals(\"\")))\n\t\t\t{\n\t\t\t\tsql_where = \" WHERE \";\n\t\t\t}\n\t\t\tif (!genSql.equals(\"\"))\n\t\t\t{\n\t\t\t\tsql_from += \"inner join item_type it on it.item_type = i.item_type_fk inner join type_attribute ta on ta.item_type_fk = it.item_type inner join item_attribute_type iat on iat.item_attribute_type = ta.item_attribute_type_fk inner join item_attribute ia on ia.item_attribute_type_fk = iat.item_attribute_type\";\n\t\t\t\tsql_criteria += \" and (\" + genSql + \")\";\n\t\t\t\t// sql_all_together = \" inner join ( \" + sql_additional_attr +\n\t\t\t\t// \") q2 on q2.item_fk = item\";\n\t\t\t}\n\t\t\tsql_all_together = sql_start + sql_from;\n\t\t\tif (sql_additional_attr != \"\")\n\t\t\t{\n\t\t\t\tsql_all_together += \" inner join ( \" + sql_additional_attr\n\t\t\t\t\t\t+ \") q2 on q2.item_fk = i.item\";\n\n\t\t\t}\n\n\t\t\tsql_all_together += sql_where + sql_criteria + sql_end;\n\n\t\t\tMyLogger.LogMessage(\"ProductDAOImpl -> fdfdf \" + sql_all_together);\n\t\t\tSystem.out.println(sql_all_together);\n\t\t\tResultSet rs = this.st.executeQuery(sql_all_together);\n\t\t\tint cnt = 0;\n\t\t\twhile (rs.next())\n\t\t\t{\n\t\t\t\tProduct = new Product();\n\t\t\t\tProduct.setProduct(rs.getInt(\"item\"));\n\t\t\t\tProduct.setName(rs.getString(\"name\"));\n\t\t\t\tProduct.setDescription(rs.getString(\"description\"));\n\t\t\t\tProduct.setProduct_code(rs.getString(\"producer_code\"));\n\t\t\t\tProduct.setStore_price(rs.getFloat(\"store_price\"));\n\t\t\t\tProduct.setSale_price(rs.getInt(\"sale_price\"));\n\t\t\t\tProduct.setProduct_catalog(rs.getInt(\"item_type_fk\"));\n\t\t\t\tProductList.add(Product);\n\t\t\t\tcnt = cnt + 1;\n\t\t\t}\n\n\t\t}\n\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tMyLogger.Log(\"searchProducts():\", ex.getMessage());\n\n\t\t}\n\n\t\treturn ProductList;\n\t}", "private void setSearchItems(Number index) {\n String searchSelected;\n if (index == null) {\n searchSelected = searchSelection.getSelectionModel().getSelectedItem();\n } else {\n searchSelected = menuItems[index.intValue()];\n }\n\n final String searchText = searchField.getText().trim().toUpperCase();\n if (searchText == null || \"\".equals(searchText)) {\n // Search field is blank, remove filters if active\n if (searchFilter != null) {\n filterList.remove(searchFilter);\n searchFilter = null;\n }\n applyFilters();\n return;\n }\n\n boolean matchAny = MATCHANY.equals(searchSelected);\n\n if (searchFilter == null) {\n searchFilter = new CustomerListFilter();\n searchFilter.setOr(true);\n filterList.add(searchFilter);\n } else {\n searchFilter.getFilterList().clear();\n }\n if ((matchAny || SURNAME.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aSurname = a.getSurname().toUpperCase();\n return (aSurname.contains(searchText));\n });\n }\n if ((matchAny || FORENAME.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aForename = a.getForename().toUpperCase();\n return (aForename.contains(searchText));\n });\n }\n if (matchAny || CHILD.equals(searchSelected)) {\n searchFilter.addFilter(a -> {\n String aChildname = a.getChildrenProperty().getValue().toUpperCase();\n return (aChildname.contains(searchText));\n });\n }\n if ((matchAny || CARREG.equals(searchSelected))) {\n searchFilter.addFilter(a -> {\n String aCars = a.getCarRegProperty().getValue().toUpperCase();\n return (aCars.contains(searchText));\n });\n }\n // No filter to apply?\n if (searchFilter.getFilterList().size() == 0) {\n filterList.remove(searchFilter);\n searchFilter = null;\n }\n applyFilters();\n }", "private void viewOrder() {\r\n\r\n System.out.println();\r\n System.out.println(\" View Orders\");\r\n System.out.println();\r\n\r\n\r\n //asks user to select which variable they would like to search by\r\n Scanner scanner = new Scanner(System.in);\r\n\r\n System.out.println(\"What would you like to search by: \");\r\n System.out.println(\" a. Product ID \\n b. Customer Email \\n c. Customer Location \\n d. Order Date \\n\");\r\n String attribute = console.next();\r\n\r\n\r\n //if a is selected, enter the product id to search for\r\n if (attribute.equals(\"a\")){\r\n System.out.println(\"Enter the product id you would like to search for: \");\r\n String searchProductId = console.next();\r\n OrderItem pIdSearchingFor = null;\r\n int count1 = 0;\r\n for (int i=0; i<orderInfo.size(); i++ ){\r\n if (searchProductId.equalsIgnoreCase(orderInfo.get(i).getProductId())) { // if product id is found print data\r\n \tpIdSearchingFor = orderInfo.get(i); \r\n \r\n \r\n System.out.println();\r\n\r\n System.out.println(\"Product ID: \" + pIdSearchingFor.getProductId()+ \" \"\r\n + \"Quantity: \" + pIdSearchingFor.getQuantity()+ \" \"\r\n + \"Customer Email: \" + pIdSearchingFor.getCustomerEmail()+ \" \"\r\n + \"Customer Zip Code: \" + pIdSearchingFor.getCustomerLocation()+ \" \"\r\n + \"Order Date: \" + pIdSearchingFor.getOrderDate());\r\n \r\n \r\n }\r\n \r\n else{\r\n count1++; //if product id is not found, add to count and compare to array size. If greater than or equal display product id not found\r\n if(count1 >= orderInfo.size()){\r\n System.out.println();\r\n System.out.println(\"Product ID Not Found.\");\r\n System.out.println();\r\n }\r\n}\r\n }\r\n //prompt to continue viewing orders or exit program\r\n System.out.println();\r\n System.out.println(\"Would you like to continue viewing orders? Enter yes or no: \");\r\n String cont = console.next();\r\n if(cont.equalsIgnoreCase(\"yes\")){\r\n viewOrder();\r\n }\r\n\r\n }\r\n //if b is selected enter the customer email\r\n else if(attribute.equals(\"b\")) {\r\n System.out.println(\"Enter the Customer Email you would like to search for: \");\r\n String searchCustomerEmail = console.next();\r\n OrderItem custSearchingFor = null;\r\n int count2 = 0;\r\n for (int j=0; j<orderInfo.size(); j++ ){\r\n if (searchCustomerEmail.equalsIgnoreCase(orderInfo.get(j).getCustomerEmail())) { // if customer email is found print data\r\n custSearchingFor = orderInfo.get(j); \r\n\r\n \r\n System.out.println();\r\n\r\n System.out.println(\"Product ID: \" + custSearchingFor.getProductId()+ \" \"\r\n + \"Quantity: \" + custSearchingFor.getQuantity()+ \" \"\r\n + \"Customer Email: \" + custSearchingFor.getCustomerEmail()+ \" \"\r\n + \"Customer Zip Code: \" + custSearchingFor.getCustomerLocation()+ \" \"\r\n + \"Order Date: \" + custSearchingFor.getOrderDate());\r\n \r\n \r\n } \r\n else{\r\n count2++; //if email is not found, add to count and compare to array size. If greater than or equal display email not found\r\n if(count2 >= orderInfo.size()){\r\n System.out.println();\r\n System.out.println(\"Email Not Found.\");\r\n System.out.println();\r\n }\r\n \r\n }\r\n }\r\n //prompt to continue viewing orders or exit program\r\n System.out.println();\r\n System.out.println(\"Would you like to continue viewing orders? Enter yes or no: \");\r\n String cont = console.next();\r\n if(cont.equalsIgnoreCase(\"yes\")){\r\n viewOrder();\r\n }\r\n\r\n }\r\n //if c is selected enter the customer zip code\r\n else if(attribute.equals(\"c\")) {\r\n System.out.println(\"Enter the Customer ZIP code you would like to search for: \");\r\n String searchCustomerLoc = console.next();\r\n OrderItem locSearchingFor = null;\r\n int count3 = 0;\r\n for (int j=0; j<orderInfo.size(); j++ ){\r\n if (searchCustomerLoc.equalsIgnoreCase(orderInfo.get(j).getCustomerLocation())) { // if zip code is found display data\r\n \tlocSearchingFor = orderInfo.get(j); \r\n\r\n \r\n System.out.println();\r\n\r\n System.out.println(\"Product ID: \" + locSearchingFor.getProductId() + \" \"\r\n + \"Quantity: \" + locSearchingFor.getQuantity() + \" \"\r\n + \"Customer Email: \" + locSearchingFor.getCustomerEmail() + \" \"\r\n + \"Customer Zip Code: \" + locSearchingFor.getCustomerLocation() + \" \"\r\n + \"Order Date: \" + locSearchingFor.getOrderDate());\r\n\r\n }\r\n \r\n \r\n else{\r\n count3++; //if zip code is not found, add to count and compare to array size. If greater than or equal display zip code not found\r\n if(count3 >= orderInfo.size()){\r\n System.out.println();\r\n System.out.println(\"Zip Code Not Found.\");\r\n System.out.println();\r\n }\r\n }\r\n }\r\n //prompt to continue viewing orders or exit program\r\n System.out.println();\r\n System.out.println(\"Would you like to continue viewing orders? Enter yes or no: \");\r\n String cont = console.next();\r\n if(cont.equalsIgnoreCase(\"yes\")){\r\n viewOrder();\r\n }\r\n\r\n }\r\n\r\n //if d is selected enter the customer order date\r\n else if (attribute.equals(\"d\")){\r\n System.out.println(\"Enter the date of the order you would like to search for in the format(Year-month-day e.g. 2020-01-13): \");\r\n String searchOrderDate = console.next();\r\n OrderItem dateSearchingFor = null;\r\n int count4 = 0;\r\n for (int k=0; k<orderInfo.size(); k++ ){\r\n if (searchOrderDate.equalsIgnoreCase(orderInfo.get(k).getOrderDate())) { // if date is found display data\r\n \tdateSearchingFor = orderInfo.get(k); \r\n\r\n \r\n System.out.println();\r\n\r\n System.out.println(\"Product ID: \" + dateSearchingFor.getProductId()+ \" \"\r\n + \"Quantity: \" + dateSearchingFor.getQuantity() + \" \"\r\n + \"Customer Email: \" + dateSearchingFor.getCustomerEmail() + \" \"\r\n + \"Customer Zip Code: \" + dateSearchingFor.getCustomerLocation() + \" \"\r\n + \"Order Date: \" + dateSearchingFor.getOrderDate());}\r\n \r\n \r\n \r\n else{\r\n count4++; //if date is not found, add to count and compare to array size. If greater than or equal display date not found\r\n if(count4 >= orderInfo.size()){\r\n System.out.println();\r\n System.out.println(\"Order Date Not Found.\");\r\n System.out.println();\r\n }\r\n \r\n }\r\n }\r\n //prompt to continue viewing orders or exit program\r\n System.out.println();\r\n System.out.println(\"Would you like to continue viewing orders? Enter yes or no: \");\r\n String cont = console.next();\r\n if(cont.equalsIgnoreCase(\"yes\")){\r\n viewOrder();\r\n }\r\n }\r\n }", "private void performSearch() {\n String text = txtSearch.getText();\n String haystack = field.getText();\n \n // Is this case sensitive?\n if (!chkMatchCase.isSelected()) {\n text = text.toLowerCase();\n haystack = haystack.toLowerCase();\n }\n \n // Check if it is a new string that the user is searching for.\n if (!text.equals(needle)) {\n needle = text;\n curr_index = 0;\n }\n \n // Grab the list of places where we found it.\n populateFoundList(haystack);\n \n // Nothing was found.\n if (found.isEmpty()) {\n Debug.println(\"FINDING\", \"No occurrences of \" + needle + \" found.\");\n JOptionPane.showMessageDialog(null, \"No occurrences of \" + needle + \" found.\",\n \"Nothing found\", JOptionPane.INFORMATION_MESSAGE);\n \n return;\n }\n \n // Loop back the indexes if we have reached the end.\n if (curr_index == found.size()) {\n curr_index = 0;\n }\n \n // Go through the findings one at a time.\n int indexes[] = found.get(curr_index);\n field.select(indexes[0], indexes[1]);\n curr_index++;\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n List<String> suggest = new ArrayList<String>();\n for (String search : suggestionList) {\n if (search.toLowerCase().contains(product_list_search_bar.getText().toLowerCase().trim()))\n suggest.add(search);\n }\n product_list_search_bar.setLastSuggestions(suggest);\n\n }", "private void checkBarcode(Product matchingProduct, String barcode) {\n\t\tBundle productBundle = new Bundle();\r\n\t\tIntent productIntent;\r\n\r\n\t\t/*\r\n\t\t * If the database contains a matching product, package that products\r\n\t\t * info in a bundle and then send that info to the requested activity.\r\n\t\t * Else, let the owner create a product with the found id.\r\n\t\t */\r\n\t\tproductBundle.putString(\"productId\", barcode);\r\n\t\tif (matchingProduct != null) {\r\n\t\t\tString productName = matchingProduct.getName();\r\n\t\t\tint productPrice = matchingProduct.getPrice();\r\n\r\n\t\t\tproductBundle.putString(\"productName\", productName);\r\n\t\t\tproductBundle.putInt(\"productPrice\", productPrice);\r\n\r\n\t\t\tproductIntent = new Intent(this, ProductActivity.class);\r\n\t\t} else {\r\n\t\t\tproductIntent = new Intent(this, AddNewProductActivity.class);\r\n\t\t}\r\n\r\n\t\t// Add the bundle to the intent, and start the requested activity\r\n\t\tproductIntent.putExtras(productBundle);\r\n\t\tstartActivity(productIntent);\r\n\t}", "public void Case22(){\n System.out.println(\"Testing Case 22\");\n for(int z=1; z<=7; z++) {\n notCarriedProd();\n if(z==1) {\n //Insert search here\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n System.out.println(\"Not Carried Products done\");\n }\n else if(z==2){\n checkByShortName();\n //Click Search bar and search certain product by Name\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchShortName = (MobileElement) driver.findElementByXPath(\"//android.widget.EditText[contains(@resource-id,'search_auto_complete_text_view')]\");\n searchShortName.sendKeys(\"Red hot\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n }\n else if(z==3){\n checkByItemCode();\n //Click Search bar and search certain product by Item Code\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchItemCode = (MobileElement) driver.findElementByXPath(\"//android.widget.EditText[contains(@resource-id,'search_auto_complete_text_view')]\");\n searchItemCode.sendKeys(\"CHZZY15436324\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n }\n else if(z==4){\n checkByDescription();\n //Click Search bar and search certain product by Description\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchDescription = (MobileElement) driver.findElementByXPath(\"//android.widget.EditText[contains(@resource-id,'search_auto_complete_text_view')]\");\n searchDescription.sendKeys(\"chEezy\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n }\n else if(z==5){\n checkByBrand();\n //Click Search bar and search certain product by Brand\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchBrand = (MobileElement) driver.findElementByXPath(\"//android.widget.EditText[contains(@resource-id,'search_auto_complete_text_view')]\");\n searchBrand.sendKeys(\"CHEEZY\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n }\n else if(z==6){\n checkByKeyword();\n //Click Search bar and search certain product by Keywords\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchKeyword = (MobileElement) driver.findElementByXPath(\"//android.widget.EditText[contains(@resource-id,'search_auto_complete_text_view')]\");\n searchKeyword.sendKeys(\"CHIPS\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n }\n else if(z==7){\n checkByPrincipal();\n //Click Search bar and search certain product by Principal\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchPrincipal = (MobileElement) driver.findElementByXPath(\"//android.widget.EditText[contains(@resource-id,'search_auto_complete_text_view')]\");\n searchPrincipal.sendKeys(\"Leslie\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n }\n clear();\n }\n System.out.println(\"Case 22 Done\");\n }", "public void searchProduct() throws InterruptedException {\n\n Thread.sleep(2000);\n\n if(isDisplayed(popup_suscriber)){\n click(popup_suscriber_btn);\n }\n\n if(isDisplayed(search_box) && isDisplayed(search_btn)){\n type(\"Remera\", search_box);\n click(search_btn);\n Thread.sleep(2000);\n click(first_product_gallery);\n Thread.sleep(2000);\n }else{\n System.out.println(\"Search box was not found!\");\n }\n\n }", "public void search() {\n boolean validate = true;\n code = \"\";\n Node<Product> p = null;\n System.out.print(\"Product code to search: \");\n while (validate) {\n code = s.nextLine();\n if (Validation.validateString(code)) {\n p = tree.search(code);\n validate = false;\n } else {\n System.err.println(\"Code must be required!\");\n System.err.print(\"Enter product code again: \");\n\n }\n }\n if (p != null) {\n System.out.println(\"Information of product code \" + p.info.getCode());\n tree.visit(p);\n } else {\n System.err.println(\"The product code \" + code + \" is not exist!\");\n }\n }", "private void SearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SearchActionPerformed\n RowItem.setText(\"\");\n DefaultTableModel model = (DefaultTableModel) Table.getModel();\n while (model.getRowCount() > 0) {\n model.removeRow(0);\n }\n String query = jTextField1.getText().trim();\n if (query.isEmpty()) {\n alert.setText(\"Enter a search query first\");\n filterlist = displayMgr.mainMgr.searchMgr.getProductList();\n } else {\n filterlist = displayMgr.mainMgr.searchMgr.search(query);\n if (filterlist.size() == 0) {\n alert.setText(\"Query not found in database\");\n filterlist = displayMgr.mainMgr.searchMgr.getProductList();\n }\n else{\n alert.setText(\"\");\n }\n }\n \n \n for (int i = 0; i < filterlist.size(); i++) {\n rowData[0] = filterlist.get(i).getName();\n rowData[1] = filterlist.get(i).getPrice();\n rowData[2] = filterlist.get(i).getProductId();\n rowData[3] = filterlist.get(i).getDiscount();\n model.addRow(rowData);\n }\n }", "@FXML\n private void handleFilter(ActionEvent event) {\n if(!inSearch){\n btnFind.setImage(imageC);\n //query here\n String querry = txtInput.getText();\n if(querry !=null){\n obsSongs = FXCollections.observableArrayList(bllfacade.querrySongs(querry));\n lstSongs.setItems(obsSongs);\n }\n inSearch = true;\n }else{\n btnFind.setImage(imageF); \n txtInput.setText(\"\");\n init();\n inSearch = false;\n }\n }", "@FXML void onActionPPartSearch(ActionEvent event) throws IOException{\n String searchStr = pPartSearchField.getText();\n ObservableList<Part> searchedParts = Inventory.lookupPart(searchStr);\n\n if (searchedParts.isEmpty()) {\n try {\n int id = Integer.parseInt(searchStr);\n Part returnedPart = Inventory.lookupPart(id);\n if (returnedPart != null){\n searchedParts.add(returnedPart);\n }\n } catch (NumberFormatException e) {\n }\n }\n\n partTableView.setItems(searchedParts);\n }", "@FXML\r\n\t ArrayList<String> handleSearch(ActionEvent event) throws Exception {\r\n\t \t//check for fields being filled in \r\n\t \tname = placeName.getText();\r\n\t \tcity = City.getText(); \t\r\n\r\n\t \t// both fields are filled, checking for special characters\r\n\t\t\tif (!psearch.isValidInput(name)) {\r\n\t\t\t\tSystem.out.println(\"Please enter valid entries only consisting of letters!\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\telse if (!psearch.isValidInput_City(city)) {\r\n\t\t\t\tSystem.out.println(\"Please enter a city name consisting of only letters!\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\t\t\t\t//System.out.println(\"this is name \" + name + \" \" + city);\r\n\t\t\t\treturn initialize();\r\n\t\t\t}\r\n\t }", "public static void searchProduct() throws InterruptedException {\n browseSetUp(chromeDriver, chromeDriverPath, url);\n//****************************************<step 2- enter keyword in search box>**********************\n Thread.sleep(2000);\n driver.findElement(By.xpath(\"//*[@id=\\\"headerSearch\\\"]\")).sendKeys(\"paint roller\");\n Thread.sleep(3000);\n//*******************************************<step 3- click on the search button>**********************************\n driver.findElement(By.cssSelector(\".SearchBox__buttonIcon\")).click();\n//*******************************************<step 4- select the item>**********************************\n driver.findElement(By.cssSelector(\"#products > div > div.js-pod.js-pod-0.plp-pod.plp-pod--default.pod-item--0 > div > div.plp-pod__info > div.pod-plp__description.js-podclick-analytics > a\")).click();\n Thread.sleep(5000);\n//*******************************************<step 5- click to add the item to the cart>**********************************\n driver.findElement(By.xpath(\"//*[@id=\\\"atc_pickItUp\\\"]/span\")).click();\n Thread.sleep(6000);\n driver.close();\n\n\n }", "@FXML\n void partSearchButton(ActionEvent event) {\n\n ObservableList<Part> allParts = Inventory.getAllParts();\n ObservableList<Part> partsFound = FXCollections.observableArrayList();\n String searchString = partSearchText.getText();\n\n allParts.stream().filter((part) -> (String.valueOf(part.getId()).contains(searchString) ||\n part.getName().contains(searchString))).forEachOrdered((part) -> {\n partsFound.add(part);\n });\n\n partTableView.setItems(partsFound);\n\n if (partsFound.isEmpty()) {\n AlartMessage.displayAlertAdd(1);\n }\n }", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_share) {\n shareTextUrl();\n return true;\n }\n if (id == R.id.search) {\n SearchView search = (SearchView) item.getActionView();\n\n search.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n ApiInterface apiService =\n ApiClient.getClient().create(ApiInterface.class);\n\n Call<ProductResponse> call = apiService.getProducts(query, API_KEY);\n call.enqueue(new Callback<ProductResponse>() {\n @Override\n public void onResponse(Call<ProductResponse> call, Response<ProductResponse> response) {\n List<Product> products = response.body().getResults();\n if (products.size() > 0) {\n binding.setProduct(products.get(0));\n productUrl = products.get(0).getProductUrl();\n productId = products.get(0).getProductId();\n fab.setImageResource(R.drawable.plus);\n }\n }\n\n\n @Override\n public void onFailure(Call<ProductResponse> call, Throwable t) {\n Log.e(TAG, t.toString());\n createDialog(t);\n }\n });\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n ApiInterface apiService =\n ApiClient.getClient().create(ApiInterface.class);\n\n Call<ProductResponse> call = apiService.getProducts(newText, API_KEY);\n call.enqueue(new Callback<ProductResponse>() {\n @Override\n public void onResponse(Call<ProductResponse> call, Response<ProductResponse> response) {\n List<Product> products = response.body().getResults();\n if (products.size() > 0) {\n binding.setProduct(products.get(0));\n productUrl = products.get(0).getProductUrl();\n productId = products.get(0).getProductId();\n fab.setImageResource(R.drawable.plus);\n }\n }\n\n @Override\n public void onFailure(Call<ProductResponse> call, Throwable t) {\n Log.e(TAG, t.toString());\n createDialog(t);\n }\n });\n return true;\n }\n });\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n FilterResults results = new FilterResults();\n if (constraint != null && constraint.length() > 0) {\n //CONSTARINT TO UPPER\n constraint = constraint.toString().toUpperCase();\n List<Product> filters = new ArrayList<Product>();\n //get specific items\n for (int i = 0; i < filterList.size(); i++) {\n if (filterList.get(i).getAdi().toUpperCase().contains(constraint)) {\n Product p = new Product(filterList.get(i).getIncKey(),filterList.get(i).getCicekPasta(),filterList.get(i).getUrunKodu(),\n filterList.get(i).getSatisFiyat(),filterList.get(i).getKdv(),filterList.get(i).getResimKucuk(),\n filterList.get(i).getSiparisSayi(),filterList.get(i).getDefaultKategori(),filterList.get(i).getCicekFiloFiyat(),\n filterList.get(i).getAdi(), filterList.get(i).getResimBuyuk(), filterList.get(i).getIcerik());\n filters.add(p);\n }\n }\n results.count = filters.size();\n results.values = filters;\n if(filters.size()==0){ // if not found result\n TextView tv= (TextView) mainActivity.findViewById(R.id.sonucyok);\n tv.setText(\"Üzgünüz, aradığınız sonucu bulamadık..\");\n Log.e(\"bbı\",\"oıfnot\");\n }\n else\n mainActivity.findViewById(R.id.sonucyok).setVisibility(View.INVISIBLE);\n\n } else {\n results.count = filterList.size();\n results.values = filterList;\n }\n return results;\n }", "private void startSearch(CharSequence text) {\n Query searchByname = productList.orderByChild(\"name\").equalTo(text.toString());\n //Create Options with Query\n FirebaseRecyclerOptions<Product> productOptions = new FirebaseRecyclerOptions.Builder<Product>()\n .setQuery(searchByname,Product.class)\n .build();\n\n\n searchAdapter = new FirebaseRecyclerAdapter<Product, ProductViewHolder>(productOptions) {\n @Override\n protected void onBindViewHolder(@NonNull ProductViewHolder holder, int position, @NonNull Product model) {\n\n holder.txtProductName.setText(model.getName());\n Picasso.with(getBaseContext()).load(model.getImage())\n .into(holder.imgProduct);\n\n final Product local = model;\n holder.setItemClickListener(new ItemClickListener() {\n @Override\n public void onClick(View view, int position, boolean isLongClick) {\n //Start New Activity\n Intent detail = new Intent(ProductList.this,ProductDetail.class);\n detail.putExtra(\"ProductId\",searchAdapter.getRef(position).getKey());\n startActivity(detail);\n }\n });\n\n }\n\n @NonNull\n @Override\n public ProductViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {\n View itemView = LayoutInflater.from(viewGroup.getContext())\n .inflate(R.layout.product_item,viewGroup,false);\n return new ProductViewHolder(itemView);\n }\n };\n searchAdapter.startListening();\n recyclerView.setAdapter(searchAdapter);\n\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == btn_search) {\n\t\t\tConnection con = Connector.connect();\n\t\t\tsetTabelModel();\n\t\t\tif(TF_Search.getText().equals(\"\")) {\n\t\t\t\trefreshDataTabel();\n\t\t\t\tProductName_label.setText(\"Nama: \");\n\t\t\t\tProductDesc_label.setText(\"Description: \");\n\t\t\t\tProductSalary_label.setText(\"Price Per Item: \");\n\t\t\t\tTF_Stocks.setText(\"\");\n\t\t\t}else {\n\t\t\t\ttry {\n\t\t\t\t\tmodel_tabel_prod.setRowCount(0);\n\t\t\t\t\tStatement stat = con.createStatement();\n\t\t\t\t\tString query = String.format(\"SELECT * FROM Product WHERE ProductID = %d\", Integer.valueOf(TF_Search.getText()));\n\t\t\t\t\tResultSet res = stat.executeQuery(query);\n\t\t\t\t\t\n\t\t\t\t\twhile(res.next()) {\n\t\t\t\t\t\tprd = new Product(res.getInt(\"ProductID\"), res.getInt(\"ProductPrice\"), res.getInt(\"ProductStock\"), res.getString(\"ProductName\"), res.getString(\"ProductDescription\"));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tProductName_label.setText(\"Nama: \" + prd.getName());\n\t\t\t\t\tProductDesc_label.setText(\"Description: \"+prd.getDescription());\n\t\t\t\t\tProductSalary_label.setText(\"Price Per Item: \"+prd.getPrice());\n\t\t\t\t\trefreshDataTabel();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}catch(SQLException E) {\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}else if(e.getSource() == btn_logout) {\n\t\t\tframe.setVisible(false);\n\t\t\tnew Login();\n\t\t}else if(e.getSource() == btn_add) {\n\t\t\tint CartID = chr.getCartIDNow(), ProductID = prd.getID(), ProductQuantity = 0;\n\t\t\tString ProductQuantityText = TF_Stocks.getText();\n\t\t\t\n\t\t\tif(ProductQuantityText.equals(\"\")) {\n\t\t\t\tJOptionPane.showMessageDialog(frame, \"Field Harus Diisi!\");\n\t\t\t}else {\n\t\t\t\tProductQuantity = Integer.valueOf(TF_Stocks.getText());\n\t\t\t\tif(getQuantityStock(ProductQuantity, prd.getStock()) && ProductQuantity != 0) {\n\t\t\t\t\tif(chr.addItemToCart(CartID, ProductID, ProductQuantity)) {\n\t\t\t\t\t\tTF_Search.setText(\"\");\t\t\t\n\t\t\t\t\t\trefreshDataTabel();\n\t\t\t\t\t\tProductName_label.setText(\"Nama: \");\n\t\t\t\t\t\tProductDesc_label.setText(\"Description: \");\n\t\t\t\t\t\tProductSalary_label.setText(\"Price Per Item: \");\n\t\t\t\t\t\tTF_Stocks.setText(\"\");\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Success Add Item To Cart\");\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Over The Stock!! Failed Add Item To Cart\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Failed Add Item To Cart\");\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}else if(e.getSource() == btn_viewCart) {\n\t\t\tframe.setVisible(false);\n\t\t\tnew CartView(chr, chr.getCartItem());\n\t\t}\n\t}", "@FXML\r\n public void onActionSearchParts(ActionEvent actionEvent) {\r\n String search = searchParts.getText();\r\n\r\n ObservableList<Part> searched = Inventory.lookupPart(search);\r\n\r\n if (searched.size() == 0) {\r\n Alert alert1 = new Alert(Alert.AlertType.ERROR);\r\n alert1.setTitle(\"Error Message\");\r\n alert1.setContentText(\"Part name not found. If a number is entered in the search box, an id search will occur\");\r\n alert1.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\r\n alert1.showAndWait();\r\n try {\r\n int id = Integer.parseInt(search);\r\n Part part1 = Inventory.lookupPart(id);\r\n if (part1 != null) {\r\n searched.add(part1);\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setTitle(\"Error Message\");\r\n alert2.setContentText(\"Part name and id not found.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (NumberFormatException e) {\r\n //ignore\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }\r\n partsTableView.setItems(searched);\r\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\tint row = table.getSelectionModel().getLeadSelectionIndex();\r\n\t\t\t\tif (e.getClickCount() == 1) {\r\n\t\t\t\t\tif(productBySearch.size() > 0){\r\n\t\t \t\tfor(int i = 0; i < productBySearch.size(); i++){\r\n\t\t \t\t\tif(String.valueOf(model.getValueAt(row, id_column)).equals(String.valueOf(productBySearch.get(i).getID()))){\r\n\t\t \t\t\t\ttextField_name_input.setText(productBySearch.get(i).getName());\r\n\t\t \t\t\t\ttextField_description_input.setText(productBySearch.get(i).getDescription());\r\n\t\t \t\t\t\ttextField_quantity_input.setText(String.valueOf(productBySearch.get(i).getQuantity()));\r\n\t\t \t\t\t\tbreak;\r\n\t\t \t\t\t}\r\n\t\t \t\t}\r\n\t\t \t}\r\n\t\t\t\t}\r\n\t\t\t}", "private void changeTableBookOnSearch(){\n FilteredList<TeacherBookIssue> filteredData = new FilteredList<>(teacherBooksData,p -> true);\r\n \r\n //set the filter predicate whenever the filter changes\r\n teacher_searchTeacherID.textProperty().addListener((observable,oldValue,newValue)->{\r\n \r\n filteredData.setPredicate(TeacherBookIssue -> {\r\n \r\n //if filter text is empty, display all product\r\n if (newValue == null || newValue.isEmpty()) {\r\n return true;\r\n }\r\n \r\n //compare product id and product name of every product with the filter text\r\n String lowerCaseFilter =newValue.toLowerCase();\r\n \r\n if (TeacherBookIssue.getTeacherID().toLowerCase().contains(lowerCaseFilter)) {\r\n return true; // Filter matches product Id\r\n } \r\n \r\n return false; // Do not match \r\n });\r\n \r\n });\r\n \r\n //wrap the filteredList in a sortedList\r\n SortedList<TeacherBookIssue> sortedData = new SortedList<>(filteredData);\r\n \r\n //bind the sortedData to the Tableview\r\n sortedData.comparatorProperty().bind(teachserIssuedTable.comparatorProperty());\r\n \r\n //add sorted and filtered data to the table\r\n teachserIssuedTable.setItems(sortedData); \r\n }", "public void partSearchFieldTrigger(ActionEvent actionEvent) {\n String searchInput = partSearchField.getText();\n\n ObservableList<Part> foundParts = lookUpPart(searchInput);\n partsTableView.setItems(foundParts);\n\n //shows alert message if searchInput produced 0 results.\n if (partsTableView.getItems().size() == 0) {\n Utility.searchProducedNoResults(searchInput);\n }\n partSearchField.setText(\"\");\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n productTable = new javax.swing.JTable();\n updateProductBtn = new javax.swing.JButton();\n deleteProductBtn = new javax.swing.JButton();\n addProductBtn = new javax.swing.JButton();\n updateProductListBtn = new javax.swing.JButton();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel1 = new javax.swing.JLabel();\n barcodeText = new javax.swing.JLabel();\n barcodeSearchTextField = new javax.swing.JTextField();\n nameSearchTextField = new javax.swing.JTextField();\n nameText = new javax.swing.JLabel();\n categoryText = new javax.swing.JLabel();\n brandText = new javax.swing.JLabel();\n productErrorMessage = new javax.swing.JLabel();\n categorySearchTextField = new javax.swing.JTextField();\n brandSearchTextField = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Ürün Listesi\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n productTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n productTable.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n productTableMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(productTable);\n\n updateProductBtn.setText(\"Ürün Güncelle\");\n updateProductBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n updateProductBtnActionPerformed(evt);\n }\n });\n\n deleteProductBtn.setText(\"Ürün Sil\");\n deleteProductBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteProductBtnActionPerformed(evt);\n }\n });\n\n addProductBtn.setText(\"Ürün Ekle\");\n addProductBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addProductBtnActionPerformed(evt);\n }\n });\n\n updateProductListBtn.setText(\"Ürün Listesi Güncelle\");\n updateProductListBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n updateProductListBtnActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel1.setText(\"Arama\");\n\n barcodeText.setText(\"Barkod No :\");\n\n barcodeSearchTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n barcodeSearchTextFieldActionPerformed(evt);\n }\n });\n\n nameSearchTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nameSearchTextFieldActionPerformed(evt);\n }\n });\n\n nameText.setText(\"İsim :\");\n\n categoryText.setText(\"Kategori :\");\n\n brandText.setText(\"Marka :\");\n\n productErrorMessage.setForeground(new java.awt.Color(255, 0, 0));\n\n categorySearchTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n categorySearchTextFieldActionPerformed(evt);\n }\n });\n\n brandSearchTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n brandSearchTextFieldActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jSeparator1))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addGroup(layout.createSequentialGroup()\n .addComponent(productErrorMessage, javax.swing.GroupLayout.PREFERRED_SIZE, 629, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))))\n .addGap(16, 16, 16))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(barcodeText)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(barcodeSearchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(nameText)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(nameSearchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(categoryText)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(categorySearchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(brandText)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(691, 691, 691)))\n .addComponent(brandSearchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(31, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(updateProductBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addComponent(deleteProductBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addComponent(addProductBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addComponent(updateProductListBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(barcodeText)\n .addComponent(barcodeSearchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nameText)\n .addComponent(nameSearchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(categoryText)\n .addComponent(brandText)\n .addComponent(categorySearchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(brandSearchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(productErrorMessage)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 298, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(updateProductBtn)\n .addComponent(deleteProductBtn)\n .addComponent(addProductBtn)\n .addComponent(updateProductListBtn))\n .addContainerGap(18, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "@FXML\n\tpublic void enableProduct(ActionEvent event) {\n\t\tif (!txtNameDisableProduct.getText().equals(\"\")) {\n\t\t\tList<Product> searchedProducts = restaurant.findSameProduct(txtNameDisableProduct.getText());\n\t\t\tif (!searchedProducts.isEmpty()) {\n\t\t\t\ttry {\n\t\t\t\t\tfor (int i = 0; i < searchedProducts.size(); i++) {\n\t\t\t\t\t\tsearchedProducts.get(i).setCondition(Condition.ACTIVE);\n\t\t\t\t\t}\n\t\t\t\t\trestaurant.saveProductsData();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"El producto ha sido habilitado\");\n\t\t\t\t\tdialog.setTitle(\"Producto Deshabilitado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t\ttxtNameDisableProduct.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los productos\");\n\t\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\t\tdialog.show();\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Este producto no existe\");\n\t\t\t\tdialog.setTitle(\"Error\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Debe ingresar el nombre del producto\");\n\t\t\tdialog.setTitle(\"Error\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "public void keyReleased(KeyEvent e) {\n if (searchFieldLength > searchField.getText().length()) {\n componentsList.setModel(ingredientsListModel);\n filterList();\n } else {\n filterList();\n }\n }", "public void handleSearch(ActionEvent actionEvent) {\n\t\tRadioButton radio = (RadioButton) toogleSearch.getSelectedToggle();\n\t\tString searchString = txtSearch.getText();\n\t\tObservableList<Item> itemList;\n\t\tif(radio == radioID){\n\t\t\ttry {\n\t\t\t\titemList = ItemDAO.searchItemById(searchString);\n\t\t\t\tpopulateItems(itemList);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t}\n\t\t} else if(radio == radioName){\n\t\t\ttry {\n\t\t\t\titemList = ItemDAO.searchItemByName(searchString);\n\t\t\t\tpopulateItems(itemList);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\titemList = ItemDAO.searchItemByLocation(searchString);\n\t\t\t\tpopulateItems(itemList);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t}\n\t\t}\n\n\n\n\t}", "public void filterProductArray(String newText) \n\t{\n\n\t\tString pName;\n\t\t\n\t\tfilteredProductResults.clear();\n\t\tfor (int i = 0; i < productResults.size(); i++)\n\t\t{\n\t\t\tpName = productResults.get(i).getProductName().toLowerCase();\n\t\t\tif ( pName.contains(newText.toLowerCase()) ||\n\t\t\t\t\tproductResults.get(i).getProductBarcode().contains(newText))\n\t\t\t{\n\t\t\t\tfilteredProductResults.add(productResults.get(i));\n\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry{\r\n\t\t\t\t\tif(!table.isEditing()){\r\n\t\t\t\t\t\tJPanel findByName_panel = new JPanel();\r\n\t\t\t\t\t\tfindByName_panel.setLayout(null);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Product Name\r\n\t\t\t\t\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\t\t\t\t\ttabbedPane.setBounds(250, 10, 400, 200);\r\n\t\t\t\t\t\tfindByName_panel.add(tabbedPane);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tJPanel panel_searchDetail = new JPanel();\r\n\t\t\t\t\t\ttabbedPane.addTab(\"Find Product using Name, Description, Notes:\", null, panel_searchDetail, null);\r\n\t\t\t\t\t\tpanel_searchDetail.setLayout(null);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Text\r\n\t\t\t\t\t\tJTextPane txtpnsearch_1 = new JTextPane();\r\n\t\t\t\t\t\ttxtpnsearch_1.setText(\"Search:\");\r\n\t\t\t\t\t\ttxtpnsearch_1.setBackground(Color.decode(defaultColor));\r\n\t\t\t\t\t\ttxtpnsearch_1.setBounds(10, 13, 50, 18);\r\n\t\t\t\t\t\tpanel_searchDetail.add(txtpnsearch_1);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Messages\r\n\t\t\t\t\t\ttxtpnsearch_2 = new JTextPane();\r\n\t\t\t\t\t\ttxtpnsearch_2.setBackground(Color.decode(defaultColor));\r\n\t\t\t\t\t\ttxtpnsearch_2.setBounds(10, 80, 370, 120);\r\n\t\t\t\t\t\tpanel_searchDetail.add(txtpnsearch_2);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Textfield input\r\n\t\t\t\t\t\tJTextField textField_search_input = new JTextField();\r\n\t\t\t\t\t\ttextField_search_input.setBounds(60, 6, 310, 30);\r\n\t\t\t\t\t\tpanel_searchDetail.add(textField_search_input);\r\n\t\t\t\t\t\ttextField_search_input.setColumns(10);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Search button\r\n\t\t\t\t\t\tJButton product_search_button = new JButton(\"Search\");\r\n\t\t\t\t\t\tproduct_search_button.setBounds(3, 45, 190, 29);\r\n\t\t\t\t\t\tpanel_searchDetail.add(product_search_button);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Cancel button\r\n\t\t\t\t\t\tJButton product_cancel_button = new JButton(\"Cancel\");\r\n\t\t\t\t\t\tproduct_cancel_button.setBounds(190, 45, 185, 29);\r\n\t\t\t\t\t\tpanel_searchDetail.add(product_cancel_button);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Add button\r\n\t\t\t\t\t\tJButton product_add_button = new JButton(\"Add\");\r\n\t\t\t\t\t\tproduct_add_button.setBounds(38, 575, 820, 40);\r\n\t\t\t\t\t\tfindByName_panel.add(product_add_button);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Places cursor in ID field as soon as page loads, like focus in html\r\n\t\t\t\t\t\ttextField_search_input.addAncestorListener(new AncestorListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void ancestorRemoved(AncestorEvent event) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void ancestorMoved(AncestorEvent event) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void ancestorAdded(AncestorEvent event) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\ttextField_search_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Table\r\n\t\t\t\t\t\tJTabbedPane tabbedPane_search_table = new JTabbedPane(JTabbedPane.TOP);\r\n\t\t\t\t\t\ttabbedPane_search_table.setBounds(30, 204, 835, 375);\r\n\t\t\t\t\t\tfindByName_panel.add(tabbedPane_search_table);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tJPanel panel_table_search = new JPanel(new BorderLayout());\r\n\t\t\t\t\t\ttabbedPane_search_table.addTab(\"List of suggestions: \", null, panel_table_search, null);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tVector<String> search_row_data = new Vector<String>();\r\n\t\t\t\t\t\tVector<String> search_column_name = new Vector<String>();\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"#\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Name\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Description\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Quantity Remaining\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Sale Price\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Notes\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Add\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tJTable table_search = new JTable(search_row_data, search_column_name){\r\n\t\t\t\t\t\t\tpublic boolean isCellEditable(int row, int column) {\r\n\t\t\t\t\t\t\t\t//Return true if the column (number) is editable, else false\r\n\t\t\t\t\t\t\t\t//if(column == 3 || column == 6){ \r\n\t\t\t\t\t\t\t\tif(column == 6){\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tpanel_table_search.add(table_search.getTableHeader(), BorderLayout.NORTH);\r\n\t\t\t\t\t\tpanel_table_search.add(table_search, BorderLayout.CENTER);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Row Height\r\n\t\t\t\t\t\ttable_search.setRowHeight(30);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Column Width\r\n\t\t\t\t\t\tTableColumnModel columnModel_search = table_search.getColumnModel();\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(0).setPreferredWidth(1); //#\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(1).setPreferredWidth(110); //Name\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(2).setPreferredWidth(100); //Description\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(3).setPreferredWidth(1); //Quantity \r\n\t\t\t\t\t\tcolumnModel_search.getColumn(4).setPreferredWidth(30); //Sale Price\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(5).setPreferredWidth(75); //Notes\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(6).setPreferredWidth(10); //Add/Remove\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Columns won't be able to moved around\r\n\t\t\t\t\t\ttable_search.getTableHeader().setReorderingAllowed(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Center table data \r\n\t\t\t\t\t\tDefaultTableCellRenderer centerRenderer_search = new DefaultTableCellRenderer();\r\n\t\t\t\t\t\tcenterRenderer_search.setHorizontalAlignment( SwingConstants.CENTER );\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(0).setCellRenderer( centerRenderer_search ); //ID\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(1).setCellRenderer( centerRenderer_search ); //Product ID\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(2).setCellRenderer( centerRenderer_search ); //Name\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(3).setCellRenderer( centerRenderer_search ); //Quantity\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(4).setCellRenderer( centerRenderer_search ); //Price\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(5).setCellRenderer( centerRenderer_search ); //Quantity * Price\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(6).setCellRenderer( centerRenderer_search ); //Remove\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Center table column names\r\n\t\t\t\t\t\tcenterRenderer_search = (DefaultTableCellRenderer) table_search.getTableHeader().getDefaultRenderer();\r\n\t\t\t\t\t\tcenterRenderer_search.setHorizontalAlignment(JLabel.CENTER);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tJScrollPane jsp2 = new JScrollPane(table_search);\r\n\t\t\t\t\t\tjsp2.setBounds(2, 2, 810, 344);\r\n\t\t\t\t\t\tjsp2.setVisible(true);\r\n\t\t\t\t\t\tpanel_table_search.add(jsp2);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Setting Checkbox\r\n\t\t\t\t\t\tTableColumn tc2 = table_search.getColumnModel().getColumn(productRemove_column);\r\n\t\t\t\t\t\ttc2.setCellEditor(table_search.getDefaultEditor(Boolean.class));\r\n\t\t\t\t\t\ttc2.setCellRenderer(table_search.getDefaultRenderer(Boolean.class));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tDefaultTableModel model_search = (DefaultTableModel) table_search.getModel();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tTableRowSorter<TableModel> sorter = new TableRowSorter<>(table_search.getModel());\r\n\t\t\t\t\t\ttable_search.setRowSorter(sorter);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Disable column\r\n\t\t\t\t\t\tsorter.setSortable(0, false);\r\n\t\t\t\t\t\tsorter.setSortable(4, false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Button listener\r\n\t\t\t\t\t\tproduct_search_button.addActionListener(new ActionListener() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tString productNameInput = textField_search_input.getText();\r\n\t\t\t\t\t\t\t\tproductNameInput.trim();\r\n\t\t\t\t\t\t\t\tif(validateEmpty(productNameInput) == false){\r\n\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Search cannot be empty. Please enter a product name, description or notes.\");\t\t\r\n\t\t\t\t\t\t\t\t\tfillTableFindByName(model_search);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(productNameInput.trim().matches(\"^[-0-9A-Za-z.,'() ]*$\")){\r\n\t\t\t\t\t\t\t\t\tCashier cashierProductByName = new Cashier();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tfor (int i = model_search.getRowCount()-1; i >= 0; --i) {\r\n\t\t\t\t\t\t\t\t\t\tmodel_search.removeRow(i);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tproductByLike = new Vector<Product>();\r\n\t\t\t\t\t\t\t\t\tcashierProductByName.findProductUsingLike(productNameInput.trim(),productByLike);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"\");\r\n\t\t\t\t\t\t\t\t\t\tfor(int i = 0; i < productByLike.size(); i++){\r\n\t\t\t\t\t\t\t\t\t\t\tif(productBySearch.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor(int j = 0; j < productBySearch.size(); j++){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(productByLike.get(i).getID() == productBySearch.get(j).getID()){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tproductByLike.get(i).setQuantity(productBySearch.get(j).getQuantity());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//No match\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t//Printing it in the outside loop, the value doesn't alter here, values that alter will and will print them outside\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"No product was found in inventory.\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\tfor(int k = 0; k < productByLike.size(); k++){\r\n\t\t\t\t\t\t\t\t\t\t\tmodel_search.addRow(new Object[]{k+1,productByLike.get(k).getName(),productByLike.get(k).getDescription(),productByLike.get(k).getQuantity(),productByLike.get(k).getSalePrice(),productByLike.get(k).getNotes()});\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Cancel button closes the window\r\n\t\t\t\t\t\tproduct_cancel_button.addActionListener(new ActionListener() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\td5.dispose();\r\n\t\t\t\t\t\t\t\ttextField_productID_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Checking for double click\r\n\t\t\t\t\t\ttable_search.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\t\tif (e.getClickCount() == 1) {\r\n\t\t\t\t\t\t\t\t\t//System.out.println(\"1\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (e.getClickCount() == 2) {\r\n\t\t\t\t\t\t\t\t\t//JTable target = (JTable)e.getSource();\r\n\t\t\t\t\t\t\t\t\tint row = table_search.getSelectedRow();\r\n\t\t\t\t\t\t\t\t\tint column = table_search.getSelectedColumn();\r\n\t\t\t\t\t\t\t\t\tif(column == 0 || column == 1 || column == 2 || column == 3 || column == 4 || column == 5){\r\n\t\t\t\t\t\t\t\t\t\tif(row > -1){\r\n\t\t\t\t\t\t\t\t\t\t\tString n = (String) model_search.getValueAt(row, 1);\r\n\t\t\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor(int i = 0; i < productByLike.size(); i++){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(n.equals(productByLike.get(i).getName())){ //maybe change to using ID\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint items = 0;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tboolean b = (boolean) model_search.getValueAt(i, productRemove_column);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(b == true){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titems++;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}catch(Exception e2){}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(items == 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField_productID_input.setText(String.valueOf(productByLike.get(i).getID()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td5.dispose();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField_productID_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"Please use the add button at the bottom use add multiple items at a time.\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t//Quantity\r\n\t\t\t\t\t\t\t\t\telse if(column == 3){\r\n\t\t\t\t\t\t\t\t\t\ttable_search.setRowSelectionInterval(row, row);\r\n\t\t\t\t\t\t\t\t\t\ttable_search.setColumnSelectionInterval(0, 0);\r\n\t\t\t\t\t\t\t\t\t\ttextField_search_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t//Checkbox\r\n\t\t\t\t\t\t\t\t\telse if(column == 6){\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Add button listener\r\n\t\t\t\t\t\tRunnable runAdd = new Runnable() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\tproduct_add_button.addActionListener(new ActionListener() {\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\t\t\t\t\tVector<Integer> searchID = new Vector<Integer>();\r\n\t\t\t\t\t\t\t\t\t\tif(model_search.getRowCount() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"\");\r\n\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < model_search.getRowCount(); i++) {\r\n\t\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tboolean b = (boolean) model_search.getValueAt(i, productRemove_column);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (b == true){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor(int j = 0; j < productByLike.size(); j++){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(String.valueOf(model_search.getValueAt(i, 1)).equals(productByLike.get(j).getName())){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsearchID.add(productByLike.get(i).getID());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td5.dispose();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField_productID_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Else\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}catch(Exception e2){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"Table is empty. Please enter keywords into search bar.\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif(model_search.getRowCount() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\tif(searchID.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tnew Timer(1, new ActionListener() {\r\n\t\t\t\t\t\t\t\t\t\t int it = 0;\r\n\t\t\t\t\t\t\t\t\t\t @Override\r\n\t\t\t\t\t\t\t\t\t\t public void actionPerformed(ActionEvent e2) {\r\n\t\t\t\t\t\t\t\t\t\t \ttextField_productID_input.setText(String.valueOf(searchID.get(it)));\r\n\t\t\t\t\t\t\t\t\t\t if (++it == searchID.size()){\r\n\t\t\t\t\t\t\t\t\t\t ((Timer)e2.getSource()).stop();\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t }).start();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"Please select/check a product before adding it to the table.\");\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tSwingUtilities.invokeLater(runAdd);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfillTableFindByName(model_search);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tComponent component = (Component) e.getSource();\r\n\t\t\t\t\t\tJFrame topFrame2 = (JFrame) SwingUtilities.getRoot(component);\r\n\t\t\t\t\t\td5 = new JDialog(topFrame2, \"\", Dialog.ModalityType.DOCUMENT_MODAL);\r\n\t\t\t\t\t\td5.getContentPane().add(findByName_panel);\r\n\t\t\t\t\t\td5.setSize(900, 650);\r\n\t\t\t\t\t\td5.setLocationRelativeTo(null);\r\n\t\t\t\t\t\td5.getRootPane().setDefaultButton(product_search_button);\r\n\t\t\t\t\t\td5.setVisible(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Please make sure the table is not in edit mode.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(Exception e1){}\r\n\t\t\t}", "protected void lbl_searchEvent() {\n\t\tif(text_code.getText().isEmpty()){\n\t\t\tlbl_notice.setText(\"*请输入股票代码\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\tif(text_code.getText().length()!=6||!Userinfochange.isNumeric(text_code.getText())){\n\t\t\tlbl_notice.setText(\"*股票代码为6位数字\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\tif(text_place.getText().isEmpty()){\n\t\t\tlbl_notice.setText(\"*请输入股票交易所\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(!text_place.getText().equals(\"sz\") && !text_place.getText().equals(\"sh\")){\n\t\t\tlbl_notice.setText(\"*交易所填写:sz或sh\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tString[] informationtemp = null ;\n\t\ttry {\n\n\t\t\tinformationtemp = Internet.share.Internet.getSharedata(text_place.getText(), text_code.getText());\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \"网络异常或者不存在该只股票\", \"异常\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\n\t\t}\n\t\tString name = informationtemp[0];\n\t\tif (name == null) {\n\t\t\tlbl_notice.setText(\"*不存在的股票\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\tString[] names = new String[2];\n\t\tSystem.out.println(\"搜索出的股票名:\" + name + \"(Dia_buy 297)\");\n\t\tnames = name.split(\"\\\"\");\n\t\tname = names[1];\n\t\tif (name.length() == 0) {\n\t\t\tlbl_notice.setText(\"*不存在的股票\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tinformation = informationtemp;\n\t\tplace = text_place.getText();\n\t\tcode=text_code.getText();\n\t\t\n\t\ttrade_shortsell();//显示文本框内容\n\t\t\n\t\tlbl_notice.setText(\"股票信息获取成功!\");\n\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_GREEN));\n\t}", "public void searchFor(View view) {\n // Get a handle for the editable text view holding the user's search text\n EditText userInput = findViewById(R.id.user_input_edit_text);\n // Get the characters from the {@link EditText} view and convert it to string value\n String input = userInput.getText().toString();\n\n // Search filter for search text matching book titles\n RadioButton mTitleChecked = findViewById(R.id.title_radio);\n // Search filter for search text matching authors\n RadioButton mAuthorChecked = findViewById(R.id.author_radio);\n // Search filter for search text matching ISBN numbers\n RadioButton mIsbnChecked = findViewById(R.id.isbn_radio);\n\n if (!input.isEmpty()) {\n // On click display list of books matching search criteria\n // Build intent to go to the {@link QueryResultsActivity} activity\n Intent results = new Intent(MainActivity.this, QueryListOfBookActivity.class);\n\n // Get the user search text to {@link QueryResultsActivity}\n // to be used while creating the url\n results.putExtra(\"topic\", mUserSearch.getText().toString().toLowerCase());\n\n // Pass search filter, if any\n if (mTitleChecked.isChecked()) {\n // User is searching for book titles that match the search text\n results.putExtra(\"title\", \"intitle=\");\n } else if (mAuthorChecked.isChecked()) {\n // User is searching for authors that match the search text\n results.putExtra(\"author\", \"inauthor=\");\n } else if (mIsbnChecked.isChecked()) {\n // User is specifically looking for the book with the provided isbn number\n results.putExtra(\"isbn\", \"isbn=\");\n }\n\n // Pass on the control to the new activity and start the activity\n startActivity(results);\n\n } else {\n // User has not entered any search text\n // Notify user to enter text via toast\n\n Toast.makeText(\n MainActivity.this,\n getString(R.string.enter_text),\n Toast.LENGTH_SHORT)\n .show();\n }\n }", "private void performSearch() {\n try {\n final String searchVal = mSearchField.getText().toString().trim();\n\n if (searchVal.trim().equals(\"\")) {\n showNoStocksFoundDialog();\n }\n else {\n showProgressDialog();\n sendSearchResultIntent(searchVal);\n }\n }\n catch (final Exception e) {\n showSearchErrorDialog();\n logError(e);\n }\n }", "public void Case2(){\n System.out.println(\"Testing Case 2\");\n //Click Search bar and search certain product by Name\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchName = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_auto_complete_text_view\");\n searchName.sendKeys(prodName);\n// driver.hideKeyboard();\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementById(\"com.engagia.android:id/search_button\");\n searchBtn.click();\n System.out.println(\"Case 2 Done\");\n// //Condition where if prod is displayed or not\n// MobileElement snackBar = (MobileElement) driver.findElementByXPath(\"//android.widget.TextView[contains(@resource-id, 'snackbar_text') and @text = 'Text Note is Required']\");\n// boolean isDisplayed1 = snackBar.isDisplayed();\n// if (isDisplayed1) {\n// System.out.println(\"Snack bar text displayed: Text Note is Required\");\n// } else if (!isDisplayed1) {\n// System.out.println(\"Failed: Snack bar text does not displayed\");\n// }\n }", "protected static void searchByKeysHashID(String keys, String myId) {\n String[] splitWords = new String[keys.split(\"[ ]+\").length];\n splitWords = keys.split(\"[ ]+\");\n System.out.println(splitWords[0]);\n for (String keyWord : splitWords) {\n keyWord = keyWord.toLowerCase();\n if (map.get(keyWord) != null) {\n ArrayList<Integer> allInstancesofWord = (ArrayList<Integer>) map.get(keyWord);\n {\n for (int i = 0; i < allInstancesofWord.size(); i++) {\n\n Product e = productList.get(allInstancesofWord.get(i));\n if (e.productIdMatch(myId)) // if an element has the desired id and it has the correct key terms. it is printed.\n {\n System.out.println(\"I hope this Worksid\");\n System.out.println(productList.get(allInstancesofWord.get(i)));\n ProductGUI.Display(e.toString() + \"\\n\");\n }\n }\n }\n }\n if (map.get(keyWord) == null) {\n System.out.println(\"The products you are searching for were not found\");\n }\n }\n }", "public void renewSearch(String newVal) {\n\t\tlistView.getSelectionModel().clearSelection();\n\t\tsearchItems.clear();\n\n\t\tif (newVal.equals(\"\")) {\n\t\t\tlistView.setItems(items);\n\t\t\tlog.info(\"All items are displayed\");\n\t\t} else {\n\n\t\t\tif (searchToggle.getSelectedToggle().equals(nameSearch)) {\n\t\t\t\titemsMap.forEach((a, b) -> {\n\t\t\t\t\tif (b.getName().toLowerCase().contains(newVal.toLowerCase())) {\n\t\t\t\t\t\tsearchItems.add(b);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tlog.info(\"Only items with '\" + newVal + \"' in their name are displayed\");\n\n\t\t\t} else if (searchToggle.getSelectedToggle().equals(amountSearch)) {\n\t\t\t\titemsMap.forEach((a, b) -> {\n\t\t\t\t\tif (String.valueOf(b.getAmount()).contains(newVal)) {\n\t\t\t\t\t\tsearchItems.add(b);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tlog.info(\"Only items with '\" + newVal + \"' as their amount are displayed\");\n\n\t\t\t} else if (searchToggle.getSelectedToggle().equals(barcodeSearch)) {\n\t\t\t\titemsMap.forEach((a, b) -> {\n\t\t\t\t\tif (b.getGtin().contains(newVal)) {\n\t\t\t\t\t\tsearchItems.add(b);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tlog.info(\"Only items with '\" + newVal + \"' in their barcode are displayed\");\n\n\t\t\t} else if (searchToggle.getSelectedToggle().equals(categorieSearch)) {\n\t\t\t\titemsMap.forEach((a, b) -> {\n\t\t\t\t\tfor (String cat : b.getCategories()) {\n\t\t\t\t\t\tif (cat.toLowerCase().contains(newVal.toLowerCase())) {\n\t\t\t\t\t\t\tsearchItems.add(b);\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\tlog.info(\"Only items with '\" + newVal + \"' in their categories are displayed\");\n\t\t\t}\n\n\t\t\tlistView.setItems(searchItems);\n\t\t}\n\t}", "private void searchBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_searchBtnMouseClicked\n if (searchidTxt.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Enter ID\");\n\n } else {\n\n try {\n String id = searchidTxt.getText().toString();\n\n String Query = \"SELECT * from stock where `Product_ID`=?\";\n\n pstm = con.prepareStatement(Query);\n\n pstm.setInt(1, Integer.parseInt(id));\n\n res = pstm.executeQuery();\n\n if (res.next()) {\n\n pidTxt.setText(res.getString(1));\n pnameTxt.setText(res.getString(2));\n\n pquanityTxt.setText(res.getString(3));\n pdateTxt.setText(res.getString(4));\n pperpriceTxt.setText(res.getString(5));\n } else {\n JOptionPane.showMessageDialog(null, \"Please input Correct ID\");\n }\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Server Error\");\n }\n\n String a = searchidTxt.getText();\n String b = pnameTxt.getText();\n if (b.equals(\"\")) {\n\n } else {\n pidTxt.setText(a);\n\n //Relation of Serach and Update Button\n deleteBtn.setVisible(true);\n }\n\n }\n }", "@Test\n void searchProduct() {\n List<DummyProduct> L1= store.SearchProduct(\"computer\",null,-1,-1);\n assertTrue(L1.get(0).getProductName().equals(\"computer\"));\n\n List<DummyProduct> L2= store.SearchProduct(null,\"Technology\",-1,-1);\n assertTrue(L2.get(0).getCategory().equals(\"Technology\")&&L2.get(1).getCategory().equals(\"Technology\"));\n\n List<DummyProduct> L3= store.SearchProduct(null,null,0,50);\n assertTrue(L3.get(0).getProductName().equals(\"MakeUp\"));\n\n List<DummyProduct> L4= store.SearchProduct(null,\"Fun\",0,50);\n assertTrue(L4.isEmpty());\n }", "public ObservableList<Product> lookupProduct(String productName) {\n ObservableList<Product> namedProducts = FXCollections.observableArrayList();\n for ( Product product : allProducts ) {\n if(product.getName().toLowerCase().contains(productName.toLowerCase())) {\n namedProducts.add(product);\n }\n }\n return namedProducts;\n }", "public void searchProduct(ActionEvent actionEvent) throws IOException {\r\n //Creates the search product scene and displays it.\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"SearchProduct.fxml\"));\r\n Parent searchProductParent = loader.load();\r\n Scene searchProductScene = new Scene(searchProductParent);\r\n\r\n //Passes in the controller.\r\n SearchProductController searchProductController = loader.getController();\r\n searchProductController.initData(controller);\r\n\r\n Stage window = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\r\n window.hide();\r\n window.setScene(searchProductScene);\r\n window.show();\r\n }", "private void setListeners() {\n\n clearTextButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //Clear search edit text\n searchET.setText(\"\");\n //hide keyboard\n Utils.hideKeyboard(getActivity());\n }\n });\n\n accept.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (isDeleting) {\n //finish deleting\n isDeleting = false;\n\n //hide button\n accept.setVisibility(View.INVISIBLE);\n\n //update user\n user.setShoppingLists(shoppingLists);\n dataController.saveUser(user);\n\n //new adapter\n adapter = new DetailedShoppingListAdapter(getActivity(), productList, false, new AppInterfaces.IEditItem() {\n @Override\n public void deleteItem(int position) {\n }\n\n @Override\n public void changeQuantity(Product product, int position) {\n changeProductQuantity(product, position);\n }\n\n @Override\n public void changePrice(Product product, int position) {\n changeProductPrice(product, position);\n }\n\n @Override\n public void changeQuantityType(Product product, int productPosition, int spinnerPosition) {\n changeProductQuantityType(product, productPosition, spinnerPosition);\n }\n }, new AppInterfaces.IPickItem() {\n @Override\n public void pickItem(int position) {\n// setProductPicked(position);\n }\n });\n listView.setAdapter(adapter);\n }\n }\n });\n\n searchET.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n }\n\n @Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n //search coincidences\n String searchText = searchET.getText().toString().toLowerCase();\n filteredProducts = utils.searchProducts(productList, searchText);\n\n //update listview\n adapter = new DetailedShoppingListAdapter(getContext(), filteredProducts, false, new AppInterfaces.IEditItem() {\n @Override\n public void deleteItem(int position) {\n }\n\n @Override\n public void changeQuantity(Product product, int position) {\n //send position -1 to know its from filtered product list\n changeProductQuantity(product, -1);\n }\n\n @Override\n public void changePrice(Product product, int position) {\n //send position -1 to know its from filtered product list\n changeProductPrice(product, -1);\n }\n\n @Override\n public void changeQuantityType(Product product, int productPosition, int spinnerPosition) {\n //send position -1 to know its from filtered product list\n changeProductQuantityType(product, -1, spinnerPosition);\n }\n }, new AppInterfaces.IPickItem() {\n @Override\n public void pickItem(int position) {\n //send position -1 to know its from filtered product list\n setProductPicked(-1, position);\n }\n });\n listView.setAdapter(adapter);\n }\n\n @Override\n public void afterTextChanged(Editable editable) {\n }\n });\n\n listView.setOnMenuItemClickListener(new SwipeMenuListView.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(int productPosition, SwipeMenu menu, int index) {\n switch (index) {\n case 0:\n //Pick/UnPick item\n if (filteredProducts != null) {\n setProductPicked(-1, productPosition);\n } else {\n setProductPicked(productPosition, productPosition);\n }\n\n break;\n case 1:\n //Delete item\n //delete product from list\n productList.remove(productPosition);\n\n //update user\n user.setShoppingLists(shoppingLists);\n dataController.saveUser(user);\n\n //refresh list\n adapter.notifyDataSetChanged();\n\n //set new total price\n totalPriceTextView.setText(utils.calculateTotalPrice(productList));\n break;\n }\n return false;\n }\n });\n }", "public EventHandler<KeyEvent> checkItemExistence() {\r\n\t\treturn new EventHandler<KeyEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(KeyEvent e) {\r\n\t\t\t\tif (e.getCode() == KeyCode.TAB) {\r\n\t\t\t\t\tLOGGER.info(\"Tab Event Handled : {}\", barcodeField.getText());\r\n\t\t\t\t\tif (itemService.findByBarcode(barcodeField.getText()) != null) {\r\n\t\t\t\t\t\tLOGGER.info(\"Item already exists for barcode : {}\", barcodeField.getText());\r\n\t\t\t\t\t\tMessageDialog.showAlert(AlertType.WARNING, \"Product Already Exists\", null,\r\n\t\t\t\t\t\t\t\t\"Product already exists for a given barcode : [\" + barcodeField.getText() + \"]\");\r\n\t\t\t\t\t\tbarcodeField.clear();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t};\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tbl_inventory = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jTextField4 = new javax.swing.JTextField();\n jProgressBar1 = new javax.swing.JProgressBar();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n\n tbl_inventory.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n tbl_inventory.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tbl_inventoryKeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(tbl_inventory);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setText(\"Search:\");\n\n jTextField1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jTextField1KeyPressed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel2.setText(\"Update Barcode\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setText(\"Item Code:\");\n\n jTextField2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextField2.setFocusable(false);\n\n jTextField3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextField3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField3ActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setText(\"Barcode:\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setText(\"Description:\");\n\n jTextField4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jTextField4.setFocusable(false);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField3))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 793, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField4)\n .addComponent(jTextField1))))\n .addGap(5, 5, 5))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addGap(20, 20, 20)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(1, 1, 1)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(1, 1, 1)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 356, Short.MAX_VALUE)\n .addGap(5, 5, 5))\n );\n\n jProgressBar1.setFont(new java.awt.Font(\"Tahoma\", 0, 8)); // NOI18N\n jProgressBar1.setString(\"\");\n jProgressBar1.setStringPainted(true);\n\n jLabel6.setText(\"Status:\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(25, 25, 25))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public void fillTableFindByName(DefaultTableModel model_search){\n\t\tCashier cashierAllProductsByName = new Cashier();\r\n\t\tproductByLike = new Vector<Product>();\r\n\t\t\r\n\t\t//Remove rows from table\r\n\t\tfor (int i = model_search.getRowCount()-1; i >= 0; --i) {\r\n\t\t\tmodel_search.removeRow(i);\r\n\t\t}\r\n\t\t//Getting all products\r\n\t\tcashierAllProductsByName.getAllProductsByName(productByLike);\r\n\t\tif(productByLike.size() > 0){\r\n\t\t\tfor(int i = 0; i < productByLike.size(); i++){\r\n\t\t\t\tif(productBySearch.size() > 0){\r\n\t\t\t\t\tfor(int j = 0; j < productBySearch.size(); j++){\r\n\t\t\t\t\t\tif(productByLike.get(i).getID() == productBySearch.get(j).getID()){\r\n\t\t\t\t\t\t\tproductByLike.get(i).setQuantity(productBySearch.get(j).getQuantity());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t//No match\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//Printing it in the outside loop, the value doesn't alter here, values that alter will and will print them outside\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\ttxtpnsearch_2.setText(\"No product was found in inventory.\");\r\n\t\t}\r\n\t\tif(productByLike.size() > 0){\r\n\t\t\tfor(int k = 0; k < productByLike.size(); k++){\r\n\t\t\t\tmodel_search.addRow(new Object[]{k+1,productByLike.get(k).getName(),productByLike.get(k).getDescription(),productByLike.get(k).getQuantity(),productByLike.get(k).getSalePrice(),productByLike.get(k).getNotes()});\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\n List<String> suggest = new ArrayList<>();\n for (String search : suggestList) {\n if (search.toLowerCase().contains(materialSearchBar.getText().toLowerCase()))\n suggest.add(search);\n }\n materialSearchBar.setLastSuggestions(suggest);\n\n }", "protected void lookForNumber(String searchString) {\n\t\tif(rdbtnExactMatch.isSelected()) {\r\n\t\t\tfor(int i = 0; i < phoneList.length; i++)\r\n\t\t\t\tif(chckbxIgnoreCase.isSelected()) {\r\n\t\t\t\t\tif(phoneList[i][0].toLowerCase().equals(searchString.toLowerCase()))\r\n\t\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\t\r\n\t\t\t\t}\r\n\t\t\t\telse if(phoneList[i][0].equals(searchString))\r\n\t\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\t\r\n\t\t}\r\n\t\t\r\n\t\t// Look for a name starting with searchString\r\n\t\telse if(rdbtnStartsWith.isSelected()) {\r\n\t\t\tfor(int i = 0; i < phoneList.length; i++)\r\n\t\t\t\tif(chckbxIgnoreCase.isSelected()) {\r\n\t\t\t\t\tif(phoneList[i][0].toLowerCase().startsWith(searchString.toLowerCase())) {\r\n\t\t\t\t\t\ttxtName.setText(phoneList[i][0]);\r\n\t\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if(phoneList[i][0].startsWith(searchString)) {\r\n\t\t\t\t\ttxtName.setText(phoneList[i][0]);\r\n\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Look for a name ending with searchString\r\n\t\telse {\r\n\t\t\tfor(int i = 0; i < phoneList.length; i++)\r\n\t\t\t\tif(chckbxIgnoreCase.isSelected()) {\r\n\t\t\t\t\tif(phoneList[i][0].toLowerCase().endsWith(searchString.toLowerCase())) {\r\n\t\t\t\t\t\ttxtName.setText(phoneList[i][0]);\r\n\t\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if(phoneList[i][0].endsWith(searchString)) {\r\n\t\t\t\t\ttxtName.setText(phoneList[i][0]);\r\n\t\t\t\t\ttxtPhonenumber.setText(phoneList[i][1]);\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "public void associatePartSearchFieldTrigger(ActionEvent actionEvent) {\n String searchInput = associatedPartSearchField.getText();\n\n ObservableList<Part> foundParts = lookUpPart(searchInput);\n associatedPartsTableView.setItems(foundParts);\n\n //shows alert message if searchInput produced 0 results.\n if (associatedPartsTableView.getItems().size() == 0) {\n Utility.searchProducedNoResults(searchInput);\n }\n associatedPartSearchField.setText(\"\");\n\n }", "@Override\n\tpublic void productDetails(String productId) {\n\t\t//creating local variable\n\t\tint eq = 0;\n\t\tint ct = 0;\n\t\tint dif = 0;\n\t\t//creating the display to print out the product details of the tv sets class\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" ================================================================================================================\" );\n\t\tSystem.out.println(\" Type ProductId Product Name Price Display Size \" );\n\t\tSystem.out.println(\" ================================================================================================================\" );\n\t\tSystem.out.println(\" \");\n\t\t//Create the for loop to verify all the products in the arrayLIst\n\t\tfor(int i = 0; i < Driver.products.size(); i++) {\n\t\t\t//if the productId inserted by the user is equal an any productId from this class tv sets\n\t\t\tif(Driver.products.get(i).getProductId().equals(productId)) {\n\t\t\t\tSystem.out.println(\" Eletronic Device \" + Driver.products.get(i).getProductId() + \" \" +\n\t\t\t\t\t\tDriver.products.get(i).getName() + \" \" + Driver.products.get(i).getPrice() + \" \" + \n\t\t\t\t\t\tDriver.products.get(i).getDisplaySize() );\t\n\t\t\t\teq += 1;\n\t\t\t//if the productId inserted by the user is not equal an any productId, but similar to the name from this class tv sets\n\t\t\t}else if (Driver.products.get(i).getProductId().contains(productId) && eq == 0) {\n\t\t\t\tSystem.out.println(\" Eletronic Device \" + Driver.products.get(i).getProductId() + \" \" +\n\t\t\t\t\t\tDriver.products.get(i).getName() + \" \" + Driver.products.get(i).getPrice() + \" \" + \n\t\t\t\t\t\tDriver.products.get(i).getDisplaySize() );\t\n\t\t\t\tct += 1;\n\t\t\t}//close if statement\n\t\t}//close for loop\n\t\t//if the productId inserted by the user was not found in the stoque\n\t\tfor(int i = 0; i < Driver.products.size(); i++) {\n\t\t\tif (eq == 0 && ct == 0 && dif == 0 ){\n\t\t\t\tSystem.out.println(\" The search \" + productId + \" was not found in our Stoque. Try changing the productId name. \");\n\t\t\t\tdif += 1;\n\t\t\t}//close if statement\n\t\t}//close for loop\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" ================================================================================================================\" );\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" \");\n\n\t\tSystem.out.println();\n\t}", "public void purchaseProduct(ActionEvent actionEvent) {\r\n try {\r\n //Initialises a text input dialog.\r\n TextInputDialog dialog = new TextInputDialog(\"\");\r\n dialog.setHeaderText(\"Enter What Is Asked Below!\");\r\n dialog.setContentText(\"Please Enter A Product Name:\");\r\n dialog.setResizable(true);\r\n dialog.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\r\n\r\n //Takes in the users value\r\n Optional<String> result = dialog.showAndWait();\r\n //Makes the purchase and adds the transaction.\r\n String theResult = controller.purchaseProduct(result.get());\r\n //If the product isn't found.\r\n if (theResult.equals(\"Product Doesn't Match\")) {\r\n //Display an error message.\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.initStyle(StageStyle.UTILITY);\r\n alert.setHeaderText(\"Read Information Below!\");\r\n alert.setContentText(\"PRODUCT NOT FOUND! - CONTACT ADMINISTRATOR!\");\r\n alert.setResizable(true);\r\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\r\n alert.showAndWait();\r\n //If it is found.\r\n } else if (theResult.equals(\"Product Match!\")) {\r\n //Display a message saying that the product is found.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.initStyle(StageStyle.UTILITY);\r\n alert.setHeaderText(\"Read Information Below!\");\r\n alert.setContentText(\"PRODUCT PURCHASED!\");\r\n alert.setResizable(true);\r\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\r\n alert.showAndWait();\r\n }//END IF/ELSE\r\n } catch (HibernateException e){\r\n //If the database disconnects then display an error message.\r\n ErrorMessage message = new ErrorMessage();\r\n message.errorMessage(\"DATABASE DISCONNECTED! - SYSTEM SHUTDOWN!\");\r\n System.exit(0);\r\n } //END TRY/CATCH\r\n }", "private void processSearchButton() {\n try {\n //Stop a user from searching before a World exists to search\n if(this.world == null) {\n JOptionPane.showMessageDialog(null, \"You must read a data file first!\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n //Declarations\n StringBuilder searchResults;\n String searchCriteria;\n String unfoundItem;\n int dropDownSelection;\n\n //initialize\n searchResults = new StringBuilder();\n searchCriteria = this.searchCriteriaField.getText().trim().toLowerCase();\n unfoundItem = this.searchCriteriaField.getText().trim().toLowerCase();\n dropDownSelection = this.searchCriteriaBox.getSelectedIndex();\n\n //Stop users from searching before selecting and entering any search criteria\n if(searchCriteria.equals(\"\") || searchCriteriaBox.equals(0)) {\n JOptionPane.showMessageDialog(null, \"You must SELECT and ENTER the search criteria before searching!\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n //handle each dropdown selection\n switch(dropDownSelection) {\n case 0: //empty string to allow a blank default\n break;\n case 1: //by name\n for(Thing myThing : this.world.getAllThings()) {\n if (myThing.getName().toLowerCase().equals(searchCriteria)) {\n searchResults = new StringBuilder(myThing.getName() + \" \" + myThing.getIndex() + \" (\" + myThing.getClass().getSimpleName() + \")\");\n }\n } //end of forLoop for case 1\n if(searchResults.toString().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Search criteria '\" + unfoundItem + \"' does not exist in this World.\", \"Unknown Item\", JOptionPane.WARNING_MESSAGE);\n } else {\n JOptionPane.showMessageDialog(null, searchResults.toString());\n }\n break;\n case 2: //by index\n for(Thing myThing : this.world.getAllThings()) {\n if (myThing.getIndex() == Integer.parseInt(searchCriteria)) {\n searchResults = new StringBuilder(myThing.getName() + \" \" + myThing.getIndex() + \" (\" + myThing.getClass().getSimpleName() + \")\");\n }\n } //end of forLoop for case 2\n if(searchResults.toString().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Search criteria '\" + unfoundItem + \"' does not exist in this World.\", \"Unknown Item\", JOptionPane.WARNING_MESSAGE);\n } else {\n JOptionPane.showMessageDialog(null, searchResults.toString());\n }\n break;\n case 3: //by skill\n for(SeaPort mySeaPort : this.world.getPorts()) {\n for(Person myPerson : mySeaPort.getPersons()) {\n if(myPerson.getSkill().toLowerCase().equals(searchCriteria)) {\n searchResults.append(myPerson.getName()).append(\" \").append(myPerson.getIndex()).append(\" (\").append(myPerson.getClass().getSimpleName()).append(\")\\n Skill: \").append(myPerson.getSkill()).append(\"\\n\\n\");\n }\n }\n } //end of forLoop for case 3\n if(searchResults.toString().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Search criteria '\" + unfoundItem + \"' does not exist in this World.\", \"Unknown Item\", JOptionPane.WARNING_MESSAGE);\n } else {\n JOptionPane.showMessageDialog(null, searchResults.toString());\n }\n break;\n default: break;\n } //end of switch()\n } catch(Exception e5) {\n JOptionPane.showMessageDialog(null, \"Something went wrong in the search!\\n\\n\" + e5.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n } //end of catch()\n }", "@When(\"User searchs for {string}\")\r\n\tpublic void user_searchs_for(String product) \r\n\t{\n\t driver.findElement(By.name(\"products\")).sendKeys(product);\r\n\t}", "@FXML\n private void btnSearchClick() {\n\n // Check if search field isn't empty\n if (!txtSearch.getText().equals(\"\")) {\n\n // Display the progress indicator\n resultsProgressIndicator.setVisible(true);\n\n // Get query results\n MovieAPIImpl movieAPIImpl = new MovieAPIImpl();\n movieAPIImpl.getMovieList(Constants.SERVICE_API_KEY, txtSearch.getText(), this);\n }\n }", "public void Case14(){\n System.out.println(\"Testing Case 14\");\n for(int z=1; z<=7; z++) {\n mustCarry();\n if(z==1) {\n checkByName();\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchName = (MobileElement) driver.findElementByXPath(\"//android.widget.EditText[contains(@resource-id,'search_auto_complete_text_view')]\");\n searchName.sendKeys(mustCarryProd);\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n System.out.println(\"Must Carry done\");\n clear();\n }\n else if(z==2){\n checkByShortName();\n //Click Search bar and search certain product by Name\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchShortName = (MobileElement) driver.findElementByXPath(\"//android.widget.EditText[contains(@resource-id,'search_auto_complete_text_view')]\");\n searchShortName.sendKeys(\"Adartrel\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n clear();\n }\n else if(z==3){\n checkByItemCode();\n //Click Search bar and search certain product by Item Code\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchItemCode = (MobileElement) driver.findElementByXPath(\"//android.widget.EditText[contains(@resource-id,'search_auto_complete_text_view')]\");\n searchItemCode.sendKeys(\"51232166\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n clear();\n }\n else if(z==4){\n checkByDescription();\n //Click Search bar and search certain product by Description\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchDescription = (MobileElement) driver.findElementByXPath(\"//android.widget.EditText[contains(@resource-id,'search_auto_complete_text_view')]\");\n searchDescription.sendKeys(\"Tablet\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n clear();\n }\n else if(z==5){\n checkByBrand();\n //Click Search bar and search certain product by Brand\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchBrand = (MobileElement) driver.findElementByXPath(\"//android.widget.EditText[contains(@resource-id,'search_auto_complete_text_view')]\");\n searchBrand.sendKeys(\"Adartrel\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n clear();\n }\n else if(z==6){\n checkByKeyword();\n //Click Search bar and search certain product by Keywords\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchKeyword = (MobileElement) driver.findElementByXPath(\"//android.widget.EditText[contains(@resource-id,'search_auto_complete_text_view')]\");\n searchKeyword.sendKeys(\"Adartrel\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n clear();\n }\n else if(z==7){\n checkByPrincipal();\n //Click Search bar and search certain product by Principal\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n MobileElement searchPrincipal = (MobileElement) driver.findElementByXPath(\"//android.widget.EditText[contains(@resource-id,'search_auto_complete_text_view')]\");\n searchPrincipal.sendKeys(\"GlaxoSmithKline\");\n //Click Magnifying Glass Icon\n MobileElement searchBtn = (MobileElement) driver.findElementByXPath(\"//android.widget.ImageButton[contains(@resource-id,'search_button')]\");\n searchBtn.click();\n clear();\n }\n }\n System.out.println(\"Case 14 Done\");\n }", "public static void searchInvalidProduct() throws InterruptedException {\n// 4- test case: search for in search box\n//********************************** step 1 open browser and navigate to url***************************\n // Open Browser and Navigate to URL\n browseSetUp(chromeDriver, chromeDriverPath, url);\n//****************************************<step 2- enter keyword in search box>**********************\n Thread.sleep(2000);\n driver.findElement(By.xpath(\"//*[@id=\\\"headerSearch\\\"]\")).sendKeys(\"milk \");\n Thread.sleep(3000);\n//*******************************************<step 3- click on the search button>**********************************\n driver.findElement(By.cssSelector(\".SearchBox__buttonIcon\")).click();\n//*******************************************<step 4- select the item>**********************************\n driver.findElement(By.cssSelector(\"#products > div > div.js-pod.js-pod-0.plp-pod.plp-pod--default.pod-item--0 > div > div.plp-pod__info > div.pod-plp__description.js-podclick-analytics > a\")).click();\n Thread.sleep(5000);\n//*******************************************<step 5- click to add the item to the cart>**********************************\n driver.findElement(By.xpath(\"//*[@id=\\\"atc_pickItUp\\\"]/span\")).click();\n Thread.sleep(6000);\n driver.close();\n\n\n }", "public List<Product> search(String searchString);", "@Override\r\n public double searchProduct(ProductInput productInput) {\r\n\r\n LocalDate Date1= productInput.getAvailDate();\r\n LocalDate Date2= Date1.plusDays(10);\r\n\r\n double quantity= 0;\r\n if(Date1.isAfter(LocalDate.of(2021,03,18)) && Date1.isBefore(LocalDate.of(2021,03,31)))\r\n {\r\n for(Product i:InventoryList)\r\n {\r\n LocalDate Date3= i.getAvailDate();\r\n if(Date3.isAfter(Date1.minusDays(1)) && Date3.isBefore(Date2.plusDays(1)))\r\n {\r\n quantity= quantity + i.getAvailQty();\r\n }\r\n }\r\n return quantity;\r\n }\r\n else\r\n return quantity;\r\n }", "public static ObservableList<Product> lookupProduct(String productName) {\n ObservableList<Product> productsContainingSubstring = FXCollections.observableArrayList();\n\n // The for loop variable to the left of the colon is a temporary variable containing a single element from the collection on the right\n // With each iteration through the loop, Java pulls the next element from the collection and assigns it to the temp variable.\n for (Product currentProduct : Inventory.getAllProducts()) {\n if (currentProduct.getName().toLowerCase().contains(productName.toLowerCase())) {\n productsContainingSubstring.add(currentProduct);\n }\n }\n return productsContainingSubstring;\n }", "@SuppressLint(\"LongLogTag\")\n @Override\n public void onTextChanged(CharSequence userInput, int start, int before, int count) {\n Log.e(TAG, \"User input: \" + userInput);\n /*\n String string = userInput.toString();\n if(string.contains(\"'\")){\n string.replace(\"'\", \"''\");\n }\n */\n\n MainActivity mainActivity = ((MainActivity) context);\n\n // query the database based on the user input\n\n mainActivity.RouteNumberInputItem = mainActivity.getRouteNumberFromDb(userInput.toString());\n mainActivity.CustomerNameInputItem = mainActivity.getCustomerNameFromDb(userInput.toString());\n mainActivity.CustomerAccountInputItem = mainActivity.getCustomerAccountFromDb(userInput.toString());\n mainActivity.ItemNameInputItem = mainActivity.getItemNameFromDb(userInput.toString());\n mainActivity.ItemBrandInputItem = mainActivity.getItemBrandFromDb(userInput.toString());\n mainActivity.ItemPackSizeInputItem = mainActivity.getItemPackSizeFromDb(userInput.toString());\n mainActivity.ItemFlavorInputItem = mainActivity.getItemFlavorFromDb(userInput.toString());\n\n // update the adapater\n mainActivity.RouteNumberAdapter.notifyDataSetChanged();\n mainActivity.RouteNumberAdapter = new ArrayAdapter<String>(mainActivity, android.R.layout.simple_dropdown_item_1line, mainActivity.RouteNumberInputItem);\n mainActivity.RouteNumberAutoComplete.setAdapter(mainActivity.RouteNumberAdapter);\n\n mainActivity.CustomerNameAdapter.notifyDataSetChanged();\n mainActivity.CustomerNameAdapter = new ArrayAdapter<String>(mainActivity, android.R.layout.simple_dropdown_item_1line, mainActivity.CustomerNameInputItem);\n mainActivity.CustomerNameAutoComplete.setAdapter(mainActivity.CustomerNameAdapter);\n\n mainActivity.CustomerAccountAdapter.notifyDataSetChanged();\n mainActivity.CustomerAccountAdapter = new ArrayAdapter<String >(mainActivity, android.R.layout.simple_dropdown_item_1line, mainActivity.CustomerAccountInputItem);\n mainActivity.CustomerAccountAutoComplete.setAdapter(mainActivity.CustomerAccountAdapter);\n\n mainActivity.ItemNameAdapter.notifyDataSetChanged();\n mainActivity.ItemNameAdapter = new ArrayAdapter<String >(mainActivity, android.R.layout.simple_dropdown_item_1line, mainActivity.ItemNameInputItem);\n mainActivity.ItemNameAutoComplete.setAdapter(mainActivity.ItemNameAdapter);\n\n mainActivity.ItemBrandAdapter.notifyDataSetChanged();\n mainActivity.ItemBrandAdapter = new ArrayAdapter<String >(mainActivity, android.R.layout.simple_dropdown_item_1line, mainActivity.ItemBrandInputItem);\n mainActivity.ItemBrandAutoComplete.setAdapter(mainActivity.ItemBrandAdapter);\n\n mainActivity.ItemPackSizeAdapter.notifyDataSetChanged();\n mainActivity.ItemPackSizeAdapter = new ArrayAdapter<String >(mainActivity, android.R.layout.simple_dropdown_item_1line, mainActivity.ItemPackSizeInputItem);\n mainActivity.ItemPackSizeAutoComplete.setAdapter(mainActivity.ItemPackSizeAdapter);\n\n mainActivity.ItemFlavorAdapter.notifyDataSetChanged();\n mainActivity.ItemFlavorAdapter = new ArrayAdapter<String >(mainActivity, android.R.layout.simple_dropdown_item_1line, mainActivity.ItemFlavorInputItem);\n mainActivity.ItemFlavorAutoComplete.setAdapter(mainActivity.ItemFlavorAdapter);\n\n }", "public void enterProduct(String product) {\n\n\t\tdriver.findElement(amazonSearchTextBox).sendKeys(product);\n\t}" ]
[ "0.76942474", "0.76161987", "0.6901448", "0.666147", "0.6645876", "0.66050166", "0.6593377", "0.64890075", "0.6438951", "0.63351524", "0.63300467", "0.62954164", "0.6277403", "0.625983", "0.6229926", "0.61378706", "0.611612", "0.6092349", "0.6013056", "0.59874064", "0.59546036", "0.5952087", "0.5929268", "0.5908694", "0.58886105", "0.5873624", "0.587346", "0.5868416", "0.5863226", "0.5853611", "0.5838279", "0.5810845", "0.5809733", "0.58047926", "0.5799246", "0.5770193", "0.57588017", "0.57573193", "0.5752772", "0.57174236", "0.57129836", "0.5678871", "0.5649717", "0.56408936", "0.5638456", "0.5616635", "0.55956924", "0.5589875", "0.5584087", "0.55725473", "0.5564172", "0.55554444", "0.55522674", "0.5543569", "0.5534533", "0.5532318", "0.553106", "0.5520153", "0.55199146", "0.55178744", "0.54875195", "0.5472815", "0.5466799", "0.54647386", "0.54607904", "0.5436063", "0.5432558", "0.54245025", "0.54240906", "0.5415561", "0.54035366", "0.54006284", "0.53943443", "0.5389713", "0.53889424", "0.5380925", "0.53736573", "0.53653973", "0.534068", "0.5340631", "0.5323469", "0.5321125", "0.5316514", "0.53130865", "0.5307356", "0.5302175", "0.5296399", "0.52962846", "0.5294661", "0.52936095", "0.52889717", "0.5284251", "0.52679074", "0.5265227", "0.52608365", "0.52571356", "0.52417696", "0.523836", "0.5237147", "0.52143204" ]
0.80187577
0
Deletes selected Part. Uses deletePart method from Inventory. Has an alert that double checks the user wants to delete the part.
public void deletePart() { ObservableList<Part> partRowSelected; partRowSelected = partTableView.getSelectionModel().getSelectedItems(); if(partRowSelected.isEmpty()) { alert.setAlertType(Alert.AlertType.ERROR); alert.setContentText("Please select the Part you want to delete."); alert.show(); } else { int index = partTableView.getSelectionModel().getFocusedIndex(); Part part = Inventory.getAllParts().get(index); alert.setAlertType(Alert.AlertType.CONFIRMATION); alert.setContentText("Are you sure you want to delete this Part?"); alert.showAndWait(); ButtonType result = alert.getResult(); if (result == ButtonType.OK) { Inventory.deletePart(part); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\r\n private void deletePartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n \r\n Alert message = new Alert(Alert.AlertType.CONFIRMATION);\r\n message.setTitle(\"Confirm delete\");\r\n message.setHeaderText(\" Are you sure you want to delete part ID: \" + selected.getId() + \", name: \" + selected.getName() + \"?\" );\r\n message.setContentText(\"Please confirm your selection\");\r\n \r\n Optional<ButtonType> response = message.showAndWait();\r\n if (response.get() == ButtonType.OK)\r\n {\r\n stock.deletePart(selected);\r\n partsTbl.setItems(stock.getAllParts());\r\n partsTbl.refresh();\r\n displayMessage(\"The part \" + selected.getName() + \" was successfully deleted\");\r\n }\r\n else {\r\n displayMessage(\"Deletion cancelled by user. Part not deleted.\");\r\n }\r\n }\r\n else {\r\n displayMessage(\"No part selected for deletion\");\r\n }\r\n }", "public void handleDeleteParts()\n {\n Part partToDelete = getPartToModify();\n\n if (partToDelete != null) {\n\n // Ask user for confirmation to remove the product from part table\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation\");\n alert.setHeaderText(\"Delete Confirmation\");\n alert.setContentText(\"Are you sure you want to delete this part?\");\n ButtonType confirm = new ButtonType(\"Yes\", ButtonBar.ButtonData.YES);\n ButtonType deny = new ButtonType(\"No\", ButtonBar.ButtonData.NO);\n ButtonType cancel = new ButtonType(\"Cancel\", ButtonBar.ButtonData.CANCEL_CLOSE);\n alert.getButtonTypes().setAll(confirm, deny, cancel);\n alert.showAndWait().ifPresent(type ->{\n if (type == confirm)\n {\n inventory.deletePart(partToDelete);\n updateParts();\n }\n });\n\n } else {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No part was selected!\");\n alert.setContentText(\"Please select a part to delete from the part table!\");\n alert.show();\n }\n // Unselect parts in table after part is deleted\n partTable.getSelectionModel().clearSelection();\n }", "public static boolean deletePart(Part selectedPart) {\n // The for loop variable to the left of the colon is a temporary variable containing a single element from the collection on the right\n // With each iteration through the loop, Java pulls the next element from the collection and assigns it to the temp variable.\n for (Part currentPart : Inventory.getAllParts()) {\n if (currentPart.getId() == selectedPart.getId()) {\n return Inventory.getAllParts().remove(currentPart);\n }\n }\n return false;\n }", "@FXML\r\n void onActionDeletePart(ActionEvent event) {\r\n\r\n Part part = TableView2.getSelectionModel().getSelectedItem();\r\n if(part == null)\r\n return;\r\n\r\n //EXCEPTION SET 2 REQUIREMENT\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setHeaderText(\"You are about to delete the product you have selected!\");\r\n alert.setContentText(\"Are you sure you wish to continue?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK){\r\n product.deleteAssociatedPart(part.getId());\r\n }\r\n }", "@FXML void onActionModifyProductRemovePart(ActionEvent event) {\n Part selectedPart = associatedPartTableView.getSelectionModel().getSelectedItem();\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Do you want to delete this part?\");\n Optional<ButtonType> result = alert.showAndWait();\n if(result.isPresent() && result.get() == ButtonType.OK) {\n tmpAssociatedParts.remove(selectedPart);\n }\n }", "public boolean deletePart(Part selectedPart) {\n for(Part part: allParts) {\n if (part.getId() == selectedPart.getId() &&\n part.getName().equals(selectedPart.getName()) &&\n part.getPrice() == selectedPart.getPrice() &&\n part.getStock() == selectedPart.getStock() &&\n part.getMin() == selectedPart.getMin() &&\n part.getMax() == selectedPart.getMax()) {\n if(selectedPart instanceof InHousePart &&\n ((InHousePart) part).getMachineId() == ((InHousePart) selectedPart).getMachineId()) {\n return allParts.remove(part);\n } else if(selectedPart instanceof OutSourcedPart &&\n ((OutSourcedPart)part).getCompanyName().equals(((OutSourcedPart) selectedPart).getCompanyName())) {\n return allParts.remove(part);\n }\n }\n }\n System.out.println(\"No matching part was found\");\n return false;\n }", "@FXML\n\tprivate void deleteButtonAction(ActionEvent clickEvent) {\n\t\t\n\t\tPart deletePartFromProduct = partListProductTable.getSelectionModel().getSelectedItem();\n\t\t\n\t\tif (deletePartFromProduct != null) {\n\t\t\t\n\t\t\tAlert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Pressing OK will remove the part from the product.\\n\\n\" + \"Are you sure you want to remove the part?\");\n\t\t\n\t\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\t\n\t\t\tif (result.isPresent() && result.get() == ButtonType.OK) {\n\t\t\t\n\t\t\t\tdummyList.remove(deletePartFromProduct);\n\n\t\t\t}\n\t\t}\n\t}", "@FXML\n void removeAssociatedPart(ActionEvent event) {\n\n Part selectedPart = assocPartTableView.getSelectionModel().getSelectedItem();\n\n if (selectedPart == null) {\n AlartMessage.displayAlertAdd(6);\n } else {\n\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Alert\");\n alert.setContentText(\"Are you sure you want to remove the selected part?\");\n Optional<ButtonType> result = alert.showAndWait();\n\n if (result.isPresent() && result.get() == ButtonType.OK) {\n assocParts.remove(selectedPart);\n assocPartTableView.setItems(assocParts);\n }\n }\n }", "@FXML\r\n public void onActionDeletePart(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete the selected item?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n\r\n if(partsTableView.getSelectionModel().getSelectedItem() != null) {\r\n Inventory.deletePart(partsTableView.getSelectionModel().getSelectedItem());\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/mainScreen.fxml\"));\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 1062, 498);\r\n stage.setTitle(\"Main Screen\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to delete.\");\r\n alert2.showAndWait();\r\n }\r\n }\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "@FXML private void handleAddProdDelete(ActionEvent event) {\n Part partDeleting = fxidAddProdSelectedParts.getSelectionModel().getSelectedItem();\n \n if (partDeleting != null) {\n //Display Confirm Box\n Alert confirmDelete = new Alert(Alert.AlertType.CONFIRMATION);\n confirmDelete.setHeaderText(\"Are you sure?\");\n confirmDelete.setContentText(\"Are you sure you want to remove the \" + partDeleting.getName() + \" part?\");\n Optional<ButtonType> result = confirmDelete.showAndWait();\n //If they click OK\n if (result.get() == ButtonType.OK) {\n //Delete the part.\n partToSave.remove(partDeleting);\n //Refresh the list view.\n fxidAddProdSelectedParts.setItems(partToSave);\n\n Alert successDelete = new Alert(Alert.AlertType.CONFIRMATION);\n successDelete.setHeaderText(\"Confirmation\");\n successDelete.setContentText(partDeleting.getName() + \" has been removed from product.\");\n successDelete.showAndWait();\n }\n } \n }", "public void deleteProduct()\n {\n ObservableList<Product> productRowSelected;\n productRowSelected = productTableView.getSelectionModel().getSelectedItems();\n int index = productTableView.getSelectionModel().getFocusedIndex();\n Product product = productTableView.getItems().get(index);\n if(productRowSelected.isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please select the Product you want to delete.\");\n alert.show();\n } else if (!product.getAllAssociatedParts().isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"This Product still has a Part associated with it. \\n\" +\n \"Please modify the Product and remove the Part.\");\n alert.show();\n } else {\n alert.setAlertType(Alert.AlertType.CONFIRMATION);\n alert.setContentText(\"Are you sure you want to delete this Product?\");\n alert.showAndWait();\n ButtonType result = alert.getResult();\n if(result == ButtonType.OK)\n {\n Inventory.deleteProduct(product);\n }\n }\n }", "public boolean deleteAssociatedPart(Part selectedAssociatedPart) {\n return associatedParts.remove(selectedAssociatedPart);\n }", "private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}", "public void deleteAssociatedPart(Part part) {\n associatedParts.remove(part);\n }", "@Override\n public void onClick(View v) {\n ((CreateDocketActivityPart2) activity).deleteSpareParts(pos);\n }", "public void deleteSelection() {\n deleteFurniture(Home.getFurnitureSubList(this.home.getSelectedItems())); \n }", "public void handleDeleteProducts()\n {\n Product productToDelete = getProductToModify();\n\n if (productToDelete != null)\n {\n // Ask user for confirmation to remove the product from product table\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation\");\n alert.setHeaderText(\"Delete Confirmation\");\n alert.setContentText(\"Are you sure you want to delete this product?\");\n ButtonType confirm = new ButtonType(\"Yes\", ButtonBar.ButtonData.YES);\n ButtonType deny = new ButtonType(\"No\", ButtonBar.ButtonData.NO);\n ButtonType cancel = new ButtonType(\"Cancel\", ButtonBar.ButtonData.CANCEL_CLOSE);\n alert.getButtonTypes().setAll(confirm, deny, cancel);\n alert.showAndWait().ifPresent(type ->{\n if (type == confirm)\n {\n // User cannot delete products with associated parts\n if (productToDelete.getAllAssociatedParts().size() > 0)\n {\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\n alert2.setTitle(\"Action is Forbidden!\");\n alert2.setHeaderText(\"Action is Forbidden!\");\n alert2.setContentText(\"Products with associated parts cannot be deleted!\\n \" +\n \"Please remove associated parts from product and try again!\");\n alert2.show();\n }\n else\n {\n // delete the product\n inventory.deleteProduct(productToDelete);\n updateProducts();\n productTable.getSelectionModel().clearSelection();\n }\n }\n });\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to delete from the part table!\");\n alert.show();\n }\n this.productTable.getSelectionModel().clearSelection();\n }", "private void deleteItem() {\n // Only perform the delete if this is an existing inventory item\n if (mCurrentInventoryUri != null) {\n // Call the ContentResolver to delete the inventory item at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentInventoryUri\n // content URI already identifies the inventory item that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentInventoryUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_inventory_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_inventory_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "public void onActionDeleteProduct(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete the selected item?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n if (productsTableView.getSelectionModel().getSelectedItem() != null) {\r\n Product product = productsTableView.getSelectionModel().getSelectedItem();\r\n if (product.getAllAssociatedParts().size() == 0) {\r\n\r\n Inventory.deleteProduct(productsTableView.getSelectionModel().getSelectedItem());\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/mainScreen.fxml\"));\r\n Stage stage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 1062, 498);\r\n stage.setTitle(\"Main Screen\");\r\n stage.setScene(scene);\r\n stage.show();\r\n } else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Products with associated parts cannot be deleted.\");\r\n alert2.showAndWait();\r\n }\r\n }\r\n else {\r\n Alert alert3 = new Alert(Alert.AlertType.ERROR);\r\n alert3.setContentText(\"Click on an item to delete.\");\r\n alert3.showAndWait();\r\n }\r\n }\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "public void deletPart(Part part) {\n allParts.remove(part);\n }", "public static boolean deletePart(Part removePart){\r\n for(Part part : allParts){\r\n if(part.getPartID() == removePart.getPartID()){\r\n allParts.remove(removePart);\r\n return true;\r\n } \r\n }\r\n return false;\r\n }", "@Override\n public void deletePartida(String idPartida) {\n template.opsForHash().delete(idPartida, \"jugador1\");\n template.opsForHash().delete(idPartida, \"jugador2\");\n template.opsForSet().remove(\"partidas\",idPartida);\n }", "public void onClick(DialogInterface dialog, int id) {\n mListener.onDialogDeletePartPositiveClick(DeletePartDialogFragment.this, lesson_part_id);\n }", "public void removeAssociatedPart(ActionEvent actionEvent) {\n Part selectedAssociatedPart;\n selectedAssociatedPart = (Part) partsTableView.getSelectionModel().getSelectedItem();\n associatedPartTableViewHolder.remove(selectedAssociatedPart);\n\n associatedPartsTableView.setItems(associatedPartTableViewHolder);\n }", "public void getSelectedPart(Part selectedPart){\n this.part = selectedPart;\n if(selectedPart instanceof InHouse){\n labelPartSource.setText(\"Machine ID\");\n InHouse inHouse = (InHouse)selectedPart;\n ModPartIDField.setText(Integer.toString(inHouse.getId()));\n ModPartNameField.setText(inHouse.getName());\n ModPartInventoryField.setText(Integer.toString(inHouse.getStock()));\n ModPartPriceField.setText(Double.toString(inHouse.getPrice()));\n ModPartMaxField.setText(Integer.toString(inHouse.getMax()));\n ModPartMinField.setText(Integer.toString(inHouse.getMin()));\n partSourceField.setText(Integer.toString(inHouse.getMachineId()));\n inHouseRadBtn.setSelected(true);\n } else if (selectedPart instanceof Outsourced){\n labelPartSource.setText(\"Company Name\");\n Outsourced outsourced = (Outsourced) selectedPart;\n ModPartIDField.setText(Integer.toString(outsourced.getId()));\n ModPartNameField.setText(outsourced.getName());\n ModPartInventoryField.setText(Integer.toString(outsourced.getStock()));\n ModPartPriceField.setText(Double.toString(outsourced.getPrice()));\n ModPartMaxField.setText(Integer.toString(outsourced.getMax()));\n ModPartMinField.setText(Integer.toString(outsourced.getMin()));\n partSourceField.setText(outsourced.getCompanyName());\n OutsourcedRadBtn.setSelected(true);\n }\n }", "private void deletePet() {\n if (mCurrentPetUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentPetUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentPetUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_pet_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_pet_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "private void deletePet() {\r\n // Only perform the delete if this is an existing pet.\r\n// if (mCurrentPetUri != null) {\r\n// // Call the ContentResolver to delete the pet at the given content URI.\r\n// // Pass in null for the selection and selection args because the mCurrentPetUri\r\n// // content URI already identifies the pet that we want.\r\n// int rowsDeleted = getContentResolver().delete(mCurrentPetUri, null, null);\r\n// // Show a toast message depending on whether or not the delete was successful.\r\n// if (rowsDeleted == 0) {\r\n// // If no rows were deleted, then there was an error with the delete.\r\n// Toast.makeText(this, getString(R.string.editor_delete_pet_failed),\r\n// Toast.LENGTH_SHORT).show();\r\n// } else {\r\n// // Otherwise, the delete was successful and we can display a toast.\r\n// Toast.makeText(this, getString(R.string.editor_delete_pet_successful),\r\n// Toast.LENGTH_SHORT).show();\r\n// }\r\n// }\r\n\r\n }", "public interface DeletePartDialogListener {\n void onDialogDeletePartPositiveClick(DialogFragment dialog, long lesson_part_id);\n void onDialogDeletePartNegativeClick(DialogFragment dialog);\n }", "@FXML\r\n public void onDelete() {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Mensagem\");\r\n alert.setHeaderText(\"\");\r\n alert.setContentText(\"Deseja excluir?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n AlunoModel alunoModel = tabelaAluno.getItems().get(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n\r\n if (AlunoDAO.executeUpdates(alunoModel, AlunoDAO.DELETE)) {\r\n tabelaAluno.getItems().remove(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n alert(\"Excluido com sucesso!\");\r\n desabilitarCampos();\r\n } else {\r\n alert(\"Não foi possivel excluir\");\r\n }\r\n }\r\n }", "private void deleteCourse() {\n // Only perform the delete if this is an existing pet.\n if (mCurrentCourseUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentPetUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentCourseUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_course_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_course_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "public void removeClicked(View v){\n android.util.Log.d(this.getClass().getSimpleName(), \"remove Clicked\");\n String delete = \"delete from partner where partner.name=?;\";\n try {\n PartnerDB db = new PartnerDB((Context) this);\n SQLiteDatabase plcDB = db.openDB();\n plcDB.execSQL(delete, new String[]{this.selectedPartner});\n plcDB.close();\n db.close();\n }catch(Exception e){\n android.util.Log.w(this.getClass().getSimpleName(),\" error trying to delete partner\");\n }\n this.selectedPartner = this.setupselectSpinner1();\n this.loadFields();\n }", "public void partDeactivated(IWorkbenchPart part) {\n if (part instanceof ReviewEditorView) {\n log.debug(\"part is deactviated.\");\n ReviewEditorViewAction.SAVE.run();\n }\n }", "@Override\n public void onClick(View v) {\n\n ((CreateDocketActivityPart2) activity).deleteMachineItem(position);\n }", "private void cmd_deleteSelection(){\n\t\tm_frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\t\tif (ADialog.ask(getWindowNo(), m_frame.getContainer(), \"DeleteSelection\"))\n\t\t{\t\n\t\t\tint records = deleteSelection(detail);\n\t\t\tsetStatusLine(Msg.getMsg(Env.getCtx(), \"Deleted\") + records, false);\n\t\t}\t\n\t\tm_frame.setCursor(Cursor.getDefaultCursor());\n\t\tbDelete.setSelected(false);\n\t\texecuteQuery();\n\t\t\n\t}", "private void deleteProduct() {\n // Only perform the delete if this is an existing Product.\n if (mCurrentProductUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentProductUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentProductUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_product_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_product_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "private void deleteProduct() {\n // Only perform the delete if this is an existing product.\n if (currentProductUri != null) {\n // Call the ContentResolver to delete the product at the given content URI.\n // Pass in null for the selection and selection args because the currentProductUri\n // content URI already identifies the product that we want.\n int rowsDeleted = getContentResolver().delete(currentProductUri, null, null);\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.no_deleted_products),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_product_successful), Toast.LENGTH_SHORT).show();\n }\n }\n finish();\n }", "private void deleteRoutine() {\n String message = \"Are you sure you want to delete this routine\\nfrom your routine collection?\";\n int n = JOptionPane.showConfirmDialog(this, message, \"Warning\", JOptionPane.YES_NO_OPTION);\n if (n == JOptionPane.YES_OPTION) {\n Routine r = list.getSelectedValue();\n\n collection.delete(r);\n listModel.removeElement(r);\n }\n }", "public static void confirmSingleDeletion(final Context context, final Uri selectedProduct) {\n // create a dialog builder\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n\n // set the correct message\n builder.setMessage(context.getResources().getString(R.string.catalog_confirmation_delete_single));\n\n // delete on positive response\n builder.setPositiveButton(context.getResources().getString(R.string.catalog_confirmation_delete_single_pos), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n int rowsDeleted = context.getContentResolver().delete(selectedProduct, null, null);\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then display an error\n Toast.makeText(context, context.getResources().getString(R.string.catalog_data_clear_failed_toast),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, display a success messaGE\n Toast.makeText(context, context.getResources().getString(R.string.catalog_data_cleared_toast),\n Toast.LENGTH_SHORT).show();\n }\n // finish activity\n ((Activity) context).finish();\n }\n });\n\n // return on negative response\n builder.setNegativeButton(R.string.confirmation_dialog_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\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 }", "public static void deleteParty(QuestParty party) {\n\t\topenParties.remove(party);\n\t}", "private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }", "public void delete() {\n\t\tcmd = new DeleteCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "@Transactional\n\tpublic void eliminaPartita(Long idPartita) {\n\t\tpartitaRepository.deleteById(idPartita);\n\t}", "public void partDeactivated(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "@FXML\n private void deleteRow(ActionEvent event){\n if(facilitiesView.getSelectionModel().getSelectedItem()==null){\n errorBox(\"Feil\", \"Det er ingen rader som er markert\", \"Vennligst marker en rad i tabellen\");\n }\n else{\n Alert mb = new Alert(Alert.AlertType.CONFIRMATION);\n mb.setTitle(\"Bekreft\");\n mb.setHeaderText(\"Du har trykket slett på \"+ facilitiesView.getSelectionModel().getSelectedItem().getFacilityName());\n mb.setContentText(\"Ønsker du virkerlig å slette dette lokalet?\");\n mb.showAndWait().ifPresent(response -> {\n if(response== ButtonType.OK){\n observableList.remove(facilitiesView.getSelectionModel().getSelectedItem());\n\n File file = new File(EditedFiles.getActiveFacilityFile());\n file.delete();\n try {\n WriterThreadRunner.WriterThreadRunner(getFacilities(), EditedFiles.getActiveFacilityFile());\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n }\n });\n }\n }", "@Override\n public void deleteSelectedConnectathonParticipant() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"deleteSelectedConnectathonParticipant\");\n }\n\n selectedConnectathonParticipant = entityManager.find(ConnectathonParticipant.class,\n selectedConnectathonParticipant.getId());\n\n try {\n\n entityManager.remove(selectedConnectathonParticipant);\n entityManager.flush();\n\n } catch (Exception e) {\n LOG.warn(USER + selectedConnectathonParticipant.getEmail()\n + \" cannot be deleted - This case should not occur...\");\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotDeleteParticipant\",\n selectedConnectathonParticipant.getFirstname(), selectedConnectathonParticipant.getLastname(),\n selectedConnectathonParticipant.getEmail());\n }\n FinancialCalc.updateInvoiceIfPossible(selectedConnectathonParticipant.getInstitution(),\n selectedConnectathonParticipant.getTestingSession(), entityManager);\n getAllConnectathonParticipants();\n\n }", "void deleteArt(Art art);", "@FXML\n private void handleDeletePerson() {\n //remove the client from the view\n int selectedIndex = informationsClients.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n //remove the client from the database\n ClientManager cManager = new ClientManager();\n cManager.deleteClient(informationsClients.getSelectionModel().getSelectedItem().getId());\n informationsClients.getItems().remove(selectedIndex);\n } else {\n // Nothing selected.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"Erreur : Pas de selection\");\n alert.setHeaderText(\"Aucun client n'a été selectionné\");\n alert.setContentText(\"Veuillez selectionnez un client.\");\n alert.showAndWait();\n }\n }", "public static void finPartie(Partie p){\n\t\tgames.remove(p);\n\t\tnbPartie--;\n\t}", "public DeleteItemOutcome deleteItem(DeleteItemSpec spec);", "@FXML\n\tprivate void deleteSelected(ActionEvent event) {\n\t\tint selectedIndex = taskList.getSelectionModel().getSelectedIndex();\n\t\tString task = taskList.getItems().get(selectedIndex);\n\t\ttaskList.getSelectionModel().clearSelection();\n\t\ttaskList.getItems().remove(task);\n\t\tchatView.setText(\"\");\n\t\ttaskList.getItems().removeAll();\n\t\tString task_split[] = task.split(\" \", 2);\n\t\tString removeTask = task_split[1];\n\t\tif (task.contains(\"due by\")) {\n\t\t\tString[] taskDate = task_split[1].split(\"\\\\s+\");\n\t\t\tSystem.out.println(taskDate);\n\t\t\tString end = taskDate[taskDate.length - 3];\n\t\t\tSystem.out.println(end);\n\t\t\tremoveTask = task_split[1].substring(0, task_split[1].indexOf(end)).trim();\n\t\t\tSystem.out.println(removeTask);\n\n\t\t}\n\t\tclient.removeTask(removeTask.replace(\"\\n\", \"\"));\n\t}", "@FXML\r\n void onActionModifyPart(ActionEvent event) throws IOException {\r\n \r\n try {\r\n int id = currPart.getId();\r\n String name = partNameTxt.getText();\r\n int stock = Integer.parseInt(partInvTxt.getText());\r\n double price = Double.parseDouble(partPriceTxt.getText());\r\n int max = Integer.parseInt(maxInvTxt.getText());\r\n int min = Integer.parseInt(minInvTxt.getText());\r\n int machineId;\r\n String companyName;\r\n boolean partAdded = false;\r\n \r\n if (name.isEmpty()) {\r\n //RUNTIME ERROR: Name empty exception\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Name cannot be empty.\");\r\n errorTxtLabel.setVisible(true);\r\n } else {\r\n if (minVerify(min, max) && inventoryVerify(min, max, stock)) {\r\n \r\n if(inHouseRBtn.isSelected()) {\r\n try {\r\n machineId = Integer.parseInt(partIDTxt.getText());\r\n InHousePart newInHousePart = new InHousePart(id, name, price, stock, min, max, machineId);\r\n newInHousePart.setId(currPart.getId());\r\n Inventory.addPart(newInHousePart);\r\n partAdded = true;\r\n } catch (Exception e) {\r\n //LOGICAL ERROR: Invalid machine ID error\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Invalid machine ID.\");\r\n errorTxtLabel.setVisible(true);\r\n }\r\n } \r\n if (outsourcedRBtn.isSelected()) {\r\n companyName = partIDTxt.getText();\r\n OutsourcedPart newOutsourcedPart = new OutsourcedPart(id, name, price, stock, min, max, companyName);\r\n newOutsourcedPart.setId(currPart.getId());\r\n Inventory.addPart(newOutsourcedPart);\r\n partAdded = true;\r\n }\r\n if (partAdded){\r\n errorLabel.setVisible(false); \r\n errorTxtLabel.setVisible(false);\r\n Inventory.deletePart(currPart);\r\n //Confirm modify\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Modify Part\");\r\n alert.setContentText(\"Save changes and return to main menu?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n stage = (Stage) ((Button)event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/View/Main.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }\r\n }\r\n }\r\n }\r\n } catch(Exception e) {\r\n //RUNTIME ERROR: Blank fields exception\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Form contains blank fields or errors.\");\r\n errorTxtLabel.setVisible(true);\r\n }\r\n\r\n }", "@Command(\"delete\")\n @NotifyChange({\"events\", \"selectedEvent\"})\n public void delete() {\n if(this.selectedEvent != null) {\n eventDao.delete(this.selectedEvent);\n this.selectedEvent = null;\n }\n }", "@FXML\n private void handleDeletePerson() {\n int selectedIndex = personTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n personTable.getItems().remove(selectedIndex);\n } else {\n // Nothing selected.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"No Selection\");\n alert.setHeaderText(\"No Shops Selected\");\n alert.setContentText(\"Please select a person in the table.\");\n \n alert.showAndWait();\n }\n }", "@FXML\r\n private void modifyPartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n partToMod = selected.getId();\r\n generateScreen(\"AddModifyPartScreen.fxml\", \"Modify Part\");\r\n }\r\n else {\r\n displayMessage(\"No part selected for modification\");\r\n }\r\n \r\n }", "public void delete() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"deleteButton\").click();\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == R.id.deleteCar) {\n\n // Alert box asking if you really want to delete this car.\n // It would be kind if rude to silently delete things.\n AlertDialog.Builder deleteDialog = new AlertDialog.Builder(this);\n deleteDialog.setTitle(R.string.are_you_sure);\n deleteDialog.setMessage(R.string.not_reversible_car);\n deleteDialog.setIcon(android.R.drawable.ic_dialog_info);\n deleteDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n\n // A function to delete the oil change history for this car.\n Cursor oilInfo = carDB.getOilInfo(dataBundle.getInt(schema.COL_CAR_ID));\n if(oilInfo.getCount() > 0) {\n do {\n int oilID = oilInfo.getInt(oilInfo.getColumnIndex(schema.COL_ID));\n carDB.deleteOilChange(oilID);\n } while (oilInfo.moveToNext());\n }\n\n // A function to delete the maintenance history for this car.\n Cursor maintenanceInfo = carDB.getMaintenanceInfo(dataBundle.getInt(schema.COL_CAR_ID));\n if(oilInfo.getCount() > 0) {\n do {\n int maintID = maintenanceInfo.getInt(oilInfo.getColumnIndex(schema.COL_ID));\n carDB.deleteMaintenance(maintID);\n } while (oilInfo.moveToNext());\n }\n\n // The function launched here iterates through the cursor deleting all OEM parts and\n // their associated TPM parts. (TPM = Third Part Manufacture).\n // The method tests to see if there are other cars mapped to an\n // OEM part and will not delete it from the parts table if there are.\n Cursor partsList = carDB.getCarsToParts(dataBundle.getInt(schema.COL_CAR_ID));\n if (partsList.getCount() > 0) {\n do {\n int partID = partsList.getInt(partsList.getColumnIndex(\"PartID\"));\n carDB.deleteOemPart(partID, dataBundle.getInt(schema.COL_CAR_ID));\n } while (partsList.moveToNext());\n }\n\n\n // Once the histories and parts are deleted from the db for this car, delete the car.\n carDB.deleteCar(dataBundle.getInt(schema.COL_CAR_ID));\n\n // Return to the MainActivity when finished.\n Intent returnToCars = new Intent(getApplicationContext(), MainActivity.class);\n returnToCars.putExtras(dataBundle);\n startActivity(returnToCars);\n }\n });\n deleteDialog.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel(); // Do nothing.\n }\n });\n AlertDialog deleteWarning = deleteDialog.create();\n deleteWarning.show();\n }\n\n // Up button\n if (item.getItemId() == android.R.id.home) {\n Intent backNavIntent = new Intent(getApplicationContext(), RecordSelectActivity.class);\n backNavIntent.putExtras(dataBundle);\n startActivity(backNavIntent);\n }\n\n // Not to be confused with the Up button\n if (item.getItemId() == R.id.homeView) {\n Intent homeIntext = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(homeIntext);\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void deleteSelectedWord()\r\n {\n ArrayList al = crossword.getWords();\r\n al.remove(selectedWord);\r\n repopulateWords();\r\n }", "public void onClick(DialogInterface dialog, int id) {\n mListener.onDialogDeletePartNegativeClick(DeletePartDialogFragment.this);\n }", "public void onDelete(View v){\r\n // Calls delete ingredients and deletes the recipe\r\n int runId = getIntent().getExtras().getInt(\"run id\");\r\n deleteRunCoordinates(runId);\r\n getContentResolver().delete(ContentContract.RUNS_URI, ContentContract._ID + \"=\"+runId, null);\r\n setResult(Activity.RESULT_OK, new Intent());\r\n finish();\r\n }", "@FXML\n\tpublic void deleteProduct(ActionEvent event) {\n\t\tif (!txtDeleteProductName.getText().equals(\"\")) {\n\t\t\ttry {\n\n\t\t\t\tList<Product> productToDelete = restaurant.findSameProduct(txtDeleteProductName.getText());\n\t\t\t\tboolean delete = restaurant.deleteProduct(txtDeleteProductName.getText());\n\t\t\t\tif (delete == true) {\n\t\t\t\t\tfor (int i = 0; i < productOptions.size(); i++) {\n\t\t\t\t\t\tfor (int j = 0; j < productToDelete.size(); j++) {\n\t\t\t\t\t\t\tif (productOptions.get(i) != null && productOptions.get(i)\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(productToDelete.get(j).getReferenceId())) {\n\t\t\t\t\t\t\t\tproductOptions.remove(productToDelete.get(j).getReferenceId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttxtDeleteProductName.setText(\"\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los productos\");\n\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "public static void deleteItem()\r\n\t{\r\n\t\tif(receiptList.getSelectedIndex() < listModel.getSize()-4 && receiptList.getSelectedIndex() > -1)\r\n\t\t{\r\n\t\t\tString itemPrice = receiptList.getSelectedValue().substring(0,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treceiptList.getSelectedValue().indexOf(\" \"));\r\n\t\t\t\r\n\t\t\tsubtotalAmount = subtotalAmount - Functions.toAmount(itemPrice);\r\n\t\t\tupdateTotals();\r\n\t\t\t\r\n\t\t\tlistModel.removeElementAt(receiptList.getSelectedIndex());\r\n\t\t\tif(listModel.getSize() == 4)\r\n\t\t\t\tclearReceipt();\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tfor(int count=0; count < 4; count++)\r\n\t\t\t\t\tlistModel.removeElementAt(listModel.getSize()-1);\r\n\t\t\t\tlistModel.addElement(\" \");\r\n\t\t\t\tlistModel.addElement(Functions.toMoney(subtotalAmount) + manualTab(Functions.toMoney(subtotalAmount)) + \"Subtotal \");\r\n\t\t\t\tlistModel.addElement(Functions.toMoney(taxAmount) + manualTab(Functions.toMoney(taxAmount)) + \"Tax\");\r\n\t\t\t\tlistModel.addElement(Functions.toMoney(totalAmount) + manualTab(Functions.toMoney(totalAmount)) + \"Total\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void delete(MainItemOrdered mainItemOrdered);", "public void deleteFood() {\n\t\tif(!food.isEmpty()) {\n\t\t\tSystem.out.println(\"Choose one what you want delete food number.\");\n\t\t\tdisplayMessage();\n\t\t\tScanner scan = new Scanner(System.in);\n\t\t\tint select = scan.nextInt();\n\t\t\ttry {\n\t\t\t\tfood.remove(select - 1);\n\t\t\t\tSystem.out.println(\"Successfully deleted from refrigerator.\");\n\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"You chosen wrong number.\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Stoarge is empty.\");\n\t\t}\n\t\t\n\t}", "public String delete() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result = model.delete(vendorMaster);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(\"Record Deleted Successfully.\");\r\n\t\t\treset();\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"This record is referenced in other resources.So can't delete.\");\r\n\t\t\treset();\r\n\t\t}// end of else\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\t\tgetNavigationPanel(1); \r\n\t\treturn \"success\";\r\n\t}", "public void deletePartitura(final Partitura partitura, final String documentId) {\n AlertDialog.Builder dialog = new AlertDialog.Builder(getContext());\n dialog.setTitle(R.string.Aviso);\n dialog.setMessage(R.string.avisoBorrar);\n\n dialog.setPositiveButton(android.R.string.yes, (dialogInterface, i) -> {\n // if ok\n StorageReference sRef = mStorageReference.child(FirebaseContract.PartituraEntry.STORAGE_PATH_UPLOADS + partitura.getPdf());\n sRef.delete()\n .addOnSuccessListener(taskSnapshot -> {\n mDatabaseReference.collection(FirebaseContract.PartituraEntry.DATABASE_PATH_UPLOADS).document(documentId).delete();\n Intent intent = new Intent(getContext(), PrincipalActivity.class);\n startActivity(intent);\n Toast.makeText(getContext(), getString(R.string.borradoCorrecto),Toast.LENGTH_LONG).show();\n })\n .addOnFailureListener(exception -> Toast.makeText(getContext(), exception.getMessage(), Toast.LENGTH_LONG).show());\n });\n //If cancel don't delete\n dialog.setNegativeButton(android.R.string.no, (dialogInterface, i) -> {\n\n });\n dialog.show();\n }", "public void deleteArtista(int codiceArtista) throws RecordNonPresenteException,\n RecordCorrelatoException;", "public void unsetPart()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PART$2, 0);\n }\n }", "public boolean deleteProduct(Product selectedProduct) {\n for(Product product: allProducts) {\n if (product.getId() == selectedProduct.getId() &&\n product.getName().equals(selectedProduct.getName()) &&\n product.getPrice() == selectedProduct.getPrice() &&\n product.getStock() == selectedProduct.getStock() &&\n product.getMin() == selectedProduct.getMin() &&\n product.getMax() == selectedProduct.getMax()) {\n return allProducts.remove(product);\n }\n }\n System.out.println(\"No matching part was found\");\n return false;\n }", "public void handleDeleteCode() {\n // make sure the user didn't hide the sketch folder\n ensureExistence();\n\n // if read-only, give an error\n if (isReadOnly()) {\n // if the files are read-only, need to first do a \"save as\".\n Base.showMessage(_(\"Sketch is Read-Only\"),\n _(\"Some files are marked \\\"read-only\\\", so you'll\\n\" +\n \"need to re-save the sketch in another location,\\n\" +\n \"and try again.\"));\n return;\n }\n\n // confirm deletion with user, yes/no\n Object[] options = { _(\"OK\"), _(\"Cancel\") };\n String prompt = (currentIndex == 0) ?\n _(\"Are you sure you want to delete this sketch?\") :\n I18n.format(_(\"Are you sure you want to delete \\\"{0}\\\"?\"), current.getPrettyName());\n int result = JOptionPane.showOptionDialog(editor,\n prompt,\n _(\"Delete\"),\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE,\n null,\n options,\n options[0]);\n if (result == JOptionPane.YES_OPTION) {\n if (currentIndex == 0) {\n // need to unset all the modified flags, otherwise tries\n // to do a save on the handleNew()\n\n // delete the entire sketch\n Base.removeDir(folder);\n\n // get the changes into the sketchbook menu\n //sketchbook.rebuildMenus();\n\n // make a new sketch, and i think this will rebuild the sketch menu\n //editor.handleNewUnchecked();\n //editor.handleClose2();\n editor.base.handleClose(editor);\n\n } else {\n // delete the file\n if (!current.deleteFile()) {\n Base.showMessage(_(\"Couldn't do it\"),\n I18n.format(_(\"Could not delete \\\"{0}\\\".\"), current.getFileName()));\n return;\n }\n\n // remove code from the list\n removeCode(current);\n\n // just set current tab to the main tab\n setCurrentCode(0);\n\n // update the tabs\n editor.header.repaint();\n }\n }\n }", "public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);", "public void deleteNote() {\n if (cursor == 0) {\n JOptionPane.showMessageDialog(null, \"There's no note to delete!\", \"Invalid Delete\", JOptionPane.WARNING_MESSAGE);\n } else {\n if (sequence.getNote(cursor) == REST) {\n cursor--;\n controller.setSelected(cursor);\n\n sequence = sequence.withNote(REST, cursor);\n controller.setMidiSequence(sequence);\n } else {\n sequence = sequence.withNote(REST, cursor);\n controller.setMidiSequence(sequence);\n }\n }\n }", "@FXML\r\n\tvoid delete_btn_clicked(MouseEvent event) {\r\n\t\tif (sales_table.getSelectionModel().getSelectedItem() == null) {\r\n\t\t\tAlert alert3 = new Alert(AlertType.ERROR);\r\n\t\t\talert3.setTitle(\"ERROR\");\r\n\t\t\talert3.setHeaderText(null);\r\n\t\t\talert3.setContentText(\"Please select a sale to delete\");\r\n\t\t\talert3.show();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (sales_table.getSelectionModel().getSelectedItem().getStatus().toLowerCase().equals(\"active\")) {\r\n\t\t\tAlert alert2 = new Alert(AlertType.ERROR);\r\n\t\t\talert2.setTitle(\"The sale is active\");\r\n\t\t\talert2.setHeaderText(null);\r\n\t\t\talert2.setContentText(\"Active sale cannot be deleted\");\r\n\t\t\talert2.show();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tAlert alert = new Alert(AlertType.WARNING, \"Are you sure you delete the sale pattern?\", ButtonType.YES,\r\n\t\t\t\tButtonType.NO);\r\n\t\talert.setTitle(\"Back\");\r\n\t\talert.setHeaderText(null);\r\n\t\talert.showAndWait();\r\n\t\tif (alert.getResult() == ButtonType.YES) {\r\n\t\t\tif (sales_table.getSelectionModel().getSelectedItem().getStatus().equals(\"Un-active\")) {\r\n\t\t\t\t// query for delete from DB\r\n\t\t\t\tString query1 = \"Delete from sale_pattern where salePatternTag = \"\r\n\t\t\t\t\t\t+ sales_table.getSelectionModel().getSelectedItem().getSalePatternTag().toString();\r\n\t\t\t\tMessage message1 = new Message(MessageType.UPDATEINFO, \"MarketingAgentSalesMainController_delete\",\r\n\t\t\t\t\t\tquery1);\r\n\t\t\t\tMainClientGUI.client.handleMessageFromClientUI(message1);\r\n\t\t\t\t// successful alert\r\n\t\t\t\tAlert alert1 = new Alert(AlertType.CONFIRMATION);\r\n\t\t\t\talert1.setTitle(\"Sale deleted\");\r\n\t\t\t\talert1.setHeaderText(null);\r\n\t\t\t\talert1.setContentText(\"The sale pattern deleted successfully\");\r\n\t\t\t\talert1.show();\r\n\t\t\t\tswitchScenes(\"/client/boundry/MarketingAgentSalesMainForm.fxml\",\r\n\t\t\t\t\t\t\"/client/boundry/MarketingAgentMainCustomer.css\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void deleteSelected() {\n\n\t}", "public void delete(ReceiptFormPO po) throws RemoteException {\n\t\tSystem.out.println(\"Delete ReceiptFormPO Start!!\");\n\t\t\n\t\tif(po==null){\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tioHelper = new IOHelper();\n\t\tallReceiptForm = ioHelper.readFromFile(file);\n\t\tSystem.out.println(po.getNO() );\n\t\tallReceiptForm.remove(po.getNO());\n\t\tioHelper.writeToFile(allReceiptForm, file);\n\t}", "@FXML\n public void deleteSet(MouseEvent e) {\n //confirm first\n Alert confirmAlert = new Alert(AlertType.CONFIRMATION, \"\", ButtonType.YES, ButtonType.NO);\n confirmAlert.setHeaderText(\"Are you sure you want to delete this set?\");\n Optional<ButtonType> result = confirmAlert.showAndWait();\n if (result.get() == ButtonType.YES) {\n //delete from database\n try (\n Connection conn = dao.getConnection();\n PreparedStatement stmt = conn.prepareStatement(\"DELETE FROM Theory WHERE Title = ?\");\n ) {\n conn.setAutoCommit(false);\n stmt.setString(1, txtTitle.getText());\n stmt.executeUpdate();\n conn.commit();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n //delete from interface\n VBox vbxCards = (VBox) apnSetRow.getParent();\n vbxCards.getChildren().remove(apnSetRow);\n }\n }", "public void removeSelectedAction() {\n\t\tfinal List<Project> selectedItems = selectionList.getSelectionModel().getSelectedItems();\n\t\tif (!selectedItems.isEmpty()) {\n\t\t\tfinal Project[] items = selectedItems.toArray(new Project[selectedItems.size()]);\n\t\t\tfinal Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n\t\t\talert.initOwner(getWindow());\n\t\t\tif (selectedItems.size() > 1) {\n\t\t\t\talert.setTitle(String.format(\"Remove selected Projects from list? - %s items selected\",\n\t\t\t\t\t\tselectedItems.size()));\n\t\t\t} else {\n\t\t\t\talert.setTitle(\"Remove selected Project from list? - 1 item selected\");\n\t\t\t}\n\t\t\talert.setHeaderText(\"\"\"\n\t\t\t Are you sure you want to remove the selected projects?\n\t\t\t This will not remove any files from the project.\n\t\t\t \"\"\");\n\t\t\tfinal Optional<ButtonType> result = alert.showAndWait();\n\t\t\tif (result.isPresent() && result.get() == ButtonType.OK) {\n\t\t\t\tfor (final Project p : items) {\n\t\t\t\t\tprojectService.deleteProject(p);\n\t\t\t\t\tprojectsObservable.remove(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void execute() {\n if (myItemSelection.getSize() > 0) {\n confirmationDialogbox = new ConfirmationDialogbox(constants.deleteRolesDialogbox(), patterns.deleteRolesWarn( myItemSelection.getSelectedItems().size()), constants.okButton(), constants.cancelButton());\n confirmationDialogbox.addCloseHandler(new CloseHandler<PopupPanel>(){\n public void onClose(CloseEvent<PopupPanel> event) {\n if(confirmationDialogbox.getConfirmation()){\n deleteSelectedItems();\n }\n }} );\n } else {\n if (myMessageDataSource != null) {\n myMessageDataSource.addWarningMessage(messages.noRoleSelected());\n }\n } \n \n }", "public void deleteTask() {\r\n int selected = list.getSelectedIndex();\r\n if (selected >= 0) {\r\n Task task = myTodo.getTaskByIndex(selected + 1);\r\n myTodo.getTodo().remove(task.getHashKey());\r\n playSound(\"click.wav\");\r\n }\r\n todoListGui();\r\n }", "private void deleteitem() {\n if (mCurrentItemInfoUri != null) {\n DialogInterface.OnClickListener yesButtonClickListener =\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n mProgressbarView.setVisibility(View.VISIBLE);\n ContentValues values = null;\n new updateDeleteItemToDbTask().execute(values);\n }\n };\n // Show dialog that there are unsaved changes\n showConfirmationDeleteDialog(yesButtonClickListener);\n }\n }", "private void delete(int selectedRow) {\r\n removing = true;\r\n deletingRow = selectedRow;\r\n //subAwardBudgetTableModel.deleteRow(selectedRow);\r\n deleteRow(selectedRow);\r\n \r\n //Select a Row\r\n int selectRow = 0;\r\n int rowCount = subAwardBudgetTableModel.getRowCount();\r\n if(selectedRow == 0 && rowCount > 0) {\r\n //Select First Row\r\n selectRow = 0;\r\n }else if(selectedRow == rowCount) {\r\n //Select Last Row\r\n selectRow = rowCount - 1;\r\n }else {\r\n //Select This Row\r\n selectRow = selectedRow;\r\n }\r\n removing = false;\r\n if(selectRow != -1) {\r\n subAwardBudget.tblSubAwardBudget.setRowSelectionInterval(selectRow, selectRow);\r\n }else{\r\n //If All rows Deleted, then Details panel should be cleared\r\n displayDetails();\r\n }\r\n deletingRow = -1;\r\n }", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\tint cnt = 1;\n\t\tmChallengesDB.del();\n\t\treturn cnt;\n\t}", "protected void deleteClicked(View view){\n PriceFinder pf = new PriceFinder();\n pf = this.itm.getItem(this.position);\n this.itm.removeItem(pf);\n try {\n save();\n } catch (IOException e) {\n e.printStackTrace();\n }\n finish();\n }", "private void confirmDelete(){\n\t\tAlertDialog.Builder dialog = new AlertDialog.Builder(this);\n\t\tdialog.setIcon(R.drawable.warning);\n\t\tdialog.setTitle(\"Confirm\");\n\t\tdialog.setMessage(\"Are you sure you want to Delete Selected Bookmark(s).?\");\n\t\tdialog.setCancelable(false);\n\t\tdialog.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdeleteBookmark();\n\t\t\t}\n\t\t});\n\t\tdialog.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Pack and show\n\t\tAlertDialog alert = dialog.create();\n\t\talert.show();\n\t}", "public String delete1() throws Exception {\r\n\t\tString code[] = request.getParameterValues(\"hdeleteCode\");\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result = model.deletecheckedRecords(vendorMaster, code);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(getText(\"delMessage\", \"\"));\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"One or more records can't be deleted \\n as they are associated with some other records. \");\r\n\t\t}// end of else\r\n\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\t\treset();\r\n\t\tgetNavigationPanel(1);\r\n\t\treturn \"success\";\r\n\r\n\t}", "private void toDelete() {\n if(toCount()==0)\n {\n JOptionPane.showMessageDialog(rootPane,\"No paint detail has been currently added\");\n }\n else\n {\n String[] choices={\"Delete First Row\",\"Delete Last Row\",\"Delete With Index\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"How would you like to delete data?\", \"Delete Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n jtModel.removeRow(toCount()-toCount());\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted first row\");\n }\n else if(option==1)\n {\n jtModel.removeRow(toCount()-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted last row\");\n }\n else if(option==2)\n {\n toDeletIndex();\n }\n else\n {\n \n }\n }\n }", "@Override\r\n\tpublic void delete(Plant plant) throws Exception {\n\r\n\t}", "@FXML\r\n void onActionDelete(ActionEvent event) throws IOException {\r\n\r\n Appointment toDelete = appointmentsTable.getSelectionModel().getSelectedItem();\r\n\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete appointment ID# \" + toDelete.getAppointmentID() + \" Title: \" + toDelete.getTitle()\r\n + \" Type: \" + toDelete.getType());\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n DBAppointments.deleteAppointment(toDelete.getAppointmentID());\r\n\r\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/view/appointments.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }\r\n }", "private void DeleteRecord(final Record temp) {\n\t\tDialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tswitch (which) {\n\t\t\t\tcase DialogInterface.BUTTON_POSITIVE:\n\t\t\t\t\trecordlist.remove(temp);\n\t\t\t\t\tsetRecNull();\n\t\t\t\t\tlistadapter.notifyDataSetChanged();\n\t\t\t\t\tbreak;\n\t\t\t\tcase DialogInterface.BUTTON_NEGATIVE:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\t\tbuilder.setMessage(\"Are you sure you want to delete the record?\")\n\t\t\t\t.setPositiveButton(\"Yes\", dialogClickListener)\n\t\t\t\t.setNegativeButton(\"No\", dialogClickListener).show();\n\t}", "@Override\r\n\tpublic void delete(PartyType entity) {\n\t\t\r\n\t}", "private void deleteButtonClicked(){\n\t\tif (theDialogClient != null) theDialogClient.dialogFinished(DialogClient.operation.DELETEING);\n\t\tdispose();\n\t}", "private void showConfirmDeletionDialog(){\n //give builder our custom dialog fragment style\n new AlertDialog.Builder(this, R.style.dialogFragment_title_style)\n .setMessage(getString(R.string.powerlist_confirmRemoval))\n .setTitle(getString(R.string.powerList_confirmRemoval_title))\n .setPositiveButton(getString(R.string.action_remove),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n myActionListener.userDeletingPowersFromList(\n PowerListActivity.this.adapter.getSelectedSpells());\n deleteButton.setVisibility(View.GONE);\n //tell adapter to switch selection mode off\n PowerListActivity.this.adapter.endSelectionMode();\n }\n })\n .setNegativeButton(getString(R.string.action_cancel), null)\n .show();\n }", "@Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n final Stave selectedComposition = compositions.get(position);\n\n AlertDialog.Builder deleteConfirmationDialog = new AlertDialog.Builder(getActivity());\n deleteConfirmationDialog.setTitle(getString(R.string.delete_composition_title) + selectedComposition.getName() + getString(R.string.question_mark));\n\n deleteConfirmationDialog.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int buttonId) {\n // Tell the listener and close this fragment...\n\n // Close the fragment...\n // Looked up the following line at https://stackoverflow.com/questions/5901298/how-to-get-a-fragment-to-remove-itself-i-e-its-equivalent-of-finish\n getActivity().getFragmentManager().beginTransaction().remove(OpenCompositionFragment.this).commit();\n\n\n if (listener != null) {\n // Tell the listener about the deletion...\n listener.compositionMarkedForDeletionFromFragment(OpenCompositionFragment.this, selectedComposition);\n }\n\n }\n });\n\n deleteConfirmationDialog.setNegativeButton(R.string.cancel, null);\n\n deleteConfirmationDialog.show();\n\n return true;\n }", "private void deleteComic() {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setTitle(\"Delete Comic?\");\n builder.setMessage(\"Are you sure you want to delete this comic? This cannot be undone\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if(dbHandler.deleteComic(comic.getComicID())) {\n //Success\n Toast.makeText(getContext(), \"Comic successfully deleted\", Toast.LENGTH_SHORT).show();\n mainActivity.loadViewCollectionFragment();\n } else {\n //Failure\n Toast.makeText(getContext(), \"Comic not deleted successfully. Please try again\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Nothing needs to happen here\n }\n });\n builder.create().show();\n }", "public boolean removeChildPart( T part ) {\r\n\t\treturn _parts.remove( part );\r\n\t}", "public void delete() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.delete(event, timelineUpdater);\n\n\t\tFacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking \" + getRoom() + \" has been deleted\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}", "public void delLift(){\n //https://stackoverflow.com/questions/36747369/how-to-show-a-pop-up-in-android-studio-to-confirm-an-order\n AlertDialog.Builder builder = new AlertDialog.Builder(SetsPage.this);\n builder.setCancelable(true);\n builder.setTitle(\"Confirm Delete\");\n builder.setMessage(\"Are you sure you want to delete this lift?\");\n builder.setPositiveButton(\"Confirm Delete\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n lift.setId(lift.getId()*-1);\n Intent intent=new Intent(SetsPage.this, LiftsPage.class);\n intent.putExtra(\"lift\", lift);\n setResult(Activity.RESULT_OK, intent);\n finish();\n }\n });\n builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "public void deleteArticle(View v)\n\t{\n\t\tSavedArticle article = (SavedArticle) v.getTag();\n\t\tdatasource.deleteArticle(article);\n\t\tadapter.delete(article);\n\t}", "@FXML\n private void handleBookDeleteOption(ActionEvent event) {\n Book selectedItem = tableViewBook.getSelectionModel().getSelectedItem();\n if (selectedItem == null) {\n AlertMaker.showErrorMessage(\"No book selected\", \"Please select book for deletion.\");\n return;\n }\n if (DatabaseHandler.getInstance().isBookAlreadyIssued(selectedItem)) {\n AlertMaker.showErrorMessage(\"Cant be deleted\", \"This book is already issued and cant be deleted.\");\n return;\n }\n //confirm the opertion\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Deleting Book\");\n Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();\n UtilitiesBookLibrary.setStageIcon(stage);\n alert.setHeaderText(null);\n alert.setContentText(\"Are u sure u want to Delete the book ?\");\n Optional<ButtonType> response = alert.showAndWait();\n if (response.get() == ButtonType.OK) {\n \n boolean result = dbHandler.deleteBook(selectedItem);\n if (result == true) {\n AlertMaker.showSimpleAlert(\"Book delete\", selectedItem.getTitle() + \" was deleted successfully.\");\n observableListBook.remove(selectedItem);\n } else {\n AlertMaker.showSimpleAlert(\"Failed\", selectedItem.getTitle() + \" unable to delete.\");\n\n }\n } else {\n AlertMaker.showSimpleAlert(\"Deletion Canclled\", \"Deletion process canclled.\");\n\n }\n\n }", "@FXML\n\tpublic void deleteIngredient(ActionEvent event) {\n\t\tif (!txtDeleteIngredientName.getText().equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tboolean delete = restaurant.deleteIngredient(txtDeleteIngredientName.getText());\n\t\t\t\tif (delete == true) {\n\t\t\t\t\tingredientsOptions.remove(txtDeleteIngredientName.getText());\n\t\t\t\t\ttxtDeleteIngredientName.setText(\"\");\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los datos\");\n\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\ttxtDeleteIngredientName.setText(null);\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "public void clickedPresentationDelete() {\n\t\tif(mainWindow.getSelectedRowPresentation().length <= 0) ApplicationOutput.printLog(\"YOU DID NOT SELECT ANY PRESENTATION\");\n\t\telse if(mainWindow.getSelectedRowPresentation().length > 1) ApplicationOutput.printLog(\"Please select only one presentation to edit\");\n\t\telse {\n\t\t\tint tmpSelectedRow = mainWindow.getSelectedRowPresentation()[0];\n\t\t\tPresentations tmpPresentation = presentationList.remove(tmpSelectedRow);\t\t\t\n\t\t\tappDriver.hibernateProxy.deletePresentation(tmpPresentation);\t\n\t\t\trefreshPresentationTable();\t\t\t\n\t\t}\n\t}" ]
[ "0.8006078", "0.77087456", "0.7563304", "0.74235106", "0.7278273", "0.7204937", "0.7032285", "0.7017571", "0.68930405", "0.6737425", "0.6728093", "0.663712", "0.66001487", "0.64830446", "0.6455155", "0.61311173", "0.6127233", "0.6119193", "0.6072361", "0.6057028", "0.60487723", "0.60361093", "0.59202236", "0.5875355", "0.5817095", "0.57724047", "0.5747082", "0.5737691", "0.5696287", "0.56945497", "0.5651158", "0.5649308", "0.564248", "0.56232566", "0.559631", "0.5583544", "0.55818784", "0.5578593", "0.55666786", "0.55495495", "0.5549243", "0.5524755", "0.55153775", "0.5508937", "0.54976666", "0.54975164", "0.5484991", "0.54253215", "0.5415735", "0.54135656", "0.5400207", "0.5381445", "0.5373897", "0.5357356", "0.53561646", "0.53500533", "0.5344217", "0.5341442", "0.5337691", "0.5324125", "0.5318081", "0.5315337", "0.5310409", "0.5304639", "0.52993137", "0.52969074", "0.5292454", "0.52910906", "0.52893174", "0.52855974", "0.52798235", "0.5267174", "0.5266335", "0.52619636", "0.5256151", "0.52481186", "0.52468413", "0.52456313", "0.52426183", "0.5223762", "0.5223182", "0.5219854", "0.52160436", "0.52051115", "0.5202488", "0.51971626", "0.51921135", "0.51902276", "0.51887375", "0.51863194", "0.51813096", "0.51804817", "0.5179833", "0.517805", "0.5176714", "0.5173984", "0.5173787", "0.51733226", "0.5172099", "0.5171647" ]
0.86181515
0
Deletes selected Product. Ensures the Product being deleted has no associated parts. If associated parts are found, an alert is sent to the user. Uses deletePart method from Inventory. Has an alert that double checks the user wants to delete the part.
public void deleteProduct() { ObservableList<Product> productRowSelected; productRowSelected = productTableView.getSelectionModel().getSelectedItems(); int index = productTableView.getSelectionModel().getFocusedIndex(); Product product = productTableView.getItems().get(index); if(productRowSelected.isEmpty()) { alert.setAlertType(Alert.AlertType.ERROR); alert.setContentText("Please select the Product you want to delete."); alert.show(); } else if (!product.getAllAssociatedParts().isEmpty()) { alert.setAlertType(Alert.AlertType.ERROR); alert.setContentText("This Product still has a Part associated with it. \n" + "Please modify the Product and remove the Part."); alert.show(); } else { alert.setAlertType(Alert.AlertType.CONFIRMATION); alert.setContentText("Are you sure you want to delete this Product?"); alert.showAndWait(); ButtonType result = alert.getResult(); if(result == ButtonType.OK) { Inventory.deleteProduct(product); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deletePart()\n {\n ObservableList<Part> partRowSelected;\n partRowSelected = partTableView.getSelectionModel().getSelectedItems();\n if(partRowSelected.isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please select the Part you want to delete.\");\n alert.show();\n } else {\n int index = partTableView.getSelectionModel().getFocusedIndex();\n Part part = Inventory.getAllParts().get(index);\n alert.setAlertType(Alert.AlertType.CONFIRMATION);\n alert.setContentText(\"Are you sure you want to delete this Part?\");\n alert.showAndWait();\n ButtonType result = alert.getResult();\n if (result == ButtonType.OK) {\n Inventory.deletePart(part);\n }\n }\n }", "public void handleDeleteProducts()\n {\n Product productToDelete = getProductToModify();\n\n if (productToDelete != null)\n {\n // Ask user for confirmation to remove the product from product table\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation\");\n alert.setHeaderText(\"Delete Confirmation\");\n alert.setContentText(\"Are you sure you want to delete this product?\");\n ButtonType confirm = new ButtonType(\"Yes\", ButtonBar.ButtonData.YES);\n ButtonType deny = new ButtonType(\"No\", ButtonBar.ButtonData.NO);\n ButtonType cancel = new ButtonType(\"Cancel\", ButtonBar.ButtonData.CANCEL_CLOSE);\n alert.getButtonTypes().setAll(confirm, deny, cancel);\n alert.showAndWait().ifPresent(type ->{\n if (type == confirm)\n {\n // User cannot delete products with associated parts\n if (productToDelete.getAllAssociatedParts().size() > 0)\n {\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\n alert2.setTitle(\"Action is Forbidden!\");\n alert2.setHeaderText(\"Action is Forbidden!\");\n alert2.setContentText(\"Products with associated parts cannot be deleted!\\n \" +\n \"Please remove associated parts from product and try again!\");\n alert2.show();\n }\n else\n {\n // delete the product\n inventory.deleteProduct(productToDelete);\n updateProducts();\n productTable.getSelectionModel().clearSelection();\n }\n }\n });\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to delete from the part table!\");\n alert.show();\n }\n this.productTable.getSelectionModel().clearSelection();\n }", "@FXML\r\n void onActionDeletePart(ActionEvent event) {\r\n\r\n Part part = TableView2.getSelectionModel().getSelectedItem();\r\n if(part == null)\r\n return;\r\n\r\n //EXCEPTION SET 2 REQUIREMENT\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setHeaderText(\"You are about to delete the product you have selected!\");\r\n alert.setContentText(\"Are you sure you wish to continue?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK){\r\n product.deleteAssociatedPart(part.getId());\r\n }\r\n }", "public void handleDeleteParts()\n {\n Part partToDelete = getPartToModify();\n\n if (partToDelete != null) {\n\n // Ask user for confirmation to remove the product from part table\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation\");\n alert.setHeaderText(\"Delete Confirmation\");\n alert.setContentText(\"Are you sure you want to delete this part?\");\n ButtonType confirm = new ButtonType(\"Yes\", ButtonBar.ButtonData.YES);\n ButtonType deny = new ButtonType(\"No\", ButtonBar.ButtonData.NO);\n ButtonType cancel = new ButtonType(\"Cancel\", ButtonBar.ButtonData.CANCEL_CLOSE);\n alert.getButtonTypes().setAll(confirm, deny, cancel);\n alert.showAndWait().ifPresent(type ->{\n if (type == confirm)\n {\n inventory.deletePart(partToDelete);\n updateParts();\n }\n });\n\n } else {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No part was selected!\");\n alert.setContentText(\"Please select a part to delete from the part table!\");\n alert.show();\n }\n // Unselect parts in table after part is deleted\n partTable.getSelectionModel().clearSelection();\n }", "private void deleteProduct() {\n // Only perform the delete if this is an existing product.\n if (currentProductUri != null) {\n // Call the ContentResolver to delete the product at the given content URI.\n // Pass in null for the selection and selection args because the currentProductUri\n // content URI already identifies the product that we want.\n int rowsDeleted = getContentResolver().delete(currentProductUri, null, null);\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.no_deleted_products),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_product_successful), Toast.LENGTH_SHORT).show();\n }\n }\n finish();\n }", "private void deleteProduct() {\n // Only perform the delete if this is an existing Product.\n if (mCurrentProductUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentProductUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentProductUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_product_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_product_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "@FXML\r\n private void deletePartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n \r\n Alert message = new Alert(Alert.AlertType.CONFIRMATION);\r\n message.setTitle(\"Confirm delete\");\r\n message.setHeaderText(\" Are you sure you want to delete part ID: \" + selected.getId() + \", name: \" + selected.getName() + \"?\" );\r\n message.setContentText(\"Please confirm your selection\");\r\n \r\n Optional<ButtonType> response = message.showAndWait();\r\n if (response.get() == ButtonType.OK)\r\n {\r\n stock.deletePart(selected);\r\n partsTbl.setItems(stock.getAllParts());\r\n partsTbl.refresh();\r\n displayMessage(\"The part \" + selected.getName() + \" was successfully deleted\");\r\n }\r\n else {\r\n displayMessage(\"Deletion cancelled by user. Part not deleted.\");\r\n }\r\n }\r\n else {\r\n displayMessage(\"No part selected for deletion\");\r\n }\r\n }", "private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}", "public boolean deleteProduct(Product selectedProduct) {\n for(Product product: allProducts) {\n if (product.getId() == selectedProduct.getId() &&\n product.getName().equals(selectedProduct.getName()) &&\n product.getPrice() == selectedProduct.getPrice() &&\n product.getStock() == selectedProduct.getStock() &&\n product.getMin() == selectedProduct.getMin() &&\n product.getMax() == selectedProduct.getMax()) {\n return allProducts.remove(product);\n }\n }\n System.out.println(\"No matching part was found\");\n return false;\n }", "public void onActionDeleteProduct(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete the selected item?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n if (productsTableView.getSelectionModel().getSelectedItem() != null) {\r\n Product product = productsTableView.getSelectionModel().getSelectedItem();\r\n if (product.getAllAssociatedParts().size() == 0) {\r\n\r\n Inventory.deleteProduct(productsTableView.getSelectionModel().getSelectedItem());\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/mainScreen.fxml\"));\r\n Stage stage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 1062, 498);\r\n stage.setTitle(\"Main Screen\");\r\n stage.setScene(scene);\r\n stage.show();\r\n } else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Products with associated parts cannot be deleted.\");\r\n alert2.showAndWait();\r\n }\r\n }\r\n else {\r\n Alert alert3 = new Alert(Alert.AlertType.ERROR);\r\n alert3.setContentText(\"Click on an item to delete.\");\r\n alert3.showAndWait();\r\n }\r\n }\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "@FXML private void handleAddProdDelete(ActionEvent event) {\n Part partDeleting = fxidAddProdSelectedParts.getSelectionModel().getSelectedItem();\n \n if (partDeleting != null) {\n //Display Confirm Box\n Alert confirmDelete = new Alert(Alert.AlertType.CONFIRMATION);\n confirmDelete.setHeaderText(\"Are you sure?\");\n confirmDelete.setContentText(\"Are you sure you want to remove the \" + partDeleting.getName() + \" part?\");\n Optional<ButtonType> result = confirmDelete.showAndWait();\n //If they click OK\n if (result.get() == ButtonType.OK) {\n //Delete the part.\n partToSave.remove(partDeleting);\n //Refresh the list view.\n fxidAddProdSelectedParts.setItems(partToSave);\n\n Alert successDelete = new Alert(Alert.AlertType.CONFIRMATION);\n successDelete.setHeaderText(\"Confirmation\");\n successDelete.setContentText(partDeleting.getName() + \" has been removed from product.\");\n successDelete.showAndWait();\n }\n } \n }", "@FXML void onActionModifyProductRemovePart(ActionEvent event) {\n Part selectedPart = associatedPartTableView.getSelectionModel().getSelectedItem();\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Do you want to delete this part?\");\n Optional<ButtonType> result = alert.showAndWait();\n if(result.isPresent() && result.get() == ButtonType.OK) {\n tmpAssociatedParts.remove(selectedPart);\n }\n }", "public static boolean deletePart(Part selectedPart) {\n // The for loop variable to the left of the colon is a temporary variable containing a single element from the collection on the right\n // With each iteration through the loop, Java pulls the next element from the collection and assigns it to the temp variable.\n for (Part currentPart : Inventory.getAllParts()) {\n if (currentPart.getId() == selectedPart.getId()) {\n return Inventory.getAllParts().remove(currentPart);\n }\n }\n return false;\n }", "public static void confirmSingleDeletion(final Context context, final Uri selectedProduct) {\n // create a dialog builder\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n\n // set the correct message\n builder.setMessage(context.getResources().getString(R.string.catalog_confirmation_delete_single));\n\n // delete on positive response\n builder.setPositiveButton(context.getResources().getString(R.string.catalog_confirmation_delete_single_pos), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n int rowsDeleted = context.getContentResolver().delete(selectedProduct, null, null);\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then display an error\n Toast.makeText(context, context.getResources().getString(R.string.catalog_data_clear_failed_toast),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, display a success messaGE\n Toast.makeText(context, context.getResources().getString(R.string.catalog_data_cleared_toast),\n Toast.LENGTH_SHORT).show();\n }\n // finish activity\n ((Activity) context).finish();\n }\n });\n\n // return on negative response\n builder.setNegativeButton(R.string.confirmation_dialog_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\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 }", "public static boolean deleteProduct(Product selectedProduct) {\n // The for loop variable to the left of the colon is a temporary variable containing a single element from the collection on the right\n // With each iteration through the loop, Java pulls the next element from the collection and assigns it to the temp variable.\n for (Product currentProduct : Inventory.getAllProducts()) {\n if (currentProduct.getId() == selectedProduct.getId()) {\n return Inventory.getAllProducts().remove(currentProduct);\n }\n }\n return false;\n }", "@FXML\n\tprivate void deleteButtonAction(ActionEvent clickEvent) {\n\t\t\n\t\tPart deletePartFromProduct = partListProductTable.getSelectionModel().getSelectedItem();\n\t\t\n\t\tif (deletePartFromProduct != null) {\n\t\t\t\n\t\t\tAlert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Pressing OK will remove the part from the product.\\n\\n\" + \"Are you sure you want to remove the part?\");\n\t\t\n\t\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\t\n\t\t\tif (result.isPresent() && result.get() == ButtonType.OK) {\n\t\t\t\n\t\t\t\tdummyList.remove(deletePartFromProduct);\n\n\t\t\t}\n\t\t}\n\t}", "public boolean deletePart(Part selectedPart) {\n for(Part part: allParts) {\n if (part.getId() == selectedPart.getId() &&\n part.getName().equals(selectedPart.getName()) &&\n part.getPrice() == selectedPart.getPrice() &&\n part.getStock() == selectedPart.getStock() &&\n part.getMin() == selectedPart.getMin() &&\n part.getMax() == selectedPart.getMax()) {\n if(selectedPart instanceof InHousePart &&\n ((InHousePart) part).getMachineId() == ((InHousePart) selectedPart).getMachineId()) {\n return allParts.remove(part);\n } else if(selectedPart instanceof OutSourcedPart &&\n ((OutSourcedPart)part).getCompanyName().equals(((OutSourcedPart) selectedPart).getCompanyName())) {\n return allParts.remove(part);\n }\n }\n }\n System.out.println(\"No matching part was found\");\n return false;\n }", "public void deleteProduct(Product product) throws BackendException;", "@Override\r\n\tpublic int deleteProduct(Product product) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void deleteProduct(int product_id) {\n\n\t}", "@FXML\n\tpublic void deleteProduct(ActionEvent event) {\n\t\tif (!txtDeleteProductName.getText().equals(\"\")) {\n\t\t\ttry {\n\n\t\t\t\tList<Product> productToDelete = restaurant.findSameProduct(txtDeleteProductName.getText());\n\t\t\t\tboolean delete = restaurant.deleteProduct(txtDeleteProductName.getText());\n\t\t\t\tif (delete == true) {\n\t\t\t\t\tfor (int i = 0; i < productOptions.size(); i++) {\n\t\t\t\t\t\tfor (int j = 0; j < productToDelete.size(); j++) {\n\t\t\t\t\t\t\tif (productOptions.get(i) != null && productOptions.get(i)\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(productToDelete.get(j).getReferenceId())) {\n\t\t\t\t\t\t\t\tproductOptions.remove(productToDelete.get(j).getReferenceId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttxtDeleteProductName.setText(\"\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los productos\");\n\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "void deleteProduct(int productId) throws ProductException;", "@FXML\n void removeAssociatedPart(ActionEvent event) {\n\n Part selectedPart = assocPartTableView.getSelectionModel().getSelectedItem();\n\n if (selectedPart == null) {\n AlartMessage.displayAlertAdd(6);\n } else {\n\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Alert\");\n alert.setContentText(\"Are you sure you want to remove the selected part?\");\n Optional<ButtonType> result = alert.showAndWait();\n\n if (result.isPresent() && result.get() == ButtonType.OK) {\n assocParts.remove(selectedPart);\n assocPartTableView.setItems(assocParts);\n }\n }\n }", "public boolean deleteAssociatedPart(Part selectedAssociatedPart) {\n return associatedParts.remove(selectedAssociatedPart);\n }", "public void Deleteproduct(Product objproduct) {\n\t\t\n\t}", "void deleteProduct(Product product) throws ServiceException;", "@FXML\r\n public void onActionDeletePart(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete the selected item?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n\r\n if(partsTableView.getSelectionModel().getSelectedItem() != null) {\r\n Inventory.deletePart(partsTableView.getSelectionModel().getSelectedItem());\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/mainScreen.fxml\"));\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 1062, 498);\r\n stage.setTitle(\"Main Screen\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to delete.\");\r\n alert2.showAndWait();\r\n }\r\n }\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "public void verifyProduct() throws Throwable{\r\n\t\twdlib.waitForElement(getProductText());\r\n\t\t\r\n\t\tif(!getProductText().getText().equals(\"None Included\"))\r\n\t\t{\r\n\t\t\tReporter.log(getProductText().getText()+\" was deleted\",true);\r\n\t\t\tdeleteProduct();\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\r\n\tpublic boolean deleteProduct(int productId) {\n\t\treturn dao.deleteProduct(productId);\r\n\t}", "@FXML\n\t private void deleteProduct (ActionEvent actionEvent) throws SQLException, ClassNotFoundException {\n\t try {\n\t ProductDAO.deleteProdWithId(prodIdText.getText());\n\t resultArea.setText(\"Product deleted! Product id: \" + prodIdText.getText() + \"\\n\");\n\t } catch (SQLException e) {\n\t resultArea.setText(\"Problem occurred while deleting product \" + e);\n\t throw e;\n\t }\n\t }", "@Override\r\n\tpublic boolean deleteProduct(ProductDAO product) {\n\t\treturn false;\r\n\t}", "void deleteProduct(Integer productId);", "public void deleteProduct() throws ApplicationException {\n Menu deleteProduct = new Menu();\n deleteProduct.setIdProduct(menuFxObjectPropertyEdit.getValue().getIdProduct());\n\n Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n\n try {\n session.beginTransaction();\n session.delete(deleteProduct);\n session.getTransaction().commit();\n } catch (RuntimeException e) {\n session.getTransaction().rollback();\n SQLException sqlException = getCauseOfClass(e, SQLException.class);\n throw new ApplicationException(sqlException.getMessage());\n }\n\n initMenuList();\n }", "public void delete(SpecificProduct specificProduct) {\n specific_product_dao.delete(specificProduct);\n }", "public void deleteAssociatedPart(Part part) {\n associatedParts.remove(part);\n }", "public void deleteProduct(CartProduct p) {\n\t\tcart.deleteFromCart(p);\n\t}", "@Override\r\n\tpublic void prodDelete(ProductVO vo) {\n\t\tadminDAO.prodDelete(vo);\r\n\t}", "void delete(Product product) throws IllegalArgumentException;", "public void deleteProduct(Product product) {\n allProducts.remove(product);\n }", "public JavaproductModel deleteproduct(JavaproductModel oJavaproductModel){\n\n \t\t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing product from the database*/\n oJavaproductModel = (JavaproductModel) hibernateSession.get(JavaproductModel.class, oJavaproductModel.getproductId());\n\n /* Delete any collection related with the existing product from the database.\n Note: this is needed because some hibernate versions do not handle correctly cascade delete on collections.*/\n oJavaproductModel.deleteAllCollections(hibernateSession);\n\n /* Delete the existing product from the database*/\n hibernateSession.delete(oJavaproductModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaproductModel;\n }", "public void deleteProduct(int pProductIndex)\n\t{\n\n\t\t// Check to See if the Inventory Array is Empty or Not\n\t\tif ( pProductIndex >= 0 && pProductIndex < myProductInventory.size() )\n\t\t{\n\n\t\t\t// Delete/Remove the product at the index designated by the\n\t\t\t// pProductIndex parameter from the product inventory array list\n\t\t\tmyProductInventory.remove(pProductIndex);\n\n\t\t}\n\n\t}", "public void deleteProduct() {\n deleteButton.click();\n testClass.waitTillElementIsVisible(emptyShoppingCart);\n Assert.assertEquals(\n \"Message is not the same as expected\",\n MESSAGE_EMPTY_SHOPPING_CART,\n emptyShoppingCart.getText());\n }", "public void deleteProduct(Product product_1) {\n\r\n\t}", "@Override\n\tpublic int deleteProduct(String productNo) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic ProductMaster deleteProduct(int productId) {\n\t\tProductMaster productMaster = this.repository.findById(productId).orElseThrow(() -> new IllegalArgumentException(\"Invalid book Id:\" + productId));\r\n\t\tif(productMaster!=null)\r\n\t\t\tthis.repository.deleteById(productId);\r\n\t\treturn productMaster;\r\n\t}", "public synchronized void deleteItem(Product product){\n carrito.set(product.getId(), null);\n }", "public void deleteProduct(final Product existingProduct) {\n\t\tproductRepository.delete(existingProduct);\n\t}", "@Override\r\n\tpublic int deleteProductById(String productId) {\n\t\treturn dao.deleteProductById(productId);\r\n\t}", "@DeleteMapping(\"/deleteproduct/{productId}\")\n\t\tpublic String deleteProduct(@PathVariable(value = \"productId\") int productId) throws ProductNotFoundException {\n\t\t\tlogger.info(\"product deleted displyed\");\n\t\t\tProduct product = productService.getProductById(productId)\n\t\t\t\t\t.orElseThrow(() -> new ProductNotFoundException(\"No product found with this Id :\" + productId));\n\t\t\tproductService.deleteProduct(product);\n\t\t\treturn \"Product Deleted Successfully\";\n\t\t}", "@DeleteMapping(path =\"/products/{id}\")\n public ResponseEntity<Void> deleteProduct(@PathVariable(name=\"id\") Long id) {\n log.debug(\"REST request to delete Product with id : {}\", id);\n productService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@Override\n\tpublic void delete(Product product) {\n\t\t\n\t\tTransaction txTransaction = session.beginTransaction();\n\t\tsession.delete(product);\n\t\ttxTransaction.commit();\n\t\tSystem.out.println(\"Product Deleted\");\n\t}", "void deleteProduct(Long id);", "@DeleteMapping(\"/delete\")\r\n\tpublic ProductDetails deleteProduct(@Valid @RequestBody DeleteProduct request) {\r\n\t\treturn productUtil.toProductDetails(productService.deleteProduct(request.getProduct_Id()));\r\n\r\n\t}", "public void deleteProduct(Product product){\n\t\tdao.deleteProduct(product);\n\t}", "@Override\n public int deleteProduct(Product product) throws Exception\n {\n if(product == null)\n return 0;\n\n if(getProductById(product.getId(), true) == null)\n return 0;\n\n int rowsAffected = 0;\n DBProductData dbProductData = new DBProductData();\n rowsAffected += dbProductData.deleteProductData(product.getId());\n\n PreparedStatement query = _da.getCon().prepareStatement(\"DELETE FROM Products WHERE productId = ?\");\n query.setLong(1, product.getId());\n _da.setSqlCommandText(query);\n rowsAffected += _da.callCommand();\n\n return rowsAffected;\n }", "public boolean delete(int productId) {\n\t\treturn dao.delete(productId);\n\t}", "@Override\r\n\tpublic void fireModelDeleteProduct(String msg) {\n\t\t\r\n\t}", "public boolean productDelete(Product product) {\n\t\t\n\t\tLOGGER.debug(\"execution started\");\n\n\n\t\tboolean status = false;\n\t\tConnection con = null;\n\t\tPreparedStatement stmt = null;\n\t\t\n\t\tString sql=\"DELETE FROM products_information WHERE product_id=?\";\n\t\t\n\t\ttry {\n\t\t\tcon = datasource.getConnection();\n\t\t\tstmt = openPreparedStatement(con,sql);\n\t\t\t\n\t\t\tstmt.setInt(1, product.getPid());\n\n\t\t\tint rows = stmt.executeUpdate();\n\t\t\tif(rows != 0) {\n\t\t\t\tstatus = true;\n\t\t\t}\n\t\t} catch(SQLException sqle) {\n\t\t\tLOGGER.error(\"EXCEPTION OCCURED\",sqle);\n\n\t\t} finally {\n\t\t\tcloseStatement(stmt);\n\t\t\tcloseConnection(con);\n\t\t}\n\t\tLOGGER.debug(\"execution ended\");\n\t\treturn status;\n\t\t\n\t\t\n\t}", "public void delete(SgfensPedidoProductoPk pk) throws SgfensPedidoProductoDaoException;", "public static boolean deletePart(Part removePart){\r\n for(Part part : allParts){\r\n if(part.getPartID() == removePart.getPartID()){\r\n allParts.remove(removePart);\r\n return true;\r\n } \r\n }\r\n return false;\r\n }", "public int productDelete(Product product){\n int rowsAffected = 0;\n connect();\n String sql = \"DELETE FROM productos WHERE id_producto = ?\";\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n ps.setInt(1, Integer.parseInt(product.getProductId()));\n rowsAffected = ps.executeUpdate();\n connect.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n }\n return rowsAffected;\n }", "@RequestMapping(method = RequestMethod.DELETE, value = \"/{id}\",\n produces = \"application/json\", headers = \"Accept=application/json\" )\n public ResponseEntity<?> deleteInventoryByProductId(@PathVariable(\"id\") Integer id){\n Product product = productService.getProductById(id);\n\n //Desassociando o produto do estoque\n Inventory inventory = inventoryService.getInventoryItemByProductId(id);\n product.setInventory(null);\n inventory.setProduct(product);\n inventoryService.updateInventoryItem(inventory);\n\n //Deletando o produto do estoque\n inventoryService.deleteInventoryItem(inventory.getInventoryId());\n\n return ResponseEntity.noContent().build();\n }", "@Override\n public void deletePartida(String idPartida) {\n template.opsForHash().delete(idPartida, \"jugador1\");\n template.opsForHash().delete(idPartida, \"jugador2\");\n template.opsForSet().remove(\"partidas\",idPartida);\n }", "@Override\n\t@Transactional\n\tpublic void deleteProduct(int productId) {\n\t\tproductDAO.deleteById(productId);\n\n\t}", "public void deleteProduct(Supplier entity) {\n\t\t\r\n\t}", "public static void deleteProducts(final Context context) {\n log.info(\"Productos Eliminados\");\n inicializaPreferencias(context);\n sharedPreferencesEdit.remove(Constantes.PRODUCTOS);\n sharedPreferencesEdit.commit();\n }", "@Override\n\tpublic void doDelete(String product) throws SQLException {\n\t\t\n\t}", "public void delete(GeneralProduct generalProduct) {\n general_product_dao.delete(generalProduct);\n }", "@Override\n\tpublic int deleteFromLicenseOrderProductByPrimaryKey(Integer id) {\n\t\treturn licenseOrderProductMapper.deleteByPrimaryKey(id);\n\t}", "@Override\n public void showDeleteProductDialog() {\n //Creating an AlertDialog with a message, and listeners for the positive and negative buttons\n AlertDialog.Builder builder = new AlertDialog.Builder(requireActivity());\n //Set the Message\n builder.setMessage(R.string.product_config_delete_product_confirm_dialog_message);\n //Set the Positive Button and its listener\n builder.setPositiveButton(android.R.string.yes, mProductDeleteDialogOnClickListener);\n //Set the Negative Button and its listener\n builder.setNegativeButton(android.R.string.no, mProductDeleteDialogOnClickListener);\n //Lock the Orientation\n OrientationUtility.lockCurrentScreenOrientation(requireActivity());\n //Create and display the AlertDialog\n builder.create().show();\n }", "public boolean delete(Product product) {\n return cartRepository.delete(product);\n }", "public void deleteProduct(Product product)\n {\n SQLiteDatabase db = this.database.getWritableDatabase();\n\n // Sets up the WHERE condition of the SQL statement\n String condition = String.format(\" %s = ?\", ShoppingListTable.KEY_TPNB);\n\n // Stores the values of the WHERE condition\n String[] conditionArgs = { String.valueOf(product.getTPNB()) };\n\n db.delete(ShoppingListTable.TABLE_NAME, condition, conditionArgs);\n }", "@Override\n\tpublic boolean deleteProduct(String productId) throws ProductException {\n\t\t\n\t\t// if the productID is not valid then it will throw the Exception\n\t\tProduct p = ProductStore.map.get(productId);\n\t\tif (p == null) {\n\t\t\tthrow new InValidIdException(\"Incorrect Id \");\n\n\t\t} \n\t\t// if the productId is valid it will delete the product\n\t\telse\n\t\t\tProductStore.map.remove(productId);\n\t\treturn true;\n\t}", "@Override\n\tpublic void deleteProduct(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Products where id=:productId\");\n\t\t\n\t\ttheQuery.setParameter(\"productId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\n\t\t\n\t}", "public static boolean deleteProduct(Product product) {\r\n\t\tdbConnect();\r\n\t\tPreparedStatement stmt = null;\r\n\t\tboolean saveStatus = true;\r\n\t\tfinal String DELETE_PRODUCT = \"DELETE FROM product WHERE product_code=\" + product.getProductCode();\r\n\t\ttry {\r\n\t\t\tstmt = conn.prepareStatement(DELETE_PRODUCT);\r\n\t\t\tstmt.executeUpdate();\r\n\t\t\tstmt.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tsaveStatus = false;\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn saveStatus;\r\n\t}", "@ResponseStatus(HttpStatus.OK)\n\t@ResponseBody\n\t@DeleteMapping(value = \"/{id}\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic void deleteProductoById(@PathVariable(\"id\") Long id) {\n\t\t// Verifica si el producto existe\n\t\tProducto producto = productoService.findById(id);\n\n\t\tInventario invantario = inventarioService.findByCodProducto(producto.getCodProducto());\n\t\tinventarioService.delete(invantario);\n\t}", "private void deleteProduct(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException {\n\t\tString theProduct=request.getParameter(\"deleteProduct\");\n\t\tdaoPageAdmin.DeleteProduct(theProduct);\n\t\tloadProduct(request, response);\n\t}", "@Override\n\tpublic int delete(ProductDTO dto) {\n\t\treturn 0;\n\t}", "private void deleteItem() {\n // Only perform the delete if this is an existing inventory item\n if (mCurrentInventoryUri != null) {\n // Call the ContentResolver to delete the inventory item at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentInventoryUri\n // content URI already identifies the inventory item that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentInventoryUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_inventory_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_inventory_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "boolean deleteProduct(ProductDTO productDTO, Authentication authentication);", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the positive 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 pet.\n deleteProduct();\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 }", "public void delete(Product product) {\n\t\tif (playerMap.containsKey(product.getOwner())) {\n\t\t\tplayerMap.get(product.getOwner())[product.getSlot()] = null;\n\t\t}\n\t\tMap<Integer, Set<Product>> itemMap = typeMap.get(product.getType()).get(product.getState());\n\t\tif (itemMap.containsKey(product.getItemId())) {\n\t\t\titemMap.get(product.getItemId()).remove(product);\n\t\t}\n\t}", "@Transactional\n public void deleteProduct(Integer productId) {\n ProductEntity productEntity = productRepository\n .findById(productId)\n .orElseThrow(() -> new NotFoundException(getNotFoundMessage(productId)));\n productEntity.setRemoved(true);\n productRepository.save(productEntity);\n cartRepository.deleteRemovedFromCart(productId);\n }", "public boolean deleteProduct(Product productToDelete){\r\n\t\tString sqlCommand = \"Delete FROM ProductTable \\n\"\r\n + \"WHERE Barcode=\"+productToDelete.getBarcodeProduct(); \r\n\t\ttry (Connection conn = DriverManager.getConnection(dataBase);\r\n Statement stmt = conn.createStatement()) {\r\n\t\t\tconn.createStatement().execute(\"PRAGMA foreign_keys = ON;\");\r\n stmt.execute(sqlCommand);\r\n return true;\r\n } catch (SQLException e) {\r\n System.out.println(\"deleteProduct: \"+e.getMessage());\r\n return false;\r\n }\r\n\t}", "private void showDeleteConfirmationDialog() {\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 product.\n deleteProduct();\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 }", "public void delete(Product product) {\n\t\t\tproductDao.delete(product);\n\t\t}", "@DeleteMapping(\"/productos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteProducto(@PathVariable Long id) {\n log.debug(\"REST request to delete Producto : {}\", id);\n productoRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@Test\n\tpublic void deleteOrderLineProduct() {\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteOrderLineProduct \n\t\tInteger orderline_id_1 = 0;\n\t\tInteger related_product_id = 0;\n\t\tOrderLine response = null;\n\t\tresponse = service.deleteOrderLineProduct(orderline_id_1, related_product_id);\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteOrderLineProduct\n\t}", "public void onClick(DialogInterface dialog, int id) {\n deleteProduct();\n }", "public void onClick(DialogInterface dialog, int id) {\n deleteProduct();\n }", "@Override\n\tpublic ProductDto deleteProduct(int id) {\n\t\treturn null;\n\t}", "public void eliminar(Producto producto) throws BusinessErrorHelper;", "@Override\n public void onClick(View v) {\n ((CreateDocketActivityPart2) activity).deleteSpareParts(pos);\n }", "@GetMapping(\"/delete\")\n public RedirectView delete(Long id, Principal p) {\n if(applicationUserRepository.findByUsername(p.getName()).getAdmin()) {\n for (LineItem item : lineItemRepository.findAll()) {\n if (item.getProduct().getId() == id) {\n lineItemRepository.deleteById(item.getId());\n }\n }\n productRepository.deleteById(id);\n }\n return new RedirectView(\"/products\");\n }", "public String deleteProductConvert() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tpromotionProgramMgr.deletePPConvert(id, getLogInfoVO());\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.deleteProductConvert\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}", "public void delete(CatalogProduct catalogProduct) {\n catalog_product_dao.delete(catalogProduct);\n }", "@Override\n\tpublic void deleteIntoSupplierView(long supplierId, long productId) {\n\t\tString sql=\"DELETE FROM supplier_product WHERE supplier_supplier_id=? AND product_product_id=?\";\n\t\tgetJdbcTemplate().update(sql, supplierId, productId);\n\t}", "public void deleteSelection() {\n deleteFurniture(Home.getFurnitureSubList(this.home.getSelectedItems())); \n }", "public void deleteProductById(int id) {\n\t\tproductMapper.deleteProductById(id);\r\n\t}", "public boolean delete() {\r\n \t\t// need to have a way to inform if delete did not happen\r\n \t\t// can't delete if there are dependencies...\r\n \t\tif ((this.argumentsAgainst.size() > 0)\r\n \t\t\t\t|| (this.argumentsFor.size() > 0)\r\n \t\t\t\t|| (this.relationships.size() > 0)\r\n \t\t\t\t|| (this.questions.size() > 0)\r\n \t\t\t\t|| (this.subDecisions.size() > 0)) {\r\n \t\t\tMessageDialog.openError(new Shell(), \"Delete Error\",\r\n \t\t\t\"Can't delete when there are sub-elements.\");\r\n \r\n \t\t\treturn true;\r\n \t\t}\r\n \r\n \t\tif (this.artifacts.size() > 0) {\r\n \t\t\tMessageDialog.openError(new Shell(), \"Delete Error\",\r\n \t\t\t\"Can't delete when code is associated!\");\r\n \t\t\treturn true;\r\n \t\t}\r\n \t\tRationaleDB db = RationaleDB.getHandle();\r\n \r\n \t\t// are there any dependencies on this item?\r\n \t\tif (db.getDependentAlternatives(this).size() > 0) {\r\n \t\t\tMessageDialog.openError(new Shell(), \"Delete Error\",\r\n \t\t\t\"Can't delete when there are depencencies.\");\r\n \t\t\treturn true;\r\n \t\t}\r\n \r\n \t\tm_eventGenerator.Destroyed();\r\n \r\n \t\tdb.deleteRationaleElement(this);\r\n \t\treturn false;\r\n \r\n \t}" ]
[ "0.7643418", "0.74275523", "0.7263807", "0.7260745", "0.72285104", "0.71257114", "0.6949485", "0.6930094", "0.68928254", "0.67174506", "0.6705809", "0.66648215", "0.66577655", "0.66449666", "0.6619112", "0.6608342", "0.653688", "0.64437175", "0.64094955", "0.6372457", "0.63167423", "0.6286943", "0.6235019", "0.6196864", "0.6179511", "0.6173598", "0.61313814", "0.60866463", "0.6028734", "0.59636194", "0.596306", "0.59611124", "0.58893555", "0.58891386", "0.58881676", "0.58565885", "0.5850678", "0.5849818", "0.5839618", "0.5830043", "0.58231056", "0.5821486", "0.5818744", "0.5781464", "0.57783896", "0.57545686", "0.57426393", "0.5741676", "0.57263476", "0.5704411", "0.5676095", "0.56731683", "0.5672407", "0.5671478", "0.563848", "0.56109864", "0.5610423", "0.56089807", "0.55918485", "0.55668306", "0.55626285", "0.556244", "0.5553098", "0.55472374", "0.5521575", "0.55213076", "0.551822", "0.5508024", "0.5502243", "0.550104", "0.549133", "0.5473476", "0.5471408", "0.5467334", "0.54656994", "0.5453645", "0.54436606", "0.54420066", "0.5420325", "0.54200596", "0.5418955", "0.5406307", "0.5405778", "0.5394549", "0.5376175", "0.5361527", "0.53539175", "0.5342075", "0.53400975", "0.53400975", "0.5332668", "0.5326715", "0.5317858", "0.5309896", "0.53064835", "0.5304312", "0.53003126", "0.5298264", "0.5296493", "0.52899396" ]
0.805743
0
A simple setter. Helps modify Parts/Products know exactly which data to pull.
public void setFocusedIndex(int i) { focusedIndex = i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProduct(entity.APDProduct value);", "@JsonSetter(\"product_details\")\n public void setProductDetails (ProductData value) { \n this.productDetails = value;\n }", "public void setPartNo(String partNo){\n\t\t // store into the instance variable partNo (i.e. this.partNo) the value of the parameter partNo\n\t\tthis.partNo = partNo;\n\t}", "public void setProduct(Product product) {\n this.product = product;\n }", "public void setPart(java.lang.String part)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PART$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PART$2);\n }\n target.setStringValue(part);\n }\n }", "public void setProductLine(entity.APDProductLine value);", "public void setPrice(double price){this.price=price;}", "void setData(Part selectedPart) {\n\n this.selectedPart = selectedPart;\n partIDTextField.setText(String.valueOf(selectedPart.getPartsID())); // Setting value of part id to the Modify window\n partNameTextField.setText(\"\" + selectedPart.getPartsName()); // Setting value of part name to the Modify window\n partLnvField.setText(\"\" + selectedPart.getPartsLevel()); // Setting value of part lnv to the Modify window\n partPriceField.setText(\"\" + selectedPart.getPartsCost()); // Setting value of part price to the Modify window\n editData = true; // Setting value of editData boolean flas to true for the Modify window to activate\n partMaxField.setText(\"\" + selectedPart.getPartMax());\n partMinField.setText(\"\" + selectedPart.getPartMin());\n if (selectedPart.inHouse) {\n inHouseButtonAction(null);\n partMachineIDField.setText(\"\" + selectedPart.getCompanyNameOrMachineID()); // setting machineid for inhouse parts\n } else {\n outsourceButtonPress(null);\n partCompanyNameField.setText(\"\" + selectedPart.getCompanyNameOrMachineID()); // setting company name for outsourced parts\n }\n }", "public abstract void setCustomData(Object data);", "public abstract void setWarehouseAmount(int productID, int newAmount) throws GettingDataFailedException;", "@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}", "void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}", "public void setData(){\n\t\tif(companyId != null){\t\t\t\n\t\t\tSystemProperty systemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"BUSINESS_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tbusinessType = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"MAX_INVALID_LOGIN\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tinvalidloginMax = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SKU_GENFLAG\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tautomaticItemCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SKU_GENFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tformatItemCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tdeliveryItemNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"STO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tstockOpnameNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"RN_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\treceiptItemNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PLU_GENFLAG\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tautomaticProdCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PLU_FORMAT_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tprodCodeFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tsalesNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SOINV_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tinvoiceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SORCPT_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\treceiptNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DEFAULT_TAX_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tsalesTax = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DELIVERY_COST\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tdeliveryCost = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpurchaceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PINV_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpurchaceInvoiceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PAYMENT_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpaymentNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"TAX_VALUE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\ttaxValue = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t} else {\n\t\t\tbusinessType = null;\n\t\t\tinvalidloginMax = null;\n\t\t\tautomaticItemCode = null;\n\t\t\tformatItemCode = null;\n\t\t\tdeliveryItemNoFormat = null;\n\t\t\tstockOpnameNoFormat = null;\n\t\t\treceiptItemNoFormat = null;\n\t\t\tautomaticProdCode = null;\n\t\t\tprodCodeFormat = null;\n\t\t\tsalesNoFormat = null;\n\t\t\tinvoiceNoFormat = null;\n\t\t\treceiptNoFormat = null;\n\t\t\tsalesTax = null;\n\t\t\tdeliveryCost = null;\n\t\t\tpurchaceNoFormat = null;\n\t\t\tpurchaceInvoiceNoFormat = null;\n\t\t\tpaymentNoFormat = null;\n\t\t\ttaxValue = null;\n\t\t}\n\t}", "void setUpdatedProduct(ObservableList<MotorCycleProduct> productSelected, String updatedPartNumber, String updatedName, Integer updatedQuantity, Double updatedPrice, String updatedCategory, String updatedDate);", "public void setPartDesc(String partDesc){\n\t\t // store into the instance variable partDesc (i.e. this.partDesc) the value of the parameter partDesc\n\t\tthis.partDesc = partDesc;\n\t}", "public void setProduct(Product selectedProduct) {\n\t\t\n\t\tthis.modifiedProduct = selectedProduct;\n\n\t\tidField.setText(Integer.toString(modifiedProduct.getId()));\n\t\tproductNameField.setText(modifiedProduct.getName());\n\t\tpriceField.setText(Double.toString(modifiedProduct.getPrice()));\n\t\tinvField.setText(Integer.toString(modifiedProduct.getStock()));\n\t\tmaxField.setText(Integer.toString(modifiedProduct.getMax()));\n\t\tminField.setText(Integer.toString(modifiedProduct.getMin()));\n\t\t\t\t\n\t\tdummyList = modifiedProduct.getAllAssociatedParts();\n\t\tpartListProductTable.setItems(dummyList);\n\t}", "public void modifyPartData(Part part) {\r\n modifyingPart = true;\r\n nameField.setText(part.getName());\r\n iDfield.setText(Integer.toString(part.getId()));\r\n invField.setText(Integer.toString(part.getStock()));\r\n priceField.setText(Double.toString(part.getPrice()));\r\n maxField.setText(Integer.toString(part.getMax()));\r\n minField.setText(Integer.toString(part.getMin()));\r\n if (part instanceof InHouse) {\r\n machineOrCompanyField.setText(Integer.toString(((InHouse) part).getMachineId()));\r\n inHouseSelected = true;\r\n } else if (part instanceof Outsourced) {\r\n inHouseSelected = false;\r\n machineOrCompanyField.setText(((Outsourced) part).getCompanyName());\r\n radioToggleGroup.selectToggle(outsourcedRadio);\r\n toggleSwitch();\r\n }\r\n }", "void setDataIntoSuppBusObj() {\r\n supplierBusObj.setValue(txtSuppId.getText(),txtSuppName.getText(), txtAbbreName.getText(),\r\n txtContactName.getText(),txtContactPhone.getText());\r\n }", "public void setProduct(Product product) {\n this.product = product;\n this.updateTotalPrice();\n }", "public void setEntity(String parName, Object parVal) throws HibException;", "public void setProduct(String product) {\r\n this.product = product;\r\n }", "public void setProductId(String productId) ;", "@Override\n public void loadDetailProductData() {\n mDetailPresenter.loadDetailProductData();\n }", "public void setM_Product_ID (int M_Product_ID);", "public void setM_Product_ID (int M_Product_ID);", "public void setData(E data){\n\t\t\tthis.data = data;\n\t\t}", "public int getPartID() { return partID; }", "public void setProductDescription(String productDescription) {\r\n/* 438 */ this._productDescription = productDescription;\r\n/* */ }", "@Override\r\n public void getProduct() {\r\n\r\n InventoryList.add(new Product(\"Prod1\", \"Shirt\", \"Each\", 10.0, LocalDate.of(2021,03,19)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,21)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,29)));\r\n }", "@Override\n\tpublic void setData() {\n\n\t}", "public void setData(Object oData) { m_oData = oData; }", "public void setCodProd(IProduto codigo);", "public static void setPartDataFromField(PartData data, String value, EntryFieldLabel field) {\n switch (field) {\n case PI:\n data.setPrincipalInvestigator(value);\n break;\n\n case PI_EMAIL: {\n data.setPrincipalInvestigatorEmail(value);\n break;\n }\n\n case FUNDING_SOURCE: {\n data.setFundingSource(value);\n break;\n }\n\n case IP:\n data.setIntellectualProperty(value);\n break;\n\n case BIO_SAFETY_LEVEL:\n Integer level = BioSafetyOption.intValue(value);\n if (level == null) {\n if (value.contains(\"1\"))\n level = 1;\n else if (value.contains(\"2\"))\n level = 2;\n else if (\"restricted\".equalsIgnoreCase(value))\n level = -1;\n else\n break;\n }\n data.setBioSafetyLevel(level);\n break;\n\n case NAME:\n data.setName(value);\n break;\n\n case ALIAS:\n data.setAlias(value);\n break;\n\n case KEYWORDS:\n data.setKeywords(value);\n break;\n\n case SUMMARY:\n data.setShortDescription(value);\n break;\n\n case NOTES:\n data.setLongDescription(value);\n break;\n\n case REFERENCES:\n data.setReferences(value);\n break;\n\n case LINKS:\n ArrayList<String> links = new ArrayList<>();\n links.add(value);\n data.setLinks(links);\n break;\n\n case STATUS:\n data.setStatus(value);\n break;\n\n case SELECTION_MARKERS:\n ArrayList<String> selectionMarkers = new ArrayList<>();\n selectionMarkers.add(value);\n data.setSelectionMarkers(selectionMarkers);\n break;\n\n case HOST:\n case GENOTYPE_OR_PHENOTYPE:\n data.setStrainData(setStrainDataFromField(data.getStrainData(), value, field));\n break;\n\n case BACKBONE:\n case ORIGIN_OF_REPLICATION:\n case CIRCULAR:\n case PROMOTERS:\n case REPLICATES_IN:\n data.setPlasmidData(setPlasmidDataFromField(data.getPlasmidData(), value, field));\n break;\n\n case HOMOZYGOSITY:\n case ECOTYPE:\n case HARVEST_DATE:\n case GENERATION:\n case SENT_TO_ABRC:\n case PLANT_TYPE:\n case PARENTS:\n data.setSeedData(setSeedDataFromField(data.getSeedData(), value, field));\n break;\n\n case ORGANISM:\n case FULL_NAME:\n case GENE_NAME:\n case UPLOADED_FROM:\n data.setProteinData(setProteinDataFromField(data.getProteinData(), value, field));\n break;\n\n case CREATOR:\n data.setCreator(value);\n break;\n\n case CREATOR_EMAIL:\n data.setCreatorEmail(value);\n break;\n\n default:\n break;\n }\n }", "protected void setProductId(String productId) {\n this.productId = productId;\n }", "@Override\r\n\tpublic void setData(E data) {\n\t\tthis.data=data;\r\n\t}", "public void setProduct(Product product) {\n mProduct = product;\n mBeaut = mProduct.getBeaut();\n }", "public void setDPArt(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPArt)));\n\t\tthis.m_sDPArt=value;\n\t}", "public void setData(E data) {\r\n\t\tthis.data = data;\r\n\t}", "public void setProductCode(String productCode) {\r\n/* 427 */ this._productCode = productCode;\r\n/* */ }", "protected String getProductId() {\n return productId;\n }", "public void setProducts(List<Product> products) {\n this.products = products;\n }", "public void setItems() {\n if (partSelected instanceof OutSourced) { // determines if part is OutSourced\n outSourcedRbtn.setSelected(true);\n companyNameLbl.setText(\"Company Name\");\n OutSourced item = (OutSourced) partSelected;\n idTxt.setText(Integer.toString(item.getPartID()));\n idTxt.setEditable(false);\n nameTxt.setText(item.getPartName());\n invTxt.setText(Integer.toString(item.getPartInStock()));\n costTxt.setText(Double.toString(item.getPartPrice()));\n maxTxt.setText(Integer.toString(item.getMax()));\n minTxt.setText(Integer.toString(item.getMin()));\n idTxt.setText(Integer.toString(item.getPartID()));\n companyNameTxt.setText(item.getCompanyName());\n }\n if (partSelected instanceof InHouse) { // determines if part Is InHouse\n inHouseRbtn.setSelected(true);\n companyNameLbl.setText(\"Machine ID\");\n InHouse itemA = (InHouse) partSelected;\n idTxt.setText(Integer.toString(itemA.getPartID()));\n idTxt.setEditable(false);\n nameTxt.setText(itemA.getPartName());\n invTxt.setText(Integer.toString(itemA.getPartInStock()));\n costTxt.setText(Double.toString(itemA.getPartPrice()));\n maxTxt.setText(Integer.toString(itemA.getMax()));\n minTxt.setText(Integer.toString(itemA.getMin()));\n idTxt.setText(Integer.toString(itemA.getPartID()));\n companyNameTxt.setText(Integer.toString(itemA.getMachineID()));\n\n }\n }", "public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }", "@JsonSetter(\"product_identifiers\")\n public void setProductIdentifiers (ProductIdentifiers value) { \n this.productIdentifiers = value;\n }", "Product getPProducts();", "private void setData() {\n\n if (id == NO_VALUE) return;\n MarketplaceItem item = ControllerItems.getInstance().getModel().getItemById(id);\n if (item == null) return;\n\n ControllerAnalytics.getInstance().logItemView(id, item.getTitle());\n\n if (item.getPhotos() != null\n && item.getPhotos().size() > 0 &&\n !TextUtils.isEmpty(item.getPhotos().get(0).getSrc_big(this)))\n Picasso.with(this).load(item.getPhotos().get(0).getSrc_big(this)).into((ImageView) findViewById(R.id.ivItem));\n else if (!TextUtils.isEmpty(item.getThumb_photo()))\n Picasso.with(this).load(item.getThumb_photo()).into((ImageView) findViewById(R.id.ivItem));\n\n adapter.updateData(item, findViewById(R.id.rootView));\n }", "public void setData(Object data) {\r\n this.data = data;\r\n }", "public void setProduct(Product product){\n //set the product fields\n productIdField.setText(String.valueOf(product.getId()));\n productNameField.setText(product.getName());\n productInvField.setText(String.valueOf(product.getInv()));\n productPriceField.setText(Double.toString(product.getPrice()));\n productMaxField.setText(String.valueOf(product.getMax()));\n productMinField.setText(String.valueOf(product.getMin()));\n\n //set the associated parts to the associatedPartTableView\n tmpAssociatedParts.addAll(product.getAllAssociatedParts());\n associatedPartTableView.setItems(tmpAssociatedParts);\n\n }", "public void setData(E data)\n {\n this.data = data;\n }", "private void setData() {\n\n }", "public void setPartitionNumber(int part) {\n\tpartitionNumber = part;\n }", "@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}", "public String getProduct()\n {\n return product;\n }", "public void setMasterData(final ProductCatalogData masterData);", "@Override\n public void loadWomenProductsData() {\n\n if (mCatalogWomenPresenter != null) {\n mCatalogWomenPresenter.loadWomenProductsData();\n }\n }", "public void setProduct(final ProductReference product);", "private void initializeData() {\n lblItem.setText(product.getName());\n txtReference.setText(product.getTransaction().getReferenceNumber());\n txtItem.setText(product.getName());\n txtDescription.setText(product.getDescription());\n txtBrand.setText(product.getBrand());\n txtModel.setText(product.getModel());\n txtQuantity.setText(String.valueOf(product.getQuantity()));\n txtUnit.setText(product.getUnit());\n txtProductDate.setDate(product.getProduct_date());\n txtOrigPrice.setText(String.valueOf(product.getOriginalPrice()));\n txtAgent.setText(product.getAgent());\n txtContactPerson.setText(product.getContactPerson());\n try { \n txtSupplier.setText(((Supplier)product.getSuppliers().toArray()[0]).getName());\n } catch(ArrayIndexOutOfBoundsException ex) {\n System.out.println(ex.toString());\n }\n }", "public void setData(Object data) {\n this.data = data;\n }", "void setData(T data) {\n\t\tthis.data = data;\n\t}", "@Override\n public void updateProduct(TradingQuote tradingQuote) {\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic void set_List_Of_Product_Type_Of_Store_One()\n\t{\n\t\tArrayList<Product> Product_Of_Store_One = new ArrayList<Product>(); /* ArrayList Of Product */\n\t\tArrayList<String> String_Product_Of_Store_One = new ArrayList<String>(); /* ArrayList Of The String Of The Product */\n\t\tArrayList<Product> temp_Product_Of_Store_One = (ArrayList<Product>)CompanyManagerUI.Object_From_Comparing_For_Store_1.get(4);\t\n\t\t\n\t\tfor(int i = 0 ; i < temp_Product_Of_Store_One.size() ; i++)\n\t\t{\n\t\t\tProduct_Of_Store_One.add(temp_Product_Of_Store_One.get(i));\n\t\t}\n\t\t\n\t\tfor(int i = 0 ; i < Product_Of_Store_One.size() ; i++)\n\t\t{\n\t\t\tString_Product_Of_Store_One.add(String.valueOf(Product_Of_Store_One.get(i).getQuantity()) + \" ---> \" + String.valueOf(Product_Of_Store_One.get(i).getpType()));\n\t\t}\n\t\t\n\t\tProduct_Of_Store_1 = FXCollections.observableArrayList(String_Product_Of_Store_One);\n\t\tListViewQuantity_Store_1.setItems(Product_Of_Store_1);\n\t}", "public void setPrice(int price) {\n\tthis.price = price;\n}", "public ProductionPowersUpdateData(ProductionPowers pp, String p) {\n this.pp = pp;\n this.p = p;\n }", "public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}", "@Test\n public void testSetProductName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String productName = \"\";\n\n fixture.setProductName(productName);\n\n }", "@Override\n @PostConstruct\n protected void init() {\n super.init();\n\n // _HACK_ Attention: you must realize that associations below (when lazy) are fetched from the view, non transactionnally.\n\n if (products == null) {\n products = new SelectableListDataModel<Product>(getPart().getProducts());\n }\n }", "public void setP(List<Production> p);", "@Test\n public void setExtraSavesExtra()\n {\n //arrange\n String expectedExtra = \"some user agent extra\";\n ProductInfo actual = new ProductInfo();\n\n //act\n actual.setExtra(expectedExtra);\n\n //assert\n assertEquals(expectedExtra, Deencapsulation.getField(actual, \"extra\"));\n }", "public void setPrice(double price)\n {\n this.price = price;\n }", "@Override\n\tpublic Product getProduct() {\n\t\treturn product;\n\t}", "public void setPrice(double p){\n\t\t// store into the instance variable price the value of the parameter p\n\t\tprice = p;\n\t}", "void setProduct(x0401.oecdStandardAuditFileTaxPT1.ProductDocument.Product product);", "@Override\n\tpublic void setPrice(int price) {\n\t\t\n\t}", "public void setDataItem(Object value) {\n this.dataItem = value;\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "protected abstract void retrievedata();", "public void setProp(String key, String value){\t\t\n \t\t//Check which of property to set & set it accordingly\n \t\tif(key.equals(\"UMPD.latestReport\")){\n \t\t\tthis.setLatestReport(value);\n<<<<<<< HEAD\n\t\t} \n=======\n \t\t\treturn;\n \t\t} \n \t\tif (key.equals(\"UMPD.latestVideo\")) {\n \t\t\tthis.setLastestVideo(value);\n \t\t\treturn;\n \t\t}\n>>>>>>> 45a14c6cf04ac0844f8d8b43422597ae953e0c42\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return - a list of <code>FieldAndval</code> objects representing the set \n \t * properties\n \t */\n \tpublic ArrayList<FieldAndVal> getSetPropsList(){\n \t\tcreateSetPropsList();\n \t\treturn setPropsList;\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * \n \t */\n \tprivate void createSetPropsList(){\n \t\tif((this.latestReport).length()>0){\n \t\t\tsetPropsList.add(new FieldAndVal(\"UMPD.latestReport\", this.latestReport));\n \t\t}\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return lastestVideo - \n \t */\n \tpublic String getLastestVideo() {\n \t\treturn lastestVideo;\n \t}", "public ProductModel getProduct(String setName) {\n\t\treturn null;\r\n\t}", "public T getProduct() {\n return this.product;\n }", "public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }", "public void setProductPrice(double productPrice) {\n this.productPrice = productPrice;\n }", "public void setData(Object data) {\n\t\tthis.data = data;\n\t}", "public void setData( E data ) {\n\t\tthis.data = data;\n\t}", "public String getProduct() {\r\n return this.product;\r\n }", "public void setData(T data){\n this.data = data;\n }", "public void setItem(ArrayOfItem param) {\r\n localItemTracker = param != null;\r\n\r\n this.localItem = param;\r\n }", "public UpdateProduct() {\n\t\tsuper();\t\t\n\t}", "public String getProduct() {\n return product;\n }", "public String getProduct() {\n return product;\n }", "public void setPrice(double price)\n {\n this.price = price;\n }", "@Override\r\n\tpublic void setInfo(Object datos) {\n\t\t\r\n\t}", "public void setItems(){\n }", "public void setOrdersProductss(com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Products> x)\n {\n __ordersProductss = x;\n }", "public void updatePart(int index, Part selectedPart) {\n Part part = allParts.get(index);\n part.setId(selectedPart.getId());\n part.setName(selectedPart.getName());\n part.setPrice(selectedPart.getPrice());\n part.setStock(selectedPart.getStock());\n part.setMin(selectedPart.getMin());\n part.setMax(selectedPart.getMax());\n if(part instanceof InHousePart) {\n ((InHousePart)part).setMachineId(((InHousePart)selectedPart).getMachineId());\n } else if(part instanceof OutSourcedPart) {\n ((OutSourcedPart)part).setCompanyName(((OutSourcedPart)part).getCompanyName());\n }\n }", "public void setItem(Item[] param) {\r\n validateItem(param);\r\n\r\n localItemTracker = true;\r\n\r\n this.localItem = param;\r\n }", "public String setData() {\r\n\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tmodel.setData(vendorMaster);\r\n\t\tmodel.terminate();\r\n\t\tgetNavigationPanel(3);\r\n\t\treturn \"Data\";\r\n\t}", "Object getProduct();", "public void setData(Object o){}", "public void setData(GenericItemType data) {\n this.data = data;\n }", "@Override\n\tpublic void setPrice() {\n\t\tprice = 24.99;\n\n\t}" ]
[ "0.63084596", "0.60473025", "0.5818254", "0.5797493", "0.574198", "0.57174283", "0.56909627", "0.5685793", "0.56856555", "0.56107384", "0.5601422", "0.5598453", "0.5581152", "0.5564523", "0.5559464", "0.55427593", "0.553056", "0.5521407", "0.5516191", "0.5496627", "0.54882854", "0.54817635", "0.5478954", "0.547408", "0.547408", "0.5473894", "0.5470384", "0.5464473", "0.5456438", "0.54544824", "0.54468256", "0.5434735", "0.54343325", "0.54261816", "0.54261583", "0.54146814", "0.54061466", "0.536947", "0.5363921", "0.53518206", "0.5348328", "0.534205", "0.5341277", "0.53398484", "0.5337743", "0.5336356", "0.5331121", "0.53300697", "0.53285724", "0.53238094", "0.5320054", "0.53142", "0.5303167", "0.5280845", "0.52700216", "0.52682674", "0.5265934", "0.52593154", "0.5254908", "0.524696", "0.5245492", "0.52370197", "0.5236874", "0.52355194", "0.5232785", "0.52312857", "0.5228986", "0.52268374", "0.52256674", "0.5223688", "0.52228594", "0.52223784", "0.52142304", "0.521335", "0.52117115", "0.52113086", "0.52072716", "0.52033937", "0.5202702", "0.51988626", "0.5192548", "0.5191015", "0.5189375", "0.51799273", "0.51767755", "0.51707095", "0.5169504", "0.5162666", "0.5159086", "0.5159086", "0.51536965", "0.5150845", "0.51492935", "0.51466554", "0.5145559", "0.5145456", "0.5145187", "0.51399726", "0.513955", "0.5137755", "0.5132633" ]
0.0
-1
A simple getter Had a bug with this, but I found the bug was not here, but instead happened with when I called this method. See goToModifyProducts Javadoc for more information.
public int getFocusedIndex() { return focusedIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getProduct();", "public String getProduct()\n {\n return product;\n }", "Product getPProducts();", "String getProduct();", "public String getProductCode() {\r\n/* 211 */ return this._productCode;\r\n/* */ }", "public String getProductId() ;", "public String getProduct() {\r\n return this.product;\r\n }", "public String getProduct() {\n return product;\n }", "public String getProduct() {\n return product;\n }", "x0401.oecdStandardAuditFileTaxPT1.ProductDocument.Product getProduct();", "public String getProduct() {\n return this.product;\n }", "public String getProductDescription() {\r\n/* 221 */ return this._productDescription;\r\n/* */ }", "public T getProduct() {\n return this.product;\n }", "@Override\n\tpublic Product getProduct() {\n\t\treturn product;\n\t}", "public int getM_Product_ID();", "public int getM_Product_ID();", "public java.lang.String getProduct() {\n return product;\n }", "public String getProductId();", "public Product getProduct() {\n\t\treturn product;\n\t}", "public String product() {\n return this.product;\n }", "public Product getProductToModify()\n {\n if (productTable.getSelectionModel().getSelectedItem() != null)\n {\n return ((Product) productTable.getSelectionModel().getSelectedItem());\n }\n return null;\n }", "public int getM_Product_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Product_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "String getProductId();", "public String getProductReference() {\n return productReference;\n }", "@Override\n\tpublic Product getProduct() {\n\t\tSystem.out.println(\"B生产成功\");\n\t\treturn product;\n\t}", "protected String getProductId() {\n return productId;\n }", "@Override\r\n public void getProduct() {\r\n\r\n InventoryList.add(new Product(\"Prod1\", \"Shirt\", \"Each\", 10.0, LocalDate.of(2021,03,19)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,21)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,29)));\r\n }", "@Override\r\n\tpublic Product get(int id) {\n\t\treturn null;\r\n\t}", "public ProductType getProduct() {\n return product;\n }", "public int getProductId() {\n return productId;\n }", "public int getProductId() {\n return productId;\n }", "@Override\n\tpublic int getPrice() {\n\t\treturn product.getPrice();\n\t}", "public String getProductID() {\r\n return productID;\r\n }", "String getTheirProductId();", "public String getProductName() {\r\n return productName;\r\n }", "@Override\n\tpublic Product getProduct() {\n\t\treturn productDao.getProduct();\n\t}", "public String getProductCode() {\n return this.productCode;\n }", "public String getProductName() {\n return productName;\n }", "public String getProductName() {\n return productName;\n }", "public String getProductName() {\n return productName;\n }", "public int getOrderProductNum()\r\n {\n return this.orderProductNum;\r\n }", "@Override\n\tpublic String updateProduct() throws AdminException {\n\t\treturn null;\n\t}", "public String getProductid() {\n return productid;\n }", "@Override\r\n\tpublic Product getProduct(String id) {\n\t\treturn null;\r\n\t}", "public ProductModel getProduct()\n\t{\n\t\treturn product;\n\t}", "TradingProduct getTradingProduct();", "public String getDatabaseProduct();", "public String getProductCode() {\n return productCode;\n }", "public List<Product> getProducts();", "public List<Product> getProducts();", "public int getNumberOfProducts ()\n {\n return (numberOfProducts);\n }", "public String getProductOwner();", "public String getProduct_id() {\n return product_id;\n }", "public String getProduct_id() {\n return product_id;\n }", "@Override\r\n\tpublic Product retrieveResult() {\n\t\treturn product;\r\n\t}", "public Product get(String id);", "public String getProductLine() {\n return productLine;\n }", "public double getProductPrice() {\n return productPrice;\n }", "public Product getProductInventory() {\n return productInventory;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.APDProduct getProduct();", "public String getProductName(){\n return productRelation.getProductName();\n }", "java.lang.String getProductCode();", "@Override\n\t\tpublic List<ProductInfo> getProducts() {\n\t\t\treturn TargetProducts;\n\t\t}", "public java.lang.String getProductName () {\r\n\t\treturn productName;\r\n\t}", "public Product Product() {\n return null;\n }", "public String getProductId() {\n return productId;\n }", "public String getProductId() {\n return productId;\n }", "public String getProductId() {\n return productId;\n }", "public String getProductId() {\n return productId;\n }", "public String getProductId() {\n return productId;\n }", "public Product[] getProductsArray () {\n return null;\n }", "public Integer getProductId() {\r\n return productId;\r\n }", "public Integer getProductId() {\r\n return productId;\r\n }", "@Override\r\n\tpublic List<Product> getProducts() {\n\t\treturn null;\r\n\t}", "public List<Product> getProducts() {\n return products;\n }", "public String getProductno() {\n return productno;\n }", "public int getProduct_id() {\r\n\t\treturn product_id;\r\n\t}", "public String getProductName() {\r\n\t\treturn productName;\r\n\t}", "public Integer getProductId() {\n return productId;\n }", "public Integer getProductId() {\n return productId;\n }", "public Integer getProductId() {\n return productId;\n }", "public Integer getProductId() {\n return productId;\n }", "public Integer getProductId() {\n return productId;\n }", "public Integer getProductId() {\n return productId;\n }", "public int getProductPrice(){\n return this.productRelation.getCost();\n }", "public java.lang.String getProductName() {\n return productName;\n }", "@Override\n\tpublic List<ProductInfo> getProducts() {\n\t\treturn shoppercnetproducts;\n\t}", "@Override\r\n\tpublic Product getProduct(int productId) {\n\t\treturn dao.getProduct(productId);\r\n\t}", "@Override\n\tpublic List<Product> getProducts() {\n\t\treturn null;\n\t}", "private void getAllProducts() {\n }", "int getProductKey();", "public double getPurchasePrice()\n {\n return purchasePrice;\n }", "public String getProductName() {\n\t\treturn productName;\n\t}", "@Override\r\n\tpublic Product getProduct(String productId) {\n\t\treturn dao.getProduct(productId);\r\n\t}", "public int getOldProperty_descriptionType(){\n return localOldProperty_descriptionType;\n }", "public int getEntityId()\r\n/* 25: */ {\r\n/* 26:26 */ return this.entityId;\r\n/* 27: */ }", "@Override\r\n\tpublic List<Product> findProduct() {\n\t\treturn iImportSalesRecordDao.findProduct();\r\n\t}", "public int getProduct_id() {\n\t\treturn product_id;\n\t}", "public String getAcsProduct() {\n return acsProduct;\n }", "java.lang.String getProductDescription();", "Product getProductByID(Long id);" ]
[ "0.7330021", "0.7196371", "0.7139775", "0.7106817", "0.69461757", "0.6924348", "0.68884647", "0.687018", "0.687018", "0.6853915", "0.684698", "0.68415225", "0.68237376", "0.68201905", "0.665758", "0.665758", "0.66491777", "0.66306776", "0.66102195", "0.6601767", "0.6568422", "0.65383965", "0.65314263", "0.6505875", "0.6494207", "0.6486861", "0.64849657", "0.64848673", "0.6472889", "0.646167", "0.646167", "0.6460332", "0.6456766", "0.64556926", "0.645442", "0.6454127", "0.64371127", "0.64343023", "0.64343023", "0.64343023", "0.6413857", "0.64100355", "0.6396129", "0.6342332", "0.6332887", "0.63241667", "0.63236356", "0.63175344", "0.6294632", "0.6294632", "0.6273635", "0.6271608", "0.6262681", "0.6262681", "0.62600166", "0.62449205", "0.62328815", "0.6226121", "0.6202168", "0.6198634", "0.6189832", "0.6181859", "0.6173024", "0.6169104", "0.614235", "0.61322904", "0.61322904", "0.61322904", "0.61322904", "0.61322904", "0.6127511", "0.61258906", "0.61258906", "0.61233836", "0.6110831", "0.61020964", "0.6091458", "0.60902894", "0.6075612", "0.6075612", "0.6075612", "0.6075612", "0.6075612", "0.6075612", "0.6057758", "0.60535115", "0.605086", "0.6046972", "0.6042787", "0.60422385", "0.60057586", "0.6003458", "0.6003003", "0.6002861", "0.60007703", "0.5990417", "0.5978673", "0.5974319", "0.5973463", "0.5973427", "0.5972892" ]
0.0
-1
Sends the user to the AddPartScene.
public void goToAddPartScene(ActionEvent event) throws IOException { Parent addPartParent = FXMLLoader.load(getClass().getResource("AddPart.fxml")); Scene addPartScene = new Scene(addPartParent); Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow(); window.setScene(addPartScene); window.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleAddParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartController partController = fxmlLoader.getController();\n partController.setModifyParts(false);\n partController.setInventory(inventory);\n partController.setHomeController(this);\n\n // Spin up part form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Parts\");\n stage.setScene(new Scene(root));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\r\n private void addPartAction() throws IOException {\r\n \r\n generateScreen(\"AddModifyPartScreen.fxml\",\"Add Part\");\r\n updatePartsTable(stock.getAllParts());\r\n \r\n }", "public void goToModifyPartScene(ActionEvent event) throws IOException {\n\n if(partTableView.getSelectionModel().isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please make sure you've added a Part and selected the Part you want to modify.\");\n alert.show();\n } else {\n int i = partTableView.getSelectionModel().getFocusedIndex();\n setFocusedIndex(i);\n Parent addPartParent = FXMLLoader.load(getClass().getResource(\"ModifyPart.fxml\"));\n Scene modifyPartScene = new Scene(addPartParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(modifyPartScene);\n window.show();\n }\n\n\n }", "@FXML\r\n public void onActionAddPartScreen(ActionEvent actionEvent) throws IOException {\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/addPartInhouse.fxml\"));\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 800, 470);\r\n stage.setTitle(\"Add In-house Part\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "@FXML\n private void addNewPartType(ActionEvent event) {\n String name = nameText.getText();\n name = name.trim();\n if(name.equals(\"\")){\n showAlert(\"No Name\", \"This part type has no name, please input a name\");\n return;\n }\n \n String costText = this.costText.getText();\n costText = costText.trim();\n if(costText.equals(\"\")){\n showAlert(\"No Cost\", \"This part type has no cost, please input a cost.\");\n return;\n }\n \n String quantityText = this.quantityText.getText();\n quantityText = quantityText.trim();\n if(quantityText.equals(\"\")){\n showAlert(\"No Quantity\", \"This part type has no quantity, please input a quantity.\");\n return;\n }\n \n String description = descriptionText.getText();\n description = description.trim();\n if(description.equals(\"\")){\n showAlert(\"No Description\", \"This part type has no decription, please input a description.\");\n return;\n }\n \n double cost = Double.parseDouble(costText);\n int quantity = Integer.parseInt(quantityText);\n boolean success = partInventory.addNewPartTypeToInventory(name, \n description, cost, quantity);\n if(success){\n showAlert(\"Part Type Sucessfully Added\", \"The new part type was sucessfully added\");\n }else{\n showAlert(\"Part Type Already Exists\", \"This part already exists. If you would like to add stock, please select \\\"Add Stock\\\" on the righthand side of the screen.\\n\" \n + \"If you would like to edit this part, please double click it in the table.\");\n }\n // gets the popup window and closes it once part added\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n stage.close();\n }", "@FXML void onActionSavePart(ActionEvent event) throws IOException{\n if(partIsValid()){\r\n int id = Inventory.incrementPartID();\r\n String name = partName.getText();\r\n int inventory = Integer.parseInt(partInv.getText());\r\n Double price = Double.parseDouble(partPrice.getText());\r\n int max = Integer.parseInt(partMax.getText());\r\n int min = Integer.parseInt(partMin.getText());\r\n String companyName = companyNameField.getText();\r\n \r\n \r\n if(this.partToggleGroup.getSelectedToggle().equals(this.inHouseRadioButton)){\r\n int machineID = Integer.parseInt(companyNameField.getText());\r\n Inventory.addPart(new InHouse(id, name, price, inventory, min, max, machineID)); \r\n } else {\r\n Inventory.addPart(new Outsourced(id, name, price, inventory, min, max, companyName));\r\n }\r\n \r\n // Clearing the partIDCount variable\r\n Inventory.clearAmountOfParts();\r\n \r\n // Now we want to be able to go back to the main menu\r\n Parent AddPartViewParent = FXMLLoader.load(getClass().getResource(\"FXMLDocument.fxml\"));\r\n Scene AddPartScene = new Scene(AddPartViewParent);\r\n\r\n // Now we need to get the Stage information\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(AddPartScene);\r\n window.show();\r\n }\r\n }", "private void generateScreen(String form,String text) throws IOException {\r\n \r\n MainScreenController.formName = text;\r\n Stage stage = new Stage();\r\n Parent root = FXMLLoader.load(getClass().getResource(form));\r\n stage.setScene(new Scene(root));\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.initOwner(partAddBtn.getScene().getWindow());\r\n stage.showAndWait();\r\n \r\n }", "public void onAddParticipant() {\n ParticipantDialog participantDialog = ParticipantDialog.getNewInstance();\n Optional<Participant> result = participantDialog.showAndWait();\n if (!result.isPresent()) {\n return;\n }\n\n if (controller.addParticipant(result.get())) {\n return;\n }\n\n AlertHelper.showError(LanguageKey.ERROR_PARTICIPANT_ADD, null);\n }", "@FXML\r\n void onActionAddPart(ActionEvent event) {\r\n\r\n Part part = TableView1.getSelectionModel().getSelectedItem();\r\n if(part == null)\r\n return;\r\n else {\r\n product.getAllAssociatedParts().add(part);\r\n }\r\n }", "@FXML\n void addButton(ActionEvent event) {\n\n Part selectedPart = partTableView.getSelectionModel().getSelectedItem();\n\n if (selectedPart == null) {\n AlartMessage.displayAlertAdd(6);\n } else {\n assocParts.add(selectedPart);\n assocPartTableView.setItems(assocParts);\n }\n }", "public void actionPerformed(ActionEvent e) {\n \t\t\t\tscreen.setScene(new CreateAccount(screen));\n \t\t\t}", "@FXML\r\n public void onActionModifyScreen(ActionEvent actionEvent) throws IOException {\r\n\r\n //Receive Part object information from the PartController in order to populate the Modify Parts text fields\r\n try {\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyPartInhouse.fxml\"));\r\n loader.load();\r\n\r\n PartController pController = loader.getController();\r\n\r\n /*If the Part object received from the Part Controller is an In-house Part, user is taken to the modify\r\n in-house part screen */\r\n if (partsTableView.getSelectionModel().getSelectedItem() != null) {\r\n if (partsTableView.getSelectionModel().getSelectedItem() instanceof InhousePart) {\r\n pController.sendPart((InhousePart) partsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify In-house Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n\r\n //If the Part object is an outsourced Part, the user is taken to the modify outsourced part screen\r\n else {\r\n\r\n loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyPartOutsourced.fxml\"));\r\n loader.load();\r\n\r\n pController = loader.getController();\r\n\r\n pController.sendPartOut((OutsourcedPart) partsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify Outsourced Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to modify.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (IllegalStateException e) {\r\n //Ignore\r\n }\r\n catch (NullPointerException n) {\r\n //Ignore\r\n }\r\n }", "public void start(){\n this.speakerMessageScreen.printScreenName();\n mainPart();\n }", "@FXML\r\n private void modifyPartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n partToMod = selected.getId();\r\n generateScreen(\"AddModifyPartScreen.fxml\", \"Modify Part\");\r\n }\r\n else {\r\n displayMessage(\"No part selected for modification\");\r\n }\r\n \r\n }", "public void goToAddProductScene(ActionEvent event) throws IOException {\n Parent addProductParent = FXMLLoader.load(getClass().getResource(\"AddProduct.fxml\"));\n Scene addProductScene = new Scene(addProductParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(addProductScene);\n window.show();\n }", "public void handleModifyParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartController partController = fxmlLoader.getController();\n\n if (getPartToModify() != null)\n {\n partController.setModifyParts(true);\n partController.setPartToModify(getPartToModify());\n partController.setInventory(inventory);\n partController.setHomeController(this);\n\n // Spin up part form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Parts\");\n stage.setScene(new Scene(root));\n stage.show();\n\n }\n else {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No part was selected!\");\n alert.setContentText(\"Please select a part to modify from the part table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML private void handleAddProdAdd(ActionEvent event) {\n if (fxidAddProdAvailableParts.getSelectionModel().getSelectedItem() != null) {\n //get the selected part from the available list\n Part tempPart = fxidAddProdAvailableParts.getSelectionModel().getSelectedItem();\n //save it to our temporary observable list\n partToSave.add(tempPart);\n //update the selected parts list\n fxidAddProdSelectedParts.setItems(partToSave); \n } else {\n Alert partSearchError = new Alert(Alert.AlertType.INFORMATION);\n partSearchError.setHeaderText(\"Error!\");\n partSearchError.setContentText(\"Please select a part to add.\");\n partSearchError.showAndWait();\n }\n }", "public void createNewButtonClicked(){\n loadNewScene(apptStackPane, \"Create_New_Appointment.fxml\");\n }", "public void GuestAction(ActionEvent event) throws IOException {\n myDB.GuestLogIn();\n NameTransfer.getInstance().setName(\"Guest\");\n \n pm.changeScene(event, \"/sample/fxml/ProductsSample.fxml\", \"products\");\n \n \n }", "void onPart(String partedNick);", "public void addPart() {\n\n if(isValidPart()) {\n double price = Double.parseDouble(partPrice.getText());\n String name = partName.getText();\n int stock = Integer.parseInt(inventoryCount.getText());\n int id = Integer.parseInt(partId.getText());\n int minimum = Integer.parseInt(minimumInventory.getText());\n int maximum = Integer.parseInt(maximumInventory.getText());\n String variableText = variableTextField.getText();\n\n if (inHouse.isSelected()) {\n InHouse newPart = new InHouse(id,name,price,stock,minimum,maximum,Integer.parseInt(variableText));\n if (PassableData.isModifyPart()) {\n Controller.getInventory().updatePart(PassableData.getPartIdIndex(), newPart);\n } else {\n Controller.getInventory().addPart(newPart);\n }\n\n } else if (outsourced.isSelected()) {\n Outsourced newPart = new Outsourced(id,name,price,stock,minimum,maximum,variableText);\n if (PassableData.isModifyPart()) {\n Controller.getInventory().updatePart(PassableData.getPartIdIndex(), newPart);\n } else {\n Controller.getInventory().addPart(newPart);\n }\n }\n try {\n InventoryData.getInstance().storePartInventory();\n InventoryData.getInstance().storePartIdIndex();\n } catch (IOException e) {\n e.printStackTrace();\n }\n exit();\n\n }\n }", "@FXML\r\n void submitNewOrder(MouseEvent event) {\r\n\t\t\t//everything is ok, now we will add casual traveler order.\r\n\t\t\tif ( order != null && WorkerControllerClient.createNewOrder(order) ) {\r\n\t\t\t\torderSucceed = true;\r\n\t\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\r\n\t\t\t\talert.setHeaderText(\"succeed!\");\r\n\t\t\t\talert.setContentText(\"order created successfully\");\r\n\t\t\t\talert.showAndWait();\r\n\t\t\t\tsubmitButton.getScene().getWindow().hide();\r\n\t\t\t} else {\r\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\t\talert.setHeaderText(\"Failed!\");\r\n\t\t\t\talert.setContentText(\"Order Failed\");\r\n\t\t\t\talert.showAndWait();\r\n\t\t\t\tsubmitButton.getScene().getWindow().hide();\r\n\t\t\t}\r\n\t\t\r\n }", "private void addItemScreen() {\n \tIntent intent = new Intent(this, ItemEditor.class);\n \tstartActivity(intent);\n }", "@FXML\r\n public void onActionToAddProductScreen(ActionEvent actionEvent) throws IOException {\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/addProduct.fxml\"));\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 980, 560);\r\n stage.setTitle(\"Add Product\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "@FXML\n\tprivate void handleAddUser(ActionEvent event) {\n\t\tlogger.info(\"click rootstage's adduser button\");\n\n\t\tString authorID = Dialogs.create().owner(rootLayout)\n\t\t\t\t.title(\"Text Input Dialog\")\n\t\t\t\t.masthead(\"We need you to provide the AuthorID!\")\n\t\t\t\t.message(\"Please enter the AuthorID:\")\n\t\t\t\t.showTextInput(\"wdp515105\");\n\n\t\tTask<Author> task = new ImportAuthorTask(authorID);\n\n\t\ttask.setOnSucceeded(new EventHandler<WorkerStateEvent>() {\n\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t@Override\n\t\t\tpublic void handle(WorkerStateEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tContext context = Context.getInstance();\n\t\t\t\tif (!context.containsKey(\"authors\")) {\n\t\t\t\t\tcontext.addContextObject(\"authors\",\n\t\t\t\t\t\t\tnew HashMap<String, Author>());\n\t\t\t\t}\n\t\t\t\tAuthor author = (Author) event.getSource().getValue();\n\n\t\t\t\tif (author != null) {\n\t\t\t\t\t// TODO add\n\t\t\t\t\t((Map<String, Author>) context.getContextObject(\"authors\"))\n\t\t\t\t\t\t\t.put(authorID, author);\n\t\t\t\t\tTab tab = new Tab(authorID);\n\t\t\t\t\ttab.setClosable(true);\n\t\t\t\t\ttab.setUserData(author);\n\n\t\t\t\t\tScreensContainer container = createNewDocument();\n\t\t\t\t\tcontainer.setUserData(author);\n\t\t\t\t\ttab.setContent(container);\n\t\t\t\t\ttabPane.getTabs().add(tab);\n\t\t\t\t\ttabPane.getSelectionModel().select(tab);\n\n\t\t\t\t\tshowDocumentScreen(ID_SH_ROOT);\n\t\t\t\t} else {\n\t\t\t\t\tPlatform.runLater(() -> {\n\t\t\t\t\t\tDialogs.create().owner(rootLayout)\n\t\t\t\t\t\t\t\t.title(\"Warning Dialog\")\n\t\t\t\t\t\t\t\t.masthead(\"Look, a Warning Dialog\")\n\t\t\t\t\t\t\t\t.message(\"Sorry, No Such User!\").showWarning();\n\t\t\t\t\t});\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tDialogs.create().owner(rootLayout).title(\"Progress Dialog\")\n\t\t\t\t.masthead(\"Downloading Author \" + authorID + \"'s information!\")\n\t\t\t\t.showWorkerProgress(task);\n\n\t\tnew Thread(task).start();\n\t}", "@FXML\n public void addBuildingButtonHandler(MouseEvent mouseEvent) {\n try {\n //removing spaces so the description can be send in the url using _ to later identify where spaces should be.\n String buildingName = buildingNameTextField.getText();\n\n List<Building> buildings = ServerCommunication.getBuildings();\n for (Building b : buildings) {\n if (b.getBuilding_Name().equals(buildingName)) {\n confirmationText.setText(\"Please choose a name that doesn't exit yet.\");\n return;\n }\n }\n\n Boolean nonResSpace = nonResSpaceCheckBox.isSelected();\n int carParkingSpace = Integer.parseInt(carParkingSpaceTextField.getText());\n\n //removing spaces so the description can be send in the url using _ to later identify where spaces should be.\n String spaceDescription = descriptionTextField.getText();\n String[] descriptionArray = spaceDescription.split(\" \");\n String description = descriptionArray[0];\n for (int i = 1; i < descriptionArray.length; i++) {\n description = description + \"_\" + descriptionArray[i];\n }\n\n Time openTime = Time.valueOf(openTimeTextField.getText());\n Time closeTime = Time.valueOf(closeTimeTextField.getText());\n ServerCommunication.createBuilding(buildingName, nonResSpace, carParkingSpace, description, openTime, closeTime);\n confirmationText.setText(\"Building added successfully.\");\n AdminMainSceneController.setStatus(2);\n switchScene(mouseEvent, \"/adminMainScene.fxml\", \"Admin Window\");\n\n } catch (Exception e) {\n confirmationText.setText(\"Building failed to add.\");\n throw new IllegalArgumentException(\"invalid input\");\n }\n }", "public void showQuestsToPickScreen(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/QuestsToPickScreen.fxml\"));\n mainScreenController.getSecondaryScreen().getChildren().clear();\n mainScreenController.getSecondaryScreen().getChildren().add((AnchorPane) loader.load());\n \n QuestsToPickScreenController controller = loader.getController();\n controller.setGame(this);\n }catch(IOException e){\n }\n }", "@FXML\n public void ClientScene(ActionEvent event) throws IOException\n {\n Parent clientViewParent = FXMLLoader.load(getClass().getResource(\"connection.fxml\")); //load \"connection.fxml\"\n Scene clientViewScene = new Scene(clientViewParent);\n \n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow(); //take stage from the event\n \n window.setTitle(\"Client chat\");\n window.setScene(clientViewScene);\n window.show();\n }", "@FXML\n private void goToAddEvent(ActionEvent event){\n SceneManager.navigate(SceneName.ADDEVENT);\n }", "public void goToRoomConfirmation() throws IOException {\n ApplicationDisplay.changeScene(\"/RoomConfirmation.fxml\");\n }", "public void gotoCreateUser(){\n try {\n FXMLCreateUserController verCreateUser = (FXMLCreateUserController) replaceSceneContent(\"FXMLCreateUser.fxml\");\n verCreateUser.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void addAuthorAction()\n\t{\n\t\tViewNavigator.loadScene(\"Add Author\", ViewNavigator.ADD_AUTHOR_SCENE);\n\t}", "public void confirmUser() {\r\n\r\n bpConfirmUser.setTop(vbText());//Add VBox to top\r\n bpConfirmUser.setCenter(gpCenter());//Add GridPane to center\r\n bpConfirmUser.setBottom(hbButtons()); //Add Hbox to bottom\r\n\r\n bpConfirmUser.setPadding(new Insets(10, 50, 50, 50)); //Padding\r\n\r\n bpConfirmUser.setId(\"bp\"); //SetID\r\n //Create Scene and add mainBorder to it\r\n Scene myScene = new Scene(bpConfirmUser, 400, 300);\r\n\r\n //Setup Stage\r\n confirmUserStage.setTitle(\"Confirm Information\"); //Set the title of the Stage\r\n myScene.getStylesheets().add(getClass().getClassLoader().getResource(\"createuser.css\").toExternalForm());\r\n confirmUserStage.setScene(myScene); //Add Scene to Stage\r\n\r\n confirmUserStage.show(); //Show Stage\r\n\r\n }", "public void handleBegin(){\n\t\tStage getstage = (Stage) beginButton.getScene().getWindow();\n\t\tParent root;\n\t\ttry {\n\t\t\troot = FXMLLoader.load(getClass().getResource(\"GameBoard.fxml\"));\n\t\t\tScene scene = new Scene(root,800,600);\n\t\t\tscene.getStylesheets().add(getClass().getResource(\"GameBoard.css\").toExternalForm());\n\t\t\tgetstage.setScene(scene);\n\t\t\tgetstage.sizeToScene();\n\t\t\tgetstage.show();\n\t\t\t// TODO Add background task to send to server and wait for other person to press begin\n\t\t} catch (IOException e) {\n\t\t\tlog.log(Level.FINE, \"Error in begin\", e);\n\t\t}\t\n\t}", "public void handleAddProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(false);\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Products\");\n stage.setScene(new Scene(root));\n stage.show();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void linktomyordersButtonPressed(javafx.event.ActionEvent event) throws IOException {\r\n Parent myordersParent = FXMLLoader.load(getClass().getResource(\"myOrdersHome.fxml\"));\r\n Scene myordersScene = new Scene(myordersParent);\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(myordersScene);\r\n window.show();\r\n }", "@FXML\n public void saveNewPart(MouseEvent event) throws IOException {\n // Min should be less than Max; and Inv should be between those two values.\n try {\n int id = Inventory.getUniqueIdPart();\n String name = newPartNameTextField.getText();\n double price = Double.parseDouble(newPartPriceTextField.getText());\n //we can also use valueOf like so\n //int invNum = Integer.valueOf(newPartInvTextField.getText());\n int totalInventory = Integer.parseInt(newPartInvTextField.getText());\n int min = Integer.parseInt(newPartMinTextField.getText());\n int max = Integer.parseInt(newPartMaxTextField.getText());\n if (min >= max) {\n AlertMessageController.minMaxError();\n } else if ((totalInventory < min) || (totalInventory > max)) {\n AlertMessageController.inventoryInBetween();\n }\n else if (name.trim().isEmpty()) {\n AlertMessageController.nullName();\n } else {\n //insert condition for radio buttons\n if (inHouseRadioButton.isSelected()) {\n //machineIdOrCompanyLabel.setText(\"Machine Id\");\n handleInhouseButton();\n int machineId = Integer.parseInt(newPartMachineIdOrCompanyNameTextField.getText());\n Part newPart = new InHouse(id, name, price, totalInventory, min, max, machineId);\n Inventory.addPart(newPart);\n System.out.println(\"it was created in machine\");\n } else if (outsourcedRadioButton.isSelected()) {\n //machineIdOrCompanyLabel.setText(\"Company Name\");\n handleOutsourcedButton();\n String companyName = newPartMachineIdOrCompanyNameTextField.getText();\n Part newPart = new Outsourced(id, name, price, totalInventory, min, max, companyName);\n Inventory.addPart(newPart);\n System.out.println(\"it was created in company name\");\n }\n Inventory.incrementUniqueIdPart();\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"../view/main_screen.fxml\"));\n stage.setScene(new Scene(scene));\n stage.show();\n\n }\n\n } catch (NumberFormatException exp) {\n //System.out.println(exp);\n AlertMessageController.errorPart();\n }\n }", "public void linktomyorderseditbuttonPressed(javafx.event.ActionEvent event) throws IOException {\r\n Parent myorderseditParent = FXMLLoader.load(getClass().getResource(\"myOrdersEdit.fxml\"));\r\n Scene myorderseditScene = new Scene(myorderseditParent);\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(myorderseditScene);\r\n window.show();\r\n }", "@FXML\n final void btnOnlineClick() {\n new Thread(() -> sceneHandler.setActiveScene(GameScene.MULTI_INTRO)).start();\n }", "@FXML\n public void addWell() {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingWell(0, 0));\n \n }", "@FXML\n void OnActionShowAddCustomerScreen(ActionEvent event) throws IOException {\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/View/AddCustomer.fxml\"));\n stage.setTitle(\"Add Customer\");\n stage.setScene(new Scene(scene));\n stage.show();\n }", "public void mainPart(){\n this.speakerMessageScreen.prompt();\n String choice = this.scanner.nextLine();\n switch (choice) {\n case \"0\":\n this.programController.goToPreviousScreenController();\n break;\n case \"1\":\n this.reply();\n this.mainPart();\n return;\n case \"2\":\n this.broadCast();\n this.mainPart();\n return;\n case \"3\":\n this.programController.setNewScreenController(new InboxScreenController(programController));\n break;\n default:\n this.speakerMessageScreen.invalidInput(choice);\n this.mainPart();\n return;\n }\n this.end();\n }", "public void action() {\n MessageTemplate template = MessageTemplate.MatchPerformative(CommunicationHelper.GUI_MESSAGE);\n ACLMessage msg = myAgent.receive(template);\n\n if (msg != null) {\n\n /*-------- DISPLAYING MESSAGE -------*/\n try {\n\n String message = (String) msg.getContentObject();\n\n // TODO temporary\n if (message.equals(\"DistributorAgent - NEXT_SIMSTEP\")) {\n \tguiAgent.nextAutoSimStep();\n // wykorzystywane do sim GOD\n // startuje timer, zeby ten zrobil nextSimstep i statystyki\n // zaraz potem timer trzeba zatrzymac\n }\n\n guiAgent.displayMessage(message);\n\n } catch (UnreadableException e) {\n logger.error(this.guiAgent.getLocalName() + \" - UnreadableException \" + e.getMessage());\n }\n } else {\n\n block();\n }\n }", "public void onAddByWebSitePressed( ) {\n Router.Instance().changeView(Router.Views.AddFromWebSite);\n }", "@FXML\r\n void onActionModifyPart(ActionEvent event) throws IOException {\r\n \r\n try {\r\n int id = currPart.getId();\r\n String name = partNameTxt.getText();\r\n int stock = Integer.parseInt(partInvTxt.getText());\r\n double price = Double.parseDouble(partPriceTxt.getText());\r\n int max = Integer.parseInt(maxInvTxt.getText());\r\n int min = Integer.parseInt(minInvTxt.getText());\r\n int machineId;\r\n String companyName;\r\n boolean partAdded = false;\r\n \r\n if (name.isEmpty()) {\r\n //RUNTIME ERROR: Name empty exception\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Name cannot be empty.\");\r\n errorTxtLabel.setVisible(true);\r\n } else {\r\n if (minVerify(min, max) && inventoryVerify(min, max, stock)) {\r\n \r\n if(inHouseRBtn.isSelected()) {\r\n try {\r\n machineId = Integer.parseInt(partIDTxt.getText());\r\n InHousePart newInHousePart = new InHousePart(id, name, price, stock, min, max, machineId);\r\n newInHousePart.setId(currPart.getId());\r\n Inventory.addPart(newInHousePart);\r\n partAdded = true;\r\n } catch (Exception e) {\r\n //LOGICAL ERROR: Invalid machine ID error\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Invalid machine ID.\");\r\n errorTxtLabel.setVisible(true);\r\n }\r\n } \r\n if (outsourcedRBtn.isSelected()) {\r\n companyName = partIDTxt.getText();\r\n OutsourcedPart newOutsourcedPart = new OutsourcedPart(id, name, price, stock, min, max, companyName);\r\n newOutsourcedPart.setId(currPart.getId());\r\n Inventory.addPart(newOutsourcedPart);\r\n partAdded = true;\r\n }\r\n if (partAdded){\r\n errorLabel.setVisible(false); \r\n errorTxtLabel.setVisible(false);\r\n Inventory.deletePart(currPart);\r\n //Confirm modify\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Modify Part\");\r\n alert.setContentText(\"Save changes and return to main menu?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n stage = (Stage) ((Button)event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/View/Main.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }\r\n }\r\n }\r\n }\r\n } catch(Exception e) {\r\n //RUNTIME ERROR: Blank fields exception\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Form contains blank fields or errors.\");\r\n errorTxtLabel.setVisible(true);\r\n }\r\n\r\n }", "public void dashboard() throws Exception {\n\n FXMLLoader main = new FXMLLoader(getClass().getResource(\"GUI/dashboard.fxml\"));\n Parent root;\n\n try {\n root = main.load();\n Dashboard sendUser = main.getController();\n sendUser.initialize(username,customerName);\n Stage stage = (Stage) dashboard.getScene().getWindow();\n root.setOnMousePressed(e->{\n x = e.getSceneX();\n y = e.getSceneY();\n });\n\n root.setOnMouseDragged(e->{\n stage.setX(e.getScreenX()-x);\n stage.setY(e.getScreenY()-y);\n });\n stage.setTitle(\"Monrec\");\n stage.setScene(new Scene(root));\n stage.show();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\n void goToInventoryBrowser(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the inventory browser FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"InventoryBrowser.fxml\"));\n\n BorderPane inventoryBrowser = (BorderPane) fxmlLoader.load();\n Scene inventoryBrowserScene = new Scene(inventoryBrowser, Main.INVENTORY_BROWSER_WINDOW_WIDTH,\n Main.INVENTORY_BROWSER_WINDOW_HEIGHT);\n Stage inventoryBrowserStage = new Stage();\n\n inventoryBrowserStage.setScene(inventoryBrowserScene);\n inventoryBrowserStage.setTitle(Main.INVENTORY_BROWSER_WINDOW_TITLE);\n inventoryBrowserStage.initModality(Modality.APPLICATION_MODAL);\n // Show the inventory browser scene and wait for it to be closed\n inventoryBrowserStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n }", "public void chooseWindowSceneLoaded(String username) throws IOException{\n PrintWriter out = new PrintWriter(socket.getOutputStream(), true);\n out.println(username + \" chooseWindowOk\");\n out.close();\n socket.close();\n }", "public void linktomyaccountButtonPressed(javafx.event.ActionEvent event) throws IOException {\r\n Parent myaccountParent = FXMLLoader.load(getClass().getResource(\"MyAccount.fxml\"));\r\n Scene myaccountScene = new Scene(myaccountParent);\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(myaccountScene);\r\n window.show();\r\n }", "public void launchSubPart3(View view) {\n Intent inscrPart3 = new Intent(getApplicationContext(), subscription_part3_Activity.class);\n inscrPart3.putExtra(\"User\", user);\n startActivity(inscrPart3);\n finish();\n\n }", "@FXML\n\tprivate void newChatPressed(MouseEvent event) throws IOException {\n\n\t\tstage = new Stage();\n\t\tFXMLLoader fxmlLoader = new FXMLLoader();\n\t\tfxmlLoader.setLocation(getClass().getResource(\"Popup.fxml\")); \n\t\tAnchorPane frame = fxmlLoader.load(); \n\t\tPopupController controller = (PopupController)fxmlLoader.getController();\n\t\tcontroller.primaryUserList = userList;\n\t\tcontroller.setClient(this.client);\n\t\tcontroller.setChatController(this);\n\n\t\tclient.getOnlineUsers();\n\n\t\tscene = new Scene(frame); \n\t\tstage.setScene(scene);\n\t\tstage.setMinHeight(400);\n\t\tstage.setMinWidth(400);\n\t\tstage.setMaxHeight(400);\n\t\tstage.setMaxWidth(400);\n\t\tstage.show();\n\n\t}", "@FXML void onActionModifyProductAdd(ActionEvent event) {\n Part selectedPart = partTableView.getSelectionModel().getSelectedItem();\n tmpAssociatedParts.add(selectedPart);\n }", "@FXML\n void goToReservedItems(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the reserved items FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"ReservedItems.fxml\"));\n\n BorderPane reservedItems = (BorderPane) fxmlLoader.load();\n Scene reservedItemsScene = new Scene(reservedItems, Main.SMALL_WINDOW_WIDTH, Main.SMALL_WINDOW_HEIGHT);\n Stage reservedItemsStage = new Stage();\n\n reservedItemsStage.setScene(reservedItemsScene);\n reservedItemsStage.setTitle(Main.RESERVED_ITEMS_WINDOW_TITLE);\n reservedItemsStage.initModality(Modality.APPLICATION_MODAL);\n // Show the reserved items scene and wait for it to be closed\n reservedItemsStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n\n }", "@Override\r\n\tpublic void launch(IEditorPart arg0, String arg1) {\n\t\tSystem.out.println(\"Launch Raoul by editor \" + arg1);\r\n\t}", "private void createNameSubScene() {\n\t\tnameSubScene = new ViewSubScene();\n\t\tthis.mainPane.getChildren().add(nameSubScene);\n\t\tInfoLabel enterName = new InfoLabel(\"ENTER YOU NAME\");\n\t\tenterName.setLayoutX(20);\n\t\tenterName.setLayoutY(40);\n\t\t\n\t\tinputName = new TextField();\n\t\tinputName.setLayoutX(120);\n\t\tinputName.setLayoutY(150);\n\t\t\n\t\tnameSubScene.getPane().getChildren().add(enterName);\n\t\tnameSubScene.getPane().getChildren().add(inputName);\n\t\tnameSubScene.getPane().getChildren().add(createLinkButton());\n\t}", "@FXML\r\n\tprivate void handleMemberScreenButton() throws IOException{\r\n\t\tAnchorPane cmdPane = (AnchorPane) FXMLLoader.load(getClass().getResource(\"/guiFXML/MemberScreenFXML.fxml\"));\r\n\t\ttry {\r\n\t\t\tanchCmdController.getChildren().clear();\r\n\t\t\tanchCmdController.getChildren().add(cmdPane);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@FXML\n public void ServerScene(ActionEvent event) throws IOException\n {\n Parent clientViewParent = FXMLLoader.load(getClass().getResource(\"server.fxml\")); //load \"server.fxml\"\n Scene clientViewScene = new Scene(clientViewParent);\n \n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow(); //take stage from the event\n \n window.setTitle(\"Server chat\");\n window.setScene(clientViewScene);\n window.show();\n }", "@FXML\n private void goToCreateProgram(ActionEvent event) throws IOException {\n\n CreateProgramController createProgramController = new CreateProgramController();\n Program programEntity = createProgramController.openView(event);\n createProgram.setSelected(false);\n if (programEntity != null && programListController != null)\n {\n if (programListController.listOfPrograms != null)\n {\n programListController.listOfPrograms.add(programEntity);\n programListController.updateProgramList();\n UsermanagementUtilities.setFeedback(event,\"The program was created\",true);\n }\n } else {\n UsermanagementUtilities.setFeedback(event,\"The program was not created\",false);\n }\n }", "public void goToModifyProductScene(ActionEvent event) throws IOException {\n\n if(productTableView.getSelectionModel().isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please make sure you've added a Product and selected the Product you want to modify.\");\n alert.show();\n } else {\n int i = productTableView.getSelectionModel().getFocusedIndex();\n setFocusedIndex(i);\n Parent addProductParent = FXMLLoader.load(getClass().getResource(\"ModifyProduct.fxml\"));\n Scene modifyProductScene = new Scene(addProductParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(modifyProductScene);\n window.show();\n }\n\n\n }", "public void addGenreAction()\n\t{\n\t\tViewNavigator.loadScene(\"Add Genre\", ViewNavigator.ADD_GENRE_SCENE);\n\t}", "@FXML\r\n\t\tpublic void addButton(ActionEvent event) {\r\n\t\t\t// get name, notes, and due date from fields\r\n\t\t\tString taskName = name.getText();\r\n\t\t\tString taskNotes = notes.getText();\r\n\t\t\tLocalDate taskDate = date.getValue();\r\n\t\t\t\r\n\t\t\tif (taskName.isEmpty()) {\r\n\t\t\t\t// validate that taskName is not empty\r\n\t\t\t\tnameLabel.setText(\"Must have a name!\");\r\n\t\t\t\tname.setStyle(warningStyle);\r\n\t\t\t} else {\r\n\t\t\t\tnameLabel.setText(\"\");\r\n\t\t\t\tname.setStyle(defaultStyle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (taskDate == null) {\r\n\t\t\t\t// validate that taskDate is not empty \r\n\t\t\t\tdateLabel.setText(\"Must provide a due date!\");\r\n\t\t\t\tdate.setStyle(warningStyle);\r\n\t\t\t} else {\r\n\t\t\t\tdateLabel.setText(\"\");\r\n\t\t\t\tdate.setStyle(defaultStyle);\r\n\t\t\t}\r\n\t\t\t\n\t\t\tif (taskDate != null && !taskName.isEmpty()) {\r\n\t\t\t\t// if everything is good, make a task\r\n\t\t\t\tGuiBasedApp.addTask(taskName, taskNotes, taskDate);\r\n\t\t\t\t\r\n\t\t\t\t// launch the Home Screen Scene\r\n\t\t\t\tGuiBasedApp.launchHomeScreenScene();\r\n\t\t\t}\r\n\t\t}", "public void addAssociatedPart(ActionEvent actionEvent) {\n Part selectedAssociatedPart;\n selectedAssociatedPart = (Part) partsTableView.getSelectionModel().getSelectedItem();\n associatedPartTableViewHolder.add(selectedAssociatedPart);\n\n associatedPartsTableView.setItems(associatedPartTableViewHolder);\n }", "@FXML\n void goToRequestedItems(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the requested items FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"RequestedItems.fxml\"));\n\n BorderPane requestedItems = (BorderPane) fxmlLoader.load();\n Scene requestedItemsScene = new Scene(requestedItems, Main.SMALL_WINDOW_WIDTH, Main.SMALL_WINDOW_HEIGHT);\n Stage requestedItemsStage = new Stage();\n\n requestedItemsStage.setScene(requestedItemsScene);\n requestedItemsStage.setTitle(Main.REQUESTED_ITEMS_WINDOW_TITLE);\n requestedItemsStage.initModality(Modality.APPLICATION_MODAL);\n // Show the requested items scene and wait for it to be closed\n requestedItemsStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n }", "public void addPart(int number, GUI_Part p) {\r\n \t\tstands[number].kit.addPart(p);\r\n \t}", "@Override\n public void addParticipantAction() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"addParticipantAction\");\n }\n clearAddPanels();\n\n renderAddPanel = true;\n selectedConnectathonParticipant = new ConnectathonParticipant();\n ConnectathonParticipantStatus cps = new ConnectathonParticipantStatus();\n selectedConnectathonParticipant.setConnectathonParticipantStatus(cps);\n\n if (!Role.isLoggedUserAdmin() && !Role.isLoggedUserProjectManager() && !Role.isLoggedUserMonitor()) {\n selectedConnectathonParticipant.setInstitution(Institution.getLoggedInInstitution());\n }\n selectedConnectathonParticipant.setTestingSession(TestingSession.getSelectedTestingSession());\n\n }", "@FXML\n\tprivate String attachButtonPressed(MouseEvent event) throws InterruptedException, IOException {\n\t\tFileChooser fileChooser = new FileChooser();\n\t\tfileChooser.setTitle(\"Open Attachment\");\n\t\tFile file = fileChooser.showOpenDialog(stage);\n\t\tif (file != null) {\n\t\t\tString path = file.toString().substring(file.toString().lastIndexOf(\"/\") + 1);\n\t\t\tthis.append(client.username + \" would like to share '\" + path + \"' with you!\", client.username);\n\t\t\tSystem.out.println(file);\n\t\t\tclient.uploadFile(file);\n\t\t}\n\t\treturn null;\n\t}", "public void setNewScene() {\n switch (game.getCurrentRoomId()) {\n case 14:\n WizardOfTreldan.setFinishScene();\n break;\n\n }\n }", "@Override\r\n\tpublic void launch(IEditorPart arg0, String arg1) {\n\r\n\t}", "@FXML\n\t private void loadaddmember(ActionEvent event) throws IOException {\n\t \tloadwindow(\"views/addmember.fxml\", \"Add new Member\");\n\t }", "public void goToMainMenuReservations() throws IOException {\n ApplicationDisplay.changeScene(\"/MainMenuReservations.fxml\");\n }", "@FXML\r\n public void onActionToModifyProductScreen(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n\r\n //Get product information from the Product Controller in order to populate the modify screen text fields\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyProduct.fxml\"));\r\n loader.load();\r\n\r\n ProductController proController = loader.getController();\r\n\r\n if (productsTableView.getSelectionModel().getSelectedItem() != null) {\r\n proController.sendProduct(productsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify In-house Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to modify.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (IllegalStateException e) {\r\n //ignore\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "@FXML\n\tvoid addreBTNE(MouseEvent event) throws IOException {\n\t\tMainAllControllers.setWindowVar(\"UserAddRequest\");\n\t\tMainAllControllers.changeWin();\n\n\t}", "public void ajouter(){\n Main.showPages(\"pageAjoutMateriel.fxml\");\n\n }", "@FXML\n private void add() {\n\n var firstName = firstNameTextField.getText();\n var lastName = lastNameTextField.getText();\n\n // validate params\n if (firstName.isBlank() ||\n lastName.isBlank()) {\n alertDialog.show(\"All Fields are Required!\");\n return;\n }\n\n loadingImageView.setVisible(true); // show the loading animation\n\n // make an http request to add new author\n AuthorRequest\n .getInstance()\n .add(firstName, lastName)\n .thenAcceptAsync(success -> Platform.runLater(() -> {\n loadingImageView.setVisible(false);\n String message;\n if (success) {\n message = \"Successful!\";\n // clear all form fields\n firstNameTextField.clear();\n lastNameTextField.clear();\n } else message = \"Something went wrong!\";\n alertDialog.show(message); // show response\n }));\n\n }", "public void sceneManage(String address, ActionEvent event) throws IOException {\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(address));\n stage.setScene(new Scene(scene));\n stage.show();\n }", "public void sceneManage(String address, ActionEvent event) throws IOException {\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(address));\n stage.setScene(new Scene(scene));\n stage.show();\n }", "protected void submitAction() {\n\t\ttry {\n\t\t\tString username = userField.getText();\n\t\t\tAbstractAgent loggedClient = parent.getAgent().login(username, new String(passField.getPassword()));\n\t\t\tif (loggedClient instanceof AdminMS) {\n\t\t\t\tAdminUI adminUI = new AdminUI((AdminMS) loggedClient);\n\t\t\t\tparent.setVisible(false);\n\t\t\t\tadminUI.run();\n\t\t\t} else if (loggedClient instanceof IUser) {\n\t\t\t\tUserUI userUI = new UserUI((IUser) loggedClient);\n\t\t\t\tparent.setVisible(false);\n\t\t\t\tuserUI.run();\n\t\t\t}\n\t\t\tif (loggedClient != null)\n\t\t\t\tparent.dispose();\n\t\t} catch (LoginException e) {\n\t\t\tmessageLabel.setText(e.getMessage());\n\t\t} catch (RemoteException e) {\n\t\t\tJOptionPane.showMessageDialog(parent, e);\n\t\t}\n\t}", "@Override\n public void onClick(View arg0) {\n ((CreateDocketActivityPart2) activity).openPopUpForSpareParts(position);\n }", "@FXML\r\n void ClickDMIcon(MouseEvent event) throws IOException {\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"DirectMessages.fxml\"));\r\n //Load messages page\r\n loader.load();\r\n DMController controller = loader.getController();\r\n controller.setUser(user);\r\n //Set user and recipient data\r\n controller.setRecipientName(\"JohnConWon\");\r\n Parent root = loader.getRoot();\r\n Scene scene = new Scene(root);\r\n Stage stage = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "@FXML\n void OnActionAddAppointment(ActionEvent event) throws IOException {\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/View/AddAppointment.fxml\"));\n stage.setTitle(\"Add Appointment\");\n stage.setScene(new Scene(scene));\n stage.show();\n }", "@FXML\n void addPartBtnClicked(ActionEvent event) {\n if(partList.getSelectionModel().isEmpty()) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"No part selected\");\n }\n // Otherwise, the system begins to create an object for the part, which will have its stock adjusted, and the\n // junction table between parts and jobs. The system adds both IDs to the junction object before attempting to\n // get the stock level inputted.\n else {\n Part part = partHashMap.get(partList.getSelectionModel().getSelectedItem().getText());\n PartJob partJob = new PartJob();\n PartJobDAO partJobDAO = new PartJobDAO();\n PartDAO partDAO = new PartDAO();\n partJob.setJobID(jobReference.getJob().getJobID());\n partJob.setPartID(part.getPartID());\n try {\n // The system checks to see if the stock specified by the user is not equal to a value below 1 or\n // above the current stock so that it can actually be used by the system. If it cannot, the system will produce\n // an alert stating this.\n if (Integer.parseInt(stockUsedField.getText()) < 1 || part.getStockLevel() < Integer.parseInt(stockUsedField.getText())) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"Stock out of bounds\");\n }\n // Otherwise, the system sets the stock to the inputted value and begins to check if the part is currently tied to\n // the job. If it is, a boolean value will be marked as true and, instead of adding a new part, simply adjusts the\n // stock taken for the current entry for the junction table as well as the current stock of the part, unless the\n // stock adjustment would cause the part stock to go below zero, in which case the system produces another alert\n // stating this.\n else {\n partJob.setStockUsed(stockUsedField.getText());\n boolean isPartInJob = false;\n int stockDifference = 0;\n for (PartJob pj : partJobDAO.getAll()) {\n if (pj.getPartID().equals(partJob.getPartID()) && pj.getJobID() == partJob.getJobID()) {\n isPartInJob = true;\n stockDifference = Integer.parseInt(pj.getStockUsed()) + Integer.parseInt(partJob.getStockUsed());\n }\n }\n if (stockDifference > part.getStockLevel()) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"Stock out of bounds\");\n }\n else {\n if (isPartInJob) {\n partJobDAO.update(partJob);\n part.setStockLevel(part.getStockLevel() - stockDifference);\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Success\", \"Stock used updated\");\n }\n // If the part is not currently tied to the job, it creates a new entry within the junction table for\n // parts and jobs and then adjusts the stock accordingly, before producing an alert stating that the\n // part was successfully added.\n else {\n partJobDAO.save(partJob);\n part.setStockLevel(part.getStockLevel() - Integer.parseInt(stockUsedField.getText()));\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Success\", \"Added part to job\");\n }\n partDAO.update(part);\n\n // If this action causes the stock level to go below the stock threshold, a notification alerting the\n // user of this will be generated.\n if(part.getStockLevel() <= part.getThresholdLevel()) {\n SystemNotification notification = new SystemNotification(addPartToJobStackPane);\n notification.setNotificationMessage(\"The number of parts has fallen below the threshold, \" +\n \"please order more as soon as possible\");\n notification.showNotification(NavigationModel.UPDATE_STOCK_ID, DBLogic.getDBInstance().getUsername());\n }\n\n //After this is all done, the list of parts is cleared alongside the hashmap, and the list is refreshed.\n partList.getSelectionModel().select(null);\n partList.getItems().clear();\n partHashMap.clear();\n refreshList();\n }\n }\n }\n // If the value for stock is not an integer value, the system will produce an alert stating this.\n catch(Exception e) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"Invalid stock given\");\n }\n }\n }", "@FXML\r\n private void addPane(ActionEvent e) throws IOException {\r\n\r\n eventDialog(\"New\");\r\n eventLabel.setText(\"Are you want to take a new window?\");\r\n\r\n noButton.setOnAction(event -> {\r\n firstLabel.setVisible(false);\r\n lastLabel.setVisible(false);\r\n lineFirstNodeTF.setVisible(false);\r\n lineLastNodeTF.setVisible(false);\r\n setNodeButton.setVisible(false);\r\n resetNodeButton.setVisible(false);\r\n\r\n graphNodeTextArea.setEditable(true);\r\n graphNodeTextArea.setText(\"\");\r\n eventStage.close();\r\n });\r\n\r\n yesButton.setOnAction(event -> {\r\n Parent root = null;\r\n try {\r\n root = FXMLLoader.load(Objects.requireNonNull(getClass().getResource(\"GUI.fxml\")));\r\n } catch (IOException ioException) {\r\n ioException.printStackTrace();\r\n }\r\n Scene scene = new Scene(root);\r\n\r\n Stage primaryStage = new Stage();\r\n primaryStage.setScene(scene);\r\n primaryStage.setTitle(\"Object Oriented Programming Project - Team 1B\");\r\n primaryStage.show();\r\n eventStage.close();\r\n });\r\n\r\n }", "@FXML\r\n private void deletePartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n \r\n Alert message = new Alert(Alert.AlertType.CONFIRMATION);\r\n message.setTitle(\"Confirm delete\");\r\n message.setHeaderText(\" Are you sure you want to delete part ID: \" + selected.getId() + \", name: \" + selected.getName() + \"?\" );\r\n message.setContentText(\"Please confirm your selection\");\r\n \r\n Optional<ButtonType> response = message.showAndWait();\r\n if (response.get() == ButtonType.OK)\r\n {\r\n stock.deletePart(selected);\r\n partsTbl.setItems(stock.getAllParts());\r\n partsTbl.refresh();\r\n displayMessage(\"The part \" + selected.getName() + \" was successfully deleted\");\r\n }\r\n else {\r\n displayMessage(\"Deletion cancelled by user. Part not deleted.\");\r\n }\r\n }\r\n else {\r\n displayMessage(\"No part selected for deletion\");\r\n }\r\n }", "private void loadMainAdminScene(javafx.event.ActionEvent event) throws Exception {\n stageManager.switchScene(FxmlView.ADMIN);\n }", "private void showCreateNewPlayer(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/CreateNewPlayer.fxml\"));\n AnchorPane janela = (AnchorPane) loader.load();\n \n Stage createNewPlayerStage = new Stage();\n createNewPlayerStage.setTitle(\"Create new player\");\n createNewPlayerStage.initModality(Modality.WINDOW_MODAL);\n createNewPlayerStage.initOwner(primaryStage);\n Scene scene = new Scene(janela);\n createNewPlayerStage.setScene(scene);\n \n CreateNewPlayerController controller = loader.getController();\n controller.setGame(this);\n controller.setCreateNewPlayerStage(createNewPlayerStage); \n \n createNewPlayerStage.showAndWait();\n }catch(IOException e){\n }\n }", "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tOpenscreen.open(\"/admin_main/first_main.fxml\");\r\n\t\t\t}", "@FXML\n void onActionAddCustomer(ActionEvent event) throws IOException {\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(Objects.requireNonNull(getClass().getResource(\"/Views/AddCustomer.fxml\")));\n stage.setScene(new Scene(scene));\n stage.show();\n }", "public void inventoryManageItemScreen( ActionEvent event ) throws Exception{\n\t\tif(userObj.getType().equalsIgnoreCase(\"Stock Manager\"))\n\t\t{\n\t\t\t\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(getClass().getResource(\"/view/InventoryItems.fxml\"));\n\t\t\tParent parent = loader.load();\n\t\t\t\n\t\t\tScene scene = new Scene(parent);\n\t\t\tscene.getStylesheets().add(getClass().getResource(\"/view/application.css\").toExternalForm());\n\t\t\t\n\t\t\tInventoryManageItemsController controller = loader.getController();\n\t\t\tcontroller.loadUser(userObj);\n\t\t\t\n\t\t\tStage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\t\t\t\n\t\t\twindow.setScene(scene);\n\t\t\twindow.show();\n\t\t\twindow.centerOnScreen();\n\t\t\t\n\t\t}else {\n\t\t\tGenerator.getAlert(\"Access Denied\", \"You don't have access to Inventory Management\");\n\t\t}\n\t\n\t}", "@Override\r\n\tpublic void completeScene() {\n\t\t\r\n\t}", "@Override\n public void handle(ActionEvent event) \n {\n if(userRole == 1)\n {\n stage.setScene(ReporterPage(stage));\n }\n else if(userRole == 2)\n {\n stage.setScene(DeveloperPage(stage));\n }\n else if(userRole == 3)\n {\n stage.setScene(ReviewerPage(stage));\n }\n else if(userRole == 4)\n {\n stage.setScene(TriagerPage(stage));\n }\n }", "@FXML\r\n\tprivate void handleTeamScreenButton() throws IOException{\r\n\t\tAnchorPane cmdPane = (AnchorPane) FXMLLoader.load(getClass().getResource(\"/guiFXML/TeamScreenFXML.fxml\"));\r\n\t\ttry {\r\n\t\t\tanchCmdController.getChildren().clear();\r\n\t\t\tanchCmdController.getChildren().add(cmdPane);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@FXML\n final void btnNewGamePress() {\n new Thread(() -> sceneHandler.setActiveScene(GameScene.GAME_TYPE_SELECT)).start();\n }", "@Override\n\tpublic void msgFedPart() {\n\t\t\n\t}", "@FXML\r\n void upload(ActionEvent event) {\r\n \tif(p!=null){\r\n \ttry {\r\n \t\tString note = null;\r\n \t\tif(Note.getText().isEmpty()){note=(\"\");} else {note=Note.getText();}\r\n\t\t\t\tPlacementSQL.UploadNote(String.valueOf(p.getId()),note);\r\n\t\t\t\tGeneralMethods.show(\"Uploaded note for placement \"+ p.getId(), \"Upload Success\");\r\n\t \t\r\n \t} catch (Exception e) {\r\n\t\t\t\tGeneralMethods.show(\"Error in uploading note to placement\", \"Error\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t} else {\r\n \t\tGeneralMethods.show(\"No placement selected\", \"Error\");\r\n \t}\r\n }", "public void transitionToNewParticipantPage(){\n removeAll();\n newParticipantPanel = new NewParticipantPanel(contr);\n add(newParticipantPanel, \"span 1\");\n }", "@Override\n public void handle(ActionEvent event) \n {\n if(userRole == 1) {stage.setScene(ReporterPage(stage));}\n else if(userRole == 2) {stage.setScene(DeveloperPage(stage));}\n else if(userRole == 3) {stage.setScene(ReviewerPage(stage));}\n else if(userRole == 4) {stage.setScene(TriagerPage(stage));} \n }", "@FXML\n void addNewCustomer(ActionEvent event) throws IOException {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/view/AddCustomer.fxml\"));\n loader.load();\n\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n Parent scene = loader.getRoot();\n stage.setScene(new Scene(scene));\n stage.show();\n }", "public void trigger() {\n triggered = true;\n\n // Get events from the user\n stage = new Stage(new ScreenViewport());\n show();\n }", "@FXML\n public void addTeleporter() {\n if (!World.getInstance().worldContainsTeleporterIn()) {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingTeleporterIn(0, 0));\n }\n if (!World.getInstance().worldContainsTeleporterOut()) {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingTeleporterOut(0, 0));\n \t\n }\n\n }", "@FXML\r\n void onActionAddAppointment(ActionEvent event) throws IOException {\r\n\r\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/view/AddAppointment.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n\r\n }" ]
[ "0.70769626", "0.69102424", "0.6746995", "0.67336804", "0.6387644", "0.6260183", "0.62268835", "0.61722267", "0.6160601", "0.6143604", "0.6102413", "0.6101739", "0.6087403", "0.60649014", "0.5954509", "0.5923543", "0.5904717", "0.5851754", "0.5827284", "0.5749729", "0.5700423", "0.56893307", "0.5664654", "0.5661801", "0.56616926", "0.56379056", "0.56335694", "0.5611094", "0.5588857", "0.55869025", "0.5572482", "0.5551465", "0.55509794", "0.55492395", "0.55426776", "0.55382055", "0.55300885", "0.55235416", "0.55155355", "0.54981625", "0.54950637", "0.54760766", "0.5475682", "0.5469985", "0.5465026", "0.54639363", "0.54598457", "0.5444362", "0.5437856", "0.54355323", "0.5432031", "0.54176474", "0.54033184", "0.54025507", "0.53852683", "0.537531", "0.5370103", "0.5352267", "0.5349153", "0.5336603", "0.53306794", "0.53299206", "0.5329183", "0.5322176", "0.53210664", "0.5318732", "0.53128374", "0.5305176", "0.530467", "0.5299947", "0.5299723", "0.52959883", "0.52919215", "0.5288844", "0.5282266", "0.5282266", "0.52815205", "0.52773845", "0.526852", "0.52665365", "0.5266311", "0.52648544", "0.5263522", "0.52563214", "0.52558917", "0.5255878", "0.5242375", "0.52367103", "0.52354765", "0.5234932", "0.5229713", "0.5222083", "0.5217453", "0.52167296", "0.5213858", "0.52109915", "0.5209075", "0.5195315", "0.5193009", "0.5192959" ]
0.7292152
0
Sends the user to the ModifyPartScene. Makes sure a Part is focused, otherwise an alert is issued and the user stays on the main scene.
public void goToModifyPartScene(ActionEvent event) throws IOException { if(partTableView.getSelectionModel().isEmpty()) { alert.setAlertType(Alert.AlertType.ERROR); alert.setContentText("Please make sure you've added a Part and selected the Part you want to modify."); alert.show(); } else { int i = partTableView.getSelectionModel().getFocusedIndex(); setFocusedIndex(i); Parent addPartParent = FXMLLoader.load(getClass().getResource("ModifyPart.fxml")); Scene modifyPartScene = new Scene(addPartParent); Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow(); window.setScene(modifyPartScene); window.show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleModifyParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartController partController = fxmlLoader.getController();\n\n if (getPartToModify() != null)\n {\n partController.setModifyParts(true);\n partController.setPartToModify(getPartToModify());\n partController.setInventory(inventory);\n partController.setHomeController(this);\n\n // Spin up part form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Parts\");\n stage.setScene(new Scene(root));\n stage.show();\n\n }\n else {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No part was selected!\");\n alert.setContentText(\"Please select a part to modify from the part table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\r\n private void modifyPartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n partToMod = selected.getId();\r\n generateScreen(\"AddModifyPartScreen.fxml\", \"Modify Part\");\r\n }\r\n else {\r\n displayMessage(\"No part selected for modification\");\r\n }\r\n \r\n }", "@FXML\r\n public void onActionModifyScreen(ActionEvent actionEvent) throws IOException {\r\n\r\n //Receive Part object information from the PartController in order to populate the Modify Parts text fields\r\n try {\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyPartInhouse.fxml\"));\r\n loader.load();\r\n\r\n PartController pController = loader.getController();\r\n\r\n /*If the Part object received from the Part Controller is an In-house Part, user is taken to the modify\r\n in-house part screen */\r\n if (partsTableView.getSelectionModel().getSelectedItem() != null) {\r\n if (partsTableView.getSelectionModel().getSelectedItem() instanceof InhousePart) {\r\n pController.sendPart((InhousePart) partsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify In-house Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n\r\n //If the Part object is an outsourced Part, the user is taken to the modify outsourced part screen\r\n else {\r\n\r\n loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyPartOutsourced.fxml\"));\r\n loader.load();\r\n\r\n pController = loader.getController();\r\n\r\n pController.sendPartOut((OutsourcedPart) partsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify Outsourced Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to modify.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (IllegalStateException e) {\r\n //Ignore\r\n }\r\n catch (NullPointerException n) {\r\n //Ignore\r\n }\r\n }", "@FXML\r\n void onActionModifyPart(ActionEvent event) throws IOException {\r\n \r\n try {\r\n int id = currPart.getId();\r\n String name = partNameTxt.getText();\r\n int stock = Integer.parseInt(partInvTxt.getText());\r\n double price = Double.parseDouble(partPriceTxt.getText());\r\n int max = Integer.parseInt(maxInvTxt.getText());\r\n int min = Integer.parseInt(minInvTxt.getText());\r\n int machineId;\r\n String companyName;\r\n boolean partAdded = false;\r\n \r\n if (name.isEmpty()) {\r\n //RUNTIME ERROR: Name empty exception\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Name cannot be empty.\");\r\n errorTxtLabel.setVisible(true);\r\n } else {\r\n if (minVerify(min, max) && inventoryVerify(min, max, stock)) {\r\n \r\n if(inHouseRBtn.isSelected()) {\r\n try {\r\n machineId = Integer.parseInt(partIDTxt.getText());\r\n InHousePart newInHousePart = new InHousePart(id, name, price, stock, min, max, machineId);\r\n newInHousePart.setId(currPart.getId());\r\n Inventory.addPart(newInHousePart);\r\n partAdded = true;\r\n } catch (Exception e) {\r\n //LOGICAL ERROR: Invalid machine ID error\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Invalid machine ID.\");\r\n errorTxtLabel.setVisible(true);\r\n }\r\n } \r\n if (outsourcedRBtn.isSelected()) {\r\n companyName = partIDTxt.getText();\r\n OutsourcedPart newOutsourcedPart = new OutsourcedPart(id, name, price, stock, min, max, companyName);\r\n newOutsourcedPart.setId(currPart.getId());\r\n Inventory.addPart(newOutsourcedPart);\r\n partAdded = true;\r\n }\r\n if (partAdded){\r\n errorLabel.setVisible(false); \r\n errorTxtLabel.setVisible(false);\r\n Inventory.deletePart(currPart);\r\n //Confirm modify\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Modify Part\");\r\n alert.setContentText(\"Save changes and return to main menu?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n stage = (Stage) ((Button)event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/View/Main.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }\r\n }\r\n }\r\n }\r\n } catch(Exception e) {\r\n //RUNTIME ERROR: Blank fields exception\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Form contains blank fields or errors.\");\r\n errorTxtLabel.setVisible(true);\r\n }\r\n\r\n }", "public void handleAddParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartController partController = fxmlLoader.getController();\n partController.setModifyParts(false);\n partController.setInventory(inventory);\n partController.setHomeController(this);\n\n // Spin up part form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Parts\");\n stage.setScene(new Scene(root));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void setActivePart(IAction action, IWorkbenchPart targetPart) {}", "@Override\r\n\tpublic void setActivePart(IAction action, IWorkbenchPart targetPart) {\r\n\t\twindow = targetPart.getSite().getWorkbenchWindow();\r\n\t}", "public void setActivePart(IAction action, IWorkbenchPart targetPart) {}", "@Override\n public synchronized void partBroughtToTop(IWorkbenchPart part) {\n partActivated(part);\n }", "@FXML\n void cancelModifiedParts(MouseEvent event) {\n Alert alert = new Alert(AlertType.CONFIRMATION);\n alert.setTitle(\"\");\n alert.setHeaderText(\"Cancel modify part\");\n alert.setContentText(\"Are you sure you want to cancel?\");\n\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK) {\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/View/FXMLmain.fxml\"));\n View.MainScreenController controller = new MainScreenController(inventory);\n\n loader.setController(controller);\n Parent root = loader.load();\n Scene scene = new Scene(root);\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n stage.setScene(scene);\n stage.setResizable(false);\n stage.show();\n } catch (IOException e) {\n\n }\n } else {\n return;\n }\n\n }", "public void goToModifyProductScene(ActionEvent event) throws IOException {\n\n if(productTableView.getSelectionModel().isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please make sure you've added a Product and selected the Product you want to modify.\");\n alert.show();\n } else {\n int i = productTableView.getSelectionModel().getFocusedIndex();\n setFocusedIndex(i);\n Parent addProductParent = FXMLLoader.load(getClass().getResource(\"ModifyProduct.fxml\"));\n Scene modifyProductScene = new Scene(addProductParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(modifyProductScene);\n window.show();\n }\n\n\n }", "@FXML void onActionSavePart(ActionEvent event) throws IOException{\n if(partIsValid()){\r\n int id = Inventory.incrementPartID();\r\n String name = partName.getText();\r\n int inventory = Integer.parseInt(partInv.getText());\r\n Double price = Double.parseDouble(partPrice.getText());\r\n int max = Integer.parseInt(partMax.getText());\r\n int min = Integer.parseInt(partMin.getText());\r\n String companyName = companyNameField.getText();\r\n \r\n \r\n if(this.partToggleGroup.getSelectedToggle().equals(this.inHouseRadioButton)){\r\n int machineID = Integer.parseInt(companyNameField.getText());\r\n Inventory.addPart(new InHouse(id, name, price, inventory, min, max, machineID)); \r\n } else {\r\n Inventory.addPart(new Outsourced(id, name, price, inventory, min, max, companyName));\r\n }\r\n \r\n // Clearing the partIDCount variable\r\n Inventory.clearAmountOfParts();\r\n \r\n // Now we want to be able to go back to the main menu\r\n Parent AddPartViewParent = FXMLLoader.load(getClass().getResource(\"FXMLDocument.fxml\"));\r\n Scene AddPartScene = new Scene(AddPartViewParent);\r\n\r\n // Now we need to get the Stage information\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(AddPartScene);\r\n window.show();\r\n }\r\n }", "public void setFocus() {\r\n\t\tIFormPart part = _parts.get(0);\r\n\t\tif ( part != null ) part.setFocus();\r\n\t}", "public void partActivated(IWorkbenchPart part) {\n if (part instanceof ReviewEditorView) {\n log.debug(\"part is activate.\");\n int type = ReviewEvent.TYPE_ACTIVATE;\n int kind = ReviewEvent.KIND_EDITOR;\n ReviewPlugin.getInstance().notifyListeners(type, kind);\n }\n }", "public void trigger() {\n triggered = true;\n\n // Get events from the user\n stage = new Stage(new ScreenViewport());\n show();\n }", "public void partOpened(IWorkbenchPartReference partRef) {\n partVisible(partRef);\n }", "@FXML\n private void addNewPartType(ActionEvent event) {\n String name = nameText.getText();\n name = name.trim();\n if(name.equals(\"\")){\n showAlert(\"No Name\", \"This part type has no name, please input a name\");\n return;\n }\n \n String costText = this.costText.getText();\n costText = costText.trim();\n if(costText.equals(\"\")){\n showAlert(\"No Cost\", \"This part type has no cost, please input a cost.\");\n return;\n }\n \n String quantityText = this.quantityText.getText();\n quantityText = quantityText.trim();\n if(quantityText.equals(\"\")){\n showAlert(\"No Quantity\", \"This part type has no quantity, please input a quantity.\");\n return;\n }\n \n String description = descriptionText.getText();\n description = description.trim();\n if(description.equals(\"\")){\n showAlert(\"No Description\", \"This part type has no decription, please input a description.\");\n return;\n }\n \n double cost = Double.parseDouble(costText);\n int quantity = Integer.parseInt(quantityText);\n boolean success = partInventory.addNewPartTypeToInventory(name, \n description, cost, quantity);\n if(success){\n showAlert(\"Part Type Sucessfully Added\", \"The new part type was sucessfully added\");\n }else{\n showAlert(\"Part Type Already Exists\", \"This part already exists. If you would like to add stock, please select \\\"Add Stock\\\" on the righthand side of the screen.\\n\" \n + \"If you would like to edit this part, please double click it in the table.\");\n }\n // gets the popup window and closes it once part added\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n stage.close();\n }", "@FXML\r\n public void onActionToModifyProductScreen(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n\r\n //Get product information from the Product Controller in order to populate the modify screen text fields\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyProduct.fxml\"));\r\n loader.load();\r\n\r\n ProductController proController = loader.getController();\r\n\r\n if (productsTableView.getSelectionModel().getSelectedItem() != null) {\r\n proController.sendProduct(productsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify In-house Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to modify.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (IllegalStateException e) {\r\n //ignore\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "public void partActivated(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "void setData(Part selectedPart) {\n\n this.selectedPart = selectedPart;\n partIDTextField.setText(String.valueOf(selectedPart.getPartsID())); // Setting value of part id to the Modify window\n partNameTextField.setText(\"\" + selectedPart.getPartsName()); // Setting value of part name to the Modify window\n partLnvField.setText(\"\" + selectedPart.getPartsLevel()); // Setting value of part lnv to the Modify window\n partPriceField.setText(\"\" + selectedPart.getPartsCost()); // Setting value of part price to the Modify window\n editData = true; // Setting value of editData boolean flas to true for the Modify window to activate\n partMaxField.setText(\"\" + selectedPart.getPartMax());\n partMinField.setText(\"\" + selectedPart.getPartMin());\n if (selectedPart.inHouse) {\n inHouseButtonAction(null);\n partMachineIDField.setText(\"\" + selectedPart.getCompanyNameOrMachineID()); // setting machineid for inhouse parts\n } else {\n outsourceButtonPress(null);\n partCompanyNameField.setText(\"\" + selectedPart.getCompanyNameOrMachineID()); // setting company name for outsourced parts\n }\n }", "public void onEditParticipant() {\n Participant participant = outputParticipants.getSelectionModel().getSelectedItem();\n\n if (participant == null) {\n AlertHelper.showError(LanguageKey.ERROR_PARTICIPANT_NULL, null);\n return;\n }\n\n ParticipantDialog participantDialog = ParticipantDialog.getNewInstance(participant);\n if (participantDialog == null) {\n // Exception already handled\n return;\n }\n Optional<Participant> result = participantDialog.showAndWait();\n if (!result.isPresent()) {\n return;\n }\n\n if (controller.editParticipant(result.get())) {\n return;\n }\n\n AlertHelper.showError(LanguageKey.ERROR_PARTICIPANT_EDIT, null);\n }", "public void goToAddPartScene(ActionEvent event) throws IOException {\n Parent addPartParent = FXMLLoader.load(getClass().getResource(\"AddPart.fxml\"));\n Scene addPartScene = new Scene(addPartParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(addPartScene);\n window.show();\n }", "@FXML\r\n public void onActionAddPartScreen(ActionEvent actionEvent) throws IOException {\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/addPartInhouse.fxml\"));\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 800, 470);\r\n stage.setTitle(\"Add In-house Part\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "public void partInputChanged(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "public void partOpened(IWorkbenchPart part) {\n if (part instanceof ReviewEditorView) {\n log.debug(\"part is opened.\");\n }\n }", "public void start(){\n this.speakerMessageScreen.printScreenName();\n mainPart();\n }", "public void partVisible(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "public void deletePart()\n {\n ObservableList<Part> partRowSelected;\n partRowSelected = partTableView.getSelectionModel().getSelectedItems();\n if(partRowSelected.isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please select the Part you want to delete.\");\n alert.show();\n } else {\n int index = partTableView.getSelectionModel().getFocusedIndex();\n Part part = Inventory.getAllParts().get(index);\n alert.setAlertType(Alert.AlertType.CONFIRMATION);\n alert.setContentText(\"Are you sure you want to delete this Part?\");\n alert.showAndWait();\n ButtonType result = alert.getResult();\n if (result == ButtonType.OK) {\n Inventory.deletePart(part);\n }\n }\n }", "public void focus() {}", "public void firePartVisible(final IWorkbenchPartReference ref) {\n Object[] array = getListeners();\n for (int i = 0; i < array.length; i++) {\n final IPartListener2 l;\n if (array[i] instanceof IPartListener2) {\n l = (IPartListener2) array[i];\n } else {\n continue;\n }\n fireEvent(new SafeRunnable() {\n\n @Override\n public void run() {\n l.partVisible(ref);\n }\n }, l, ref, //$NON-NLS-1$\n \"visible::\");\n }\n }", "@FXML\r\n private void addPartAction() throws IOException {\r\n \r\n generateScreen(\"AddModifyPartScreen.fxml\",\"Add Part\");\r\n updatePartsTable(stock.getAllParts());\r\n \r\n }", "void focus();", "void focus();", "public void goToRoomConfirmation() throws IOException {\n ApplicationDisplay.changeScene(\"/RoomConfirmation.fxml\");\n }", "@FXML\n void saveModifiedParts(MouseEvent event) {\n if (nameTxt.getText().isEmpty()) {\n errorWindow(2);\n return;\n }\n if (invTxt.getText().isEmpty()) {\n errorWindow(10);\n return;\n }\n if (maxTxt.getText().isEmpty()) {\n errorWindow(4);\n return;\n }\n if (minTxt.getText().isEmpty()) {\n errorWindow(5);\n return;\n }\n if (costTxt.getText().isEmpty()) {\n errorWindow(3);\n return;\n }\n if (companyNameTxt.getText().isEmpty()) {\n errorWindow(9);\n return;\n }\n // trying to parce the entered values into an int or double for price\n try {\n min = Integer.parseInt(minTxt.getText());\n max = Integer.parseInt(maxTxt.getText());\n inv = Integer.parseInt(invTxt.getText());\n id = Integer.parseInt(idTxt.getText());\n price = Double.parseDouble(costTxt.getText());\n } catch (NumberFormatException e) {\n errorWindow(11);\n return;\n }\n if (min >= max) {\n errorWindow(6);\n return;\n }\n if (inv < min || inv > max) {\n errorWindow(7);\n return;\n }\n if (min < 0) {\n errorWindow(12);\n }\n // if the in-house radio is selected \n if (inHouseRbtn.isSelected()) {\n try {\n machID = Integer.parseInt(companyNameTxt.getText());\n } catch (NumberFormatException e) {\n errorWindow(11);\n return;\n }\n\n Part l = new InHouse(id, nameTxt.getText(), price, inv, min, max, machID);\n inventory.updatePart(l);\n\n }// if out sourced radio button is selected \n if (outSourcedRbtn.isSelected()) {\n Part t = new OutSourced(id, nameTxt.getText(), price, inv, min, max, companyNameTxt.getText());\n inventory.updatePart(t);\n }\n // going back to main screen once part is added\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/View/FXMLmain.fxml\"));\n View.MainScreenController controller = new MainScreenController(inventory);\n\n loader.setController(controller);\n Parent root = loader.load();\n Scene scene = new Scene(root);\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n stage.setScene(scene);\n stage.setResizable(false);\n stage.show();\n } catch (IOException e) {\n\n }\n\n }", "@FXML\n void OnActionSave(ActionEvent event) throws IOException {\n int partId = Integer.parseInt(ModPartIDField.getText());\n String name = ModPartNameField.getText();\n int stock = Integer.parseInt(ModPartInventoryField.getText()); //wrapper to convert string to int\n double price = Double.parseDouble(ModPartPriceField.getText());\n int max = Integer.parseInt(ModPartMaxField.getText());\n int min = Integer.parseInt(ModPartMinField.getText());\n\n //create new part from modified fields\n try {\n if (inHouseRadBtn.isSelected()) { //assigns value based on which radio button is selected\n //labelPartSource.setText(\"Machine ID\");\n int machineID = Integer.parseInt(partSourceField.getText());\n InHouse modifiedPart = new InHouse(partId, name, price, stock, max, min, machineID);\n isValid();\n Inventory.addPart(modifiedPart);\n } else if(OutsourcedRadBtn.isSelected()){\n //labelPartSource.setText(\"Company Name\");\n String companyName = partSourceField.getText();\n Outsourced modifiedPart = new Outsourced(partId, name, price, stock, max, min, companyName);\n isValid();\n Inventory.addPart(modifiedPart);\n }\n //remove former part when replaced with modified part\n Inventory.allParts.remove(part);\n //onActionSave should return to MainScreen\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/view/MainScreen.fxml\"));\n stage.setTitle(\"Inventory Management System\");\n stage.setScene(new Scene(scene));\n stage.show();\n\n }\n //in case inventory does not fall in between min and max\n catch (NumberFormatException e) {\n Alert alert = new Alert(Alert.AlertType.WARNING, \"Please enter a valid value for each text field.\");\n alert.showAndWait();\n }\n\n }", "@Override\r\n\tpublic void launch(IEditorPart arg0, String arg1) {\n\r\n\t}", "@Override\r\n\t\t\tpublic void partActivated(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "public void handleModifyProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n if (getProductToModify() != null)\n {\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(true);\n productController.setProductToModify(getProductToModify());\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Products\");\n stage.setScene(new Scene(root));\n stage.show();\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to modify from the product table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\n private void editSelected() {\n if (selectedAccount == null) {\n // Warn user if no account was selected.\n noAccountSelectedAlert(\"Edit DonorReceiver\");\n } else {\n EditPaneController.setAccount(selectedAccount);\n PageNav.loadNewPage(PageNav.EDIT);\n }\n }", "public void mainPart(){\n this.speakerMessageScreen.prompt();\n String choice = this.scanner.nextLine();\n switch (choice) {\n case \"0\":\n this.programController.goToPreviousScreenController();\n break;\n case \"1\":\n this.reply();\n this.mainPart();\n return;\n case \"2\":\n this.broadCast();\n this.mainPart();\n return;\n case \"3\":\n this.programController.setNewScreenController(new InboxScreenController(programController));\n break;\n default:\n this.speakerMessageScreen.invalidInput(choice);\n this.mainPart();\n return;\n }\n this.end();\n }", "public void partBroughtToTop(IWorkbenchPart part) {\n if (part instanceof ReviewEditorView) {\n log.debug(\"part is brought to top.\");\n }\n }", "public void partBroughtToTop(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t\tinput_from_user.requestFocusInWindow(); //gets focus back on the field\n\t\t\t\t}\n\t\t\t}", "public void partActivated(IWorkbenchPartReference ref) {\n\t\t\t\t\t}", "public void Focus() {\n }", "public void displayMission(MainDesktopPane desktop) {\n\t\tList<?> selection = getSelection();\n\t\tif (selection.size() > 0) {\n\t\t\tObject selected = selection.get(0);\n\t\t\tif (selected instanceof Mission) {\n\t\t\t\t((MissionWindow) desktop.getToolWindow(MissionWindow.NAME)).selectMission((Mission) selected);\n\t\t\t\tdesktop.openToolWindow(MissionWindow.NAME);\n\t\t\t}\n\t\t}\n\t}", "public interface IPartInteractable extends IPart {\n\n /**\n * Called when the part is right-clicked. Return true if an action occoured, false if nothing happened.\n */\n public boolean onActivated(EntityPlayer player, QRayTraceResult hit, ItemStack item);\n\n /**\n * Called when the part is left-clicked.\n */\n public void onClicked(EntityPlayer player, QRayTraceResult hit, ItemStack item);\n\n}", "@FXML\r\n void onActionDisplayMainScreen(ActionEvent event) throws IOException {\r\n\r\n //EXCEPTION SET 2 REQUIREMENT\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Confirmation Dialog\");\r\n alert.setHeaderText(\"Changes not Saved\");\r\n alert.setContentText(\"Would you like to continue?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK){\r\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"MainScreen.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }\r\n }", "@FXML\r\n public void onActionDeletePart(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete the selected item?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n\r\n if(partsTableView.getSelectionModel().getSelectedItem() != null) {\r\n Inventory.deletePart(partsTableView.getSelectionModel().getSelectedItem());\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/mainScreen.fxml\"));\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 1062, 498);\r\n stage.setTitle(\"Main Screen\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to delete.\");\r\n alert2.showAndWait();\r\n }\r\n }\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmsgsnd(\"start\");\r\n\t\t\t\ttoppanel.setVisible(true);\r\n\t\t\t\tbottompanel.setVisible(true);\r\n\t\t\t\tanswer.requestFocus();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void partVisible(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "@FXML\n void addPartBtnClicked(ActionEvent event) {\n if(partList.getSelectionModel().isEmpty()) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"No part selected\");\n }\n // Otherwise, the system begins to create an object for the part, which will have its stock adjusted, and the\n // junction table between parts and jobs. The system adds both IDs to the junction object before attempting to\n // get the stock level inputted.\n else {\n Part part = partHashMap.get(partList.getSelectionModel().getSelectedItem().getText());\n PartJob partJob = new PartJob();\n PartJobDAO partJobDAO = new PartJobDAO();\n PartDAO partDAO = new PartDAO();\n partJob.setJobID(jobReference.getJob().getJobID());\n partJob.setPartID(part.getPartID());\n try {\n // The system checks to see if the stock specified by the user is not equal to a value below 1 or\n // above the current stock so that it can actually be used by the system. If it cannot, the system will produce\n // an alert stating this.\n if (Integer.parseInt(stockUsedField.getText()) < 1 || part.getStockLevel() < Integer.parseInt(stockUsedField.getText())) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"Stock out of bounds\");\n }\n // Otherwise, the system sets the stock to the inputted value and begins to check if the part is currently tied to\n // the job. If it is, a boolean value will be marked as true and, instead of adding a new part, simply adjusts the\n // stock taken for the current entry for the junction table as well as the current stock of the part, unless the\n // stock adjustment would cause the part stock to go below zero, in which case the system produces another alert\n // stating this.\n else {\n partJob.setStockUsed(stockUsedField.getText());\n boolean isPartInJob = false;\n int stockDifference = 0;\n for (PartJob pj : partJobDAO.getAll()) {\n if (pj.getPartID().equals(partJob.getPartID()) && pj.getJobID() == partJob.getJobID()) {\n isPartInJob = true;\n stockDifference = Integer.parseInt(pj.getStockUsed()) + Integer.parseInt(partJob.getStockUsed());\n }\n }\n if (stockDifference > part.getStockLevel()) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"Stock out of bounds\");\n }\n else {\n if (isPartInJob) {\n partJobDAO.update(partJob);\n part.setStockLevel(part.getStockLevel() - stockDifference);\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Success\", \"Stock used updated\");\n }\n // If the part is not currently tied to the job, it creates a new entry within the junction table for\n // parts and jobs and then adjusts the stock accordingly, before producing an alert stating that the\n // part was successfully added.\n else {\n partJobDAO.save(partJob);\n part.setStockLevel(part.getStockLevel() - Integer.parseInt(stockUsedField.getText()));\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Success\", \"Added part to job\");\n }\n partDAO.update(part);\n\n // If this action causes the stock level to go below the stock threshold, a notification alerting the\n // user of this will be generated.\n if(part.getStockLevel() <= part.getThresholdLevel()) {\n SystemNotification notification = new SystemNotification(addPartToJobStackPane);\n notification.setNotificationMessage(\"The number of parts has fallen below the threshold, \" +\n \"please order more as soon as possible\");\n notification.showNotification(NavigationModel.UPDATE_STOCK_ID, DBLogic.getDBInstance().getUsername());\n }\n\n //After this is all done, the list of parts is cleared alongside the hashmap, and the list is refreshed.\n partList.getSelectionModel().select(null);\n partList.getItems().clear();\n partHashMap.clear();\n refreshList();\n }\n }\n }\n // If the value for stock is not an integer value, the system will produce an alert stating this.\n catch(Exception e) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"Invalid stock given\");\n }\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n aboutpanel.setVisible(false);\n glcanvas.requestFocusInWindow();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t}\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent evt){\r\n\t\tMain client = Starter.getClient();\r\n\t\tif(!client.isInMenus() && \r\n\t\t\t\t!client.isMouselookActive() && \r\n\t\t\t\tclient.getActiveCam().equals(Main.CAM_MODE.FLY) &&\r\n\t\t\t\tclient.getWorkingScenario() != null && \r\n\t\t\t\tclient.getWorkingScenario().isEditingMode()){//if mouse look == false && activeCam == CAM_MODE.FLY && !inMenues && editMode\r\n\t\t\tScenarioBuilderScreenController.selecting = true;\r\n\t\t\tCollisionResults results = new CollisionResults();\r\n\t\t\tInputManager inputManager = client.getInputManager();\r\n\t\t\tVector2f click2d = inputManager.getCursorPosition();\r\n\t\t\t\r\n\t\t\tCamera cam = client.getCamera();\r\n\t\t\tVector3f click3d = cam.getWorldCoordinates(new Vector2f(click2d.x, click2d.y), 0f).clone();\r\n\t\t\tVector3f dir = cam.getWorldCoordinates(new Vector2f(click2d.x, click2d.y), 1f).subtractLocal(click3d).normalizeLocal();\r\n\t\t\tRay ray = new Ray(click3d, dir);\r\n\t\t\t\r\n\t\t\tNode entityNode = client.getWorkingScenario().getEntityNode();\r\n\t\t\tentityNode.collideWith(ray, results);\r\n\t\t\r\n \tif(results.size() > 0){\r\n \t\tCollisionResult closest = results.getClosestCollision();\r\n \t\tString selected = closest.getGeometry().getName();\r\n \t\tScenario scenario = client.getWorkingScenario();\r\n \t\tEntity selectedEntity = scenario.getEntity(selected);//get selected entity from scene\r\n \t\tif(selectedEntity != null){\r\n \t\t\tif(!client.isCTRLDown()){\r\n \t\t\t\tscenario.selectEntity(selectedEntity);\r\n \t\t\t\tthis.selectedEntity = selectedEntity;\r\n \t\t\t}\r\n \t\t\telse{\r\n \t\t\t\tscenario.deselectEntity(selectedEntity);\r\n \t\t\t\tthis.selectedEntity = null;\r\n \t\t\t}\r\n \t\t}\r\n \t\tnotifyObservers();\r\n \t}\r\n\t\t\tScenarioBuilderScreenController.selecting = false;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void awake() {\n\t\tsuper.awake();\n\t\t/* EOEditingContext ignore = */((Application) application()).lockEC();\n\t}", "@Override\n\tpublic void msgFedPart() {\n\t\t\n\t}", "protected void succeed()\r\n {\r\n // inform user\r\n ((OwMainAppContext) getContext()).postMessage(getContext().localize(\"plug.owdocprops.OwFieldView.saved\", \"The changes have been applied.\"));\r\n }", "public void handleDeleteParts()\n {\n Part partToDelete = getPartToModify();\n\n if (partToDelete != null) {\n\n // Ask user for confirmation to remove the product from part table\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation\");\n alert.setHeaderText(\"Delete Confirmation\");\n alert.setContentText(\"Are you sure you want to delete this part?\");\n ButtonType confirm = new ButtonType(\"Yes\", ButtonBar.ButtonData.YES);\n ButtonType deny = new ButtonType(\"No\", ButtonBar.ButtonData.NO);\n ButtonType cancel = new ButtonType(\"Cancel\", ButtonBar.ButtonData.CANCEL_CLOSE);\n alert.getButtonTypes().setAll(confirm, deny, cancel);\n alert.showAndWait().ifPresent(type ->{\n if (type == confirm)\n {\n inventory.deletePart(partToDelete);\n updateParts();\n }\n });\n\n } else {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No part was selected!\");\n alert.setContentText(\"Please select a part to delete from the part table!\");\n alert.show();\n }\n // Unselect parts in table after part is deleted\n partTable.getSelectionModel().clearSelection();\n }", "protected void gainFocus(){\r\n\t\twidgetModifyFacade.changeVersatilePane(this);\r\n\t\twidgetModifyFacade.gainedFocusSignal(this);\r\n\t//\tthis.setId(\"single-image-widget-selected\");\r\n\t}", "public void setActivePart(IAction action, IWorkbenchPart targetPart) {\r\n\t\ttry{\r\n\t\t\tIEditorPart editorPart = PlatformUI.getWorkbench()\r\n\t\t\t\t.getActiveWorkbenchWindow().getActivePage()\r\n\t\t\t\t.getActiveEditor();\r\n\t\t\r\n\t\t\tif(editorPart != null){\r\n\t\t\tselectedElement = (OEPCEditPart)((IDiagramWorkbenchPart) \r\n\t\t\t\t\teditorPart).getDiagramEditPart();\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\tif(selectedElement != null){\r\n\t\t\tif(getLegend() != null){\r\n\t\t\t\taction.setChecked(true);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tselectedElement.setLegendEditPart(null);\r\n\t\t\t\taction.setChecked(false);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@FXML \r\n public void cancelButtonAction() throws IOException{\r\n Parent loader = FXMLLoader.load(getClass().getResource(\"mainScreen.fxml\"));\r\n Scene scene = new Scene(loader);\r\n Stage window = (Stage) modPartCancel.getScene().getWindow();\r\n window.setScene(scene);\r\n window.show();\r\n }", "public void performAction(Form form, SceneGraphEditor editor, Session session) throws SGPluginException {\r\n// logger.debug(\"select an object from the scene graph.\");\r\n// \r\n// Node lastNode = (Node)session.get(LAST_SELECTED_OBJECT);\r\n// \r\n// // first we have to check if the capability is set to pick objects\r\n// if (!editor.isEditable()) {\r\n// logger.debug(\"plugin not execute, scene graph not editable.\");\r\n// session.setContextDialog(\"Select object not executed, scene graph is not editable.\");\r\n// }\r\n// \r\n// int x = ((SelectObjectForm)form).getX();\r\n// int y = ((SelectObjectForm)form).getY();\r\n// \r\n// // pick closest object\r\n// PickResult pickResult = editor.getClosestIntersection(x, y);\r\n// \r\n// // double check, just to be sure.\r\n// if (pickResult != null && pickResult.getObject() != null) {\r\n// Node node = pickResult.getObject();\r\n// //Node node = pickResult.getNode(PickResult.TRANSFORM_GROUP);\r\n// // --> \r\n// \r\n//// // we change the current node's appearance.\r\n//// if (!node.equals(lastNode)) {\r\n//// Appearance app = ((Shape3D)node).getAppearance();\r\n//// PolygonAttributes pa = app.getPolygonAttributes();\r\n//// if(pa == null) {\r\n//// // be carefull, you have to set the capabilities, else the object\r\n//// // will not be pickable again.\r\n//// pa = new PolygonAttributes(PolygonAttributes.POLYGON_LINE, PolygonAttributes.CULL_BACK, 0.0f);\r\n//// pa.setCapability(PolygonAttributes.ALLOW_MODE_WRITE);\r\n//// pa.setCapability(PolygonAttributes.ALLOW_MODE_READ);\r\n//// app.setPolygonAttributes(pa);\r\n//// } else {\r\n//// pa.setPolygonMode(PolygonAttributes.POLYGON_LINE);\r\n//// }\r\n//// \r\n//// // we change the previous selected node to the previous appearance.\r\n//// if (lastNode != null) {\r\n//// app = ((Shape3D)lastNode).getAppearance();\r\n//// PolygonAttributes polyAttr = app.getPolygonAttributes();\r\n//// // Here the PolygonAttributes cannot be null because node became lastNode\r\n//// app.getPolygonAttributes().setPolygonMode(PolygonAttributes.POLYGON_FILL);\r\n//// }\r\n//// }\r\n// \r\n// // NEW: Take LAST TransformGroup when going up from the picked node to the top\r\n// TransformGroup transGrp = null;\r\n// SceneGraphPath sgp = pickResult.getSceneGraphPath();\r\n// for (int i = sgp.nodeCount() - 1; i >= 0; i--) {\r\n// Node pNode = sgp.getNode(i); \r\n// logger.debug(\"looking at node \" + pNode);\r\n//\r\n// if (pNode instanceof TransformGroup) {\r\n// transGrp = (TransformGroup)pNode;\r\n// }\r\n// }\r\n// \r\n// if (transGrp != null) {\r\n// // push object UID in stack of selected objects\r\n// SGObjectInfo info = (SGObjectInfo) transGrp.getUserData();\r\n// if(info != null) {\r\n// if(editor.peekUID() != info.getSGUID()) {\r\n// editor.pushUID(info.getSGUID()); \r\n// } \r\n// }\r\n//\r\n// \r\n// Vector3d transVec = new Vector3d();\r\n// Vector3d rotatVec = new Vector3d();\r\n// Vector3d scaleVec = new Vector3d();\r\n// \r\n// editor.calcObjInfo(transGrp, transVec, scaleVec, rotatVec);\r\n// \r\n// session.put(\"TRANS_X\", new Double(transVec.x));\r\n// session.put(\"TRANS_Y\", new Double(transVec.y));\r\n// session.put(\"TRANS_Z\", new Double(transVec.z));\r\n// \r\n// session.put(\"ROT_X\", new Double(rotatVec.x));\r\n// session.put(\"ROT_Y\", new Double(rotatVec.y));\r\n// session.put(\"ROT_Z\", new Double(rotatVec.z));\r\n// \r\n// session.put(\"SCALE_X\", new Double(scaleVec.x));\r\n// session.put(\"SCALE_Y\", new Double(scaleVec.y));\r\n// session.put(\"SCALE_Z\", new Double(scaleVec.z));\r\n// } else {\r\n// logger.debug(\"return since transformGrp was null\");\r\n// return;\r\n// }\r\n// \r\n// // we save the node in the session, so we can access it in other plugins\r\n// session.put(LAST_SELECTED_OBJECT, node);\r\n// \r\n// // better to store the pick result\r\n// session.put(PICK_RESULT, pickResult);\r\n// \r\n// // set a message for the user.\r\n// String nodeName = resources.getResource(node.getClass().getName());\r\n// session.put(PLUGIN_MESSAGE, \"pick \"+nodeName+\" at [\"+x+\", \"+y+\"]\");\r\n// \r\n// String contextMenu = ((SelectObjectForm)form).getContextMenu();\r\n// String contextPanelKey = session.getContextPanelKey();\r\n// \r\n// logger.debug(\"contextMenu: \" + contextMenu + \" contextPanelKey: \" + contextPanelKey);\r\n// \r\n// // So that after selecting a primitive, the primitveContext Menu is shown\r\n// if(contextMenu != null)\r\n// {\r\n// session.setContextPanelKey(contextMenu);\r\n// }\r\n// else if(contextPanelKey == null)\r\n// {\r\n// session.setContextPanelKey(\"primitiveContext\");\r\n// }\r\n// else if(contextPanelKey.equals(\"lightContext\"))\r\n// {\r\n// session.setContextPanelKey(\"primitiveContext\");\r\n// }\r\n//\r\n// session.setContextDialog(\"pick \" + nodeName + \" at [\" + x + \", \" + y + \"]\");\r\n// } else {\r\n// // case if we did not pick an object. if we have a previous node,\r\n// // set his previous appearance.\r\n// if (lastNode != null) {\r\n//// // we need to detach the top from the root to change the appearance\r\n//// // of the 3d object.\r\n//// Appearance app = ((Shape3D)lastNode).getAppearance();\r\n//// // Here the PolygonAttributes cannot be null because node became lastNode\r\n//// app.getPolygonAttributes().setPolygonMode(PolygonAttributes.POLYGON_FILL);\r\n// \r\n// session.remove(LAST_SELECTED_OBJECT);\r\n// }\r\n// \r\n// session.remove(\"TRANS_X\");\r\n// session.remove(\"TRANS_Y\");\r\n// session.remove(\"TRANS_Z\");\r\n// session.remove(\"ROT_X\");\r\n// session.remove(\"ROT_Y\");\r\n// session.remove(\"ROT_Z\");\r\n// session.remove(\"TRANS_X\");\r\n// session.remove(\"TRANS_Y\");\r\n// session.remove(\"TRANS_Z\");\r\n// session.setContextDialog(\"no objects to pick at [\"+x+\", \"+y+\"]\");\r\n// }\r\n }", "@FXML\n public void saveNewPart(MouseEvent event) throws IOException {\n // Min should be less than Max; and Inv should be between those two values.\n try {\n int id = Inventory.getUniqueIdPart();\n String name = newPartNameTextField.getText();\n double price = Double.parseDouble(newPartPriceTextField.getText());\n //we can also use valueOf like so\n //int invNum = Integer.valueOf(newPartInvTextField.getText());\n int totalInventory = Integer.parseInt(newPartInvTextField.getText());\n int min = Integer.parseInt(newPartMinTextField.getText());\n int max = Integer.parseInt(newPartMaxTextField.getText());\n if (min >= max) {\n AlertMessageController.minMaxError();\n } else if ((totalInventory < min) || (totalInventory > max)) {\n AlertMessageController.inventoryInBetween();\n }\n else if (name.trim().isEmpty()) {\n AlertMessageController.nullName();\n } else {\n //insert condition for radio buttons\n if (inHouseRadioButton.isSelected()) {\n //machineIdOrCompanyLabel.setText(\"Machine Id\");\n handleInhouseButton();\n int machineId = Integer.parseInt(newPartMachineIdOrCompanyNameTextField.getText());\n Part newPart = new InHouse(id, name, price, totalInventory, min, max, machineId);\n Inventory.addPart(newPart);\n System.out.println(\"it was created in machine\");\n } else if (outsourcedRadioButton.isSelected()) {\n //machineIdOrCompanyLabel.setText(\"Company Name\");\n handleOutsourcedButton();\n String companyName = newPartMachineIdOrCompanyNameTextField.getText();\n Part newPart = new Outsourced(id, name, price, totalInventory, min, max, companyName);\n Inventory.addPart(newPart);\n System.out.println(\"it was created in company name\");\n }\n Inventory.incrementUniqueIdPart();\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"../view/main_screen.fxml\"));\n stage.setScene(new Scene(scene));\n stage.show();\n\n }\n\n } catch (NumberFormatException exp) {\n //System.out.println(exp);\n AlertMessageController.errorPart();\n }\n }", "@FXML\n void goToReservedItems(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the reserved items FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"ReservedItems.fxml\"));\n\n BorderPane reservedItems = (BorderPane) fxmlLoader.load();\n Scene reservedItemsScene = new Scene(reservedItems, Main.SMALL_WINDOW_WIDTH, Main.SMALL_WINDOW_HEIGHT);\n Stage reservedItemsStage = new Stage();\n\n reservedItemsStage.setScene(reservedItemsScene);\n reservedItemsStage.setTitle(Main.RESERVED_ITEMS_WINDOW_TITLE);\n reservedItemsStage.initModality(Modality.APPLICATION_MODAL);\n // Show the reserved items scene and wait for it to be closed\n reservedItemsStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n\n }", "@FXML\n final void btnOnlineClick() {\n new Thread(() -> sceneHandler.setActiveScene(GameScene.MULTI_INTRO)).start();\n }", "public void partActivated(IWorkbenchPartReference partReference) {\r\n if (partReference.getPart(true) == tn5250jPart) {\r\n System.out.println(\"TN5250JPart: Part activated: \" + tn5250jPart.getClass().getSimpleName());\r\n HandleBindingService.getInstance().restoreKeyFilterEnablement();\r\n\r\n tabFolderSessions.addFocusListener(tabFolderSessionsFocusListener);\r\n setFocus();\r\n }\r\n }", "public void editorButtonClick() {\n timeline.pause();\n\n //Creates a new Stage and loader. Sets Modality to WINDOW_MODAL.\n editorStage = new Stage();\n editorStage.initModality(Modality.WINDOW_MODAL);\n editorStage.initOwner(canvasArea.getScene().getWindow());\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/Editor.fxml\"));\n\n //Produces a warning to the user if the board size is larger than what the editor window can draw\n if (board.getWidth() > 1200 || board.getHeight() > 1200) {\n PopUpAlerts.editorSizeAlert();\n }\n\n try {\n //Tries to load the fxml and sets editorController from that.\n Parent root = loader.load();\n editorController = loader.getController();\n\n //Finalizes any loaded patterns\n board.finalizeBoard();\n board.discardPattern();\n setFocusTraversable(true);\n\n //Re-sizes the board quadratically to fit within the editor.\n if (board.getHeight() > board.getWidth() && board instanceof DynamicBoard) {\n ((DynamicBoard) board).expandWidthRight(board.getHeight() - board.getWidth());\n } else if (board.getWidth() > board.getHeight() && board instanceof DynamicBoard) {\n ((DynamicBoard) board).expandHeightDown(board.getWidth() - board.getHeight());\n }\n\n //Assigns the current Board and GameOfLife to the editor\n editorController.setExportBoard(board);\n editorController.setGameOfLife(gOL);\n\n //Draws the initial boards on the canvases\n editorController.drawEditorBoard();\n editorController.drawStrip();\n\n editorStage.setTitle(\"GameOfLife\");\n editorStage.setScene(new Scene(root, 800, 600));\n editorStage.showAndWait();\n\n //Resets the offsets and redraws the board when the editor closes.\n canvasDrawer.resetOffset(board, canvasArea);\n draw();\n ruleLabel.setText(gOL.getRuleString().toUpperCase());\n\n } catch (IOException ioe){\n //Shows a warning should the loading of the FXML fail.\n PopUpAlerts.ioAlertFXML();\n }\n }", "@Override\r\n\tpublic void setActiveEditor(IEditorPart editor) {\n\t\tsuper.setActiveEditor(editor);\r\n\r\n\t\tif (editor instanceof DiagramEditor) {\r\n\t\t\tgetActionBars().getStatusLineManager().setMessage(\r\n\t\t\t\t\t((DiagramEditor) editor).getPartName());\r\n\t\t}\r\n\t}", "@FXML\n void partSaveButtonAction(ActionEvent event) {\n if (Integer.parseInt(partMaxField.getText()) > Integer.parseInt(partMinField.getText())) {\n if (Integer.parseInt(partLnvField.getText()) < Integer.parseInt(partMaxField.getText())) {\n String companyNameOrMachineID;\n if (inHouse) {\n companyNameOrMachineID = partMachineIDField.getText();\n } else {\n companyNameOrMachineID = partCompanyNameField.getText();\n }\n\n // If edit data flag is risen updatePart method is called upon to modify dara row\n if (editData == true) {\n documentController.updatePart(\n Integer.parseInt(partIDTextField.getText()), // Parsing String to Integer format to send as parameter \n partNameTextField.getText(),\n Integer.parseInt(partLnvField.getText()), // Parsing String to Integer format to send as parameter \n Double.parseDouble(partPriceField.getText()), // Parsing String to Double format to send as parameter \n selectedPart, // Referencing Selected part to modify data of\n Integer.parseInt(partMaxField.getText()), // Parsing max value from text field to integer\n Integer.parseInt(partMinField.getText()), // Parsing min value from text field to integer\n companyNameOrMachineID,\n inHouse,\n asProID\n );\n\n // Show data update successful dialog\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Success!\");\n alert.setHeaderText(\"Successfully Updated Part Data!\");\n alert.setContentText(null);\n alert.showAndWait();\n\n } else { // If edit data flag is not risen addNewPart method is called upon to add new dara row\n documentController.addNewPart(\n Integer.parseInt(partIDTextField.getText()), // Parsing String to Integer format to send as parameter \n partNameTextField.getText(),\n Integer.parseInt(partLnvField.getText()), // Parsing String to Integer format to send as parameter \n Double.parseDouble(partPriceField.getText()), // Parsing String to Double format to send as parameter \n Integer.parseInt(partMaxField.getText()), // Parsing max value from text field to integer\n Integer.parseInt(partMinField.getText()), // Parsing min value from text field to integer\n companyNameOrMachineID,\n inHouse,\n asProID\n );\n\n // Show succefully new part addition dialog\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Success!\");\n alert.setHeaderText(\"Successfully Added new Part!\");\n alert.setContentText(null);\n alert.showAndWait();\n }\n\n // Closing the window after the save/update has been successfully finished\n final Node source = (Node) event.getSource();\n final Stage stage = (Stage) source.getScene().getWindow();\n stage.close();\n\n } else {\n // Show succefully new part addition dialog\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error!\");\n alert.setHeaderText(\"Max value can not be lower then inventory level value!\");\n alert.setContentText(null);\n alert.showAndWait();\n }\n } else {\n // Show succefully new part addition dialog\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error!\");\n alert.setHeaderText(\"Max value can not be lower then min value!\");\n alert.setContentText(null);\n alert.showAndWait();\n }\n }", "@Override\n\t\t\t\t\tpublic void partVisible(IWorkbenchPartReference arg0) {\n\n\t\t\t\t\t}", "public void actionPerformed(ActionEvent e) {\n \t\t\t\tscreen.setScene(new CreateAccount(screen));\n \t\t\t}", "public void activateScreen() {\n\t\tString currentWindowHandle = web.driver.getWindowHandle();\r\n\r\n\t\t// run your javascript and alert code\r\n\t\t((JavascriptExecutor) web.driver).executeScript(\"alert('Test')\");\r\n\t\tweb.switchTo.alert().accept();\r\n\r\n\t\t// Switch back to to the window using the handle saved earlier\r\n\t\tweb.switchTo.window(currentWindowHandle);\r\n\t}", "public void handleBegin(){\n\t\tStage getstage = (Stage) beginButton.getScene().getWindow();\n\t\tParent root;\n\t\ttry {\n\t\t\troot = FXMLLoader.load(getClass().getResource(\"GameBoard.fxml\"));\n\t\t\tScene scene = new Scene(root,800,600);\n\t\t\tscene.getStylesheets().add(getClass().getResource(\"GameBoard.css\").toExternalForm());\n\t\t\tgetstage.setScene(scene);\n\t\t\tgetstage.sizeToScene();\n\t\t\tgetstage.show();\n\t\t\t// TODO Add background task to send to server and wait for other person to press begin\n\t\t} catch (IOException e) {\n\t\t\tlog.log(Level.FINE, \"Error in begin\", e);\n\t\t}\t\n\t}", "public void confirmUser() {\r\n\r\n bpConfirmUser.setTop(vbText());//Add VBox to top\r\n bpConfirmUser.setCenter(gpCenter());//Add GridPane to center\r\n bpConfirmUser.setBottom(hbButtons()); //Add Hbox to bottom\r\n\r\n bpConfirmUser.setPadding(new Insets(10, 50, 50, 50)); //Padding\r\n\r\n bpConfirmUser.setId(\"bp\"); //SetID\r\n //Create Scene and add mainBorder to it\r\n Scene myScene = new Scene(bpConfirmUser, 400, 300);\r\n\r\n //Setup Stage\r\n confirmUserStage.setTitle(\"Confirm Information\"); //Set the title of the Stage\r\n myScene.getStylesheets().add(getClass().getClassLoader().getResource(\"createuser.css\").toExternalForm());\r\n confirmUserStage.setScene(myScene); //Add Scene to Stage\r\n\r\n confirmUserStage.show(); //Show Stage\r\n\r\n }", "@Override\n public void onClick(View arg0) {\n ((CreateDocketActivityPart2) activity).openPopUpForSpareParts(position);\n }", "public void clickedSpeakerEdit() {\n\t\tif(mainWindow.getSelectedRowSpeaker().length <= 0) ApplicationOutput.printLog(\"YOU DID NOT SELECT ANY PRESENTATION\");\n\t\telse if(mainWindow.getSelectedRowSpeaker().length > 1) ApplicationOutput.printLog(\"Please select only one presentation to edit\");\n\t\telse {\n\t\t\tshowSpeakeerDetails(mainWindow.getSelectedRowSpeaker()[0]);\n\t\t}\t\n\t}", "public void setFocus() {\n \t\tviewer.getControl().setFocus();\n \t}", "@FXML\r\n private void deletePartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n \r\n Alert message = new Alert(Alert.AlertType.CONFIRMATION);\r\n message.setTitle(\"Confirm delete\");\r\n message.setHeaderText(\" Are you sure you want to delete part ID: \" + selected.getId() + \", name: \" + selected.getName() + \"?\" );\r\n message.setContentText(\"Please confirm your selection\");\r\n \r\n Optional<ButtonType> response = message.showAndWait();\r\n if (response.get() == ButtonType.OK)\r\n {\r\n stock.deletePart(selected);\r\n partsTbl.setItems(stock.getAllParts());\r\n partsTbl.refresh();\r\n displayMessage(\"The part \" + selected.getName() + \" was successfully deleted\");\r\n }\r\n else {\r\n displayMessage(\"Deletion cancelled by user. Part not deleted.\");\r\n }\r\n }\r\n else {\r\n displayMessage(\"No part selected for deletion\");\r\n }\r\n }", "@FXML\n public void Modify_Item(ActionEvent actionEvent) {\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"ModifyItemlist.fxml\"));\n Parent root1 = (Parent) fxmlLoader.load();\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.UNDECORATED);\n stage.setTitle(\"New Item\");\n stage.setScene(new Scene(root1));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\n void goToInventoryBrowser(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the inventory browser FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"InventoryBrowser.fxml\"));\n\n BorderPane inventoryBrowser = (BorderPane) fxmlLoader.load();\n Scene inventoryBrowserScene = new Scene(inventoryBrowser, Main.INVENTORY_BROWSER_WINDOW_WIDTH,\n Main.INVENTORY_BROWSER_WINDOW_HEIGHT);\n Stage inventoryBrowserStage = new Stage();\n\n inventoryBrowserStage.setScene(inventoryBrowserScene);\n inventoryBrowserStage.setTitle(Main.INVENTORY_BROWSER_WINDOW_TITLE);\n inventoryBrowserStage.initModality(Modality.APPLICATION_MODAL);\n // Show the inventory browser scene and wait for it to be closed\n inventoryBrowserStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n }", "public void firePartActivated(final IWorkbenchPartReference ref) {\n Object[] array = getListeners();\n for (int i = 0; i < array.length; i++) {\n final IPartListener2 l = (IPartListener2) array[i];\n fireEvent(new SafeRunnable() {\n\n @Override\n public void run() {\n l.partActivated(ref);\n }\n }, l, ref, //$NON-NLS-1$\n \"activated::\");\n }\n }", "public void setFocus() {\n\t\tthis.viewer.getControl().setFocus();\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tpartie.setDefausse(true);\n\t\t}", "private void changeScene(String scene){\n switch (scene) {\n case \"Passwords\" -> {\n this.addNewScene.setVisible(false);\n this.generateScene.setVisible(false);\n this.passwordsScene.setVisible(true);\n }\n case \"Add New\" -> {\n this.generateScene.setVisible(false);\n this.passwordsScene.setVisible(false);\n this.addNewScene.setVisible(true);\n }\n case \"Generate\" -> {\n this.generateScene.setVisible(true);\n this.passwordsScene.setVisible(false);\n this.addNewScene.setVisible(true);\n }\n }\n }", "public void clickedPresentationEdit() {\n\t\tif(mainWindow.getSelectedRowPresentation().length <= 0) ApplicationOutput.printLog(\"YOU DID NOT SELECT ANY PRESENTATION\");\n\t\telse if(mainWindow.getSelectedRowPresentation().length > 1) ApplicationOutput.printLog(\"Please select only one presentation to edit\");\n\t\telse {\n\t\t\tshowPresentationDetails(mainWindow.getSelectedRowPresentation()[0]);\n\t\t}\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Inject @Optional\n\tpublic void getActiveWaveformViewerEvent(@UIEventTopic(WaveformViewer.ACTIVE_WAVEFORMVIEW) WaveformViewer waveformViewerPart) {\n\t\tif(this.waveformViewerPart!=null)\n\t\t\tthis.waveformViewerPart.storeDesignBrowerState(new DBState());\n\t\tthis.waveformViewerPart=waveformViewerPart;\n\t\tIWaveformDb database = waveformViewerPart.getDatabase();\n\t\tObject input = treeViewer.getInput();\n\t\tif(input!=null && input instanceof List<?>){\n\t\t\tIWaveformDb db = ((List<IWaveformDb>)input).get(0);\n\t\t\tif(db==database) return; // do nothing if old and new daabase is the same\n\t\t\t((List<IWaveformDb>)input).get(0).removePropertyChangeListener(treeViewerPCL);\n\t\t}\n\t\ttreeViewer.setInput(Arrays.asList(database.isLoaded()?new IWaveformDb[]{database}:new IWaveformDb[]{new LoadingWaveformDb()}));\n\t\tObject state=this.waveformViewerPart.retrieveDesignBrowerState();\n\t\tif(state!=null && state instanceof DBState) \n\t\t\t((DBState)state).apply();\n\t\telse\n\t\t\ttxTableViewer.setInput(null);\n\t\t// Set up the tree viewer\n\t\tdatabase.addPropertyChangeListener(treeViewerPCL);\n\t}", "public void save(){\r\n if (inputValidation()) {\r\n if (modifyingPart) {\r\n saveExisting();\r\n } else {\r\n saveNew();\r\n }\r\n closeWindow();\r\n }\r\n\r\n }", "@FXML void onActionModifyProductRemovePart(ActionEvent event) {\n Part selectedPart = associatedPartTableView.getSelectionModel().getSelectedItem();\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Do you want to delete this part?\");\n Optional<ButtonType> result = alert.showAndWait();\n if(result.isPresent() && result.get() == ButtonType.OK) {\n tmpAssociatedParts.remove(selectedPart);\n }\n }", "@FXML\r\n void handleSaveAction() throws IOException {\r\n \r\n //Set text boxes to variables, use old part ID\r\n partID = getSelectedPart().getId();\r\n name = modPartName.getText();\r\n stock = modPartInv.getText();\r\n price = modPartPrice.getText();\r\n max = modPartMax.getText();\r\n min = modPartMin.getText();\r\n machID = modPartMachineID.getText();\r\n \r\n try{\r\n //Logic to verify no fields are empty\r\n if (\r\n modPartName.getText().isEmpty() ||\r\n modPartInv.getText().isEmpty() ||\r\n modPartPrice.getText().isEmpty() ||\r\n modPartMax.getText().isEmpty() ||\r\n modPartMin.getText().isEmpty() ||\r\n modPartMachineID.getText().isEmpty())\r\n {\r\n Alert nullalert = new Alert(Alert.AlertType.ERROR);\r\n nullalert.setTitle(\"Invalid\");\r\n nullalert.setContentText(\"Must fill out all fields!\");\r\n nullalert.showAndWait();\r\n }\r\n \r\n //Logic to verify max is larger than min\r\n else if (Integer.parseInt(max) <= Integer.parseInt(min)) {\r\n Alert nullalert = new Alert(Alert.AlertType.ERROR);\r\n nullalert.setTitle(\"Invalid\");\r\n nullalert.setContentText(\"Maximum must be larger than minimum!\");\r\n nullalert.showAndWait();\r\n }\r\n \r\n //Logic to verify Inventory is between the max and min\r\n else if (Integer.parseInt(stock) <= Integer.parseInt(min) || Integer.parseInt(stock) >= Integer.parseInt(max)) {\r\n Alert nullalert = new Alert(Alert.AlertType.ERROR);\r\n nullalert.setTitle(\"Invalid\");\r\n nullalert.setContentText(\"Inventory must be between maximum and minimum!\");\r\n nullalert.showAndWait();\r\n }\r\n \r\n //Finish function if verified\r\n else { \r\n //Check part type, create a new part and replace information\r\n if (isInHouse) {\r\n InHouse newPartIn = new InHouse(); \r\n newPartIn.setId(partID);\r\n newPartIn.setName(name);\r\n newPartIn.setStock(Integer.parseInt(stock));\r\n newPartIn.setPrice(Double.parseDouble(price));\r\n newPartIn.setMax(Integer.parseInt(max));\r\n newPartIn.setMin(Integer.parseInt(min));\r\n newPartIn.setMachineID(Integer.parseInt(machID));\r\n \r\n //Need to find index to remove part\r\n modPart(partID - 1, newPartIn); \r\n }\r\n \r\n //Same process for outsourced parts\r\n else {\r\n OutSourced newPartOut = new OutSourced(); \r\n newPartOut.setId(partID);\r\n newPartOut.setName(name);\r\n newPartOut.setStock(Integer.parseInt(stock));\r\n newPartOut.setPrice(Double.parseDouble(price));\r\n newPartOut.setMax(Integer.parseInt(max));\r\n newPartOut.setMin(Integer.parseInt(min));\r\n newPartOut.setCompanyName(machID); \r\n modPart(partID - 1, newPartOut);\r\n }\r\n \r\n //Return to the main screen\r\n Parent loader = FXMLLoader.load(getClass().getResource(\"mainScreen.fxml\"));\r\n Scene scene = new Scene(loader);\r\n Stage window = (Stage) modPartSave.getScene().getWindow();\r\n window.setScene(scene);\r\n window.show();\r\n }\r\n }\r\n \r\n //catch for type errors\r\n catch (IOException | NumberFormatException e) {\r\n Alert nullalert = new Alert(Alert.AlertType.ERROR);\r\n nullalert.setTitle(\"Type error\");\r\n nullalert.setContentText(\"Verify that all fields are the correct data type\");\r\n nullalert.showAndWait();\r\n }\r\n \r\n }", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "@Override\r\n\t\t\tpublic void partInputChanged(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "@FXML\r\n private void handleButtonModifyPass() {\r\n MobileApplication\r\n .getInstance()\r\n .addViewFactory(PASSMODIFY_VIEW, () -> new PassModifyView(PASSMODIFY_VIEW).getView());\r\n MobileApplication.getInstance().switchView(PASSMODIFY_VIEW);\r\n\r\n }", "public void firePartInputChanged(final IWorkbenchPartReference ref) {\n Object[] array = getListeners();\n for (int i = 0; i < array.length; i++) {\n final IPartListener2 l;\n if (array[i] instanceof IPartListener2) {\n l = (IPartListener2) array[i];\n } else {\n continue;\n }\n fireEvent(new SafeRunnable() {\n\n @Override\n public void run() {\n l.partInputChanged(ref);\n }\n }, l, ref, //$NON-NLS-1$\n \"inputChanged::\");\n }\n }", "@FXML\r\n void returnToNoteMenu(ActionEvent event) throws Exception {\r\n \tGeneralMethods.ChangeScene(\"NotesMenu\", \"NotesMenu\");\r\n }", "@Override\r\n\tpublic void launch(IEditorPart arg0, String arg1) {\n\t\tSystem.out.println(\"Launch Raoul by editor \" + arg1);\r\n\t}", "@FXML\r\n void onActionDeletePart(ActionEvent event) {\r\n\r\n Part part = TableView2.getSelectionModel().getSelectedItem();\r\n if(part == null)\r\n return;\r\n\r\n //EXCEPTION SET 2 REQUIREMENT\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setHeaderText(\"You are about to delete the product you have selected!\");\r\n alert.setContentText(\"Are you sure you wish to continue?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK){\r\n product.deleteAssociatedPart(part.getId());\r\n }\r\n }" ]
[ "0.6879083", "0.66070765", "0.65426546", "0.604828", "0.59426826", "0.5898266", "0.5851459", "0.5829234", "0.5811155", "0.57817775", "0.57551956", "0.57506824", "0.5711624", "0.57105505", "0.56780845", "0.56526434", "0.5643831", "0.56137735", "0.55969584", "0.5564279", "0.55637735", "0.5529587", "0.54730904", "0.5452847", "0.5432878", "0.54157424", "0.5354533", "0.53274095", "0.5322543", "0.5318029", "0.53049564", "0.5291328", "0.5291328", "0.52622557", "0.5257961", "0.525358", "0.5251298", "0.52330536", "0.5232255", "0.5232156", "0.5216961", "0.5196097", "0.5185688", "0.5185502", "0.5169134", "0.51615787", "0.5158458", "0.5156857", "0.5155006", "0.51470697", "0.5144925", "0.5144203", "0.5144148", "0.5142166", "0.5142137", "0.51326936", "0.5125587", "0.5122169", "0.51193345", "0.51144266", "0.5108482", "0.5108104", "0.5106839", "0.510633", "0.5102217", "0.51014024", "0.5100144", "0.50967354", "0.50896543", "0.5081252", "0.507652", "0.5073025", "0.5071934", "0.50654554", "0.5058718", "0.50572205", "0.5049432", "0.5041646", "0.50388896", "0.5038291", "0.50364393", "0.50291115", "0.5022408", "0.5018449", "0.50041014", "0.499183", "0.4986553", "0.4983567", "0.4970984", "0.4959847", "0.4958744", "0.49567848", "0.49567848", "0.49567848", "0.4942895", "0.49416625", "0.4934029", "0.49298963", "0.49261516", "0.4922534" ]
0.7181235
0
Sends the user to the AddProductScene.
public void goToAddProductScene(ActionEvent event) throws IOException { Parent addProductParent = FXMLLoader.load(getClass().getResource("AddProduct.fxml")); Scene addProductScene = new Scene(addProductParent); Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow(); window.setScene(addProductScene); window.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleAddProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(false);\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Products\");\n stage.setScene(new Scene(root));\n stage.show();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\r\n public void onActionToAddProductScreen(ActionEvent actionEvent) throws IOException {\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/addProduct.fxml\"));\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 980, 560);\r\n stage.setTitle(\"Add Product\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "public void goToModifyProductScene(ActionEvent event) throws IOException {\n\n if(productTableView.getSelectionModel().isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please make sure you've added a Product and selected the Product you want to modify.\");\n alert.show();\n } else {\n int i = productTableView.getSelectionModel().getFocusedIndex();\n setFocusedIndex(i);\n Parent addProductParent = FXMLLoader.load(getClass().getResource(\"ModifyProduct.fxml\"));\n Scene modifyProductScene = new Scene(addProductParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(modifyProductScene);\n window.show();\n }\n\n\n }", "private void addProduct()\n {\n System.out.println(\"|➕| Add new Product:\\n\");\n System.out.println(\"|➕| Enter ID\\n\");\n int id = Integer.parseInt(reader.getInput());\n System.out.println(\"|➕| Enter Name\\n\");\n String name = reader.getInput();\n manager.addProduct(id, name);\n }", "public void addProduct() {\n Product result;\n String prodName = getToken(\"Enter product name: \");\n double price = getDouble(\"Enter price per unit: $\");\n result = warehouse.addProduct(prodName, price);\n if (result != null) {\n System.out.println(result);\n }\n else {\n System.out.println(\"Product could not be added.\");\n }\n }", "@FXML\r\n public void onActionToModifyProductScreen(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n\r\n //Get product information from the Product Controller in order to populate the modify screen text fields\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyProduct.fxml\"));\r\n loader.load();\r\n\r\n ProductController proController = loader.getController();\r\n\r\n if (productsTableView.getSelectionModel().getSelectedItem() != null) {\r\n proController.sendProduct(productsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify In-house Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to modify.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (IllegalStateException e) {\r\n //ignore\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "public void addProduct() throws Throwable\r\n\t{\r\n\t\tgoToProductsSection();\r\n\t\tverifyProduct();\r\n\t\tselPproductBtn.click();\r\n\t\twdlib.verify(wdlib.getPageTitle(),flib.getPropKeyValue(PROP_PATH, \"ProductsPage\") , \"Products Page \");\r\n\t\tProductsPage pdpage=new ProductsPage();\r\n\t\tpdpage.selectProducts();\r\n\t}", "private void addProduct() {\n String type = console.readString(\"type (\\\"Shirt\\\", \\\"Pant\\\" or \\\"Shoes\\\"): \");\n String size = console.readString(\"\\nsize: \");\n int qty = console.readInt(\"\\nQty: \");\n int sku = console.readInt(\"\\nSKU: \");\n Double price = console.readDouble(\"\\nPrice: \");\n int reorderLevel = console.readInt(\"\\nReorder Level: \");\n daoLayer.addProduct(type, size, qty, sku, price, reorderLevel);\n\n }", "public void GuestAction(ActionEvent event) throws IOException {\n myDB.GuestLogIn();\n NameTransfer.getInstance().setName(\"Guest\");\n \n pm.changeScene(event, \"/sample/fxml/ProductsSample.fxml\", \"products\");\n \n \n }", "@FXML\n\tpublic void createProduct(ActionEvent event) {\n\t\tif (!txtProductName.getText().equals(\"\") && !txtProductPrice.getText().equals(\"\")\n\t\t\t\t&& ComboSize.getValue() != null && ComboType.getValue() != null && selectedIngredients.size() != 0) {\n\n\t\t\tProduct objProduct = new Product(txtProductName.getText(), ComboSize.getValue(), txtProductPrice.getText(),\n\t\t\t\t\tComboType.getValue(), selectedIngredients);\n\n\t\t\ttry {\n\t\t\t\trestaurant.addProduct(objProduct, empleadoUsername);\n\n\t\t\t\ttxtProductName.setText(null);\n\t\t\t\ttxtProductPrice.setText(null);\n\t\t\t\tComboSize.setValue(null);\n\t\t\t\tComboType.setValue(null);\n\t\t\t\tChoiceIngredients.setValue(null);\n\t\t\t\tselectedIngredients.clear();\n\t\t\t\tproductOptions.clear();\n\t\t\t\tproductOptions.addAll(restaurant.getStringReferencedIdsProducts());\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar los datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "public void purchaseProduct(ActionEvent actionEvent) {\r\n try {\r\n //Initialises a text input dialog.\r\n TextInputDialog dialog = new TextInputDialog(\"\");\r\n dialog.setHeaderText(\"Enter What Is Asked Below!\");\r\n dialog.setContentText(\"Please Enter A Product Name:\");\r\n dialog.setResizable(true);\r\n dialog.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\r\n\r\n //Takes in the users value\r\n Optional<String> result = dialog.showAndWait();\r\n //Makes the purchase and adds the transaction.\r\n String theResult = controller.purchaseProduct(result.get());\r\n //If the product isn't found.\r\n if (theResult.equals(\"Product Doesn't Match\")) {\r\n //Display an error message.\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.initStyle(StageStyle.UTILITY);\r\n alert.setHeaderText(\"Read Information Below!\");\r\n alert.setContentText(\"PRODUCT NOT FOUND! - CONTACT ADMINISTRATOR!\");\r\n alert.setResizable(true);\r\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\r\n alert.showAndWait();\r\n //If it is found.\r\n } else if (theResult.equals(\"Product Match!\")) {\r\n //Display a message saying that the product is found.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.initStyle(StageStyle.UTILITY);\r\n alert.setHeaderText(\"Read Information Below!\");\r\n alert.setContentText(\"PRODUCT PURCHASED!\");\r\n alert.setResizable(true);\r\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\r\n alert.showAndWait();\r\n }//END IF/ELSE\r\n } catch (HibernateException e){\r\n //If the database disconnects then display an error message.\r\n ErrorMessage message = new ErrorMessage();\r\n message.errorMessage(\"DATABASE DISCONNECTED! - SYSTEM SHUTDOWN!\");\r\n System.exit(0);\r\n } //END TRY/CATCH\r\n }", "public void addButtonClicked(){\n Products products = new Products(buckysInput.getText().toString());\n dbHandler.addProduct(products);\n printDatabase();\n }", "public void addButtonClicked(View view) {\n\n Products product = new Products(johnsInput.getText().toString());\n\n dbHandler.addProduct(product);\n printDatabase();\n }", "@FXML void but_AddProduct(ActionEvent event) {\n\n productLine.add(new Widget(txtProductName.getText(), txtManufacturer.getText(),\n choiceType.getValue())); //Adding test product in observable list\n\n productTable.setItems(productLine); //Adds product to table\n listProduce.setItems(productLine); //Adds product to produce list\n\n addToDatabaseProduct();\n\n System.out.println(\"Product added\");\n }", "private void buyProduct() {\n\t\tSystem.out.println(\"Enter Number of Product :- \");\n\t\tint numberOfProduct = getValidInteger(\"Enter Number of Product :- \");\n\t\twhile (!StoreController.getInstance().isValidNumberOfProduct(\n\t\t\t\tnumberOfProduct)) {\n\t\t\tSystem.out.println(\"Enter Valid Number of Product :- \");\n\t\t\tnumberOfProduct = getValidInteger(\"Enter Number of Product :- \");\n\t\t}\n\t\tfor (int number = 1; number <= numberOfProduct; number++) {\n\t\t\tSystem.out.println(\"Enter \" + number + \" Product Id\");\n\t\t\tint productId = getValidInteger(\"Enter \" + number + \" Product Id\");\n\t\t\twhile (!StoreController.getInstance().isValidProductId(productId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id\");\n\t\t\t\tproductId = getValidInteger(\"Enter \" + number + \" Product Id\");\n\t\t\t}\n\t\t\tSystem.out.println(\"Enter product Quantity\");\n\t\t\tint quantity = getValidInteger(\"Enter product Quantity\");\n\t\t\tCartController.getInstance().addProductToCart(productId, quantity);\n\t\t}\n\t}", "@FXML\n\t private void insertProduct (ActionEvent actionEvent) throws SQLException, ClassNotFoundException {\n\t try {\n\t ProductDAO.insertProd(denumireText.getText(),producatorText.getText(),pretText.getText(),marimeText.getText(),culoareText.getText());\n\t resultArea.setText(\"Product inserted! \\n\");\n\t } catch (SQLException e) {\n\t resultArea.setText(\"Problem occurred while inserting product \" + e);\n\t throw e;\n\t }\n\t }", "public void addProduct(){\n\t\tSystem.out.println(\"Company:\");\n\t\tSystem.out.println(theHolding.fabricationCompanies());\n\t\tint selected = reader.nextInt();\n\t\treader.nextLine();\n\t\tif(selected > theHolding.getSubordinates().size()-1){\n\t\t\tSystem.out.println(\"Please select a correct option\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Name:\");\n\t\t\tString name = reader.nextLine();\n\t\t\tSystem.out.println(\"Code:\");\n\t\t\tString code = reader.nextLine();\n\t\t\tSystem.out.println(\"Water quantity require:\");\n\t\t\tdouble waterQuantity = reader.nextDouble();\n\t\t\treader.nextLine();\n\t\t\tSystem.out.println(\"Inventory:\");\n\t\t\tint inventory = reader.nextInt();\n\t\t\treader.nextLine();\n\t\t\tProduct toAdd = new Product(name, code, waterQuantity, inventory);\n\t\t\ttheHolding.addProduct(selected, toAdd);\n\t\t\tSystem.out.println(\"The product were added successfuly\");\n\t\t}\n\t}", "private void ShowProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ShowProductActionPerformed\n alert.setText(\"\");\n if (displayMgr.mainMgr.orderMgr.getCart().isEmpty())\n RowItem.setText(\"Add items to the cart first\");\n else {\n displayMgr.POU.addRowToTable();\n displayMgr.showProductScreen();\n }\n }", "public void goIntoProducts() {\r\n\t\tActions act = new Actions(driver);\r\n\t\t//hovering over the tag button\r\n\t\tact.moveToElement(this.tagButton).build().perform();\r\n\t\t//clicking on products button\r\n\t\tthis.productsBtn.click();\r\n\t}", "@FXML private void handleAddProdAdd(ActionEvent event) {\n if (fxidAddProdAvailableParts.getSelectionModel().getSelectedItem() != null) {\n //get the selected part from the available list\n Part tempPart = fxidAddProdAvailableParts.getSelectionModel().getSelectedItem();\n //save it to our temporary observable list\n partToSave.add(tempPart);\n //update the selected parts list\n fxidAddProdSelectedParts.setItems(partToSave); \n } else {\n Alert partSearchError = new Alert(Alert.AlertType.INFORMATION);\n partSearchError.setHeaderText(\"Error!\");\n partSearchError.setContentText(\"Please select a part to add.\");\n partSearchError.showAndWait();\n }\n }", "public void handleModifyProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n if (getProductToModify() != null)\n {\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(true);\n productController.setProductToModify(getProductToModify());\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Products\");\n stage.setScene(new Scene(root));\n stage.show();\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to modify from the product table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public addproduct() {\n\t\tsuper();\n\t}", "@FXML\r\n\tpublic void goToShoppingCart() {\r\n\t\tViewNavigator.loadScene(\"Your Shopping Cart\", ViewNavigator.SHOPPING_CART_SCENE);\r\n\t}", "@Override\r\n\tpublic void ManageProduct() {\n\t\tint id = this.view.enterId();\r\n\t\tString name = this.view.enterName();\r\n\t\tfloat price = this.view.enterPrice();\r\n\t\tint quantity = this.view.enterQuantity();\r\n\t\t\r\n\t\tthis.model.updProduct(id, name, price, quantity);\r\n\t}", "public void displayProduct() {\n\t\tDisplayOutput.getInstance()\n\t\t\t\t.displayOutput(StoreFacade.getInstance());\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\tString name=\"\";\n\t\t\tname=view.getNameTF().getText();\n\t\t\tString price=\"\";\n\t\t\tprice=view.getPriceTF().getText();\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(name.equals(\"\") ||price.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tthrow new BadInput(\"Nu au fost completate toate casutele pentru a se putea realiza CREATE!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble p=Double.parseDouble(price);\n\t\t\t\t\n\t\t\t\tMenuItem nou=new BaseProduct(name,p);\n\t\t\t\t\n\t\t\t\trestaurant.createMenuItem(nou);\n\t\t\t\tview.updateList(name);\n\t\t\t\t\n\t\t\t}catch(NumberFormatException ex)\n\t\t\t{\n\t\t\t\tview.showError(\"Nu s-a introdus o valoare valida pentru pret!\");\n\t\t\t}\n\t\t\tcatch(BadInput ex)\n\t\t\t{\n\t\t\t\tview.showError(ex.getMessage());\n\t\t\t}\n\t\t\tcatch(AssertionError er)\n\t\t\t{\n\t\t\t\tview.showError(\"Nu se poate adauga produsul deoarece acesta EXISTA deja!!!\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public void inventoryManageItemScreen( ActionEvent event ) throws Exception{\n\t\tif(userObj.getType().equalsIgnoreCase(\"Stock Manager\"))\n\t\t{\n\t\t\t\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(getClass().getResource(\"/view/InventoryItems.fxml\"));\n\t\t\tParent parent = loader.load();\n\t\t\t\n\t\t\tScene scene = new Scene(parent);\n\t\t\tscene.getStylesheets().add(getClass().getResource(\"/view/application.css\").toExternalForm());\n\t\t\t\n\t\t\tInventoryManageItemsController controller = loader.getController();\n\t\t\tcontroller.loadUser(userObj);\n\t\t\t\n\t\t\tStage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\t\t\t\n\t\t\twindow.setScene(scene);\n\t\t\twindow.show();\n\t\t\twindow.centerOnScreen();\n\t\t\t\n\t\t}else {\n\t\t\tGenerator.getAlert(\"Access Denied\", \"You don't have access to Inventory Management\");\n\t\t}\n\t\n\t}", "@FXML\r\n void onActionSaveProduct(ActionEvent event) throws IOException {\r\n\r\n int id = Inventory.ProductCounter();\r\n String name = AddProductName.getText();\r\n int stock = Integer.parseInt(AddProductStock.getText());\r\n Double price = Double.parseDouble(AddProductPrice.getText());\r\n int max = Integer.parseInt(AddProductMax.getText());\r\n int min = Integer.parseInt(AddProductMin.getText());\r\n\r\n Inventory.addProduct(new Product(id, name, price, stock, min, max, product.getAllAssociatedParts()));\r\n\r\n\r\n //EXCEPTION SET 1 REQUIREMENT\r\n if(min > max){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"ERROR\");\r\n alert.setContentText(\"Quantity minimum is larger than maximum.\");\r\n alert.showAndWait();\r\n return;\r\n } if (stock > max){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"ERROR\");\r\n alert.setContentText(\"Inventory quantity exceeds maximum stock allowed.\");\r\n alert.showAndWait();\r\n return;\r\n }\r\n changeScreen(event, \"MainScreen.fxml\");\r\n }", "@FXML\n void saveModifyProductButton(ActionEvent event) throws IOException {\n\n try {\n int id = selectedProduct.getId();\n String name = productNameText.getText();\n Double price = Double.parseDouble(productPriceText.getText());\n int stock = Integer.parseInt(productInventoryText.getText());\n int min = Integer.parseInt(productMinText.getText());\n int max = Integer.parseInt(productMaxText.getText());\n\n if (name.isEmpty()) {\n AlartMessage.displayAlertAdd(5);\n } else {\n if (minValid(min, max) && inventoryValid(min, max, stock)) {\n\n Product newProduct = new Product(id, name, price, stock, min, max);\n\n assocParts.forEach((part) -> {\n newProduct.addAssociatedPart(part);\n });\n\n Inventory.addProduct(newProduct);\n Inventory.deleteProduct(selectedProduct);\n mainScreen(event);\n }\n }\n } catch (IOException | NumberFormatException e){\n AlartMessage.displayAlertAdd(1);\n }\n }", "public void selectAProduct() {\n specificProduct.click();\n }", "public String register() {\n categoryTable.getCategory().getProducts().add(product);\r\n productService\r\n .addReadyProduct(product,\r\n categoryTable.getCategory().getCategoryId());\r\n // Add message\r\n FacesContext.getCurrentInstance().addMessage(null,\r\n new FacesMessage(\"The Category \\\"\" + this.product.getName()\r\n + \"\\\" is Registered Successfully\"));\r\n RequestContext.getCurrentInstance().closeDialog(null);\r\n return \"\";\r\n }", "private static void viewItems() {\r\n\t\tdisplayShops();\r\n\t\tint shopNo = getValidUserInput(scanner, shops.length);\r\n\t\tdisplayItems(shopNo);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please enter the ID of the element to add to cart. \\\"0\\\" for exit\");\r\n\t\tSystem.out.println();\r\n\t\tint productNo = getValidUserInput(scanner, shops[shopNo].getAllSales().length + 1);\r\n\t\tif (productNo > 0) {\r\n\t\t\tProduct productToBeAdd = shops[shopNo].getAllSales()[productNo - 1];\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.print(\" Please enter the number of the item you would like to buy: \");\r\n\t\t\tint numberOfTheItems = getUserIntInput();\r\n\t\t\tcart.addProduct(productToBeAdd, numberOfTheItems);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Purchase done, going back to the menu.\");\r\n\t\tSystem.out.println();\r\n\t}", "ProductView addProduct(ProductBinding productToAdd) throws ProductException;", "public void onClick(View v)\n {\n // Add to cart model\n for (int i = 0; i < productQuantity; i++)\n {\n dbManager.addToCart(activeProduct.getID());\n }\n }", "@FXML\n\tpublic void buttonCreateProductType(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString name = txtProductTypeName.getText();\n\t\tif (!name.equals(empty)) {\n\t\t\tProductType obj = new ProductType(txtProductTypeName.getText());\n\t\t\ttry {\n\t\t\t\tboolean found = restaurant.addProductType(obj, empleadoUsername); // Se añade a la lista de tipos de\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// producto DEL RESTAURANTE\n\t\t\t\tif (found == false) {\n\t\t\t\t\ttypeOptions.add(name);// Se añade a la lista de tipos de producto para ser mostrada en los combobox\n\t\t\t\t}\n\t\t\t\ttxtProductTypeName.setText(\"\");\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"El tipo de producto a crear debe tener un nombre \");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\n\t\t}\n\t}", "public void insertIntoProduct() {\n\t\ttry {\n\t\t\tPreparedStatement statement = connect.prepareStatement(addProduct);\n\t\t\tstatement.setString(1, productName);\n\t\t\tstatement.setString(2, quantity);\n\t\t\t\n\t\t\tstatement.executeUpdate();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public void sendPurchaseHit() {\n\n // In production code, would need to iterate\n // over all the products in the cart\n // Here we assume that the currently selected dinner\n // is the only thing in the cart\n Product product = new Product()\n .setName(\"dinner\")\n .setPrice(5)\n .setVariant(thisDinner)\n .setId(thisDinnerId)\n .setQuantity(1);\n\n // Get a unique transaction ID\n String tID = Utility.getUniqueTransactionId(thisDinnerId);\n ProductAction productAction =\n new ProductAction(ProductAction.ACTION_PURCHASE)\n .setTransactionId(tID);\n\n Tracker tracker = ((MyApplication) getApplication()).getTracker();\n\n tracker.send(new HitBuilders.EventBuilder()\n .setCategory(\"Shopping steps\")\n .setAction(\"Purchase\")\n .setLabel(thisDinner)\n .addProduct(product)\n .setProductAction(productAction)\n .build());\n }", "public void addProduct(Product product);", "@FXML\n void goToInventoryBrowser(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the inventory browser FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"InventoryBrowser.fxml\"));\n\n BorderPane inventoryBrowser = (BorderPane) fxmlLoader.load();\n Scene inventoryBrowserScene = new Scene(inventoryBrowser, Main.INVENTORY_BROWSER_WINDOW_WIDTH,\n Main.INVENTORY_BROWSER_WINDOW_HEIGHT);\n Stage inventoryBrowserStage = new Stage();\n\n inventoryBrowserStage.setScene(inventoryBrowserScene);\n inventoryBrowserStage.setTitle(Main.INVENTORY_BROWSER_WINDOW_TITLE);\n inventoryBrowserStage.initModality(Modality.APPLICATION_MODAL);\n // Show the inventory browser scene and wait for it to be closed\n inventoryBrowserStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n }", "@FXML\r\n void submitNewOrder(MouseEvent event) {\r\n\t\t\t//everything is ok, now we will add casual traveler order.\r\n\t\t\tif ( order != null && WorkerControllerClient.createNewOrder(order) ) {\r\n\t\t\t\torderSucceed = true;\r\n\t\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\r\n\t\t\t\talert.setHeaderText(\"succeed!\");\r\n\t\t\t\talert.setContentText(\"order created successfully\");\r\n\t\t\t\talert.showAndWait();\r\n\t\t\t\tsubmitButton.getScene().getWindow().hide();\r\n\t\t\t} else {\r\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\t\talert.setHeaderText(\"Failed!\");\r\n\t\t\t\talert.setContentText(\"Order Failed\");\r\n\t\t\t\talert.showAndWait();\r\n\t\t\t\tsubmitButton.getScene().getWindow().hide();\r\n\t\t\t}\r\n\t\t\r\n }", "@Override\n\tpublic void addProduct(ProductEntity product)\n\t{\n\t\tsave(product);\n\t\tlogger.debug(\"The user added is \" + product.getProductUuid());\n\t}", "private void goToShop() {\n shopMenu.runMenu();\n }", "public void onAddButtonClick(View view) {\n\n if (view.getId() == R.id.Badd) {\n\n EditText a = (EditText) findViewById(R.id.TFenterName);\n\n String b = a.getText().toString();\n product.setProductName(b);\n\n a = (EditText) findViewById(R.id.TFenterPrice);\n b = a.getText().toString();\n product.setPrice(b);\n\n a = (EditText) findViewById(R.id.TFenterQuantity);\n b = a.getText().toString();\n product.setQuantity(b);\n\n a = (EditText) findViewById(R.id.TFLocation);\n b = a.getText().toString();\n product.setLocation(b);\n\n a = (EditText) findViewById(R.id.TFExpiration);\n b = a.getText().toString();\n product.setExpiration(b);\n\n helper.insertProduct(product);\n\n Intent i = new Intent(AddProduct.this, WasAdded.class);\n i.putExtra(\"product\", product.getProductName());\n startActivity(i);\n\n }\n }", "public void linktomenuButtonPressed(javafx.event.ActionEvent event) throws IOException {\r\n Parent menuParent = FXMLLoader.load(getClass().getResource(\"customerMenu.fxml\"));\r\n Scene menuScene = new Scene(menuParent);\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(menuScene);\r\n window.show();\r\n }", "public void purchase() {\r\n\t\tdo {\r\n\t\t\tString id = getToken(\"Enter customer id: \");\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tint quantity = getInteger(\"Enter quantity to purchase: \");\r\n\t\t\tboolean purchased = store.purchaseWasher(id, brand, model, quantity);\r\n\t\t\tif (purchased) {\r\n\t\t\t\tSystem.out.println(\"Purchased \" + quantity + \" of \" + brand + \" \" + model + \" for customer \" + id);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Purchase unsuccessful.\");\r\n\t\t\t}\r\n\t\t} while (yesOrNo(\"Make another Purchase?\"));\r\n\t}", "void addProduct(Product product);", "public boolean showProducts() {\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(MainApp.class.getResource(\"view/Products.fxml\"));\n\t\t\tAnchorPane layout = (AnchorPane) loader.load();\n\t\t\t\n\t\t\tStage productStage = new Stage();\n\t\t\tproductStage.setTitle(\"Add / Edit Products\");\n\t\t\tproductStage.getIcons().add(new Image(\"file:resources/images/logo.png\"));\n\t\t\tproductStage.initModality(Modality.WINDOW_MODAL);\n\t\t\tproductStage.initOwner(dialogStage);\n\t\t\t\n\t\t\tScene scene = new Scene(layout);\n\t\t\tproductStage.setScene(scene);\n\t\t\t\n\t\t\tProductsController controller = loader.getController();\n\t\t\tcontroller.setProductStage(productStage);\n\t\t\tcontroller.setMain(main);\n\t\t\tcontroller.setAcknowledgment(acknowledgment);\n\t\t\t\n\t\t\tproductStage.showAndWait();\n\t\t\t\n\t\t\treturn controller.isOkClicked();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tmain.getDbHelper().insertError(e, main.getPreferenceList().get(0).getUsername());\n\t\t\treturn false;\n\t\t}\n\t}", "@FXML void onActionModifyProductSave(ActionEvent event) throws IOException {\n\n try{\n //obtain user generated data\n String productName = productNameField.getText();\n int productInv = Integer.parseInt(productInvField.getText());\n Double productPrice = Double.parseDouble(productPriceField.getText());\n int productMax = Integer.parseInt(productMaxField.getText());\n int productMin = Integer.parseInt(productMinField.getText());\n\n if(productMax < productMin){\n Alert alert = new Alert(Alert.AlertType.ERROR, \"Max must be greater than min.\");\n alert.setTitle(\"Invalid entries\");\n alert.showAndWait();\n } else if(productInv < productMin || productInv > productMax) {\n Alert alert = new Alert(Alert.AlertType.ERROR, \"Inv must be between min and max.\");\n alert.setTitle(\"Invalid entries\");\n alert.showAndWait();\n } else {\n\n //save the updated data into the inventory\n Product newProduct = new Product(Integer.parseInt(productIdField.getText()), productName, productPrice,productInv, productMin, productMax);\n\n //save the updated list of associated parts to the product\n newProduct.getAllAssociatedParts().addAll(tmpAssociatedParts);\n\n //save the updated product to inventory\n Inventory.updateProduct(newProduct);\n\n // switch the screen\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n //load the new scene\n scene = FXMLLoader.load(getClass().getResource(\"/view/MainMenu.fxml\"));\n stage.setScene(new Scene(scene));\n stage.show();\n }\n } catch(NumberFormatException e){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Invalid Entries\");\n alert.setContentText(\"Please enter a valid value for each text field. All entries must be numeric except Name.\");\n alert.showAndWait();\n }\n\n }", "public void linktomyorderseditbuttonPressed(javafx.event.ActionEvent event) throws IOException {\r\n Parent myorderseditParent = FXMLLoader.load(getClass().getResource(\"myOrdersEdit.fxml\"));\r\n Scene myorderseditScene = new Scene(myorderseditParent);\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(myorderseditScene);\r\n window.show();\r\n }", "public void buyProduct(String productName) throws ProductNotFoundException {\r\n\r\n if (doesRecentOrderExist(productName)) {\r\n reorderProduct(productName);\r\n } else {\r\n //Create a new order to be given to the WebMarket\r\n Order newOrder = new Order(this, productName, \"buy\", \"pending\");\r\n\r\n //Acknowlegement print statment\r\n System.out.println(\"CUSTOMER: Request NEW purchase of - \" + newOrder.getProductName());\r\n\r\n //Send the order to WebMarket via placeNewOrder()\r\n market.placeNewOrder(newOrder);\r\n\r\n //Add this order to the customers personel list of orders\r\n orderHistory.add(newOrder);\r\n }\r\n }", "public void actionPerformed(ActionEvent e) {\n \t\t\t\tscreen.setScene(new CreateAccount(screen));\n \t\t\t}", "public void btnAddClicked(View view){\n List list = new List(input.getText().toString());\n dbHandler.addProduct(list);\n printDatabase();\n }", "private static void actOnUsersChoice(MenuOption option) {\n switch (option) {\n case VIEW_LIST_OF_ALL_PRODUCTS:\n viewListOfProductsInStore();\n System.out.println(\"Store has \" + productRepository.count() + \" products.\");\n break;\n case CHECK_IF_PRODUCT_EXISTS_IN_STORE:\n System.out.println(ENTER_SEARCHED_PRODUCT_NAME);\n System.out.println((isProductAvailable())\n ? SEARCHED_PRODUCT_IS_AVAILABLE\n : ERROR_NO_SUCH_PRODUCT_AVAILABLE);\n break;\n case ADD_PRODUCT_TO_ORDER:\n addProductToOrder();\n break;\n case VIEW_ORDER_ITEMS:\n viewOrderItems(order.getOrderItems());\n break;\n case REMOVE_ITEM_FROM_ORDER:\n removeItemFromOrder();\n break;\n case ADD_PRODUCT_TO_STORE:\n if (userIsAdmin) {\n addProductToStore();\n }\n break;\n case EDIT_PRODUCT_IN_STORE:\n if (userIsAdmin) {\n System.out.println(ENTER_PRODUCT_NAME_TO_BE_UPDATED);\n Optional<Product> productToBeModified = getProductByName();\n\n if (productToBeModified.isPresent()) {\n switch (productToBeModified.get().getType()) {\n\n case FOOD:\n Optional<Food> food = InputManager.DataWrapper.createFoodFromInput();\n if (food.isPresent()) {\n Food newFood = food.get();\n productRepository.update(productToBeModified.get().getName(), newFood);\n }\n break;\n\n case DRINK:\n Optional<Drink> drink = InputManager.DataWrapper.createDrinkFromInput();\n if (drink.isPresent()) {\n Drink newDrink = drink.get();\n productRepository.update(productToBeModified.get().getName(), newDrink);\n }\n break;\n }\n } else {\n System.err.println(ERROR_NO_SUCH_PRODUCT_AVAILABLE);\n }\n }\n break;\n case REMOVE_PRODUCT_FROM_STORE:\n if (userIsAdmin) {\n tryToDeleteProduct();\n }\n break;\n case RELOG:\n userIsAdmin = false;\n start();\n break;\n case EXIT:\n onExit();\n break;\n default:\n break;\n }\n }", "public void saveButtonPressed(ActionEvent actionEvent) throws IOException{\n validateInputs(actionEvent);\n\n if (isInputValid) {\n //creates a new Product object with identifier currentProduct\n currentProduct = new Product(productNameInput, productInventoryLevel, productPriceInput, maxInventoryLevelInput, minInventoryLevelInput);\n\n //passes currentProduct as the argument for the .addMethod.\n Inventory.getAllProducts().add(currentProduct);\n\n //utilizes the associatedPartsTableviewHolder wiht a for loop to pass each element as an argument\n //for the .addAssociatedPart method.\n for (Part part : associatedPartTableViewHolder) {\n currentProduct.addAssociatedPart(part);\n }\n\n //calls the returnToMainMen() method.\n mainMenuWindow.returnToMainMenu(actionEvent);\n }\n else {\n isInputValid = true;\n }\n\n }", "@FXML\n\tpublic void enableProduct(ActionEvent event) {\n\t\tif (!txtNameDisableProduct.getText().equals(\"\")) {\n\t\t\tList<Product> searchedProducts = restaurant.findSameProduct(txtNameDisableProduct.getText());\n\t\t\tif (!searchedProducts.isEmpty()) {\n\t\t\t\ttry {\n\t\t\t\t\tfor (int i = 0; i < searchedProducts.size(); i++) {\n\t\t\t\t\t\tsearchedProducts.get(i).setCondition(Condition.ACTIVE);\n\t\t\t\t\t}\n\t\t\t\t\trestaurant.saveProductsData();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"El producto ha sido habilitado\");\n\t\t\t\t\tdialog.setTitle(\"Producto Deshabilitado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t\ttxtNameDisableProduct.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los productos\");\n\t\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\t\tdialog.show();\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Este producto no existe\");\n\t\t\t\tdialog.setTitle(\"Error\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Debe ingresar el nombre del producto\");\n\t\t\tdialog.setTitle(\"Error\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "public void linktomyordersButtonPressed(javafx.event.ActionEvent event) throws IOException {\r\n Parent myordersParent = FXMLLoader.load(getClass().getResource(\"myOrdersHome.fxml\"));\r\n Scene myordersScene = new Scene(myordersParent);\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(myordersScene);\r\n window.show();\r\n }", "public void addGenreAction()\n\t{\n\t\tViewNavigator.loadScene(\"Add Genre\", ViewNavigator.ADD_GENRE_SCENE);\n\t}", "public void searchProduct(ActionEvent actionEvent) throws IOException {\r\n //Creates the search product scene and displays it.\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"SearchProduct.fxml\"));\r\n Parent searchProductParent = loader.load();\r\n Scene searchProductScene = new Scene(searchProductParent);\r\n\r\n //Passes in the controller.\r\n SearchProductController searchProductController = loader.getController();\r\n searchProductController.initData(controller);\r\n\r\n Stage window = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\r\n window.hide();\r\n window.setScene(searchProductScene);\r\n window.show();\r\n }", "@FXML\n void OnActionShowAddCustomerScreen(ActionEvent event) throws IOException {\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/View/AddCustomer.fxml\"));\n stage.setTitle(\"Add Customer\");\n stage.setScene(new Scene(scene));\n stage.show();\n }", "public void purchase(){\n\t\t\n\t\t//Ask the user for notes about the item\n\t\tSystem.out.println(\"Please enter any special requests regarding your \" +\n\t\t\t\t\t\t\t\"food item for our staff to see while they prepare it.\");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString foodNotes = scan.nextLine();\n\t\tnotes = foodNotes;\n\t\t\n\t\t//Add this item's price to the order total\n\t\tMenu.orderPrice += price;\n\t\t\n\t}", "protected void addButtonActionPerformed() {\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t\t// Initialize controller\n\t\tMenuController mc = new MenuControllerAdapter();\n\t\t\n\t\t// Get selected supply type\n\t\tSupplyType supply = null;\n\t\ttry {\n\t\t\tsupply = ftms.getSupplyType(selectedSupply);\n\t\t} catch (NullPointerException | IndexOutOfBoundsException e) {\n\t\t}\n\t\t\n\t\t// Get given quantity\n\t\tdouble qty = -1;\n\t\ttry {\n\t\t\tqty = Double.parseDouble(qtyTextField.getText());\n\t\t} catch (NumberFormatException | NullPointerException e) {\n\t\t}\n\t\t\n\t\t// Add supply to item\n\t\ttry {\n\t\t\tmc.addIngredientToItem(item, supply, qty);\n\t\t} catch (InvalidInputException | DuplicateTypeException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\t\n\t\trefreshData();\n\t\t\n\t}", "public void showWeaponVendorScreen(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/VendorSelectedScreen.fxml\"));\n mainScreenController.getSecondaryScreen().getChildren().clear();\n mainScreenController.getSecondaryScreen().getChildren().add((AnchorPane) loader.load());\n \n VendorSelectedScreenController controller = loader.getController();\n controller.setGame(this, gameData.getWeaponVendor());\n }catch(IOException e){\n }\n }", "x0401.oecdStandardAuditFileTaxPT1.ProductDocument.Product addNewProduct();", "public void actionPerformed(ActionEvent e) {\n\t\t\t//String userId = fields[PRODUCT_NAME].getText();\n\t\t}", "Product postProduct(Product product);", "public void printProduct() {\n System.out.println(\"nom_jeu : \" + name);\n System.out.println(\"price : \" + price);\n System.out.println(\"uniqueID : \" + identifier);\n System.out.println(\"stock : \" + stock);\n System.out.println(\"image : \" + image);\n System.out.println(\"genre : \" + genre);\n System.out.println(\"plateforme : \" + platform);\n System.out.println();\n }", "public void goToAddPartScene(ActionEvent event) throws IOException {\n Parent addPartParent = FXMLLoader.load(getClass().getResource(\"AddPart.fxml\"));\n Scene addPartScene = new Scene(addPartParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(addPartScene);\n window.show();\n }", "public CheckoutPage AddProductToCartAndCheckout(String strProductName)\n\t{\n\t\twaittillResultload(\".//*[@name='\"+strProductName+\"']/div[2]/div/span/input\", \"xpath\");\n\t\t\n\t\tinputAddToCart.click();\n\t\t\n\t\twaittillResultload(\".go_to_checkout\", \"css\");\n\t\t\n\t\tbuttonCheckout.click();\n\t\t\n\t\treturn new CheckoutPage(driver);\n\t\t\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString input = (String)comboBoxProductTitle.getSelectedItem();\n\t\t\t\t//String input = productTitleTextField.getText();\n\t\t\t\t\n\t\t\t\tif(input.trim().equals(\"Select\")){ \n\t\t\t\t\tproductTextArea.setText(\"\");\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistOfProductAuthor.setSelectedItem(\"Select\");\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select Product Title From Drop Down Menu\");\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tproductTextArea.setText(product.viewProductByTitle(input, products));\t//viewInvoiceByCustomer() is in the Invoice class\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistofProductTitle.setSelectedItem(\"Select\");\n\t\t\t\t\tlistOfProductAuthor.setSelectedItem(\"Select\");\n\t\t\t\t\tpriceRange.clearSelection();\n\t\t\t\t\tquantity.clearSelection();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tappInstall(DeviceNum1);\r\n\r\n\t\t\t}", "@FXML\n private void addNewPartType(ActionEvent event) {\n String name = nameText.getText();\n name = name.trim();\n if(name.equals(\"\")){\n showAlert(\"No Name\", \"This part type has no name, please input a name\");\n return;\n }\n \n String costText = this.costText.getText();\n costText = costText.trim();\n if(costText.equals(\"\")){\n showAlert(\"No Cost\", \"This part type has no cost, please input a cost.\");\n return;\n }\n \n String quantityText = this.quantityText.getText();\n quantityText = quantityText.trim();\n if(quantityText.equals(\"\")){\n showAlert(\"No Quantity\", \"This part type has no quantity, please input a quantity.\");\n return;\n }\n \n String description = descriptionText.getText();\n description = description.trim();\n if(description.equals(\"\")){\n showAlert(\"No Description\", \"This part type has no decription, please input a description.\");\n return;\n }\n \n double cost = Double.parseDouble(costText);\n int quantity = Integer.parseInt(quantityText);\n boolean success = partInventory.addNewPartTypeToInventory(name, \n description, cost, quantity);\n if(success){\n showAlert(\"Part Type Sucessfully Added\", \"The new part type was sucessfully added\");\n }else{\n showAlert(\"Part Type Already Exists\", \"This part already exists. If you would like to add stock, please select \\\"Add Stock\\\" on the righthand side of the screen.\\n\" \n + \"If you would like to edit this part, please double click it in the table.\");\n }\n // gets the popup window and closes it once part added\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n stage.close();\n }", "@FXML\n\tpublic void updateProduct(ActionEvent event) {\n\t\tProduct productToUpdate = restaurant.returnProduct(LabelProductName.getText());\n\t\tif (!txtUpdateProductName.getText().equals(\"\") && !txtUpdateProductPrice.getText().equals(\"\")\n\t\t\t\t&& selectedIngredients.isEmpty() == false) {\n\n\t\t\ttry {\n\t\t\t\tproductToUpdate.setName(txtUpdateProductName.getText());\n\t\t\t\tproductToUpdate.setPrice(txtUpdateProductPrice.getText());\n\t\t\t\tproductToUpdate.setSize(ComboUpdateSize.getValue());\n\t\t\t\tproductToUpdate.setType(toProductType(ComboUpdateType.getValue()));\n\t\t\t\tproductToUpdate.setIngredients(toIngredient(selectedIngredients));\n\n\t\t\t\tproductToUpdate.setEditedByUser(restaurant.returnUser(empleadoUsername));\n\n\t\t\t\trestaurant.saveProductsData();\n\t\t\t\tproductOptions.clear();\n\t\t\t\tproductOptions.addAll(restaurant.getStringReferencedIdsProducts());\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Producto actualizado satisfactoriamente\");\n\t\t\t\tdialog.setTitle(\"Proceso Satisfactorio\");\n\t\t\t\tdialog.show();\n\n\t\t\t\ttxtUpdateProductName.setText(\"\");\n\t\t\t\ttxtUpdateProductPrice.setText(\"\");\n\t\t\t\tComboUpdateSize.setValue(\"\");\n\t\t\t\tComboUpdateType.setValue(\"\");\n\t\t\t\tChoiceUpdateIngredients.setValue(\"\");\n\t\t\t\tLabelProductName.setText(\"\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los productos\");\n\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tFXMLLoader optionsFxml = new FXMLLoader(getClass().getResource(\"Options-window.fxml\"));\n\t\t\t\toptionsFxml.setController(this);\n\t\t\t\tParent opWindow = optionsFxml.load();\n\t\t\t\tmainPaneLogin.getChildren().setAll(opWindow);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "public void confirmUser() {\r\n\r\n bpConfirmUser.setTop(vbText());//Add VBox to top\r\n bpConfirmUser.setCenter(gpCenter());//Add GridPane to center\r\n bpConfirmUser.setBottom(hbButtons()); //Add Hbox to bottom\r\n\r\n bpConfirmUser.setPadding(new Insets(10, 50, 50, 50)); //Padding\r\n\r\n bpConfirmUser.setId(\"bp\"); //SetID\r\n //Create Scene and add mainBorder to it\r\n Scene myScene = new Scene(bpConfirmUser, 400, 300);\r\n\r\n //Setup Stage\r\n confirmUserStage.setTitle(\"Confirm Information\"); //Set the title of the Stage\r\n myScene.getStylesheets().add(getClass().getClassLoader().getResource(\"createuser.css\").toExternalForm());\r\n confirmUserStage.setScene(myScene); //Add Scene to Stage\r\n\r\n confirmUserStage.show(); //Show Stage\r\n\r\n }", "public String addProduct() throws Exception {\r\n\t\t\r\n\t\t//content spot entity\r\n\t\tSpotBean spotBean = new SpotBean();\r\n\t\tspotBean.setId(this.getContentSpot().getId());\r\n\t\tspotBean = contentSpotService.load(spotBean);\r\n\t\t\r\n\t\t//main content spot\r\n\t\tContentSpot content = spotBean.getContentSpot();\r\n\t\tthis.products = content.getProducts();\r\n\r\n\t\t//configure products list attribute\r\n\t\tcontent.setProducts(extractProducts());\r\n\t\t\r\n\t\treturn update(spotBean);\r\n\t}", "@Override\n\tpublic void addItems(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"+++++++++++Add items here+++++++++++\\n\");\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t//read input item id, name, price and quantity\n\t\t\tSystem.out.print(\"Enter Item Id: \");\n\t\t\tint itemId = scanner.nextInt();\n\n\t\t\tSystem.out.print(\"Enter Item Name without space: \");\n\t\t\tString itemName = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Type without space: \");\n\t\t\tString itemType = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Price: \");\n\t\t\tString itemPrice = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Quantity: \");\n\t\t\tint itemQuantity = scanner.nextInt();\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.addItems(session,itemId,itemName,itemType,itemPrice,itemQuantity);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Add Items Exception: \" +e.getMessage());\n\t\t}\n\t}", "void onProductClick(Product product, int code);", "@Override\n public void onClick(View view) {\n\n Intent intent_addProduct = new Intent(this, AddToolActivity.class);\n startActivity(intent_addProduct);\n }", "public synchronized void pdp_AddToBag() throws Exception {\n\n\t\t// Code to remove focus from zoomed image on page load\n\t\tif (!Utils.isDeviceMobile()) {\n\t\t\tActions actions = new Actions(driver);\n\t\t\tactions.moveToElement(productPrice()).build().perform();\n\t\t}\n\n\t\tutils.scrollToViewElement(driver, pdp_btn_AddToBag());\n\n\t\t// Handling Pop-Up that sometimes over shadows the ADD TO BAG button in mobile\n\t\tif (Utils.isDeviceMobile())\n\t\t\thandleBounceXOnPDP();\n\n\t\tpdp_btn_AddToBag().click();\n\t\t// Thread.sleep(3000);\n\n\t\tif (!utils.brand.equals(\"LGFP\"))\n\t\t\tAssert.assertTrue(utils.isElementPresent(driver, \"PDP_continueShopping\"),\n\t\t\t\t\t\"Item Added To Bag modal not displayed in mobile\");\n\t}", "public void gotoCreateUser(){\n try {\n FXMLCreateUserController verCreateUser = (FXMLCreateUserController) replaceSceneContent(\"FXMLCreateUser.fxml\");\n verCreateUser.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "Product addOneProduct(String name, String imgNameBarcode, String imgName, String barcode) throws Exception;", "@FXML\n\tvoid OpenCustomOrder(ActionEvent event) {\n\t\t// load the proudcts\n\t\tif (ItemTypeCombo.getSelectionModel().isEmpty() == false || ColorTxt.getText().isEmpty() == false\n\t\t\t\t|| MinTxt.getText().isEmpty() == false || MaxTxt.getText().isEmpty() == false) {\n\t\t\tmsgServer.put(\"msgType\", \"loadDeatils\");\n\t\t\tmsgServer.put(\"query\",\n\t\t\t\t\t\"SELECT * FROM product WHERE Price BETWEEN \" + MinTxt.getText() + \" AND \" + MaxTxt.getText()\n\t\t\t\t\t\t\t+ \" and Color='\" + ColorTxt.getText() + \"' and Type='\"\n\t\t\t\t\t\t\t+ ItemTypeCombo.getSelectionModel().getSelectedItem() + \"'; \");\n\t\t\tSystem.out.println(\"SELECT * FROM product WHERE Price BETWEEN \" + MinTxt.getText() + \" AND \"\n\t\t\t\t\t+ MaxTxt.getText() + \" and Color='\" + ColorTxt.getText() + \"' and Type='\"\n\t\t\t\t\t+ ItemTypeCombo.getSelectionModel().getSelectedItem() + \"'; \");\n\t\t\ttry {\n\t\t\t\tMain.client.sendMessageToServer(msgServer);\n\t\t\t\tsynchronized (Main.client) {\n\t\t\t\t\tMain.client.wait();\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tArrayList<HashMap<String, String>> Deatils = (ArrayList<HashMap<String, String>>) Main.client.getMessage();\n\t\t\t// System.out.println(Deatils.size());\n\t\t\tif (Deatils.size() == 0) {\n\t\t\t\tShowAlret(\"Sorry,we don't have products with these deatils!\");\n\t\t\t\t// ItemTypeCombo.getSelectionModel().clearSelection();\n\t\t\t\t// ColorTxt.clear();\n\t\t\t\t// MinTxt.clear();\n\t\t\t\t// MaxTxt.clear();\n\t\t\t\treturn;\n\n\t\t\t}\n\t\t\tProduct product;\n\t\t\tfor (int i = 0; i < Deatils.size(); i++) {\n\t\t\t\tproduct = new Product(Deatils.get(i).get(\"ID\"), Deatils.get(i).get(\"Name\"), Deatils.get(i).get(\"Type\"),\n\t\t\t\t\t\tDeatils.get(i).get(\"Color\"), Deatils.get(i).get(\"Price\"));\n\t\t\t\t// System.out.println(product.toString());\n\t\t\t\tlist.add(product);\n\t\t\t}\n\t\t\t// Main.proudctList = list;\n\t\t\tint i = 0;\n\t\t\tFlowPane show = new FlowPane();\n\t\t\t// show.setStyle(\"-fx-background-color: GREY\");\n\t\t\tshow.setPrefWidth(999);\n\t\t\tshow.setPrefHeight(369);\n\t\t\tshow.setPadding(new Insets(20, 0, 20, 0));\n\t\t\tshow.setVgap(30);\n\t\t\tshow.setHgap(15);\n\t\t\tshow.setAlignment(Pos.CENTER);\n\t\t\t// show.setPrefWrapLength(250); // preferred width allows for two\n\t\t\tScrollPane scroll = new ScrollPane();\n\t\t\tscroll.setPrefSize(1000, 500);\n\t\t\tPane ShowPane = new Pane();\n\t\t\t// ShowPane.setPrefSize(747, 351);\n\t\t\tShowPane.getChildren().add(show);\n\t\t\tshow.setLayoutX(10);\n\t\t\tshow.setLayoutY(10);\n\t\t\tscroll.setContent(ShowPane);\n\t\t\tscroll.setVbarPolicy(ScrollBarPolicy.AS_NEEDED);\n\t\t\tscroll.setHbarPolicy(ScrollBarPolicy.AS_NEEDED);\n\t\t\tscroll.getStylesheets().add(\"/FXML/custom.css\");\n\t\t\tscroll.getStyleClass().add(\"mylistview\");\n\t\t\tpane.getChildren().add(scroll);\n\t\t\tImageView[] images = new ImageView[list.size()];\n\t\t\twhile (i < images.length) {\n\t\t\t\tFile imagefile = new File(\"C:\\\\Zrlefiles\\\\ProudctsImages\\\\image\" + list.get(i).getProductID() + \".jpg\");\n\t\t\t\timages[i] = new ImageView(new Image(imagefile.toURI().toString()));\n\n\t\t\t\tPane ImagePane = new Pane();\n\t\t\t\t// ImagePane.setPrefSize(231, 180);\n\t\t\t\timages[i].setFitHeight(150);\n\t\t\t\timages[i].setFitWidth(221);\n\t\t\t\timages[i].setLayoutX(5);\n\t\t\t\timages[i].setLayoutY(10);\n\t\t\t\tImagePane.getChildren().add(images[i]);\n\t\t\t\tVBox box = new VBox();\n\t\t\t\tAnchorPane pane2 = new AnchorPane();\n\t\t\t\tbox.setPrefSize(236, 350);\n\t\t\t\tString string = new String(\"Proudct name:\" + list.get(i).getProductName() + \"\\nProudct type:\"\n\t\t\t\t\t\t+ list.get(i).getType() + \"\\nProudct color:\" + list.get(i).getColor() + \"\\nProudct price:\"\n\t\t\t\t\t\t+ list.get(i).getPrice());\n\t\t\t\tLabel text = new Label();\n\t\t\t\ttext.setPrefSize(205, 120);\n\t\t\t\tPane textPane = new Pane();\n\t\t\t\ttextPane.setPrefSize(205, 140);\n\t\t\t\ttextPane.getChildren().add(text);\n\t\t\t\ttext.setText(string);\n\t\t\t\ttext.setFont(Font.font(\"Josefin Sans\", FontWeight.BOLD, 16));\n\t\t\t\ttext.setWrapText(true);\n\t\t\t\tButton btn = new Button(\"Add to cart\");\n\t\t\t\tbtn.getStylesheets().add(\"/FXML/DarkTheme.css\");\n\t\t\t\tbtn.getStyleClass().add(\"button\");\n\t\t\t\tbtn.setLayoutX(79);\n\t\t\t\tbtn.setLayoutY(0);\n\t\t\t\tPane BtnPane = new Pane();\n\t\t\t\tBtnPane.setPrefWidth(236);\n\t\t\t\tBtnPane.getChildren().add(btn);\n\t\t\t\tbox.getChildren().addAll(ImagePane, textPane, BtnPane);\n\t\t\t\tpane2.getChildren().add(box);\n\t\t\t\tpane.getStylesheets().add(\"/FXML/style.css\");\n\t\t\t\tshow.getChildren().addAll(pane2);\n\t\t\t\tString btnID = Integer.toString(i);\n\t\t\t\tbtn.setId(btnID);\n\t\t\t\tbtn.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\t\tString orderID = Main.user.getOrder().getOrderID();\n\t\t\t\t\t\taddProudctToOrder(btn.getId(), orderID);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t} else {\n\t\t\tShowAlret(\"Error:please fill all required fields!\");\n\t\t}\n\t}", "@FXML\n\t private void populateAndShowProduct(Product prod) throws ClassNotFoundException {\n\t if (prod != null) {\n\t populateProduct(prod);\n\t setProdInfoToTextArea(prod);\n\t } else {\n\t resultArea.setText(\"This product does not exist!\\n\");\n\t }\n\t }", "static void addProduct(int choice) {\n\n switch (choice) { // select add method based on user choice\n\n case 1: // Scenario 1 : choice = 1, User wants to add a phone\n\n addPhone(); // run addPhone method to add new phone to the Product DB\n break;\n case 2: // Scenario 2 : choice = 2, User wants to add a TV\n\n addTV(); // run addTV method to add new tv to the Product DB\n break;\n }\n }", "@FXML\n void goToReservedItems(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the reserved items FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"ReservedItems.fxml\"));\n\n BorderPane reservedItems = (BorderPane) fxmlLoader.load();\n Scene reservedItemsScene = new Scene(reservedItems, Main.SMALL_WINDOW_WIDTH, Main.SMALL_WINDOW_HEIGHT);\n Stage reservedItemsStage = new Stage();\n\n reservedItemsStage.setScene(reservedItemsScene);\n reservedItemsStage.setTitle(Main.RESERVED_ITEMS_WINDOW_TITLE);\n reservedItemsStage.initModality(Modality.APPLICATION_MODAL);\n // Show the reserved items scene and wait for it to be closed\n reservedItemsStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n\n }", "@Then(\"^product in shown as available\")\n public void clicks_On_Add_Button(){\n }", "@Override\n public void showAddToCardMessage(ProductDto productDto) {\n showMessage(\"Товар \" + productDto.getProductName() + \" успешно добавлен в карзину\");\n }", "public void goToCart() throws IOException {\n logic.switchScene(\"fxml/CartFxml.fxml\", cartBtn, fxmlLoader);\n ((CartController) fxmlLoader.getController()).init();\n }", "@OnShow\n\tpublic void onShow() {\n\t\tviewForm.setValue(\n\t\t\t\t// load product using the \"id\" parameter\n\t\t\t\tdatastore.query().target(TARGET).filter(ID.eq(id)).findOne(PRODUCT)\n\t\t\t\t\t\t// throw an exception if not found\n\t\t\t\t\t\t.orElseThrow(() -> new DataAccessException(\"Product not found: \" + id)));\n\t}", "private void jTextFieldProductNameActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@FXML\r\n\tpublic void addToShoppingCart() {\r\n\t\t\r\n\t\tWatch w = listView.getSelectionModel().getSelectedItem();\r\n\t\tboolean add = controller.addWatchToShoppingCart(w);\r\n\t\tcontroller.deleteWishlistItem(w.getId());\r\n\t\tlistView.setItems(controller.getWishlistWatchesForCurrentUser());\r\n\t\tlistView.getSelectionModel().select(-1);\r\n\t\tcheckSelected();\r\n\t}", "@Override\n\tpublic void setUserScreenName(java.lang.String userScreenName) {\n\t\t_buySellProducts.setUserScreenName(userScreenName);\n\t}", "public void linkProduct() {\n Product result;\n String supplierID = getToken(\"Enter supplier ID: \");\n if (warehouse.searchSupplier(supplierID) == null) {\n System.out.println(\"No such supplier!\");\n return;\n }\n do {\n String productID = getToken(\"Enter product ID: \");\n result = warehouse.linkProduct(supplierID, productID);\n if (result != null) {\n System.out.println(\"Product [\" + productID + \"] assigned to supplier: [\" + supplierID + \"]\");\n }\n else {\n System.out.println(\"Product could not be assigned\");\n }\n if (!yesOrNo(\"Assign more products to supplier: [\" + supplierID + \"]\")) {\n break;\n }\n } while (true);\n }", "public void onAddByWebSitePressed( ) {\n Router.Instance().changeView(Router.Views.AddFromWebSite);\n }", "public void handleAddParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartController partController = fxmlLoader.getController();\n partController.setModifyParts(false);\n partController.setInventory(inventory);\n partController.setHomeController(this);\n\n // Spin up part form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Parts\");\n stage.setScene(new Scene(root));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\n void onActionAddCustomer(ActionEvent event) throws IOException {\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(Objects.requireNonNull(getClass().getResource(\"/Views/AddCustomer.fxml\")));\n stage.setScene(new Scene(scene));\n stage.show();\n }", "void purchaseMade();", "public static void sendViewedProduct(final Context context, final Product product)\r\n {\r\n SharedPreferencesManager sharedPreferencesManager = new SharedPreferencesManager(context);\r\n\r\n User user = sharedPreferencesManager.retrieveUser();\r\n long id = user.getId();\r\n\r\n String fixedURL = Utils.fixUrl(Properties.SERVER_URL + \":\" + Properties.SERVER_SPRING_PORT\r\n + \"/users/\" + id + \"/\" + product.getId() + \"/\" + Properties.ACTION_VIEWED);\r\n\r\n Log.d(Properties.TAG, \"[REST_CLIENT_SINGLETON] Conectando con: \" + fixedURL + \" para marcar el producto como visto\");\r\n\r\n StringRequest stringRequest = new StringRequest(Request.Method.GET\r\n , fixedURL\r\n , new Response.Listener<String>()\r\n {\r\n @Override\r\n public void onResponse(String response) {}\r\n }\r\n , new Response.ErrorListener()\r\n {\r\n @Override\r\n public void onErrorResponse(VolleyError error) {}\r\n });\r\n\r\n VolleySingleton.getInstance(context).addToRequestQueue(stringRequest);\r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString[] v=new String[6];\r\n\t\t\t\tv[0] =String.valueOf(DBInsert.getMaxNum(Login.c,\"product\",\"p_num\")+1);\r\n\t\t\t\tv[1] =tfName.getText();\r\n\t\t\t\tv[2] =tfPrice.getText();\r\n\t\t\t\tv[3] =tfPrimeCost.getText();\r\n\t\t\t\tv[4] = (String)vSupplier.get(cbSupplier.getSelectedIndex());\r\n\t\t\t\tv[5] =tfType.getText();\r\n\t\t\t\tDBInsert.DBInsert(Login.c, \"product\", strCols, v);\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"상품 등록 완료\");\r\n\t\t\t}", "public void clickOnAddToCartButton()\n \t{\n \t\tproductRequirementsPageLocators.clickAddToCartButton.click();\n\n \t}", "public CategoryIPhone AddProductToCartAndContinue(String strProductName)\n\t{\n\t\t\n\t\twaittillResultload(\".//*[@name='\"+strProductName+\"']/div[2]/div/span/input\", \"xpath\");\n\t\t\n\t\tinputAddToCart.click();\n\t\t\n\t\twaittillResultload(\".continue_shopping\", \"css\");\n\t\t\n\t\tbuttonContinueShopping.click();\n\t\t\n\t\treturn this;\n\t\t\n\t}" ]
[ "0.7139945", "0.68106884", "0.6658261", "0.6654204", "0.6600103", "0.65891796", "0.6505114", "0.6487879", "0.64419013", "0.6436279", "0.6256074", "0.6248576", "0.62362283", "0.61941975", "0.6165121", "0.609303", "0.607759", "0.6055819", "0.60533524", "0.60283303", "0.60165715", "0.6003789", "0.59748816", "0.5962757", "0.5943307", "0.59292704", "0.59055877", "0.5899014", "0.58980894", "0.5873554", "0.5868252", "0.5862239", "0.58601147", "0.5856877", "0.58290094", "0.5823911", "0.5809038", "0.5788105", "0.57825047", "0.5781855", "0.575434", "0.57492113", "0.57291985", "0.57184756", "0.5697454", "0.5694623", "0.56902665", "0.5676774", "0.56672835", "0.56666535", "0.56520075", "0.5643947", "0.5643933", "0.56381243", "0.56347877", "0.5631775", "0.56295294", "0.562404", "0.56137216", "0.5592245", "0.559184", "0.5590139", "0.5580895", "0.55724895", "0.55648994", "0.55634356", "0.5561471", "0.55566466", "0.5554872", "0.5548808", "0.5548035", "0.5533853", "0.5531957", "0.5524435", "0.5517517", "0.55140173", "0.5513492", "0.55020845", "0.54709166", "0.5469208", "0.5469031", "0.5463306", "0.54614633", "0.54557717", "0.54517514", "0.5450734", "0.54483926", "0.54482144", "0.5445442", "0.5438252", "0.5426556", "0.5426051", "0.54177403", "0.5417014", "0.5403624", "0.54003334", "0.5394977", "0.53946936", "0.5391802", "0.53914845" ]
0.7118589
1
Sends the user to the ModifyProductScene. Makes sure a Product is focused, otherwise an alert is issued and the user stays on the main scene.
public void goToModifyProductScene(ActionEvent event) throws IOException { if(productTableView.getSelectionModel().isEmpty()) { alert.setAlertType(Alert.AlertType.ERROR); alert.setContentText("Please make sure you've added a Product and selected the Product you want to modify."); alert.show(); } else { int i = productTableView.getSelectionModel().getFocusedIndex(); setFocusedIndex(i); Parent addProductParent = FXMLLoader.load(getClass().getResource("ModifyProduct.fxml")); Scene modifyProductScene = new Scene(addProductParent); Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow(); window.setScene(modifyProductScene); window.show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleModifyProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n if (getProductToModify() != null)\n {\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(true);\n productController.setProductToModify(getProductToModify());\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Products\");\n stage.setScene(new Scene(root));\n stage.show();\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to modify from the product table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\r\n public void onActionToModifyProductScreen(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n\r\n //Get product information from the Product Controller in order to populate the modify screen text fields\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyProduct.fxml\"));\r\n loader.load();\r\n\r\n ProductController proController = loader.getController();\r\n\r\n if (productsTableView.getSelectionModel().getSelectedItem() != null) {\r\n proController.sendProduct(productsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify In-house Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to modify.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (IllegalStateException e) {\r\n //ignore\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "private void editProduct() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter Product Id - \");\n\t\t\tint productId = getValidInteger(\"Enter Product Id -\");\n\t\t\twhile (!CartController.getInstance().isProductPresentInCart(\n\t\t\t\t\tproductId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id - \");\n\t\t\t\tproductId = getValidInteger(\"Enter Product Id -\");\n\t\t\t}\n\t\t\tSystem.out.println(\"Enter new Quantity of Product\");\n\t\t\tint quantity = getValidInteger(\"Enter new Quantity of Product\");\n\t\t\tCartController.getInstance().editProductFromCart(productId,\n\t\t\t\t\tquantity);\n\t\t} else {\n\t\t\tDisplayOutput.getInstance().displayOutput(\n\t\t\t\t\t\"\\n-----Cart Is Empty----\\n\");\n\t\t}\n\t}", "public void purchaseProduct(ActionEvent actionEvent) {\r\n try {\r\n //Initialises a text input dialog.\r\n TextInputDialog dialog = new TextInputDialog(\"\");\r\n dialog.setHeaderText(\"Enter What Is Asked Below!\");\r\n dialog.setContentText(\"Please Enter A Product Name:\");\r\n dialog.setResizable(true);\r\n dialog.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\r\n\r\n //Takes in the users value\r\n Optional<String> result = dialog.showAndWait();\r\n //Makes the purchase and adds the transaction.\r\n String theResult = controller.purchaseProduct(result.get());\r\n //If the product isn't found.\r\n if (theResult.equals(\"Product Doesn't Match\")) {\r\n //Display an error message.\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.initStyle(StageStyle.UTILITY);\r\n alert.setHeaderText(\"Read Information Below!\");\r\n alert.setContentText(\"PRODUCT NOT FOUND! - CONTACT ADMINISTRATOR!\");\r\n alert.setResizable(true);\r\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\r\n alert.showAndWait();\r\n //If it is found.\r\n } else if (theResult.equals(\"Product Match!\")) {\r\n //Display a message saying that the product is found.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.initStyle(StageStyle.UTILITY);\r\n alert.setHeaderText(\"Read Information Below!\");\r\n alert.setContentText(\"PRODUCT PURCHASED!\");\r\n alert.setResizable(true);\r\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\r\n alert.showAndWait();\r\n }//END IF/ELSE\r\n } catch (HibernateException e){\r\n //If the database disconnects then display an error message.\r\n ErrorMessage message = new ErrorMessage();\r\n message.errorMessage(\"DATABASE DISCONNECTED! - SYSTEM SHUTDOWN!\");\r\n System.exit(0);\r\n } //END TRY/CATCH\r\n }", "public void handleAddProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(false);\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Products\");\n stage.setScene(new Scene(root));\n stage.show();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML void onActionModifyProductSave(ActionEvent event) throws IOException {\n\n try{\n //obtain user generated data\n String productName = productNameField.getText();\n int productInv = Integer.parseInt(productInvField.getText());\n Double productPrice = Double.parseDouble(productPriceField.getText());\n int productMax = Integer.parseInt(productMaxField.getText());\n int productMin = Integer.parseInt(productMinField.getText());\n\n if(productMax < productMin){\n Alert alert = new Alert(Alert.AlertType.ERROR, \"Max must be greater than min.\");\n alert.setTitle(\"Invalid entries\");\n alert.showAndWait();\n } else if(productInv < productMin || productInv > productMax) {\n Alert alert = new Alert(Alert.AlertType.ERROR, \"Inv must be between min and max.\");\n alert.setTitle(\"Invalid entries\");\n alert.showAndWait();\n } else {\n\n //save the updated data into the inventory\n Product newProduct = new Product(Integer.parseInt(productIdField.getText()), productName, productPrice,productInv, productMin, productMax);\n\n //save the updated list of associated parts to the product\n newProduct.getAllAssociatedParts().addAll(tmpAssociatedParts);\n\n //save the updated product to inventory\n Inventory.updateProduct(newProduct);\n\n // switch the screen\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n //load the new scene\n scene = FXMLLoader.load(getClass().getResource(\"/view/MainMenu.fxml\"));\n stage.setScene(new Scene(scene));\n stage.show();\n }\n } catch(NumberFormatException e){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Invalid Entries\");\n alert.setContentText(\"Please enter a valid value for each text field. All entries must be numeric except Name.\");\n alert.showAndWait();\n }\n\n }", "@FXML\n\tprivate void handleEditProducts() {\n\t\tboolean okClicked = showProducts();\n\t\tsaveCurrentAcknowledgment();\n\t\tsetAcknowledgment(acknowledgment);\n\t}", "@FXML\r\n void onActionSaveProduct(ActionEvent event) throws IOException {\r\n\r\n int id = Inventory.ProductCounter();\r\n String name = AddProductName.getText();\r\n int stock = Integer.parseInt(AddProductStock.getText());\r\n Double price = Double.parseDouble(AddProductPrice.getText());\r\n int max = Integer.parseInt(AddProductMax.getText());\r\n int min = Integer.parseInt(AddProductMin.getText());\r\n\r\n Inventory.addProduct(new Product(id, name, price, stock, min, max, product.getAllAssociatedParts()));\r\n\r\n\r\n //EXCEPTION SET 1 REQUIREMENT\r\n if(min > max){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"ERROR\");\r\n alert.setContentText(\"Quantity minimum is larger than maximum.\");\r\n alert.showAndWait();\r\n return;\r\n } if (stock > max){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"ERROR\");\r\n alert.setContentText(\"Inventory quantity exceeds maximum stock allowed.\");\r\n alert.showAndWait();\r\n return;\r\n }\r\n changeScreen(event, \"MainScreen.fxml\");\r\n }", "@FXML\n void saveModifyProductButton(ActionEvent event) throws IOException {\n\n try {\n int id = selectedProduct.getId();\n String name = productNameText.getText();\n Double price = Double.parseDouble(productPriceText.getText());\n int stock = Integer.parseInt(productInventoryText.getText());\n int min = Integer.parseInt(productMinText.getText());\n int max = Integer.parseInt(productMaxText.getText());\n\n if (name.isEmpty()) {\n AlartMessage.displayAlertAdd(5);\n } else {\n if (minValid(min, max) && inventoryValid(min, max, stock)) {\n\n Product newProduct = new Product(id, name, price, stock, min, max);\n\n assocParts.forEach((part) -> {\n newProduct.addAssociatedPart(part);\n });\n\n Inventory.addProduct(newProduct);\n Inventory.deleteProduct(selectedProduct);\n mainScreen(event);\n }\n }\n } catch (IOException | NumberFormatException e){\n AlartMessage.displayAlertAdd(1);\n }\n }", "public void selectAProduct() {\n specificProduct.click();\n }", "@Override\r\n\tpublic void ManageProduct() {\n\t\tint id = this.view.enterId();\r\n\t\tString name = this.view.enterName();\r\n\t\tfloat price = this.view.enterPrice();\r\n\t\tint quantity = this.view.enterQuantity();\r\n\t\t\r\n\t\tthis.model.updProduct(id, name, price, quantity);\r\n\t}", "@Override\n\tprotected void selectedProductChanged()\n\t{\n\t\tgetController().selectedProductChanged();\n\t}", "public void editProduct(SiteProduct product) {\n showForm(product != null);\n //form.editProduct(product);\n }", "private void ShowProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ShowProductActionPerformed\n alert.setText(\"\");\n if (displayMgr.mainMgr.orderMgr.getCart().isEmpty())\n RowItem.setText(\"Add items to the cart first\");\n else {\n displayMgr.POU.addRowToTable();\n displayMgr.showProductScreen();\n }\n }", "public String editProduct() {\n ConversationContext<Product> ctx = ProductController.newEditContext(products.getSelectedRow());\n ctx.setLabelWithKey(\"part_products\");\n ctx.setCallBack(editProductCallBack);\n getCurrentConversation().setNextContextSub(ctx);\n return ctx.view();\n }", "public boolean showProducts() {\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(MainApp.class.getResource(\"view/Products.fxml\"));\n\t\t\tAnchorPane layout = (AnchorPane) loader.load();\n\t\t\t\n\t\t\tStage productStage = new Stage();\n\t\t\tproductStage.setTitle(\"Add / Edit Products\");\n\t\t\tproductStage.getIcons().add(new Image(\"file:resources/images/logo.png\"));\n\t\t\tproductStage.initModality(Modality.WINDOW_MODAL);\n\t\t\tproductStage.initOwner(dialogStage);\n\t\t\t\n\t\t\tScene scene = new Scene(layout);\n\t\t\tproductStage.setScene(scene);\n\t\t\t\n\t\t\tProductsController controller = loader.getController();\n\t\t\tcontroller.setProductStage(productStage);\n\t\t\tcontroller.setMain(main);\n\t\t\tcontroller.setAcknowledgment(acknowledgment);\n\t\t\t\n\t\t\tproductStage.showAndWait();\n\t\t\t\n\t\t\treturn controller.isOkClicked();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tmain.getDbHelper().insertError(e, main.getPreferenceList().get(0).getUsername());\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString input = (String)comboBoxProductTitle.getSelectedItem();\n\t\t\t\t//String input = productTitleTextField.getText();\n\t\t\t\t\n\t\t\t\tif(input.trim().equals(\"Select\")){ \n\t\t\t\t\tproductTextArea.setText(\"\");\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistOfProductAuthor.setSelectedItem(\"Select\");\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select Product Title From Drop Down Menu\");\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tproductTextArea.setText(product.viewProductByTitle(input, products));\t//viewInvoiceByCustomer() is in the Invoice class\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistofProductTitle.setSelectedItem(\"Select\");\n\t\t\t\t\tlistOfProductAuthor.setSelectedItem(\"Select\");\n\t\t\t\t\tpriceRange.clearSelection();\n\t\t\t\t\tquantity.clearSelection();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "@FXML\n\tpublic void updateProduct(ActionEvent event) {\n\t\tProduct productToUpdate = restaurant.returnProduct(LabelProductName.getText());\n\t\tif (!txtUpdateProductName.getText().equals(\"\") && !txtUpdateProductPrice.getText().equals(\"\")\n\t\t\t\t&& selectedIngredients.isEmpty() == false) {\n\n\t\t\ttry {\n\t\t\t\tproductToUpdate.setName(txtUpdateProductName.getText());\n\t\t\t\tproductToUpdate.setPrice(txtUpdateProductPrice.getText());\n\t\t\t\tproductToUpdate.setSize(ComboUpdateSize.getValue());\n\t\t\t\tproductToUpdate.setType(toProductType(ComboUpdateType.getValue()));\n\t\t\t\tproductToUpdate.setIngredients(toIngredient(selectedIngredients));\n\n\t\t\t\tproductToUpdate.setEditedByUser(restaurant.returnUser(empleadoUsername));\n\n\t\t\t\trestaurant.saveProductsData();\n\t\t\t\tproductOptions.clear();\n\t\t\t\tproductOptions.addAll(restaurant.getStringReferencedIdsProducts());\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Producto actualizado satisfactoriamente\");\n\t\t\t\tdialog.setTitle(\"Proceso Satisfactorio\");\n\t\t\t\tdialog.show();\n\n\t\t\t\ttxtUpdateProductName.setText(\"\");\n\t\t\t\ttxtUpdateProductPrice.setText(\"\");\n\t\t\t\tComboUpdateSize.setValue(\"\");\n\t\t\t\tComboUpdateType.setValue(\"\");\n\t\t\t\tChoiceUpdateIngredients.setValue(\"\");\n\t\t\t\tLabelProductName.setText(\"\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los productos\");\n\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tFXMLLoader optionsFxml = new FXMLLoader(getClass().getResource(\"Options-window.fxml\"));\n\t\t\t\toptionsFxml.setController(this);\n\t\t\t\tParent opWindow = optionsFxml.load();\n\t\t\t\tmainPaneLogin.getChildren().setAll(opWindow);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\t\td5.dispose();\r\n\t\t\t\t\t\t\t\ttextField_productID_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t}", "@FXML\n\tpublic void enableProduct(ActionEvent event) {\n\t\tif (!txtNameDisableProduct.getText().equals(\"\")) {\n\t\t\tList<Product> searchedProducts = restaurant.findSameProduct(txtNameDisableProduct.getText());\n\t\t\tif (!searchedProducts.isEmpty()) {\n\t\t\t\ttry {\n\t\t\t\t\tfor (int i = 0; i < searchedProducts.size(); i++) {\n\t\t\t\t\t\tsearchedProducts.get(i).setCondition(Condition.ACTIVE);\n\t\t\t\t\t}\n\t\t\t\t\trestaurant.saveProductsData();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"El producto ha sido habilitado\");\n\t\t\t\t\tdialog.setTitle(\"Producto Deshabilitado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t\ttxtNameDisableProduct.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los productos\");\n\t\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\t\tdialog.show();\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Este producto no existe\");\n\t\t\t\tdialog.setTitle(\"Error\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Debe ingresar el nombre del producto\");\n\t\t\tdialog.setTitle(\"Error\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "public void goToAddProductScene(ActionEvent event) throws IOException {\n Parent addProductParent = FXMLLoader.load(getClass().getResource(\"AddProduct.fxml\"));\n Scene addProductScene = new Scene(addProductParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(addProductScene);\n window.show();\n }", "@FXML\n\tpublic void disableProduct(ActionEvent event) {\n\t\tif (!txtNameDisableProduct.getText().equals(\"\")) {\n\t\t\tList<Product> searchedProducts = restaurant.findSameProduct(txtNameDisableProduct.getText());\n\t\t\tif (!searchedProducts.isEmpty()) {\n\t\t\t\ttry {\n\t\t\t\t\tfor (int i = 0; i < searchedProducts.size(); i++) {\n\t\t\t\t\t\tsearchedProducts.get(i).setCondition(Condition.INACTIVE);\n\t\t\t\t\t}\n\t\t\t\t\trestaurant.saveProductsData();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"El producto ha sido deshabilitado\");\n\t\t\t\t\tdialog.setTitle(\"Producto Deshabilitado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t\ttxtNameDisableProduct.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los productos\");\n\t\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Este Producto no existe\");\n\t\t\t\tdialog.setTitle(\"Error, objeto no existente\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Debe ingresar el nombre del producto\");\n\t\t\tdialog.setTitle(\"Error\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "@FXML\r\n public void onActionToAddProductScreen(ActionEvent actionEvent) throws IOException {\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/addProduct.fxml\"));\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 980, 560);\r\n stage.setTitle(\"Add Product\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "public void deleteProduct()\n {\n ObservableList<Product> productRowSelected;\n productRowSelected = productTableView.getSelectionModel().getSelectedItems();\n int index = productTableView.getSelectionModel().getFocusedIndex();\n Product product = productTableView.getItems().get(index);\n if(productRowSelected.isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please select the Product you want to delete.\");\n alert.show();\n } else if (!product.getAllAssociatedParts().isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"This Product still has a Part associated with it. \\n\" +\n \"Please modify the Product and remove the Part.\");\n alert.show();\n } else {\n alert.setAlertType(Alert.AlertType.CONFIRMATION);\n alert.setContentText(\"Are you sure you want to delete this Product?\");\n alert.showAndWait();\n ButtonType result = alert.getResult();\n if(result == ButtonType.OK)\n {\n Inventory.deleteProduct(product);\n }\n }\n }", "public void inventoryManageItemScreen( ActionEvent event ) throws Exception{\n\t\tif(userObj.getType().equalsIgnoreCase(\"Stock Manager\"))\n\t\t{\n\t\t\t\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(getClass().getResource(\"/view/InventoryItems.fxml\"));\n\t\t\tParent parent = loader.load();\n\t\t\t\n\t\t\tScene scene = new Scene(parent);\n\t\t\tscene.getStylesheets().add(getClass().getResource(\"/view/application.css\").toExternalForm());\n\t\t\t\n\t\t\tInventoryManageItemsController controller = loader.getController();\n\t\t\tcontroller.loadUser(userObj);\n\t\t\t\n\t\t\tStage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\t\t\t\n\t\t\twindow.setScene(scene);\n\t\t\twindow.show();\n\t\t\twindow.centerOnScreen();\n\t\t\t\n\t\t}else {\n\t\t\tGenerator.getAlert(\"Access Denied\", \"You don't have access to Inventory Management\");\n\t\t}\n\t\n\t}", "public void goToModifyPartScene(ActionEvent event) throws IOException {\n\n if(partTableView.getSelectionModel().isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please make sure you've added a Part and selected the Part you want to modify.\");\n alert.show();\n } else {\n int i = partTableView.getSelectionModel().getFocusedIndex();\n setFocusedIndex(i);\n Parent addPartParent = FXMLLoader.load(getClass().getResource(\"ModifyPart.fxml\"));\n Scene modifyPartScene = new Scene(addPartParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(modifyPartScene);\n window.show();\n }\n\n\n }", "@FXML\r\n public void lookupProduct() {\r\n \r\n String text = productSearchTxt.getText().trim();\r\n if (text.isEmpty()) {\r\n //No text was entered. Displaying all existing products from inventory, if available\r\n displayMessage(\"No text entered. Displaying existing products, if available\");\r\n updateProductsTable(stock.getAllProducts());\r\n }\r\n else{\r\n ObservableList<Product> result = stock.lookupProduct(text);\r\n if (!result.isEmpty()) {\r\n //Product found in inventory. Displaying information available. \r\n updateProductsTable(result);\r\n }\r\n else {\r\n //Product not found in inventory. Displaying all existing products from inventory, if available\r\n displayMessage(\"Product not found. Displaying existing products, if available\");\r\n updateProductsTable(stock.getAllProducts());\r\n }\r\n }\r\n }", "public void handleDeleteProducts()\n {\n Product productToDelete = getProductToModify();\n\n if (productToDelete != null)\n {\n // Ask user for confirmation to remove the product from product table\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation\");\n alert.setHeaderText(\"Delete Confirmation\");\n alert.setContentText(\"Are you sure you want to delete this product?\");\n ButtonType confirm = new ButtonType(\"Yes\", ButtonBar.ButtonData.YES);\n ButtonType deny = new ButtonType(\"No\", ButtonBar.ButtonData.NO);\n ButtonType cancel = new ButtonType(\"Cancel\", ButtonBar.ButtonData.CANCEL_CLOSE);\n alert.getButtonTypes().setAll(confirm, deny, cancel);\n alert.showAndWait().ifPresent(type ->{\n if (type == confirm)\n {\n // User cannot delete products with associated parts\n if (productToDelete.getAllAssociatedParts().size() > 0)\n {\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\n alert2.setTitle(\"Action is Forbidden!\");\n alert2.setHeaderText(\"Action is Forbidden!\");\n alert2.setContentText(\"Products with associated parts cannot be deleted!\\n \" +\n \"Please remove associated parts from product and try again!\");\n alert2.show();\n }\n else\n {\n // delete the product\n inventory.deleteProduct(productToDelete);\n updateProducts();\n productTable.getSelectionModel().clearSelection();\n }\n }\n });\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to delete from the part table!\");\n alert.show();\n }\n this.productTable.getSelectionModel().clearSelection();\n }", "public void searchProduct(ActionEvent actionEvent) throws IOException {\r\n //Creates the search product scene and displays it.\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"SearchProduct.fxml\"));\r\n Parent searchProductParent = loader.load();\r\n Scene searchProductScene = new Scene(searchProductParent);\r\n\r\n //Passes in the controller.\r\n SearchProductController searchProductController = loader.getController();\r\n searchProductController.initData(controller);\r\n\r\n Stage window = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\r\n window.hide();\r\n window.setScene(searchProductScene);\r\n window.show();\r\n }", "private void buyProduct() {\n\t\tSystem.out.println(\"Enter Number of Product :- \");\n\t\tint numberOfProduct = getValidInteger(\"Enter Number of Product :- \");\n\t\twhile (!StoreController.getInstance().isValidNumberOfProduct(\n\t\t\t\tnumberOfProduct)) {\n\t\t\tSystem.out.println(\"Enter Valid Number of Product :- \");\n\t\t\tnumberOfProduct = getValidInteger(\"Enter Number of Product :- \");\n\t\t}\n\t\tfor (int number = 1; number <= numberOfProduct; number++) {\n\t\t\tSystem.out.println(\"Enter \" + number + \" Product Id\");\n\t\t\tint productId = getValidInteger(\"Enter \" + number + \" Product Id\");\n\t\t\twhile (!StoreController.getInstance().isValidProductId(productId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id\");\n\t\t\t\tproductId = getValidInteger(\"Enter \" + number + \" Product Id\");\n\t\t\t}\n\t\t\tSystem.out.println(\"Enter product Quantity\");\n\t\t\tint quantity = getValidInteger(\"Enter product Quantity\");\n\t\t\tCartController.getInstance().addProductToCart(productId, quantity);\n\t\t}\n\t}", "public void openProductEditor()\n {\n ArrayList<GenericEditor.GERow> rows = new ArrayList<>();\n rows.add(new GenericEditor.GERow(\"Product\", \"Product Name\", this));\n rows.add(new GenericEditor.GERow(\"Store\", \"Store Name\", this));\n rows.add(new GenericEditor.GERow(\"Deal\", \"Deal Description\", this));\n rows.add(new GenericEditor.GERow(\"Price\", \"$$$\", this));\n\n\n GenericEditor pEditor = new GenericEditor(\"Product Editor\", rows);\n pEditor.setOnInputListener(productEditorListener);\n\n pEditor.show(getSupportFragmentManager(), \"ProductEditor\");\n }", "@FXML\n void goToInventoryBrowser(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the inventory browser FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"InventoryBrowser.fxml\"));\n\n BorderPane inventoryBrowser = (BorderPane) fxmlLoader.load();\n Scene inventoryBrowserScene = new Scene(inventoryBrowser, Main.INVENTORY_BROWSER_WINDOW_WIDTH,\n Main.INVENTORY_BROWSER_WINDOW_HEIGHT);\n Stage inventoryBrowserStage = new Stage();\n\n inventoryBrowserStage.setScene(inventoryBrowserScene);\n inventoryBrowserStage.setTitle(Main.INVENTORY_BROWSER_WINDOW_TITLE);\n inventoryBrowserStage.initModality(Modality.APPLICATION_MODAL);\n // Show the inventory browser scene and wait for it to be closed\n inventoryBrowserStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n }", "public void Editproduct(Product objproduct) {\n\t\t\n\t}", "@FXML\n\t private void populateAndShowProduct(Product prod) throws ClassNotFoundException {\n\t if (prod != null) {\n\t populateProduct(prod);\n\t setProdInfoToTextArea(prod);\n\t } else {\n\t resultArea.setText(\"This product does not exist!\\n\");\n\t }\n\t }", "@Override\n public void saveButtonListener() {\n // Resets Error Label for resubmit.\n productErrorLabel.setVisible(false);\n productErrorLabel.setText(\"\");\n // If super's error checks are true for any changes to text fields.\n // Then set new values and update product.\n if (getFieldValues()) {\n this.product.setName(this.productName);\n this.product.setPrice(this.productPrice);\n this.product.setStock(this.productInv);\n this.product.setMax(this.productMax);\n this.product.setMin(this.productMin);\n Inventory.updateProduct(productIndex, this.product);\n // Close window\n Stage stage = (Stage) productSaveButton.getScene().getWindow();\n stage.close();\n }\n }", "Product editProduct(Product product);", "public void updateProduct() throws ApplicationException {\n Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n\n try {\n session.beginTransaction();\n Menu updateProduct = (Menu) session.get(Menu.class, menuFxObjectPropertyEdit.getValue().getIdProduct());\n\n updateProduct.setName(menuFxObjectPropertyEdit.getValue().getName());\n updateProduct.setPrice(menuFxObjectPropertyEdit.getValue().getPrice());\n\n session.update(updateProduct);\n session.getTransaction().commit();\n } catch (RuntimeException e) {\n session.getTransaction().rollback();\n SQLException sqlException = getCauseOfClass(e, SQLException.class);\n throw new ApplicationException(sqlException.getMessage());\n }\n\n initMenuList();\n }", "public void editProduct(String newProductId) {\n fill(\"#productId\").with(newProductId);\n fill(\"#name\").with(newProductId);\n fill(\"#description\").with(\"A nice product\");\n submit(\"#update\");\n }", "@FXML void onActionModifyProductCancel(ActionEvent event) throws IOException {\n //cast as a button then as a stage to get the stage for the button\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n //load the new scene\n scene = FXMLLoader.load(getClass().getResource(\"/view/MainMenu.fxml\"));\n stage.setScene(new Scene(scene));\n stage.show();\n }", "public void addProduct() throws Throwable\r\n\t{\r\n\t\tgoToProductsSection();\r\n\t\tverifyProduct();\r\n\t\tselPproductBtn.click();\r\n\t\twdlib.verify(wdlib.getPageTitle(),flib.getPropKeyValue(PROP_PATH, \"ProductsPage\") , \"Products Page \");\r\n\t\tProductsPage pdpage=new ProductsPage();\r\n\t\tpdpage.selectProducts();\r\n\t}", "public void fn_selectfirstproduct() throws Exception {\r\n\t\ttry {\r\n\r\n\t\t\tfirstproduct.click();\r\n\t\t\t\r\n\t\t\t ArrayList<String> tabs_windows = new ArrayList<String> (Driver.getDriver().getWindowHandles());\r\n\t\t\t Driver.getDriver().switchTo().window(tabs_windows.get(1));\r\n\t\t\r\n\t\t\treport.logPortalExtentreport(Driver.getDriver(), logger, \"PASS\", \"Expected :First product should be selected successfully Actual : First product selected successfully\", \"first product\");\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treport.logPortalExtentreport(Driver.getDriver(), logger, \"FAIL\", \"first product selected not selected \" , \"first product\");\r\n\t\t\t\r\n\t\t}\r\n\t}", "@FXML\n void cancelModifyProductButton(ActionEvent event) throws IOException {\n\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Alert\");\n alert.setContentText(\"Are you sure you want cancel changes and return to the main screen?\");\n Optional<ButtonType> result = alert.showAndWait();\n\n if (result.isPresent() && result.get() == ButtonType.OK) {\n mainScreen(event);\n }\n }", "public void GuestAction(ActionEvent event) throws IOException {\n myDB.GuestLogIn();\n NameTransfer.getInstance().setName(\"Guest\");\n \n pm.changeScene(event, \"/sample/fxml/ProductsSample.fxml\", \"products\");\n \n \n }", "private void jTextFieldProductNameActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@FXML\r\n private void addProduct(ActionEvent event) {\r\n ParameterController parameterController = new ParameterController();\r\n Product product = cb_Product.getValue();\r\n Category category = cb_Category.getValue();\r\n\r\n try {\r\n if (tf_Amount.getText().isEmpty() || Double.parseDouble(tf_Amount.getText().replace(',', '.')) <= 0) {\r\n Alert alert = new Alert(Alert.AlertType.ERROR, \"Bitte geben Sie zum Erstellen eine gültige Zahl ein, die größer als 0 ist.\");\r\n alert.getDialogPane().getChildren().stream().filter(node -> node instanceof Label).forEach(node -> ((Label) node).setMinHeight(Region.USE_PREF_SIZE));\r\n alert.showAndWait();\r\n } else {\r\n Component component = new Component(product.getFullName(),\r\n product.getWidthProduct(),\r\n product.getHeightProduct(),\r\n product.getLengthProduct(),\r\n product.getPriceUnit() * Double.parseDouble(tf_Amount.getText().replace(',', '.')),\r\n Double.parseDouble(tf_Amount.getText().replace(',', '.')),\r\n category,\r\n product.getUnit(),\r\n product,\r\n ProjectViewController.getOpenedProject());\r\n\r\n component.setTailoringHours(parameterController.findParameterPByShortTerm(\"KZG\").getDefaultValue());\r\n component.setTailoringPricePerHour(parameterController.findParameterPByShortTerm(\"KPSZ\").getDefaultValue());\r\n component.setComponentType(\"Kubikmeter\");\r\n\r\n components.add(component);\r\n if (Long.compare(category.getId(), new CategoryController().findCategoryByShortTerm(\"KD\").getId()) == 0) {\r\n setChanged();\r\n notifyObservers();\r\n }\r\n ModifyController.getInstance().setProject_constructionmaterialList(Boolean.TRUE);\r\n }\r\n } catch (NumberFormatException ex) {\r\n Alert alert = new Alert(Alert.AlertType.ERROR, \"Die Anzahl darf nur Zahlen enthalten\");\r\n alert.getDialogPane().getChildren().stream().filter(node -> node instanceof Label).forEach(node -> ((Label) node).setMinHeight(Region.USE_PREF_SIZE));\r\n alert.showAndWait();\r\n }\r\n\r\n refreshTable();\r\n }", "@FXML\n void goToReservedItems(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the reserved items FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"ReservedItems.fxml\"));\n\n BorderPane reservedItems = (BorderPane) fxmlLoader.load();\n Scene reservedItemsScene = new Scene(reservedItems, Main.SMALL_WINDOW_WIDTH, Main.SMALL_WINDOW_HEIGHT);\n Stage reservedItemsStage = new Stage();\n\n reservedItemsStage.setScene(reservedItemsScene);\n reservedItemsStage.setTitle(Main.RESERVED_ITEMS_WINDOW_TITLE);\n reservedItemsStage.initModality(Modality.APPLICATION_MODAL);\n // Show the reserved items scene and wait for it to be closed\n reservedItemsStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n\n }", "public void handleModifyParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartController partController = fxmlLoader.getController();\n\n if (getPartToModify() != null)\n {\n partController.setModifyParts(true);\n partController.setPartToModify(getPartToModify());\n partController.setInventory(inventory);\n partController.setHomeController(this);\n\n // Spin up part form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Parts\");\n stage.setScene(new Scene(root));\n stage.show();\n\n }\n else {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No part was selected!\");\n alert.setContentText(\"Please select a part to modify from the part table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void saveChanges() {\n product.setName(productName);\n product.setPrice(price);\n\n viewModel.updateProduct(product, new OnAsyncEventListener() {\n @Override\n public void onSuccess() {\n Log.d(TAG, \"updateProduct: success\");\n Intent intent = new Intent(EditProductActivity.this, MainActivity.class);\n startActivity(intent);\n }\n\n @Override\n public void onFailure(Exception e) {\n Log.d(TAG, \"updateProduct: failure\", e);\n final androidx.appcompat.app.AlertDialog alertDialog = new androidx.appcompat.app.AlertDialog.Builder(EditProductActivity.this).create();\n alertDialog.setTitle(\"Can not save\");\n alertDialog.setCancelable(true);\n alertDialog.setMessage(\"Cannot edit this product\");\n alertDialog.setButton(androidx.appcompat.app.AlertDialog.BUTTON_NEGATIVE, \"ok\", (dialog, which) -> alertDialog.dismiss());\n alertDialog.show();\n }\n });\n }", "public void enterItem(String productId) {\r\n\t\tproduct = ProductCatalog.getProductCatalogMap().get(productId);\r\n\t\tBigDecimal subTotal = fetchSaleLineItem();\r\n\t\ttaxModel.setTaxTypeModelList(TaxCalculationHelper.fetchAllTaxTypes());\r\n\t\ttaxModel.setProductPriceIncludingTax(TaxCalculationHelper.calculatePriceWithTax(subTotal));\r\n\t\tpublishPropertyEventBeforeSale();\r\n\t}", "void onProductClick(Product product, int code);", "public boolean tryAcceptProduct(String productId) {\n // No sync, will be called between msg.\n Product product = env.getSpawnedProduct(productId);\n if (self.getInputBuffer().tryPutProduct(product)) {\n env.updateMachine(self);\n return true;\n }\n return false;\n }", "private void saveProduct() {\n //Delegating to the Presenter to trigger focus loss on listener registered Views,\n //in order to persist their data\n mPresenter.triggerFocusLost();\n\n //Retrieving the data from the views and the adapter\n String productName = mEditTextProductName.getText().toString().trim();\n String productSku = mEditTextProductSku.getText().toString().trim();\n String productDescription = mEditTextProductDescription.getText().toString().trim();\n ArrayList<ProductAttribute> productAttributes = mProductAttributesAdapter.getProductAttributes();\n mCategoryOtherText = mEditTextProductCategoryOther.getText().toString().trim();\n\n //Delegating to the Presenter to initiate the Save process\n mPresenter.onSave(productName,\n productSku,\n productDescription,\n mCategoryLastSelected,\n mCategoryOtherText,\n productAttributes\n );\n }", "@FXML\n\tpublic void createProduct(ActionEvent event) {\n\t\tif (!txtProductName.getText().equals(\"\") && !txtProductPrice.getText().equals(\"\")\n\t\t\t\t&& ComboSize.getValue() != null && ComboType.getValue() != null && selectedIngredients.size() != 0) {\n\n\t\t\tProduct objProduct = new Product(txtProductName.getText(), ComboSize.getValue(), txtProductPrice.getText(),\n\t\t\t\t\tComboType.getValue(), selectedIngredients);\n\n\t\t\ttry {\n\t\t\t\trestaurant.addProduct(objProduct, empleadoUsername);\n\n\t\t\t\ttxtProductName.setText(null);\n\t\t\t\ttxtProductPrice.setText(null);\n\t\t\t\tComboSize.setValue(null);\n\t\t\t\tComboType.setValue(null);\n\t\t\t\tChoiceIngredients.setValue(null);\n\t\t\t\tselectedIngredients.clear();\n\t\t\t\tproductOptions.clear();\n\t\t\t\tproductOptions.addAll(restaurant.getStringReferencedIdsProducts());\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar los datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\tString name=\"\";\n\t\t\tname=view.getNameTF().getText();\n\t\t\tString price=\"\";\n\t\t\tprice=view.getPriceTF().getText();\n\t\t\t\n\t\t\tMenuItem item=searchInMenu();\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(!name.equals(bpSelected.get(0)))\n\t\t\t\t{\n\t\t\t\t\tthrow new BadInput(\"Numele nu poate fi editat!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble p=Double.parseDouble(price);\n\t\t\t\t\n\t\t\t\tMenuItem nou=new BaseProduct(name,p);\n\t\t\t\t\n\t\t\t\trestaurant.editMenuItem(item,nou);\n\t\t\n\t\t\t\tview.showError(\"Produsul \"+name+\" a fost editat cu succes!\");\n\t\t\t\t\n\t\t\t}catch(NumberFormatException ex)\n\t\t\t{\n\t\t\t\tview.showError(\"Nu s-a introdus o valoare valida pentru pret!\");\n\t\t\t}\n\t\t\tcatch(BadInput ex)\n\t\t\t{\n\t\t\t\tview.showError(ex.getMessage());\n\t\t\t}\n\t\t\tcatch(AssertionError er)\n\t\t\t{\n\t\t\t\tview.showError(\"Operatia de EDIT a esuat!!!\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString input = ((String)comboBoxProductAuthor.getSelectedItem()).toLowerCase();\n\t\t\t\t//String input = (productAuthorTextField.getText()).toLowerCase();\t// Convert input text to lower case. \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//All names in array should be stored in lower case.\n\t\t\t\t\n\t\t\t\tif(input.trim().equals(\"select\")){ \t// If no value is selected\n\t\t\t\t\tproductTextArea.setText(\"\");\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistofProductTitle.setSelectedItem(\"Select\");\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select Product Author From Drop Down Menu\");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}else{\t\t\t\t\t\t\t// Take in String and Search for it.\n\t\t\t\t\tproductTextArea.setText(product.viewProductByAuthor(input, products));\t\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\t\t// This sets the position of the scroll bar to the top of the page.\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistofProductTitle.setSelectedItem(\"Select\");\n\t\t\t\t\tlistOfProductAuthor.setSelectedItem(\"Select\");\n\t\t\t\t\tpriceRange.clearSelection();\n\t\t\t\t\tquantity.clearSelection();\n\t\t\t\t}\n\t\t\t}", "public boolean verifyInProductPage() {\n\t\tString ExpMsg = \"PRODUCTS\";\t// confirmation msg\n\t\tString ActMsg = Title.getText();\n\t try {\n\t \twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[@id='inventory_container']\")));\n\t\t\tAssert.assertEquals(ActMsg, ExpMsg);\n\t\t\ttest.log(LogStatus.PASS, \"Successful assert we have landed on PRODUCTS page\");\t\n\t }\n\t catch (TimeoutException e) {\n\t\t\ttest.log(LogStatus.FAIL, \"Error: Login failed? Not leading to PRODUCTS page?\");\n\t\t\tAssert.fail(\"Login failed? Not leading to PRODUCTS page?\");\n\t\t\treturn false;\n\t }\n\t\tcatch (Throwable e) {\n\t\t\ttest.log(LogStatus.FAIL, \"Error: Not on PRODUCTS page?!\");\n\t\t\tAssert.fail(\"Not in PRODUCTS page\");\n\t\t\treturn false; \n\t\t}\n\t\treturn true;\n\t\t\n\t}", "@OnShow\n\tpublic void onShow() {\n\t\tviewForm.setValue(\n\t\t\t\t// load product using the \"id\" parameter\n\t\t\t\tdatastore.query().target(TARGET).filter(ID.eq(id)).findOne(PRODUCT)\n\t\t\t\t\t\t// throw an exception if not found\n\t\t\t\t\t\t.orElseThrow(() -> new DataAccessException(\"Product not found: \" + id)));\n\t}", "@FXML\n\t private void updateProductPrice (ActionEvent actionEvent) throws SQLException, ClassNotFoundException {\n\t try {\n\t ProductDAO.updateProdPrice(prodIdText.getText(),newPriceText.getText());\n\t resultArea.setText(\"Price has been updated for, product id: \" + prodIdText.getText() + \"\\n\");\n\t } catch (SQLException e) {\n\t resultArea.setText(\"Problem occurred while updating price: \" + e);\n\t }\n\t }", "@FXML\n void cancelModifiedParts(MouseEvent event) {\n Alert alert = new Alert(AlertType.CONFIRMATION);\n alert.setTitle(\"\");\n alert.setHeaderText(\"Cancel modify part\");\n alert.setContentText(\"Are you sure you want to cancel?\");\n\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK) {\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/View/FXMLmain.fxml\"));\n View.MainScreenController controller = new MainScreenController(inventory);\n\n loader.setController(controller);\n Parent root = loader.load();\n Scene scene = new Scene(root);\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n stage.setScene(scene);\n stage.setResizable(false);\n stage.show();\n } catch (IOException e) {\n\n }\n } else {\n return;\n }\n\n }", "public void goIntoProducts() {\r\n\t\tActions act = new Actions(driver);\r\n\t\t//hovering over the tag button\r\n\t\tact.moveToElement(this.tagButton).build().perform();\r\n\t\t//clicking on products button\r\n\t\tthis.productsBtn.click();\r\n\t}", "public void handleSearchProducts()\n {\n int searchProductID;\n Product searchedProduct;\n ObservableList<Product> searchedProducts;\n if (!productSearchTextField.getText().isEmpty())\n {\n // Clear selection from table\n productTable.getSelectionModel().clearSelection();\n\n try {\n // First try to search for part ID\n searchProductID = Integer.parseInt(productSearchTextField.getText());\n searchedProduct = this.inventory.lookupProduct(searchProductID);\n if (searchedProduct != null)\n productTable.getSelectionModel().select(searchedProduct);\n else // if ID parsed and not found\n throw new Exception(\"Item not found\");\n\n } catch (Exception e) {\n // If ID cannot be parsed, try to search by name\n searchedProducts = this.inventory.lookupProduct(productSearchTextField.getText());\n\n if (searchedProducts != null && searchedProducts.size() > 0)\n {\n // If product search yields results\n searchedProducts.forEach((product -> {\n productTable.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n productTable.getSelectionModel().select(product);\n }));\n }\n else\n { // If no products found alert user\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"No product was found!\");\n alert.setHeaderText(\"No product was found!\");\n alert.setContentText(\"Your search returned no results.\\n\" +\n \"Please enter the product ID or part name and try again.\");\n alert.show();\n }\n }\n }\n else\n {\n productTable.getSelectionModel().clearSelection();\n }\n }", "ProductView updateProduct(int productId, EditProductBinding productToEdit) throws ProductException;", "public void selectProduct() {\n\t\tActions obj = new Actions(driver);\n\t\tobj.moveToElement(driver.findElements(By.xpath(\".//*[@id='center_column']/ul/li\")).get(0)).build().perform();\n\t\tdriver.findElement(By.xpath(\".//*[@id='center_column']/ul/li[1]/div/div[2]/div[2]/a[1]/span\")).click();\n\t}", "@FXML private void handleAddProdAdd(ActionEvent event) {\n if (fxidAddProdAvailableParts.getSelectionModel().getSelectedItem() != null) {\n //get the selected part from the available list\n Part tempPart = fxidAddProdAvailableParts.getSelectionModel().getSelectedItem();\n //save it to our temporary observable list\n partToSave.add(tempPart);\n //update the selected parts list\n fxidAddProdSelectedParts.setItems(partToSave); \n } else {\n Alert partSearchError = new Alert(Alert.AlertType.INFORMATION);\n partSearchError.setHeaderText(\"Error!\");\n partSearchError.setContentText(\"Please select a part to add.\");\n partSearchError.showAndWait();\n }\n }", "private static void actOnUsersChoice(MenuOption option) {\n switch (option) {\n case VIEW_LIST_OF_ALL_PRODUCTS:\n viewListOfProductsInStore();\n System.out.println(\"Store has \" + productRepository.count() + \" products.\");\n break;\n case CHECK_IF_PRODUCT_EXISTS_IN_STORE:\n System.out.println(ENTER_SEARCHED_PRODUCT_NAME);\n System.out.println((isProductAvailable())\n ? SEARCHED_PRODUCT_IS_AVAILABLE\n : ERROR_NO_SUCH_PRODUCT_AVAILABLE);\n break;\n case ADD_PRODUCT_TO_ORDER:\n addProductToOrder();\n break;\n case VIEW_ORDER_ITEMS:\n viewOrderItems(order.getOrderItems());\n break;\n case REMOVE_ITEM_FROM_ORDER:\n removeItemFromOrder();\n break;\n case ADD_PRODUCT_TO_STORE:\n if (userIsAdmin) {\n addProductToStore();\n }\n break;\n case EDIT_PRODUCT_IN_STORE:\n if (userIsAdmin) {\n System.out.println(ENTER_PRODUCT_NAME_TO_BE_UPDATED);\n Optional<Product> productToBeModified = getProductByName();\n\n if (productToBeModified.isPresent()) {\n switch (productToBeModified.get().getType()) {\n\n case FOOD:\n Optional<Food> food = InputManager.DataWrapper.createFoodFromInput();\n if (food.isPresent()) {\n Food newFood = food.get();\n productRepository.update(productToBeModified.get().getName(), newFood);\n }\n break;\n\n case DRINK:\n Optional<Drink> drink = InputManager.DataWrapper.createDrinkFromInput();\n if (drink.isPresent()) {\n Drink newDrink = drink.get();\n productRepository.update(productToBeModified.get().getName(), newDrink);\n }\n break;\n }\n } else {\n System.err.println(ERROR_NO_SUCH_PRODUCT_AVAILABLE);\n }\n }\n break;\n case REMOVE_PRODUCT_FROM_STORE:\n if (userIsAdmin) {\n tryToDeleteProduct();\n }\n break;\n case RELOG:\n userIsAdmin = false;\n start();\n break;\n case EXIT:\n onExit();\n break;\n default:\n break;\n }\n }", "@FXML\n\tprivate void handleOk(){\n\t\tif(isInputValid()){\n\t\t\tproduct.setName(nameField.getText());\n\t\t\tproduct.setAmountAvailable(Integer.parseInt(amountAvailableField.getText()));\n\t\t\tproduct.setAmountSold(Integer.parseInt(amountSoldField.getText()));\n\t\t\tproduct.setPriceEach(Integer.parseInt(priceEachField.getText()));\n\t\t\tproduct.setPriceMake(Integer.parseInt(priceMakeField.getText()));\n\t\t\t// Converts the values to ints and then subtracts\n\t\t\tproduct.setProfit(Integer.parseInt(priceEachField.getText())-Integer.parseInt(priceMakeField.getText()));\n\t\t\t// Converts the values to ints, subtracts, and then multiplies\n\t\t\tproduct.setMoney((Integer.parseInt(priceEachField.getText())-Integer.parseInt(priceMakeField.getText()))*Integer.parseInt(amountSoldField.getText()));\n\t\t\tokClicked = true;\n\t\t\tdialogStage.close();\t\n\t\t}\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tdialogLicense();\r\n\t\t\t}", "public static Product showDialog(inventorymanagement app, Stage primaryStage, String title, Product product) throws IOException{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(inventorymanagement.class.getResource(\"view_controller/Product.fxml\"));\n AnchorPane page = (AnchorPane) loader.load();\n\n // Create the dialog Stage.\n Stage productStage = new Stage();\n productStage.setTitle(title);\n productStage.initModality(Modality.APPLICATION_MODAL);\n productStage.initOwner(primaryStage);\n Scene scene = new Scene(page);\n productStage.setScene(scene);\n\n // set the part in the controller\n ProductController prodcutController = loader.getController();\n prodcutController.setApp(app);\n prodcutController.setProductLabel(title);\n \n prodcutController.setProductStage(productStage);\n if(product != null){\n prodcutController.setProduct(product);\n }\n\n\n productStage.showAndWait();\n\n return prodcutController.getProduct();\n\n \n }", "public void onActionDeleteProduct(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete the selected item?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n if (productsTableView.getSelectionModel().getSelectedItem() != null) {\r\n Product product = productsTableView.getSelectionModel().getSelectedItem();\r\n if (product.getAllAssociatedParts().size() == 0) {\r\n\r\n Inventory.deleteProduct(productsTableView.getSelectionModel().getSelectedItem());\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/mainScreen.fxml\"));\r\n Stage stage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 1062, 498);\r\n stage.setTitle(\"Main Screen\");\r\n stage.setScene(scene);\r\n stage.show();\r\n } else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Products with associated parts cannot be deleted.\");\r\n alert2.showAndWait();\r\n }\r\n }\r\n else {\r\n Alert alert3 = new Alert(Alert.AlertType.ERROR);\r\n alert3.setContentText(\"Click on an item to delete.\");\r\n alert3.showAndWait();\r\n }\r\n }\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "@When(\"I click on the product I want to buy\")\n\t\tpublic void i_click_on_the_product_I_want_to_buy() {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, 20);\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(book)));\n\t\t\tbookElement = driver.findElement(By.xpath(book));\n\t\t\t//scroll down the page to my product\n\t\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", bookElement);\n\t\t\tdriver.findElement(By.xpath(book)).click();\n\t\t}", "public void enterProduct(String product) {\n\n\t\tdriver.findElement(amazonSearchTextBox).sendKeys(product);\n\t}", "@FXML\n\tpublic void updateProductType(ActionEvent event) {\n\t\tif (!txtProductTypeNewName.getText().equals(\"\") && !txtProductTypeLastName.getText().equals(\"\")) {\n\t\t\tProductType pType = restaurant.returnProductType(txtProductTypeLastName.getText());\n\n\t\t\tif (pType != null) {\n\t\t\t\ttry {\n\t\t\t\t\tpType.setName(txtProductTypeNewName.getText());\n\t\t\t\t\trestaurant.saveProductTypeData();\n\t\t\t\t\trestaurant.updateTypeOfProduct(txtProductTypeLastName.getText(), txtProductTypeNewName.getText());\n\t\t\t\t\ttypeOptions.clear();\n\t\t\t\t\ttypeOptions.addAll(restaurant.getStringProductTypes());\n\t\t\t\t\tpType.setEditedByUser(restaurant.returnUser(empleadoUsername));\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"Ingrediente actualizado satisfactoriamente\");\n\t\t\t\t\tdialog.setTitle(\"Proceso Satisfactorio\");\n\t\t\t\t\tdialog.show();\n\n\t\t\t\t\ttxtProductTypeLastName.setText(\"\");\n\t\t\t\t\ttxtProductTypeNewName.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los datos\");\n\t\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\t\tdialog.show();\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setTitle(\"Error\");\n\t\t\t\tdialog.setContentText(\"El tipo de producto \" + txtProductTypeLastName.getText() + \" no existe\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error\");\n\t\t\tdialog.setContentText(\"Debes ingresar el antiguo y nuevo nombre del tipo de producto\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "@FXML\n void modifyProductSearchOnAction(ActionEvent event) {\n if (modifyProductSearchField.getText().matches(\"[0-9]+\")) {\n modProdAddTable.getSelectionModel().select(Inventory.partIndex(Integer.valueOf(modifyProductSearchField.getText())));\n } else {\n modProdAddTable.getSelectionModel().select(Inventory.partName(modifyProductSearchField.getText()));\n }\n //modProdAddTable.getSelectionModel().select(Inventory.partIndex(Integer.valueOf(modifyProductSearchField.getText())));\n }", "@FXML\n public void Modify_Item(ActionEvent actionEvent) {\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"ModifyItemlist.fxml\"));\n Parent root1 = (Parent) fxmlLoader.load();\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.UNDECORATED);\n stage.setTitle(\"New Item\");\n stage.setScene(new Scene(root1));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\n void goToRequestedItems(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the requested items FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"RequestedItems.fxml\"));\n\n BorderPane requestedItems = (BorderPane) fxmlLoader.load();\n Scene requestedItemsScene = new Scene(requestedItems, Main.SMALL_WINDOW_WIDTH, Main.SMALL_WINDOW_HEIGHT);\n Stage requestedItemsStage = new Stage();\n\n requestedItemsStage.setScene(requestedItemsScene);\n requestedItemsStage.setTitle(Main.REQUESTED_ITEMS_WINDOW_TITLE);\n requestedItemsStage.initModality(Modality.APPLICATION_MODAL);\n // Show the requested items scene and wait for it to be closed\n requestedItemsStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n }", "@FXML\r\n\tpublic void goToShoppingCart() {\r\n\t\tViewNavigator.loadScene(\"Your Shopping Cart\", ViewNavigator.SHOPPING_CART_SCENE);\r\n\t}", "@FXML\n\tpublic void useItem(ActionEvent event){\n\t\t\tString itemName=\"\";\n\t\t\titemName = itemselect.getText();\n\t\t\n\t\t\tif(itemName.equals(\"\")) {\t// Checks if selected item is blank\n\t\t\t\n\t\t\t\tevents.appendText(\"Select an item from the Inventory box before clicking this button!\\n\");\t\n\t\t\t\treturn;\n\t\t\t\n\t\t\t} else {\t// Begins getting item information\n\t\t\t\tItem i;\n\t\t\t\tint x;\n\t\t\t\ti=Item.getItem(ItemList, itemName);\t// Get item from the item list\n\t\t\t\t\n\t\t\t\tif(i == null) {\t// Check if the item isnt found in the item list\n\t\t\t\t\t\n\t\t\t\t\tevents.appendText(\"Item not Found!\\n\");\n\t\t\t\t\titemselect.setText(\"\");\n\t\t\t\t\titemStats.setText(\"\");\n\t\t\t\t} else {\t// Check what type of item was used\n\t\t\t\t\tif(i.getStat().equals(\"HP\")) {\n\t\t\t\t\t\tint y=p.getHP()+i.getChange();\n\t\t\t\t\t\tif(y>p.getMaxHP()) {\n\t\t\t\t\t\t\tp.setHP(p.getMaxHP());\n\t\t\t\t\t\t\tevents.appendText(\"Health Restored to Full!\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tp.setHP(y);\n\t\t\t\t\t\tevents.appendText(\"Health Restored by \" + i.getChange()+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\tcurrentHp.setText(p.getHP()+\"/\"+p.getMaxHP());\n\t\t\t\t\tplayerHPBar.setProgress((double)p.getHP()/p.getMaxHP());\n\t\t\t\t}else if(i.getStat().equals(\"DMG\")) {\n\t\t\t\t\tp.setDMG(p.getDMG()+i.getChange());\n\t\t\t\t\tgdmg.setText(\"\"+p.getDMG());\n\t\t\t\t\tevents.appendText(\"Damage Increased by \" + i.getChange()+\"\\n\");\n\t\t\t\t}else {\n\t\t\t\t\tif(p.getEV()+i.getChange()>100) {\n\t\t\t\t\t\tevents.appendText(\"EV Increased by \" + (100-p.getEV())+\", Max Evasion is 100\\n\");\n\t\t\t\t\t\tp.setEV(100);\n\t\t\t\t\t\tgev.setText(\"\"+p.getEV());\n\t\t\t\t\t}else {\n\t\t\t\t\t\tp.setEV(p.getEV()+i.getChange());\n\t\t\t\t\t\tgev.setText(\"\"+p.getEV());\n\t\t\t\t\t\tevents.appendText(\"EV Increased by \" + i.getChange()+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Remove the item from the inventory\n\t\t\t\tx=Inventory.indexOf(i);\n\t\t\t\tInventory.remove(x);\n\t\t\t\tinventoryList.getItems().remove(x);\n\t\t\t\titemselect.setText(\"\");\n\t\t\t\titemStats.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t}", "@FXML\n void onActionModifyCustomer(ActionEvent event) throws IOException, SQLException {\n\n modifiedCustomer = CustomerTableview.getSelectionModel().getSelectedItem();\n\n if (CustomerTableview.getSelectionModel().getSelectedItem() == null) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"No item selected.\");\n alert.setContentText(\"Don't forget to select a customer to modify!\");\n alert.show();\n }\n\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/Views/ModifyCustomer.fxml\"));\n scene = loader.load();\n\n ModifyCustomer MCController = loader.getController();\n MCController.sendCustomer(modifiedCustomer);\n\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n stage.setScene(new Scene(scene));\n stage.show();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to a click on the \"Save\" menu option\n case R.id.action_insert_new_product:\n if(currentProductUri == null) {\n insertNewProduct();\n }else {\n updateProduct();\n }\n return true;\n // Respond to a click on the \"Delete\" menu option\n case R.id.action_delete_product:\n showDeleteConfirmationDialog();\n return true;\n // Respond to a click on the \"Up\" arrow button in the app bar\n case android.R.id.home: {\n // If the product hasn't changed, continue with navigating up to parent activity\n // which is the {@link MainActivity}.\n if (!mProductHasChanged) {\n NavUtils.navigateUpFromSameTask(EditorActivity.this);\n return true;\n }\n\n // Otherwise if there are unsaved changes, setup a dialog to warn the user.\n // Create a click listener to handle the user confirming that\n // changes should be discarded.\n DialogInterface.OnClickListener discardButtonClickListener =\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // User clicked \"Discard\" button, navigate to parent activity.\n NavUtils.navigateUpFromSameTask(EditorActivity.this);\n }\n };\n\n // Show a dialog that notifies the user they have unsaved changes\n showUnsavedChangesDialog(discardButtonClickListener);\n return true;\n }\n case R.id.action_contact_supplier:{\n contactSupplier();\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "public void gotoProduct(Product product){\n Intent detail = new Intent(getContext(), ProductDetail.class);\n detail.putExtra(\"PRODUCT\",product);\n // create the animator for this view (the start radius is zero)\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n\n //itemView.getContext().startActivity(detail);\n }else{\n\n }\n //ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(getActivity(),recycler,\"heading\");\n //getContext().startActivity(detail,options.toBundle());\n getContext().startActivity(detail);\n\n }", "@Then(\"^product in shown as available\")\n public void clicks_On_Add_Button(){\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\tString name=\"\";\n\t\t\tname=view.getNameTF().getText();\n\t\t\tString price=\"\";\n\t\t\tprice=view.getPriceTF().getText();\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(name.equals(\"\") ||price.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tthrow new BadInput(\"Nu au fost completate toate casutele pentru a se putea realiza CREATE!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble p=Double.parseDouble(price);\n\t\t\t\t\n\t\t\t\tMenuItem nou=new BaseProduct(name,p);\n\t\t\t\t\n\t\t\t\trestaurant.createMenuItem(nou);\n\t\t\t\tview.updateList(name);\n\t\t\t\t\n\t\t\t}catch(NumberFormatException ex)\n\t\t\t{\n\t\t\t\tview.showError(\"Nu s-a introdus o valoare valida pentru pret!\");\n\t\t\t}\n\t\t\tcatch(BadInput ex)\n\t\t\t{\n\t\t\t\tview.showError(ex.getMessage());\n\t\t\t}\n\t\t\tcatch(AssertionError er)\n\t\t\t{\n\t\t\t\tview.showError(\"Nu se poate adauga produsul deoarece acesta EXISTA deja!!!\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public UpdateProduct() {\n\t\tsuper();\t\t\n\t}", "protected void buttonTransition(ProductInfoExt prod) {\n\n if (m_iNumberStatusInput == NUMBERZERO && m_iNumberStatusPor == NUMBERZERO) {\n incProduct(prod);\n } else if (m_iNumberStatusInput == NUMBERVALID && m_iNumberStatusPor == NUMBERZERO) {\n incProduct(getInputValue(), prod);\n } else {\n Toolkit.getDefaultToolkit().beep();\n }\n }", "@Override\n public void widgetSelected(SelectionEvent e) {\n if (previewProduct != null && !previewProduct.isEmpty()) {\n PshPrintUtil.getPshPrinter().printInput(previewProduct);\n }\n }", "public void confirmUser() {\r\n\r\n bpConfirmUser.setTop(vbText());//Add VBox to top\r\n bpConfirmUser.setCenter(gpCenter());//Add GridPane to center\r\n bpConfirmUser.setBottom(hbButtons()); //Add Hbox to bottom\r\n\r\n bpConfirmUser.setPadding(new Insets(10, 50, 50, 50)); //Padding\r\n\r\n bpConfirmUser.setId(\"bp\"); //SetID\r\n //Create Scene and add mainBorder to it\r\n Scene myScene = new Scene(bpConfirmUser, 400, 300);\r\n\r\n //Setup Stage\r\n confirmUserStage.setTitle(\"Confirm Information\"); //Set the title of the Stage\r\n myScene.getStylesheets().add(getClass().getClassLoader().getResource(\"createuser.css\").toExternalForm());\r\n confirmUserStage.setScene(myScene); //Add Scene to Stage\r\n\r\n confirmUserStage.show(); //Show Stage\r\n\r\n }", "@FXML\n private void addNewPartType(ActionEvent event) {\n String name = nameText.getText();\n name = name.trim();\n if(name.equals(\"\")){\n showAlert(\"No Name\", \"This part type has no name, please input a name\");\n return;\n }\n \n String costText = this.costText.getText();\n costText = costText.trim();\n if(costText.equals(\"\")){\n showAlert(\"No Cost\", \"This part type has no cost, please input a cost.\");\n return;\n }\n \n String quantityText = this.quantityText.getText();\n quantityText = quantityText.trim();\n if(quantityText.equals(\"\")){\n showAlert(\"No Quantity\", \"This part type has no quantity, please input a quantity.\");\n return;\n }\n \n String description = descriptionText.getText();\n description = description.trim();\n if(description.equals(\"\")){\n showAlert(\"No Description\", \"This part type has no decription, please input a description.\");\n return;\n }\n \n double cost = Double.parseDouble(costText);\n int quantity = Integer.parseInt(quantityText);\n boolean success = partInventory.addNewPartTypeToInventory(name, \n description, cost, quantity);\n if(success){\n showAlert(\"Part Type Sucessfully Added\", \"The new part type was sucessfully added\");\n }else{\n showAlert(\"Part Type Already Exists\", \"This part already exists. If you would like to add stock, please select \\\"Add Stock\\\" on the righthand side of the screen.\\n\" \n + \"If you would like to edit this part, please double click it in the table.\");\n }\n // gets the popup window and closes it once part added\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n stage.close();\n }", "public void setProductName(String productName) {\r\n this.productName = productName;\r\n }", "private void saveProduct() {\n Product product;\n String name = productName.getText().toString();\n if (name.isEmpty()) {\n productName.setError(getResources().getText(R.string.product_name_error));\n return;\n }\n String brandStr = brand.getText().toString();\n String brandOwnerStr = brandOwner.getText().toString();\n if (dbProduct == null) {\n product = new Product();\n product.setGtin(gtin);\n product.setLanguage(language);\n } else {\n product = dbProduct;\n }\n if (!name.isEmpty()) {\n product.setName(name);\n }\n if (!brandStr.isEmpty()) {\n product.setBrand(brandStr);\n }\n if (!brandOwnerStr.isEmpty()) {\n product.setBrandOwner(brandOwnerStr);\n }\n product.setCategory(selectedCategoryKey);\n LoadingIndicator.show();\n // TODO enable/disable save button\n PLYCompletion<Product> completion = new PLYCompletion<Product>() {\n @Override\n public void onSuccess(Product result) {\n Log.d(\"SavePDetailsCallback\", \"Product details saved\");\n dbProduct = result;\n LoadingIndicator.hide();\n if (isNewProduct) {\n SnackbarUtil.make(getActivity(), getView(), R.string.product_saved, Snackbar\n .LENGTH_LONG).show();\n DataChangeListener.productCreate(result);\n } else {\n SnackbarUtil.make(getActivity(), getView(), R.string.product_edited, Snackbar\n .LENGTH_LONG).show();\n DataChangeListener.productUpdate(result);\n }\n }\n\n @Override\n public void onPostSuccess(Product result) {\n FragmentActivity activity = getActivity();\n if (activity != null) {\n activity.onBackPressed();\n }\n }\n\n @Override\n public void onError(PLYAndroid.QueryError error) {\n Log.d(\"SavePDetailsCallback\", error.getMessage());\n if (isNewProduct || !error.isHttpStatusError() || !error.hasInternalErrorCode\n (PLYStatusCodes.OBJECT_NOT_UPDATED_NO_CHANGES_CODE)) {\n SnackbarUtil.make(getActivity(), getView(), error.getMessage(), Snackbar.LENGTH_LONG)\n .show();\n }\n LoadingIndicator.hide();\n }\n\n @Override\n public void onPostError(PLYAndroid.QueryError error) {\n if (!isNewProduct && error.isHttpStatusError() && error.hasInternalErrorCode(PLYStatusCodes\n .OBJECT_NOT_UPDATED_NO_CHANGES_CODE)) {\n FragmentActivity activity = getActivity();\n if (activity != null) {\n activity.onBackPressed();\n }\n }\n }\n };\n if (dbProduct == null) {\n ProductService.createProduct(sequentialClient, product, completion);\n } else {\n ProductService.updateProduct(sequentialClient, product, completion);\n }\n }", "@Override\n public void openDetail(@NonNull Product product) {\n mMainView.openDetailUi(product);\n }", "@Override\n\tpublic void FindProduct(MyCustomer c, String product) {\n\t//\tguiDoFindProduct(); // animation with try-catch sempahore thing\n\t\t//Check if inventory is 0\n\t\tatHome.tryAcquire();\n\t\tprint(\"Going to find product:\" + product);\n\t\tif(!(Products.get(product).inventory == 0)) {\n\t\t\tatHome.tryAcquire();\n\t\t\tprint(\"Inventory for \" + product + \" is: \" + Products.get(product).inventory );\n\t\t\tmGrocer.DoGetCar();\n//\t\t\tselectProduct(product);\n\t\t\ttry{\n\t\t\t\tatCar.acquire();\n\t\t\t} catch (InterruptedException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tProducts.get(product).inventory -= 1;\n\t\t\tprint(\"Bill: \" + c.bill);\n\t\t\tc.bill += Products.get(product).price;\n\t\t\tc.customerNeeds.remove(product);\n\t\t\tBringProductToCust(c, product); // animation\n\t\t}\n\t\telse {\n\t\t\tprint(\"Inventory for \" + product + \" is zero.\" );\n\t\t\tc.c.msgWeHaveNoMore(product);\n\t\t\tc.customerNeeds.remove(product);\n\t\t\tstateChanged();\n\t\t}\n\t\tif(c.customerNeeds.size() == 0){\n\t\t\tc.cState = CustomerState.GivenProducts;\n\t\t\tstateChanged();\n\t\t}\n\n\t}", "public void displayProduct() {\n\t\tDisplayOutput.getInstance()\n\t\t\t\t.displayOutput(StoreFacade.getInstance());\n\t}", "public void retrieveProduct(Product product) {\n // Place string values in TextFields.\n productIdField.setPromptText(String.valueOf(product.getId()));\n productNameField.setText(product.getName());\n productInvField.setText(String.valueOf(product.getStock()));\n productPriceField.setText(String.valueOf(product.getPrice()));\n productMaxField.setText(String.valueOf(product.getMax()));\n productMinField.setText(String.valueOf(product.getMin()));\n // load the TableViews after copying necessary values to instance.\n associatedPartsCopyMachine(product);\n this.product.setId(product.getId());\n super.initialize();\n }", "@FXML\r\n public void onActionModifyScreen(ActionEvent actionEvent) throws IOException {\r\n\r\n //Receive Part object information from the PartController in order to populate the Modify Parts text fields\r\n try {\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyPartInhouse.fxml\"));\r\n loader.load();\r\n\r\n PartController pController = loader.getController();\r\n\r\n /*If the Part object received from the Part Controller is an In-house Part, user is taken to the modify\r\n in-house part screen */\r\n if (partsTableView.getSelectionModel().getSelectedItem() != null) {\r\n if (partsTableView.getSelectionModel().getSelectedItem() instanceof InhousePart) {\r\n pController.sendPart((InhousePart) partsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify In-house Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n\r\n //If the Part object is an outsourced Part, the user is taken to the modify outsourced part screen\r\n else {\r\n\r\n loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyPartOutsourced.fxml\"));\r\n loader.load();\r\n\r\n pController = loader.getController();\r\n\r\n pController.sendPartOut((OutsourcedPart) partsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify Outsourced Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to modify.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (IllegalStateException e) {\r\n //Ignore\r\n }\r\n catch (NullPointerException n) {\r\n //Ignore\r\n }\r\n }", "public void setProductName(String productName) {\n this.productName = productName;\n }", "public void setProductName(String productName) {\n this.productName = productName;\n }", "public void setProductName(String productName) {\n this.productName = productName;\n }", "@Override\n public void showDeleteProductDialog() {\n //Creating an AlertDialog with a message, and listeners for the positive and negative buttons\n AlertDialog.Builder builder = new AlertDialog.Builder(requireActivity());\n //Set the Message\n builder.setMessage(R.string.product_config_delete_product_confirm_dialog_message);\n //Set the Positive Button and its listener\n builder.setPositiveButton(android.R.string.yes, mProductDeleteDialogOnClickListener);\n //Set the Negative Button and its listener\n builder.setNegativeButton(android.R.string.no, mProductDeleteDialogOnClickListener);\n //Lock the Orientation\n OrientationUtility.lockCurrentScreenOrientation(requireActivity());\n //Create and display the AlertDialog\n builder.create().show();\n }", "@FXML\n\t private void insertProduct (ActionEvent actionEvent) throws SQLException, ClassNotFoundException {\n\t try {\n\t ProductDAO.insertProd(denumireText.getText(),producatorText.getText(),pretText.getText(),marimeText.getText(),culoareText.getText());\n\t resultArea.setText(\"Product inserted! \\n\");\n\t } catch (SQLException e) {\n\t resultArea.setText(\"Problem occurred while inserting product \" + e);\n\t throw e;\n\t }\n\t }", "@FXML\n void OnActionShowUpdateCustomerScreen(ActionEvent event) throws IOException {\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/View/ModifyCustomer.fxml\"));\n stage.setTitle(\"Modify Customer\");\n stage.setScene(new Scene(scene));\n stage.show();\n }" ]
[ "0.7263511", "0.7202201", "0.6699322", "0.6558662", "0.6526077", "0.6464157", "0.63832587", "0.62391144", "0.6233449", "0.62248117", "0.61879766", "0.61668247", "0.6144092", "0.61334264", "0.60937876", "0.60744655", "0.60677624", "0.60646594", "0.60168463", "0.60129887", "0.59058493", "0.58571637", "0.5840777", "0.5825017", "0.5790279", "0.57630247", "0.5713302", "0.5713021", "0.5698772", "0.56929797", "0.56921196", "0.5684962", "0.5681164", "0.5679146", "0.56782746", "0.56730884", "0.5665261", "0.5664358", "0.5629232", "0.56188977", "0.5617501", "0.56027997", "0.5587661", "0.55852157", "0.5541281", "0.5527767", "0.5526654", "0.551639", "0.55116177", "0.55113214", "0.5510306", "0.55065864", "0.54955834", "0.5490686", "0.5486305", "0.54662216", "0.54598063", "0.5421883", "0.5419204", "0.54166853", "0.53886884", "0.5388288", "0.53768414", "0.537678", "0.5376328", "0.5376222", "0.5375119", "0.5372318", "0.5363624", "0.5361189", "0.53179055", "0.5300546", "0.5294581", "0.52925754", "0.5283656", "0.52790743", "0.526909", "0.52673817", "0.52458346", "0.5244781", "0.5238078", "0.5231534", "0.5213643", "0.5211999", "0.5209565", "0.52090263", "0.52017266", "0.51952374", "0.5192534", "0.5189238", "0.51892334", "0.5189174", "0.517322", "0.51609236", "0.5160514", "0.5160514", "0.5160514", "0.5158466", "0.5151516", "0.5141754" ]
0.74470687
0
The main method which drive the program.
public static void main(String[] args) { // Variable type rank Rank highCard; Rank faceCard; Rank card1; Rank card2; // Value of card 1 int card1Val; // Value of card 2 int card2Val; // Assign the value to the variable highCard = Rank.ace; faceCard = Rank.jack; card1 = Rank.king; card2 = Rank.queen; // Get the ordinal value of card 1 and card 2 card1Val = card1.ordinal(); card2Val = card2.ordinal(); // Print out the result System.out.println("A blackjack hand: " + highCard.name() + " and " + faceCard.name()); System.out.println(); System.out.println("A two card hand: " + card1Val + " and " + card2Val); System.out.println(); System.out.println("Hand value: " + (card1Val + card2Val)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main()\n\t{\n\t}", "public static void main() {\n }", "public static void main() {\n \n }", "public static void main(){\n\t}", "public void main(){\n }", "public static void main (String []args){\n }", "public static void main(String[] args) {\r\n \r\n }", "public static void main(String[] args) {\r\n \r\n }", "public static void main(String[] args) {}", "public static void main(String[] args) {}", "public static void main(String[] args) {\n \n\n }", "static void main(String[] args)\n {\n }", "public static void main(String[] args) {\r\n// Use for unit testing\r\n }", "public static void main(String []args){\n\n }", "public static void main(String[] args) { }", "static void main(String[] args) {\n }", "public static void main(String[] args) // every Java program starts with a main method or function\r\n\t{\n\t}", "public static void main(String []args){\n }", "public static void main(String []args){\n }", "public static void main (String[]args) throws IOException {\n }", "public static void main (String [] args){\n\n\n\n \n\n\n\n\n\n \n\n\n\n\n\n\n\n }", "public static void main(String[] args) throws IOException{\n\t\trunProgram();\n\t}", "public static void main (String[] args) {\n }", "public static void main(String[] args) \n {\n\t \n\t \n\t \n}", "public static void main(String[] args){\r\n\t\t\r\n\tSystem.out.println(\"main method(-)\");\r\n\t\r\n\t}", "public static void main(String[] args) {\n \n \n \n \n }", "public static void main (String[] args) {\n\n }", "public static void main(String... args) {\n doMain().run();\n }", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "public static void main(String[] args)\n {\n\t\n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main (String[] args) {\r\n\t\t \r\n\t\t}", "public static void main(String[] args) {\n\n\n\n\n\n\n\n }", "public static void main(String[] args) {\n \n }", "public void Main(){\n }", "public static void main (String args[]) {\n\t\t\n }", "public static void main(String[] args) {\n \n }", "public static void main (String[] args)\r\n {\n }", "public static void main(String[] args)\r\n {\r\n \r\n \r\n \r\n }", "public static void main(String[] args) {\n \n \n \n\t}", "public static void main(String[] args) { }", "public static void main (String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\t}", "public static void main (String [] args) {\n }", "public static void main(String[] args) {\n\t \t\n\t \t\n\t }", "public static void main (String [] args){\n\t}", "public static void main(String[] args) {\n\r\n}", "public static void main(String args[]) throws IOException {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n\n\n }", "public static void main(String[] args) {\n\n\n\n }", "public static void main(String[] args) {\n\n\n\n }", "public static void main(String[] args) {\n \r\n}", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n \n \n }", "public static void main(String args[]) {}", "public static void main(String args[]) {}", "public static void main(String args[]) {}", "public static void main(String[] args)\n {\n\n }", "public static void main(String[] args) {\n new Program();\n }", "public static void main (String[] args)\r\n{\r\n}", "public static void main(String[] args) {\n new Main();\n }", "public Main() {\n \n \n }", "public static void main(String[] args) {\n\r\n }", "public static void main(String[] args){\n\t\t\n\t\t\n \t}", "public static void main(String[] args) {\r\n }", "public static void main(String[] args) {\r\n }", "public Main() {}", "public static void main(String[] args) {\n\t\r\n}", "public static void main (String [] args) {\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n \n\t}", "public static void main(String[] args) {\n //launch it\n launch();\n }", "public static void main(String[] args)\n {\n\n }", "public static void main(String[] args)\r\n {\n \r\n \r\n }", "public static void main(String[] args) {\n new Main().run();\n }", "public static void main(String[] args){\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "public static void main(String[] args)\n {\n }", "public static void main(String[] args)\n {\n }", "public static void main(String[] args)\n {\n }", "public static void main(String[] args) {\n \r\n\t}", "public static void main(String[] args)\r\n {\r\n }", "public static void main(String[] args)\r\n {\r\n }", "public static void main(String[] args) {\n }", "public static void main(String[] args)\r\n {\n\r\n }", "public static void main(String [] args)\n {\n System.out.println(\"Programming is great fun!\");\n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public static void main( String[] args )\n {\n }", "public static void main( String[] args )\n {\n }", "public void main(String[] args) {\n\t}", "static public void main(String[] args) {\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n\n }" ]
[ "0.856752", "0.8418287", "0.84117085", "0.834388", "0.8011111", "0.78549546", "0.7804111", "0.7804111", "0.7790914", "0.7790914", "0.7760762", "0.7733858", "0.77156997", "0.7674543", "0.7672862", "0.7669599", "0.7649986", "0.7633837", "0.7633837", "0.7632672", "0.76318467", "0.76310045", "0.76252264", "0.7622585", "0.7618674", "0.7610786", "0.7608436", "0.7608179", "0.7606374", "0.7602904", "0.7584256", "0.7584256", "0.7584256", "0.7584256", "0.7584256", "0.7584256", "0.75838614", "0.7582655", "0.7582124", "0.7578881", "0.7578613", "0.7575649", "0.7573887", "0.75715023", "0.756859", "0.7565164", "0.75533426", "0.7550917", "0.754997", "0.75471175", "0.75459063", "0.7545276", "0.7543416", "0.7543267", "0.7543267", "0.7543267", "0.75370026", "0.75356334", "0.75356334", "0.7531179", "0.7531179", "0.7531179", "0.75300646", "0.752505", "0.7522461", "0.75215715", "0.7515711", "0.75139534", "0.7510087", "0.7504136", "0.7504136", "0.75012046", "0.74997914", "0.7492502", "0.74878335", "0.74878335", "0.74872804", "0.74858105", "0.74856776", "0.74801373", "0.7478783", "0.7478313", "0.7478248", "0.7478248", "0.7478248", "0.7477226", "0.7473503", "0.7473503", "0.7473004", "0.74723655", "0.74718", "0.74711704", "0.7470557", "0.7470557", "0.7464564", "0.7458456", "0.7456167", "0.7456167", "0.7456167", "0.7456167", "0.74551415" ]
0.0
-1
RelativeLayout.LayoutParams params_top = (RelativeLayout.LayoutParams)view_top.getLayoutParams(); RelativeLayout.LayoutParams params_mid = (RelativeLayout.LayoutParams)view_mid.getLayoutParams();
public void setValue(double value) { if(value<=0){ mDrange = 0; pb.setProgress(0); ProgressDragLayout.this.requestLayout(); ProgressDragLayout.this.invalidate(); return; } progressAdd = 0; mDrange = 0; drange_1=0; int progress = (int) (value * 100); size = progress; double drange = (int) (value * viewWidth); drange_1 = drange / size; Log.e("size-------", size +""); mhander.sendEmptyMessageDelayed(view_top.hashCode(),20); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static LinearLayout.LayoutParams getLayoutParams() {\r\n return new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT);\r\n }", "@Override\n protected void onLayout(boolean b, int left, int top, int right, int bottom) {\n int childCount = this.getChildCount();\n for(int i = 0; i < childCount; i++) {\n View child = this.getChildAt(i);\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n child.layout(lp.x, lp.y, lp.x + child.getMeasuredWidth(), lp.y + child.getMeasuredHeight());\n }\n\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n view_top.layout((int) mDrange + dip2px(getContext(), 20) - view_top.getMeasuredWidth() / 2, t, (int) mDrange + view_top.getMeasuredWidth() / 2 + dip2px(getContext(), 20), view_top.getMeasuredHeight());\n view_mid.layout((int) mDrange + dip2px(getContext(), 20) - view_mid.getMeasuredWidth() / 2, view_top.getMeasuredHeight(), (int) mDrange + view_mid.getMeasuredWidth() / 2 + dip2px(getContext(), 20), view_top.getMeasuredHeight() + view_mid.getMeasuredHeight());\n pb.layout(dip2px(getContext(), 20) + l, view_top.getMeasuredHeight() + view_mid.getMeasuredHeight(), r - dip2px(getContext(), 20), view_top.getMeasuredHeight() + view_mid.getMeasuredHeight() + pb.getMeasuredHeight());\n }", "public void initViews(){\n layout_health = (RelativeLayout) findViewById(R.id.layout_health);\n layout_msg = (RelativeLayout) findViewById(R.id.layout_msg);\n layout_usercenter = (RelativeLayout) findViewById(R.id.layout_usercenter);\n\n// img_home = (ImageView) findViewById(R.id.img_home);\n img_health = (ImageView) findViewById(R.id.img_health);\n img_msg = (ImageView) findViewById(R.id.img_msg);\n img_usercenter = (ImageView) findViewById(R.id.img_usercenter);\n\n// tv_home = (TextView) findViewById(R.id.tv_home);\n tv_health = (TextView) findViewById(R.id.tv_health);\n tv_msg = (TextView) findViewById(R.id.tv_msg);\n tv_usercenter = (TextView) findViewById(R.id.tv_usercenter);\n\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 }", "public void applyViewsLayoutParams(int i) {\n int dp = AndroidUtilities.displaySize.x - AndroidUtilities.dp(24.0f);\n ViewGroup viewGroup = this.leftView;\n if (viewGroup != null) {\n FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) viewGroup.getLayoutParams();\n if (layoutParams.width != dp) {\n layoutParams.width = dp;\n this.leftView.setLayoutParams(layoutParams);\n }\n this.leftView.setTranslationX((float) ((-dp) + i));\n }\n ViewGroup viewGroup2 = this.leftButtonsView;\n if (viewGroup2 != null) {\n viewGroup2.setTranslationX((float) ((-dp) + i));\n }\n ViewGroup viewGroup3 = this.centerView;\n if (viewGroup3 != null) {\n FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) viewGroup3.getLayoutParams();\n if (layoutParams2.width != dp) {\n layoutParams2.width = dp;\n this.centerView.setLayoutParams(layoutParams2);\n }\n this.centerView.setTranslationX((float) i);\n }\n ViewGroup viewGroup4 = this.centerButtonsView;\n if (viewGroup4 != null) {\n viewGroup4.setTranslationX((float) i);\n }\n ViewGroup viewGroup5 = this.rightView;\n if (viewGroup5 != null) {\n FrameLayout.LayoutParams layoutParams3 = (FrameLayout.LayoutParams) viewGroup5.getLayoutParams();\n if (layoutParams3.width != dp) {\n layoutParams3.width = dp;\n this.rightView.setLayoutParams(layoutParams3);\n }\n this.rightView.setTranslationX((float) (dp + i));\n }\n ViewGroup viewGroup6 = this.rightButtonsView;\n if (viewGroup6 != null) {\n viewGroup6.setTranslationX((float) (dp + i));\n }\n this.messageContainer.invalidate();\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n int topTop = 0;\n mTop.layout(l, topTop,\n mTop.getMeasuredWidth(),\n topTop + mTop.getMeasuredHeight());\n //TOOL\n\n\n //REFRESH\n //lp = (MarginLayoutParams) mRefresh.getLayoutParams();\n int refreshTop = mTop.getMeasuredHeight();\n mRefresh.layout(l, refreshTop,\n mRefresh.getMeasuredWidth(),\n refreshTop + mRefresh.getMeasuredHeight());\n //TOOL\n int toolTop;\n // lp = (MarginLayoutParams) mTool.getLayoutParams();\n if (mFirstLayout) {\n toolTop = mTop.getMeasuredHeight();\n } else {\n toolTop = mTool.getTop();\n }\n mTool.layout(l, toolTop,\n mTool.getMeasuredWidth(),\n toolTop + mTool.getMeasuredHeight());\n\n //ANOTHER\n if (mAnotherTool != null) {\n int anotherToolTop;\n if (mFirstLayout) {\n anotherToolTop = mTop.getMeasuredHeight() + mTool.getMeasuredHeight();\n } else {\n anotherToolTop = mAnotherTool.getTop();\n }\n mAnotherTool.layout(l, anotherToolTop,\n mAnotherTool.getMeasuredWidth(),\n anotherToolTop + mAnotherTool.getMeasuredHeight());\n }\n\n //NORMAL\n // lp = (MarginLayoutParams) mNormal.getLayoutParams();\n int normalTop;\n if (mFirstLayout) {\n if (mAnotherTool != null) {\n normalTop = mTop.getMeasuredHeight() + mTool.getMeasuredHeight() + mAnotherTool.getMeasuredHeight();\n } else {\n normalTop = mTop.getMeasuredHeight() + mTool.getMeasuredHeight();\n }\n } else {\n normalTop = mNormal.getTop();\n }\n mNormal.layout(l, normalTop,\n mNormal.getMeasuredWidth(),\n normalTop + mNormal.getMeasuredHeight());\n\n mFirstLayout = false;\n }", "private void initRippleViewLayoutParams() {\n int rippleSide = (int) (2 * (mRippleRadius + mStrokeWidth));\n mRippleViewParams = new LayoutParams(rippleSide, rippleSide);\n // The settings shown in the position of the parent control\n mRippleViewParams.addRule(CENTER_IN_PARENT, TRUE);\n }", "public abstract int presentViewLayout();", "public void setLayoutParams(ViewGroup.LayoutParams layoutParams) {\n super.setLayoutParams(layoutParams);\n try {\n if (this.a == null) {\n com.adincube.sdk.h.c.c c2;\n if (layoutParams == null) {\n c2 = com.adincube.sdk.h.c.c.a;\n } else {\n float f2 = this.k.density;\n int n2 = layoutParams.height;\n if (n2 > 0) {\n n2 = (int)((float)n2 / f2);\n }\n c2 = com.adincube.sdk.h.c.c.a(n2);\n }\n this.b(c2);\n new Object[1][0] = this.a;\n if (this.a == com.adincube.sdk.h.c.c.b) {\n this.setVisibility(0);\n }\n }\n this.c.c();\n this.d.c();\n this.e.c();\n return;\n }\n catch (Throwable throwable) {\n com.adincube.sdk.util.a.c(\"BannerView.setLayoutParams\", new Object[]{throwable});\n ErrorReportingHelper.report(\"BannerView.setLayoutParams\", com.adincube.sdk.h.c.b.b, this.c(), throwable);\n return;\n }\n }", "public void createView() {\n relativeLayout = new RelativeLayout(getActivity());\n layoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_TOP);\n\n //equation and question number TextView and the params\n finalEquation = new TextView(getActivity());\n finalEquationParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n questionNumber = new TextView(getActivity());\n //questionNumber.setId(1);\n questionNumberParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.MATCH_PARENT);\n score = new TextView(getActivity());\n scoreParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.MATCH_PARENT);\n penalty = new TextView(getActivity());\n penaltyParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.MATCH_PARENT);\n\n //Correct and Incorrect buttons and their params\n correctButton = new Button(getActivity());\n wrongButton = new Button(getActivity());\n correctButtonParams = new RelativeLayout.LayoutParams(dpToPixels(125), dpToPixels(125));\n wrongButtonParams = new RelativeLayout.LayoutParams(dpToPixels(125), dpToPixels(125));\n correctButton.setText(\"Correct\");\n wrongButton.setText(\"Wrong\");\n correctButton.setTextColor(Color.parseColor(\"#37474F\"));\n wrongButton.setTextColor(Color.parseColor(\"#37474F\"));\n\n //align everything/make it pretty\n correctButtonParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n correctButtonParams.setMargins(dpToPixels(50),0,0,dpToPixels(50));\n wrongButtonParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n wrongButtonParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);\n wrongButtonParams.setMargins(0, 0,dpToPixels(50),dpToPixels(50));\n finalEquationParams.addRule(RelativeLayout.CENTER_HORIZONTAL);\n finalEquationParams.setMargins(0, dpToPixels(180), 0, 0);\n finalEquation.setTextSize(TypedValue.COMPLEX_UNIT_SP, 50);\n finalEquation.setTextColor(Color.WHITE);\n questionNumberParams.addRule(RelativeLayout.CENTER_HORIZONTAL);\n //questionNumber.setTextSize(pixelsToSp(getActivity(), 40));\n questionNumber.setTextSize(TypedValue.COMPLEX_UNIT_SP, 15);\n questionNumber.setTextColor(Color.WHITE);\n questionNumber.setTypeface(null, Typeface.ITALIC);\n scoreParams.addRule(RelativeLayout.CENTER_HORIZONTAL);\n scoreParams.setMargins(0, dpToPixels(20),0, 0);\n //score.setTextSize(pixelsToSp(getActivity(), 40));\n score.setTextSize(TypedValue.COMPLEX_UNIT_SP, 15);\n score.setTextColor(Color.WHITE);\n score.setTypeface(null, Typeface.ITALIC);\n penaltyParams.addRule(RelativeLayout.CENTER_HORIZONTAL);\n penaltyParams.setMargins(0, dpToPixels(40),0,0);\n //penalty.setTextSize(pixelsToSp(getActivity(), 40));\n penalty.setTextSize(TypedValue.COMPLEX_UNIT_SP, 15);\n penalty.setTypeface(null, Typeface.ITALIC);\n\n //set the params for everything!\n relativeLayout.setLayoutParams(layoutParams);\n finalEquation.setLayoutParams(finalEquationParams);\n correctButton.setLayoutParams(correctButtonParams);\n wrongButton.setLayoutParams(wrongButtonParams);\n questionNumber.setLayoutParams(questionNumberParams);\n score.setLayoutParams(scoreParams);\n penalty.setLayoutParams(penaltyParams);\n\n //add buttons/text views etc\n relativeLayout.addView(finalEquation);\n relativeLayout.addView(correctButton);\n relativeLayout.addView(wrongButton);\n relativeLayout.addView(questionNumber);\n relativeLayout.addView(score);\n relativeLayout.addView(penalty);\n }", "@Override\r\n\tprotected LayoutParams getLayoutParam(int arg0) {\n\t\tLayoutParams params = new MapView.LayoutParams(MapView.LayoutParams.WRAP_CONTENT, MapView.LayoutParams.WRAP_CONTENT, poiItem.get(number).getPoint(), 0, -height, LayoutParams.BOTTOM_CENTER);\r\n\r\n\t\treturn params;\r\n\t}", "@Override\r\n\tprotected void onLayout(boolean changed, int left, int top, int right,\r\n\t\t\tint bottom) {\n\t\tfor (int i = 0; i < getChildCount(); i++) {\r\n\t\t\tfinal View child = getChildAt(i);\r\n\t\t\tif(child.getVisibility() != GONE) {\r\n\t\t\t\tfinal LayoutParams params = (LayoutParams) child.getLayoutParams();\r\n\t\t\t\t\r\n\t\t\t\tfinal int width = child.getMeasuredWidth();\r\n\t\t\t\tfinal int height = child.getMeasuredHeight();\r\n\t\t\t\t\r\n\t\t\t\tint childleft = 0;\r\n\t\t\t\tint childtop = getPaddingTop()+params.topMargin;\r\n\t\t\t\t\r\n\t\t\t\tchild.layout(childleft, childtop, childleft+width, childtop+height);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected abstract\n @LayoutRes\n int getLayoutRes(int position);", "@Override \r\n\tprotected void onLayout(boolean changed, int left, int top, int right, int bottom)\r\n\t{\n\t\tif(changed)\r\n\t\t{\r\n\t\t\tthis.calculateChildViewLayoutParams();\r\n\t\t}\r\n\t\t\r\n\t\t// Set the layout position for the menu and content\r\n\t\tthis.m_listView.layout(left, top, right, bottom);\r\n\t\tthis.m_playerInfo.layout(left, (top - this.m_currentInfoOffset), right, (bottom - this.m_currentInfoOffset));\r\n\t\tthis.m_playerControls.layout(left, (top - this.m_currentControlsOffset), right, (bottom - this.m_currentControlsOffset));\r\n\t\tthis.m_banner.layout(left, top, right, bottom);\r\n\t\t\r\n\t}", "private void initParentView() {\n//\r\n\t\tbase_activity_title_notice = (TextView) findViewById(R.id.base_activity_title_left);\r\n\t\tivBack = (ImageView) findViewById(R.id.base_activity_title_backicon);\r\n//\t\tivBack_close = (ImageView) findViewById(R.id.base_activity_title_close);\r\n\t\trlTitlePrent = (RelativeLayout) findViewById(R.id.base_activity_title_parent);\r\n//\t\ttvTitleName_linear = (LinearLayout) findViewById(R.id.linear_titlename);\r\n//\t\ttvTitleName = (TextView) findViewById(R.id.base_activity_title_titlename);\r\n\t\tivTitleLeft = (ImageView) findViewById(R.id.base_activity_title_right_lefticon);\r\n//\t\tivTitledownIcon = (ImageView) findViewById(R.id.base_activity_title_downicon);\r\n\t\tivTitleMiddle = (ImageView) findViewById(R.id.base_activity_title_right_middleicon);\r\n//\t\tivTitleArrow = (ImageView) findViewById(R.id.base_activity_title_titleIcon);\r\n\t\tivTitleRight = (ImageView) findViewById(R.id.base_activity_title_right_righticon);\r\n\t\ttvRight = (TextView) findViewById(R.id.base_activity_title_right_righttv);\r\n//\t\trlReload = (RelativeLayout) findViewById(R.id.base_activity_load_fail_reload);\r\n//\t\tlinear_back = (LinearLayout) findViewById(R.id.linear_back);\r\n//\t\tbase_menu = (RelativeLayout) findViewById(R.id.base_menu);\r\n//\t\ttvNoDataContent = (TextView) findViewById(R.id.base_activity_no_data_content);\r\n//\t\tbase_tel_main = (ImageView) findViewById(R.id.base_tal_main);\r\n//\t\tbutton_hidded = (ImageView) findViewById(R.id.button_hidded);\r\n//\t\tiv_order = (ImageView) findViewById(R.id.iv_order);\r\n//\t\timageView_one = (ImageView) findViewById(R.id.imageView_one);\r\n//\t\tbase_shopping_mian = (ImageView) findViewById(R.id.base_shopping_mian);\r\n//\t\tmenu_shoppingnum = (TextView)findViewById(R.id.menu_shoppingNum);\r\n//\t\tlinear_menu = (LinearLayout) findViewById(R.id.linear_menu);\r\n//\t\tbutton_hidded_linear = (LinearLayout) findViewById(R.id.button_hidded_linear);\r\n//\r\n\r\n\r\n//\t\t// 添加地址\r\n//\t\ttvAddAddress = (TextView) findViewById(R.id.base_activity_no_address_add);\r\n//\t\tviewNoDrinksDemand = findViewById(R.id.base_activity_no_drink_demand);\r\n//\t\tNoMenu();\r\n//\t\tNoTelMenu();\r\n//\r\n////\t\tobjectAnimator = ObjectAnimator.ofFloat(base_tel_main,\"rotation\",-30,0,30);\r\n////\t\tobjectAnimator.setInterpolator(new LinearInterpolator());\r\n////\t\tobjectAnimator.setRepeatMode(ValueAnimator.REVERSE);\r\n////\t\tobjectAnimator.setDuration(1000);\r\n////\t\tobjectAnimator.setRepeatCount(ValueAnimator.INFINITE);\r\n////\t\tobjectAnimator.start();\r\n\t}", "@Override\r\n\tpublic void setLayoutParams(LayoutParams params) {\n\t\tparams.width = mBmpWidth;\r\n\t\tparams.height = mBmpHeight;\r\n\t\tsuper.setLayoutParams(params);\r\n\t}", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n Log.v(TAG, \"onLayout l = \" + l + \"; t = \" + t + \"; r = \" + r + \"; b = \" + b);\n int count = getChildCount();\n int x = l;\n int y = t;\n for(int i = 0; i < count; i++){\n View child = (View)getChildAt(i);\n child.layout(x, y, x + r, y + b);\n x = x + r;\n }\n }", "private RelativeLayout m25220a(Activity activity, boolean z) {\n ViewGroup.LayoutParams layoutParams;\n int i;\n final Dialog dialog = this;\n Context context = activity;\n boolean z2 = z;\n RelativeLayout relativeLayout = new RelativeLayout(context);\n if (z2) {\n layoutParams = new LayoutParams(-1, -1);\n } else if (dialog.f21357b) {\n r6 = SizeUtil.dpToPx(context, dialog.htmlOptions$6b189a4a.m25256b());\n C5750c c = dialog.htmlOptions$6b189a4a.m25257c();\n if (c != null) {\n if (!TextUtils.isEmpty(c.f21390b)) {\n i = c.f21389a;\n if (\"%\".equals(c.f21390b)) {\n r7 = (SizeUtil.getDisplaySize(activity).x * i) / 100;\n } else {\n r7 = SizeUtil.dpToPx(context, i);\n }\n layoutParams = new LayoutParams(r7, r6);\n layoutParams.addRule(14, -1);\n r7 = dialog.htmlOptions$6b189a4a.m25254a((Activity) context);\n if (\"Bottom\".equals(dialog.htmlOptions$6b189a4a.m25259e())) {\n layoutParams.topMargin = r7;\n } else {\n layoutParams.bottomMargin = r7;\n }\n }\n }\n layoutParams = new LayoutParams(-1, r6);\n layoutParams.addRule(14, -1);\n r7 = dialog.htmlOptions$6b189a4a.m25254a((Activity) context);\n if (\"Bottom\".equals(dialog.htmlOptions$6b189a4a.m25259e())) {\n layoutParams.topMargin = r7;\n } else {\n layoutParams.bottomMargin = r7;\n }\n } else {\n Point displaySize = SizeUtil.getDisplaySize(activity);\n r7 = SizeUtil.dpToPx(context, ((CenterPopupOptions) dialog.options).getWidth());\n i = SizeUtil.dpToPx(context, ((CenterPopupOptions) dialog.options).getHeight());\n int i2 = displaySize.x - SizeUtil.dp20;\n r6 = displaySize.y - SizeUtil.dp20;\n double d = (double) r7;\n double d2 = d / ((double) i);\n if (r7 > i2 && ((int) (d / d2)) < r6) {\n i = (int) (((double) i2) / d2);\n r7 = i2;\n }\n if (i <= r6 || ((int) (((double) i) * d2)) >= i2) {\n r6 = i;\n } else {\n r7 = (int) (((double) r6) * d2);\n }\n ViewGroup.LayoutParams layoutParams2 = new LayoutParams(r7, r6);\n layoutParams2.addRule(13, -1);\n layoutParams = layoutParams2;\n }\n relativeLayout.setLayoutParams(layoutParams);\n Drawable shapeDrawable = new ShapeDrawable();\n if (z2) {\n i = 0;\n } else {\n i = SizeUtil.dp20;\n }\n shapeDrawable.setShape(m25217a(i));\n shapeDrawable.getPaint().setColor(0);\n if (VERSION.SDK_INT >= 16) {\n relativeLayout.setBackground(shapeDrawable);\n } else {\n relativeLayout.setBackgroundDrawable(shapeDrawable);\n }\n View relativeLayout2;\n if (!dialog.f21356a && !dialog.f21357b) {\n View backgroundImageView = new BackgroundImageView(context, z2);\n backgroundImageView.setScaleType(ScaleType.CENTER_CROP);\n int i3 = !z2 ? SizeUtil.dp20 : 0;\n backgroundImageView.setImageBitmap(dialog.options.getBackgroundImage());\n Drawable shapeDrawable2 = new ShapeDrawable();\n shapeDrawable2.setShape(m25217a(i3));\n shapeDrawable2.getPaint().setColor(dialog.options.getBackgroundColor());\n if (VERSION.SDK_INT >= 16) {\n backgroundImageView.setBackground(shapeDrawable2);\n } else {\n backgroundImageView.setBackgroundDrawable(shapeDrawable2);\n }\n backgroundImageView.setLayoutParams(new LayoutParams(-1, -1));\n relativeLayout.addView(backgroundImageView, backgroundImageView.getLayoutParams());\n relativeLayout2 = new RelativeLayout(context);\n relativeLayout2.setLayoutParams(new ViewGroup.LayoutParams(-1, -2));\n backgroundImageView = new TextView(context);\n backgroundImageView.setPadding(0, SizeUtil.dp5, 0, SizeUtil.dp5);\n backgroundImageView.setGravity(17);\n backgroundImageView.setText(dialog.options.getTitle());\n backgroundImageView.setTextColor(dialog.options.getTitleColor());\n backgroundImageView.setTextSize(2, 20.0f);\n backgroundImageView.setTypeface(null, 1);\n ViewGroup.LayoutParams layoutParams3 = new LayoutParams(-1, -2);\n layoutParams3.addRule(14, -1);\n layoutParams3.addRule(15, -1);\n backgroundImageView.setLayoutParams(layoutParams3);\n relativeLayout2.addView(backgroundImageView, backgroundImageView.getLayoutParams());\n relativeLayout2.setId(104);\n relativeLayout.addView(relativeLayout2, relativeLayout2.getLayoutParams());\n backgroundImageView = new TextView(context);\n layoutParams3 = new LayoutParams(-2, -2);\n layoutParams3.addRule(12, -1);\n layoutParams3.addRule(14, -1);\n layoutParams3.setMargins(0, 0, 0, SizeUtil.dp5);\n backgroundImageView.setPadding(SizeUtil.dp20, SizeUtil.dp5, SizeUtil.dp20, SizeUtil.dp5);\n backgroundImageView.setLayoutParams(layoutParams3);\n backgroundImageView.setText(dialog.options.getAcceptButtonText());\n backgroundImageView.setTextColor(dialog.options.getAcceptButtonTextColor());\n backgroundImageView.setTypeface(null, 1);\n BitmapUtil.stateBackgroundDarkerByPercentage(backgroundImageView, dialog.options.getAcceptButtonBackgroundColor(), 30);\n backgroundImageView.setTextSize(2, 18.0f);\n backgroundImageView.setOnClickListener(new C57457(dialog));\n backgroundImageView.setId(105);\n relativeLayout.addView(backgroundImageView, backgroundImageView.getLayoutParams());\n View textView = new TextView(context);\n textView.setLayoutParams(new LayoutParams(-1, -1));\n textView.setGravity(17);\n textView.setText(dialog.options.getMessageText());\n textView.setTextColor(dialog.options.getMessageColor());\n textView.setTextSize(2, 18.0f);\n ((LayoutParams) textView.getLayoutParams()).addRule(3, relativeLayout2.getId());\n ((LayoutParams) textView.getLayoutParams()).addRule(2, backgroundImageView.getId());\n relativeLayout.addView(textView, textView.getLayoutParams());\n } else if (dialog.f21356a) {\n relativeLayout2 = new WebView(context);\n relativeLayout2.setLayoutParams(new LayoutParams(-1, -1));\n relativeLayout2.setWebViewClient(new C57413(dialog));\n relativeLayout2.loadUrl(dialog.webOptions.getUrl());\n relativeLayout.addView(relativeLayout2, relativeLayout2.getLayoutParams());\n } else {\n dialog.dialogView.setVisibility(8);\n WebView webView = new WebView(context);\n webView.setBackgroundColor(0);\n webView.setVerticalScrollBarEnabled(false);\n webView.setHorizontalScrollBarEnabled(false);\n webView.setOnTouchListener(new C57424(dialog));\n webView.canGoBack();\n webView.setLongClickable(false);\n webView.setHapticFeedbackEnabled(false);\n webView.setOnLongClickListener(new C57435(dialog));\n WebSettings settings = webView.getSettings();\n if (VERSION.SDK_INT >= 17) {\n settings.setMediaPlaybackRequiresUserGesture(false);\n }\n settings.setAppCacheEnabled(true);\n settings.setAllowFileAccess(true);\n settings.setJavaScriptEnabled(true);\n settings.setDomStorageEnabled(true);\n settings.setJavaScriptCanOpenWindowsAutomatically(true);\n settings.setLoadWithOverviewMode(true);\n settings.setLoadsImagesAutomatically(true);\n if (VERSION.SDK_INT >= 16) {\n settings.setAllowFileAccessFromFileURLs(true);\n settings.setAllowUniversalAccessFromFileURLs(true);\n }\n settings.setBuiltInZoomControls(false);\n settings.setDisplayZoomControls(false);\n settings.setSupportZoom(false);\n webView.setLayoutParams(new LayoutParams(-1, -1));\n webView.setWebChromeClient(new WebChromeClient());\n webView.setWebViewClient(new WebViewClient(dialog) {\n /* renamed from: b */\n private /* synthetic */ BaseMessageDialog f21354b;\n\n public final boolean shouldOverrideUrlLoading(android.webkit.WebView r9, java.lang.String r10) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r8 = this;\n r9 = r8.f21354b;\n r9 = r9.htmlOptions$6b189a4a;\n r9 = r9.m25264j();\n r9 = r10.contains(r9);\n r0 = 0;\n r1 = 1;\n if (r9 == 0) goto L_0x002d;\n L_0x0010:\n r9 = r8.f21354b;\n r9 = r9.dialogView;\n r9.setVisibility(r0);\n r9 = r8.f21354b;\n r9 = r9.activity;\n if (r9 == 0) goto L_0x002c;\n L_0x001d:\n r9 = r8.f21354b;\n r9 = r9.activity;\n r9 = r9.isFinishing();\n if (r9 != 0) goto L_0x002c;\n L_0x0027:\n r9 = r8;\n r9.show();\n L_0x002c:\n return r1;\n L_0x002d:\n r9 = r8.f21354b;\n r9 = r9.htmlOptions$6b189a4a;\n r9 = r9.m25266l();\n r9 = r10.contains(r9);\n if (r9 == 0) goto L_0x0052;\n L_0x003b:\n r9 = r8.f21354b;\n r9.cancel();\n r9 = r8.f21354b;\n r0 = \"result\";\n r9 = com.leanplum.messagetemplates.BaseMessageDialog.m25224a(r10, r0);\n r10 = android.text.TextUtils.isEmpty(r9);\n if (r10 != 0) goto L_0x0051;\n L_0x004e:\n com.leanplum.Leanplum.track(r9);\n L_0x0051:\n return r1;\n L_0x0052:\n r9 = r8.f21354b;\n r9 = r9.htmlOptions$6b189a4a;\n r9 = r9.m25263i();\n r9 = r10.contains(r9);\n if (r9 == 0) goto L_0x00c3;\n L_0x0060:\n r9 = r8.f21354b;\n r0 = \"event\";\n r3 = com.leanplum.messagetemplates.BaseMessageDialog.m25224a(r10, r0);\n r9 = android.text.TextUtils.isEmpty(r3);\n if (r9 != 0) goto L_0x00c2;\n L_0x006e:\n r9 = r8.f21354b;\n r0 = \"value\";\n r9 = com.leanplum.messagetemplates.BaseMessageDialog.m25224a(r10, r0);\n r4 = java.lang.Double.parseDouble(r9);\n r9 = java.lang.Double.valueOf(r4);\n r0 = r8.f21354b;\n r2 = \"info\";\n r6 = com.leanplum.messagetemplates.BaseMessageDialog.m25224a(r10, r2);\n r0 = 0;\n r2 = new org.json.JSONObject;\t Catch:{ Exception -> 0x009a }\n r4 = r8.f21354b;\t Catch:{ Exception -> 0x009a }\n r5 = \"parameters\";\t Catch:{ Exception -> 0x009a }\n r4 = com.leanplum.messagetemplates.BaseMessageDialog.m25224a(r10, r5);\t Catch:{ Exception -> 0x009a }\n r2.<init>(r4);\t Catch:{ Exception -> 0x009a }\n r2 = com.leanplum.ActionContext.mapFromJson(r2);\t Catch:{ Exception -> 0x009a }\n r7 = r2;\n goto L_0x009b;\n L_0x009a:\n r7 = r0;\n L_0x009b:\n r0 = r8.f21354b;\n r2 = \"isMessageEvent\";\n r10 = com.leanplum.messagetemplates.BaseMessageDialog.m25224a(r10, r2);\n r0 = \"true\";\n r10 = r10.equals(r0);\n if (r10 == 0) goto L_0x00bb;\n L_0x00ab:\n r10 = r8.f21354b;\n r10 = r10.htmlOptions$6b189a4a;\n r2 = r10.m25260f();\n r4 = r9.doubleValue();\n r2.trackMessageEvent(r3, r4, r6, r7);\n goto L_0x00c2;\n L_0x00bb:\n r9 = r9.doubleValue();\n com.leanplum.Leanplum.track(r3, r9, r6, r7);\n L_0x00c2:\n return r1;\n L_0x00c3:\n r9 = r8.f21354b;\n r9 = r9.htmlOptions$6b189a4a;\n r9 = r9.m25265k();\n r9 = r10.contains(r9);\n if (r9 != 0) goto L_0x00e1;\n L_0x00d1:\n r9 = r8.f21354b;\n r9 = r9.htmlOptions$6b189a4a;\n r9 = r9.m25262h();\n r9 = r10.contains(r9);\n if (r9 == 0) goto L_0x00e0;\n L_0x00df:\n goto L_0x00e1;\n L_0x00e0:\n return r0;\n L_0x00e1:\n r9 = r8.f21354b;\n r9.cancel();\n r9 = r8.f21354b;\n r0 = \"action\";\n r9 = com.leanplum.messagetemplates.BaseMessageDialog.m25224a(r10, r0);\n r0 = \"UTF-8\";\t Catch:{ UnsupportedEncodingException -> 0x00f5 }\n r0 = java.net.URLDecoder.decode(r9, r0);\t Catch:{ UnsupportedEncodingException -> 0x00f5 }\n r9 = r0;\n L_0x00f5:\n r0 = r8.f21354b;\n r0 = r0.htmlOptions$6b189a4a;\n r0 = r0.m25260f();\n r2 = android.text.TextUtils.isEmpty(r9);\n if (r2 != 0) goto L_0x011a;\n L_0x0103:\n if (r0 == 0) goto L_0x011a;\n L_0x0105:\n r2 = r8.f21354b;\n r2 = r2.htmlOptions$6b189a4a;\n r2 = r2.m25265k();\n r10 = r10.contains(r2);\n if (r10 == 0) goto L_0x0117;\n L_0x0113:\n r0.runActionNamed(r9);\n goto L_0x011a;\n L_0x0117:\n r0.runTrackedActionNamed(r9);\n L_0x011a:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.leanplum.messagetemplates.BaseMessageDialog.6.shouldOverrideUrlLoading(android.webkit.WebView, java.lang.String):boolean\");\n }\n });\n webView.loadDataWithBaseURL(null, dialog.htmlOptions$6b189a4a.m25261g(), AudienceNetworkActivity.WEBVIEW_MIME_TYPE, \"UTF-8\", null);\n dialog.webView = webView;\n relativeLayout.addView(dialog.webView, dialog.webView.getLayoutParams());\n }\n return relativeLayout;\n }", "public android.view.ViewGroup.LayoutParams generateLayoutParams(android.view.ViewGroup.LayoutParams layoutParams) {\n return new LayoutParams(layoutParams);\n }", "void restoreLayoutParams(@NonNull ViewGroup.LayoutParams params) {\n params.width = mPreservedParams.width;\n params.height = mPreservedParams.height;\n }", "public android.view.ViewGroup.LayoutParams generateLayoutParams(android.view.ViewGroup.LayoutParams layoutParams) {\n return new LayoutParams(super.generateLayoutParams(layoutParams));\n }", "public ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {\n if (layoutParams instanceof LayoutParams) {\n return layoutParams;\n }\n return new LayoutParams(layoutParams);\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n if (flag) {\n //进行一些初始化的操作\n/* if ((mOvalHeight == -1) || (mOvalWidth == -1)) {\n if (mWidth > mHeight) {\n mOvalHeight = (mHeight - 100) / 2;\n mOvalWidth = mOvalHeight + 100;\n } else {\n mOvalWidth = (mWidth - 100) / 2;\n mOvalHeight = mOvalWidth + 100;\n }\n }else {\n mOvalWidth /= 2;\n mOvalHeight /= 2;\n }*/\n\n if (mOvalHeightMargin != -1) {\n mOvalHeight = (mHeight - mOvalHeightMargin * 2) / 2;\n } else if (mOvalHeight == -1) {\n mOvalHeight = mHeight / 2;\n }\n if (mOvalWidthMargin != -1) {\n mOvalWidth = (mWidth - mOvalWidthMargin * 2) / 2;\n } else if (mOvalWidth == -1) {\n mOvalWidth = mWidth / 2;\n }\n\n\n if ((mChildWidth == -1) && (mChildHeight == -1)) {\n mChildWidth = 50;\n mChildHeight = 50;\n }\n\n //下面是获取所有的子view,给子view分配初始位置,默认第一个是270度,相当于y轴负半轴。\n mChildCount = getChildCount();\n mChildrenView = new View[mChildCount];\n mAngles = new double[mChildCount];\n mAngles[0] = 270;\n double j = 360 / mChildCount;\n for (int i = 0; i < mChildCount; i++) {\n mChildrenView[i] = getChildAt(i);\n final int finalI = i;\n mChildrenView[i].setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n if (itemClickListener == null)\n Log.e(TAG, \"你点击了的position = \" + finalI + \",但是itemClickListener == null\");\n else {\n itemClickListener.onItemClick(v, finalI, true);\n }\n }\n });\n if (i > 0) {\n if ((mAngles[i] + j) <= 360) {\n mAngles[i] = mAngles[i - 1] + j;\n } else {\n mAngles[i] = mAngles[i - 1] + j - 360;\n }\n }\n int x = (int) (mOvalWidth * Math.cos(mAngles[i] * Math.PI / 180));\n int y = (int) (mOvalHeight * Math.sin(mAngles[i] * Math.PI / 180));\n mChildrenView[i].layout(mWidth / 2 - x - mChildWidth / 2, mHeight / 2 - y - mChildHeight / 2, mWidth / 2 - x + mChildWidth / 2, mHeight / 2 - y + mChildHeight / 2);\n }\n flag = false;\n }\n }", "@Override\n public boolean checkLayoutParams(RecyclerView.LayoutParams lp) {\n return true;\n }", "public android.view.ViewGroup.LayoutParams generateLayoutParams(android.view.ViewGroup.LayoutParams layoutParams) {\n return generateDefaultLayoutParams();\n }", "public void onGlobalLayout() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n llItems.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n } else {\n llItems.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n }\n int centerPosition = 0;\n\n // measure your views here\n int totalChildren = llItems.getChildCount();\n\n for (int i = 0; i < totalChildren - 1; i++) {\n ItemView firstItem = (ItemView) llItems.getChildAt(i);\n ItemView secondItem = (ItemView) llItems.getChildAt(i + 1);\n\n if (i == 0) {\n int paddingLeft = firstItem.getPaddingLeft();\n\n View radioButton = firstItem.findViewById(R.id.rb__choice);\n centerPosition = paddingLeft + radioButton.getWidth() / 2;\n }\n\n View lineView = inflater.inflate(R.layout.item_vertical_line, null);\n llLines.addView(lineView);\n lineView.setTag(\"LINE_\" + i);\n\n View line = lineView.findViewById(R.id.v__line);\n LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) line.getLayoutParams();\n\n int topSpace = 0;\n if (i == 0) {\n topSpace = firstItem.getHeight() / 2 + firstItem.rbChoice.getHeight() / 2;\n } else {\n topSpace = firstItem.rbChoice.getHeight();\n }\n\n params.setMargins(centerPosition - 1, topSpace, 0, 0);\n\n int height = firstItem.getHeight() + secondItem.getTopRadio() - firstItem.getBottomRadio();\n Log.i(\"TRUNGNTH\", \"Height: \" + height + \" secondItem.getTopRadio(): \" + secondItem.getTopRadio() + \" | firstItem.getBottomRadio(): \" + firstItem.getBottomRadio());\n params.height = height;\n line.setLayoutParams(params);\n }\n }", "@Override\n protected void onLayout(boolean bl, int n, int n2, int n3, int n4) {\n Drawable drawable2;\n int n5 = this.getPaddingLeft();\n int n6 = n3 - n;\n int n7 = this.getPaddingRight();\n int n8 = this.getPaddingRight();\n n = this.getMeasuredHeight();\n int n9 = this.getChildCount();\n int n10 = this.getGravity();\n switch (n10 & 0x70) {\n default: {\n n = this.getPaddingTop();\n break;\n }\n case 80: {\n n = this.getPaddingTop() + n4 - n2 - n;\n break;\n }\n case 16: {\n n = this.getPaddingTop() + (n4 - n2 - n) / 2;\n }\n }\n n3 = (drawable2 = this.getDividerDrawable()) == null ? 0 : drawable2.getIntrinsicHeight();\n for (n4 = 0; n4 < n9; ++n4) {\n drawable2 = this.getChildAt(n4);\n n2 = n;\n if (drawable2 != null) {\n n2 = n;\n if (drawable2.getVisibility() != 8) {\n int n11;\n int n12 = drawable2.getMeasuredWidth();\n int n13 = drawable2.getMeasuredHeight();\n LinearLayoutCompat.LayoutParams layoutParams = (LinearLayoutCompat.LayoutParams)drawable2.getLayoutParams();\n n2 = n11 = layoutParams.gravity;\n if (n11 < 0) {\n n2 = n10 & 0x800007;\n }\n switch (GravityCompat.getAbsoluteGravity(n2, ViewCompat.getLayoutDirection((View)this)) & 7) {\n default: {\n n2 = n5 + layoutParams.leftMargin;\n break;\n }\n case 1: {\n n2 = (n6 - n5 - n8 - n12) / 2 + n5 + layoutParams.leftMargin - layoutParams.rightMargin;\n break;\n }\n case 5: {\n n2 = n6 - n7 - n12 - layoutParams.rightMargin;\n }\n }\n n11 = n;\n if (this.hasDividerBeforeChildAt(n4)) {\n n11 = n + n3;\n }\n n = n11 + layoutParams.topMargin;\n this.setChildFrame((View)drawable2, n2, n, n12, n13);\n n2 = n + (layoutParams.bottomMargin + n13);\n }\n }\n n = n2;\n }\n }", "ViewGroup mo106367i();", "@Override\n protected boolean checkLayoutParams(ViewGroup.LayoutParams p) {\n return p instanceof LayoutParams;\n }", "protected abstract int getResLayout();", "public ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams lp) {\n return new ViewGroup.MarginLayoutParams(lp);\n }", "@Override\n public void onGlobalLayout() {\n if (bottom == 0) {\n txtGrayInstructions.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n bottom = txtGrayInstructions.getBottom();\n }\n //showHelpView(layoutInflater);\n\n }", "protected void onLoadLayout(View view) {\n }", "private void findViews() {\r\n\t\t// Buttons first\r\n\t\tcloseBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"closeBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\tshareBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"shareBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\t// Photo Container\r\n\t\tphoto = (ImageView) findViewById( getApplication().getResources().getIdentifier(\"photoView\", \"id\", getApplication().getPackageName()) );\r\n\t\twarning = this.getResources().getIdentifier(\"warning\", \"drawable\", getApplication().getPackageName());\r\n\t\tplace = this.getResources().getIdentifier(\"no_media\", \"drawable\", getApplication().getPackageName());\r\n\t\tmAttacher = new PhotoViewAttacher(photo);\r\n\t\t// Title TextView\r\n\t\t//titleTxt = (TextView) findViewById( getApplication().getResources().getIdentifier(\"titleTxt\", \"id\", getApplication().getPackageName()) );\r\n\t\tprogress = (ProgressBar) findViewById( getApplication().getResources().getIdentifier(\"progressBar\", \"id\", getApplication().getPackageName()));\r\n\t}", "private RelativeLayout m25221a(Context context) {\n RelativeLayout relativeLayout = new RelativeLayout(context);\n relativeLayout.setLayoutParams(new ViewGroup.LayoutParams(-1, -2));\n View textView = new TextView(context);\n textView.setPadding(0, SizeUtil.dp5, 0, SizeUtil.dp5);\n textView.setGravity(17);\n textView.setText(this.options.getTitle());\n textView.setTextColor(this.options.getTitleColor());\n textView.setTextSize(2, 20.0f);\n textView.setTypeface(null, 1);\n context = new LayoutParams(-1, -2);\n context.addRule(14, -1);\n context.addRule(15, -1);\n textView.setLayoutParams(context);\n relativeLayout.addView(textView, textView.getLayoutParams());\n return relativeLayout;\n }", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n i3 -= i;\n i4 -= i2;\n int dp = AndroidUtilities.m26dp(8.0f);\n int i5 = 0;\n ChatAttachAlert.this.attachPhotoRecyclerView.layout(0, dp, i3, ChatAttachAlert.this.attachPhotoRecyclerView.getMeasuredHeight() + dp);\n ChatAttachAlert.this.progressView.layout(0, dp, i3, ChatAttachAlert.this.progressView.getMeasuredHeight() + dp);\n ChatAttachAlert.this.lineView.layout(0, AndroidUtilities.m26dp(96.0f), i3, AndroidUtilities.m26dp(96.0f) + ChatAttachAlert.this.lineView.getMeasuredHeight());\n ChatAttachAlert.this.hintTextView.layout((i3 - ChatAttachAlert.this.hintTextView.getMeasuredWidth()) - AndroidUtilities.m26dp(5.0f), (i4 - ChatAttachAlert.this.hintTextView.getMeasuredHeight()) - AndroidUtilities.m26dp(5.0f), i3 - AndroidUtilities.m26dp(5.0f), i4 - AndroidUtilities.m26dp(5.0f));\n i = (i3 - ChatAttachAlert.this.mediaBanTooltip.getMeasuredWidth()) / 2;\n dp += (ChatAttachAlert.this.attachPhotoRecyclerView.getMeasuredHeight() - ChatAttachAlert.this.mediaBanTooltip.getMeasuredHeight()) / 2;\n ChatAttachAlert.this.mediaBanTooltip.layout(i, dp, ChatAttachAlert.this.mediaBanTooltip.getMeasuredWidth() + i, ChatAttachAlert.this.mediaBanTooltip.getMeasuredHeight() + dp);\n i3 = (i3 - AndroidUtilities.m26dp(360.0f)) / 3;\n dp = 0;\n while (i5 < 8) {\n if (ChatAttachAlert.this.views[i5] != null) {\n i = AndroidUtilities.m26dp((float) (((dp / 4) * 97) + 105));\n i2 = AndroidUtilities.m26dp(10.0f) + ((dp % 4) * (AndroidUtilities.m26dp(85.0f) + i3));\n ChatAttachAlert.this.views[i5].layout(i2, i, ChatAttachAlert.this.views[i5].getMeasuredWidth() + i2, ChatAttachAlert.this.views[i5].getMeasuredHeight() + i);\n dp++;\n }\n i5++;\n }\n }", "public void onLayout(boolean r10, int r11, int r12, int r13, int r14) {\n /*\n r9 = this;\n int r10 = r9.getChildCount()\n int r0 = r9.measureKeyboardHeight()\n r1 = 1101004800(0x41a00000, float:20.0)\n int r1 = org.telegram.messenger.AndroidUtilities.dp(r1)\n r2 = 0\n if (r0 > r1) goto L_0x001c\n org.telegram.ui.PopupNotificationActivity r0 = org.telegram.ui.PopupNotificationActivity.this\n org.telegram.ui.Components.ChatActivityEnterView r0 = r0.chatActivityEnterView\n int r0 = r0.getEmojiPadding()\n goto L_0x001d\n L_0x001c:\n r0 = 0\n L_0x001d:\n if (r2 >= r10) goto L_0x00e3\n android.view.View r1 = r9.getChildAt(r2)\n int r3 = r1.getVisibility()\n r4 = 8\n if (r3 != r4) goto L_0x002d\n goto L_0x00df\n L_0x002d:\n android.view.ViewGroup$LayoutParams r3 = r1.getLayoutParams()\n android.widget.FrameLayout$LayoutParams r3 = (android.widget.FrameLayout.LayoutParams) r3\n int r4 = r1.getMeasuredWidth()\n int r5 = r1.getMeasuredHeight()\n int r6 = r3.gravity\n r7 = -1\n if (r6 != r7) goto L_0x0042\n r6 = 51\n L_0x0042:\n r7 = r6 & 7\n r6 = r6 & 112(0x70, float:1.57E-43)\n r7 = r7 & 7\n r8 = 1\n if (r7 == r8) goto L_0x0056\n r8 = 5\n if (r7 == r8) goto L_0x0051\n int r7 = r3.leftMargin\n goto L_0x0061\n L_0x0051:\n int r7 = r13 - r4\n int r8 = r3.rightMargin\n goto L_0x0060\n L_0x0056:\n int r7 = r13 - r11\n int r7 = r7 - r4\n int r7 = r7 / 2\n int r8 = r3.leftMargin\n int r7 = r7 + r8\n int r8 = r3.rightMargin\n L_0x0060:\n int r7 = r7 - r8\n L_0x0061:\n r8 = 16\n if (r6 == r8) goto L_0x0073\n r8 = 80\n if (r6 == r8) goto L_0x006c\n int r6 = r3.topMargin\n goto L_0x007f\n L_0x006c:\n int r6 = r14 - r0\n int r6 = r6 - r12\n int r6 = r6 - r5\n int r8 = r3.bottomMargin\n goto L_0x007e\n L_0x0073:\n int r6 = r14 - r0\n int r6 = r6 - r12\n int r6 = r6 - r5\n int r6 = r6 / 2\n int r8 = r3.topMargin\n int r6 = r6 + r8\n int r8 = r3.bottomMargin\n L_0x007e:\n int r6 = r6 - r8\n L_0x007f:\n org.telegram.ui.PopupNotificationActivity r8 = org.telegram.ui.PopupNotificationActivity.this\n org.telegram.ui.Components.ChatActivityEnterView r8 = r8.chatActivityEnterView\n boolean r8 = r8.isPopupView(r1)\n if (r8 == 0) goto L_0x0094\n int r3 = r9.getMeasuredHeight()\n if (r0 == 0) goto L_0x0092\n int r3 = r3 - r0\n L_0x0092:\n r6 = r3\n goto L_0x00da\n L_0x0094:\n org.telegram.ui.PopupNotificationActivity r8 = org.telegram.ui.PopupNotificationActivity.this\n org.telegram.ui.Components.ChatActivityEnterView r8 = r8.chatActivityEnterView\n boolean r8 = r8.isRecordCircle(r1)\n if (r8 == 0) goto L_0x00da\n org.telegram.ui.PopupNotificationActivity r6 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r6 = r6.popupContainer\n int r6 = r6.getTop()\n org.telegram.ui.PopupNotificationActivity r7 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r7 = r7.popupContainer\n int r7 = r7.getMeasuredHeight()\n int r6 = r6 + r7\n int r7 = r1.getMeasuredHeight()\n int r6 = r6 - r7\n int r7 = r3.bottomMargin\n int r6 = r6 - r7\n org.telegram.ui.PopupNotificationActivity r7 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r7 = r7.popupContainer\n int r7 = r7.getLeft()\n org.telegram.ui.PopupNotificationActivity r8 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r8 = r8.popupContainer\n int r8 = r8.getMeasuredWidth()\n int r7 = r7 + r8\n int r8 = r1.getMeasuredWidth()\n int r7 = r7 - r8\n int r3 = r3.rightMargin\n int r7 = r7 - r3\n L_0x00da:\n int r4 = r4 + r7\n int r5 = r5 + r6\n r1.layout(r7, r6, r4, r5)\n L_0x00df:\n int r2 = r2 + 1\n goto L_0x001d\n L_0x00e3:\n r9.notifyHeightChanged()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.PopupNotificationActivity.AnonymousClass1.onLayout(boolean, int, int, int, int):void\");\n }", "public abstract int getFragmentLayout();", "private void resetConentViewsTopMargin(int topMargin){\n\n View child = null;\n LayoutParams fllp = null;\n for(int i=0; i<getChildCount(); i++){\n\n child = getChildAt(i);\n if(child != mFlTitleView){\n\n fllp = (LayoutParams) child.getLayoutParams();\n if(fllp.gravity != Gravity.CENTER){\n\n fllp.topMargin = topMargin;\n child.setLayoutParams(fllp);\n }\n }\n }\n }", "int getItemViewLayoutId();", "protected abstract int getFragmentLayout();", "protected abstract int getFragmentLayout();", "protected abstract int getFragmentLayout();", "public MainViews(Context context) {\n this.context = context;\n layoutParams =new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n layoutParams.setMargins(0,0,0,5);\n }", "@Override\n protected void initView(View view) {\n super.initView(view);\n picture1 = (ImageView) rootview.findViewById(R.id.picture1);\n picture2=(ImageView) rootview.findViewById(R.id.picture2);\n\n }", "@Override // android.view.ViewGroup\n public ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {\n if (layoutParams instanceof C17366a) {\n return new C17366a((C17366a) layoutParams);\n }\n if (layoutParams instanceof ViewGroup.MarginLayoutParams) {\n return new C17366a((ViewGroup.MarginLayoutParams) layoutParams);\n }\n return new C17366a(layoutParams);\n }", "private void m125723r() {\n Context context = getContext();\n if (context != null) {\n if (this.f90233z == null) {\n this.f90233z = new ProgressView(context);\n }\n FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-2, -2);\n layoutParams.gravity = 1;\n layoutParams.topMargin = DisplayUtils.m87171b(context, 50.0f);\n this.f90233z.mo68349a();\n if (this.f88308f != null) {\n TopicCommonUtil.m123937a(this.f88308f, this.f90233z, layoutParams);\n }\n }\n }", "@Override\r\n\tprotected void initView(View view) {\n\t\trly_personal_info = (RelativeLayout) view.findViewById(R.id.rly_personal_info);\r\n\t\t\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_options, container, false);\n\n //Find the +1 button\n //mPlusOneButton = (PlusOneButton) view.findViewById(R.id.plus_one_button1);\n\n //\n // find the buttons and set the proper height to them\n _butSet = (ImageButton)view.findViewById(R.id.settings);\n _butSearch = (ImageButton)view.findViewById(R.id.search);\n _butLod = (ImageButton)view.findViewById(R.id.lod);\n _butVB = (ImageButton)view.findViewById(R.id.viewbox);\n _butCam = (ImageButton)view.findViewById(R.id.camera);\n\n view.findViewById(R.id.icons_parent).addOnLayoutChangeListener(new BtnLayout());\n\n /*\n _butSet.addOnLayoutChangeListener(new BtnLayout());\n _butSearch.addOnLayoutChangeListener(new BtnLayout());\n _butLod.addOnLayoutChangeListener(new BtnLayout());\n _butVB.addOnLayoutChangeListener(new BtnLayout());\n _butCam.addOnLayoutChangeListener(new BtnLayout());*/\n\n return view;\n }", "int getActivityLayoutId();", "private void prepareViews() {\n mTextViewHeader = (TextView) mHeaderView.findViewById(R.id.tv_text_header_enhanced_listview);\n mTextViewFooter = (TextView) mFooterView.findViewById(R.id.tv_text_footer_enhanced_listview);\n mTextViewTime = (TextView) mHeaderView.findViewById(R.id.tv_time_update_header);\n\n mArrowHeader = mHeaderView.findViewById(R.id.arrow_header);\n mArrowFooter = mFooterView.findViewById(R.id.arrow_footer);\n\n mPbHeader = mHeaderView.findViewById(R.id.pb_header_enhanced_listview);\n mPbFooter = mFooterView.findViewById(R.id.pb_footer_enhanced_listview);\n\n }", "private void findViews() {\n // Buttons first\n closeBtn = (ImageButton) findViewById(getApplication().getResources().getIdentifier(\"closeBtn\", \"id\", getApplication().getPackageName()));\n shareBtn = (ImageButton) findViewById(getApplication().getResources().getIdentifier(\"shareBtn\", \"id\", getApplication().getPackageName()));\n\n //ProgressBar\n loadingBar = (ProgressBar) findViewById(getApplication().getResources().getIdentifier(\"loadingBar\", \"id\", getApplication().getPackageName()));\n // Image Container\n image = (TouchImageView) findViewById(getApplication().getResources().getIdentifier(\"imageView\", \"id\", getApplication().getPackageName()));\n \n\n // Title TextView\n titleTxt = (TextView) findViewById(getApplication().getResources().getIdentifier(\"titleTxt\", \"id\", getApplication().getPackageName()));\n }", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b)\n\t{\n\n\t\tDisplayMetrics displayMetrics = getResources().getDisplayMetrics();\n\t\tint screenWidth = displayMetrics.widthPixels;\n\t\t//int screenHeight = displayMetrics.heightPixels;\n\t\tint childTop = 30;\n\t\tint childLeft = 20;\n\t\tint cameraPicWidth = screenWidth / 5;\n\t\tint cameraPicHeight = 2 * cameraPicWidth;\n\t\tint space = 20;\n\t\tint column = 0;\n\n\t\tfinal int count = getChildCount();\n\t\tfor (int i = 0; i < count; i++)\n\t\t{\n\t\t\tfinal View child = getChildAt(i);\n\t\t\tif (child.getVisibility() != View.GONE)\n\t\t\t{\n\t\t\t\tchild.setVisibility(View.VISIBLE);\n\t\t\t\t//child.measure(r - l, b - t);\n\t\t\t\tchild.layout(childLeft + space, childTop, childLeft + cameraPicWidth + space, childTop + cameraPicHeight + space);\n\t\t\t\tcolumn++;\n\t\t\t\tif (childLeft < screenWidth - 2 * (space + cameraPicWidth))\n\t\t\t\t{\n\t\t\t\t\tchildLeft += cameraPicWidth + space;\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tcolumn = 0;\n\t\t\t\t\tchildLeft = 20;\n\t\t\t\t\tchildTop += cameraPicHeight;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n Log.v(\"MeInfoEdit\",\"onCreateView\");\n if(view==null){\n view =inflater.inflate(R.layout.fragment_me_info_edit, container, false);\n }\n ((MainActivity)getActivity()).unBindDrawer();\n ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);\n swipLayout=new SwipLayout(getContext());\n swipLayout.setLayoutParams(params);\n swipLayout.setBackgroundColor(Color.TRANSPARENT);\n swipLayout.removeAllViews();\n swipLayout.addView(view);\n if(CoreApplication.newInstance().getRoot()!=null){\n Log.v(\"MeinfoEdit\",\"rootView not null\");\n }\n swipLayout.setParentView(getTargetFragment().getView()).setFragment(MeInfoEdit.this);\n return swipLayout;\n }", "public android.view.ViewGroup.LayoutParams generateDefaultLayoutParams() {\n return new LayoutParams();\n }", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n int measuredWidth = getMeasuredWidth() / 2;\n i2 = getMeasuredHeight() / 2;\n ChatAttachAlert.this.shutterButton.layout(measuredWidth - (ChatAttachAlert.this.shutterButton.getMeasuredWidth() / 2), i2 - (ChatAttachAlert.this.shutterButton.getMeasuredHeight() / 2), (ChatAttachAlert.this.shutterButton.getMeasuredWidth() / 2) + measuredWidth, (ChatAttachAlert.this.shutterButton.getMeasuredHeight() / 2) + i2);\n if (getMeasuredWidth() == AndroidUtilities.m26dp(100.0f)) {\n measuredWidth = getMeasuredWidth() / 2;\n i3 = i2 / 2;\n i2 = (i2 + i3) + AndroidUtilities.m26dp(17.0f);\n i4 = i3 - AndroidUtilities.m26dp(17.0f);\n i3 = measuredWidth;\n } else {\n i2 = measuredWidth / 2;\n measuredWidth = (measuredWidth + i2) + AndroidUtilities.m26dp(17.0f);\n i4 = getMeasuredHeight() / 2;\n i3 = i2 - AndroidUtilities.m26dp(17.0f);\n i2 = i4;\n }\n ChatAttachAlert.this.switchCameraButton.layout(measuredWidth - (ChatAttachAlert.this.switchCameraButton.getMeasuredWidth() / 2), i2 - (ChatAttachAlert.this.switchCameraButton.getMeasuredHeight() / 2), measuredWidth + (ChatAttachAlert.this.switchCameraButton.getMeasuredWidth() / 2), i2 + (ChatAttachAlert.this.switchCameraButton.getMeasuredHeight() / 2));\n for (measuredWidth = 0; measuredWidth < 2; measuredWidth++) {\n ChatAttachAlert.this.flashModeButton[measuredWidth].layout(i3 - (ChatAttachAlert.this.flashModeButton[measuredWidth].getMeasuredWidth() / 2), i4 - (ChatAttachAlert.this.flashModeButton[measuredWidth].getMeasuredHeight() / 2), (ChatAttachAlert.this.flashModeButton[measuredWidth].getMeasuredWidth() / 2) + i3, (ChatAttachAlert.this.flashModeButton[measuredWidth].getMeasuredHeight() / 2) + i4);\n }\n }", "public int onCreateViewLayout() {\n return R.layout.gb_fragment_performance_settings;\n }", "public ViewGroup.LayoutParams generateDefaultLayoutParams() {\n return new LayoutParams(-1, -1);\n }", "@Override\n\tpublic void findViews() {\n\t\tet1 = (TextView) findViewById(R.id.et1);\n\t\tet2 = (TextView) findViewById(R.id.et2);\n\t\tet3 = (TextView) findViewById(R.id.et3);\n\t\tet4 = (TextView) findViewById(R.id.et4);\n\t\tet5 = (TextView) findViewById(R.id.et5);\n\t\tet6 = (TextView) findViewById(R.id.et6);\n\t\tet7 = (TextView) findViewById(R.id.et7);\n\t\tet8 = (TextView) findViewById(R.id.et8);\n\t\tet9 = (TextView) findViewById(R.id.et9);\n\t\tet10 = (TextView) findViewById(R.id.et10);\n\t\tet11 = (TextView) findViewById(R.id.et11);\n\t\tet12 = (TextView) findViewById(R.id.et12);\n\t\tet13 = (TextView) findViewById(R.id.et13);\n\t\tet14 = (TextView) findViewById(R.id.et14);\n\t\ttv_total1 = findViewById(R.id.tv_total1);\n\t\ttv_total2 = findViewById(R.id.tv_total2);\n\t\tiv1 = findViewById(R.id.im1);\n\t\tiv2 = findViewById(R.id.im2);\n\t\tiv3 = findViewById(R.id.im3);\n\t\tiv4 = findViewById(R.id.im4);\n\t\tiv5 = findViewById(R.id.im5);\n\t\tiv6 = findViewById(R.id.im6);\n\t\tiv7 = findViewById(R.id.im7);\n\t\tiv8 = findViewById(R.id.im8);\n\t\tiv9 = findViewById(R.id.im9);\n\t\tiv10 = findViewById(R.id.im10);\n\t\tiv11 = findViewById(R.id.im11);\n\t\tiv12 = findViewById(R.id.im12);\n\t\tiv13 = findViewById(R.id.im13);\n\t\tiv14 = findViewById(R.id.im14);\n\t\ttv_title1 = (TextView) findViewById(R.id.tv_title1);\n\t\ttv_title2 = (TextView) findViewById(R.id.tv_title2);\n\t\ttv_title3 = (TextView) findViewById(R.id.tv_title3);\n\t\ttv_title4 = (TextView) findViewById(R.id.tv_title4);\n\t\ttv_title5 = (TextView) findViewById(R.id.tv_title5);\n\t\ttv_title6 = (TextView) findViewById(R.id.tv_title6);\n\t\ttv_title7 = (TextView) findViewById(R.id.tv_title7);\n\t\tll_progress = (LinearLayout) findViewById(R.id.ll_progress);\n\t\tll_progress.setVisibility(View.VISIBLE);\n\t}", "@Override\n\tprotected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n\t\tsuper.onMeasure(widthMeasureSpec, heightMeasureSpec);\n\t\tmScreenHeight=getScreenHeight(getContext());\n\t\theight=getHeight();\n\t\thalfHeight=height/2;\n\t\twrapper=(LinearLayout) this.getChildAt(0);\n\t\tviewGroup1=(ViewGroup) wrapper.getChildAt(0);\n\t\tviewGroup2=(ViewGroup) wrapper.getChildAt(1);\n\t\tviewGroup1.getLayoutParams().height=height;\n\t\tviewGroup2.getLayoutParams().height=height;\n\t}", "public /* synthetic */ android.view.ViewGroup.LayoutParams generateDefaultLayoutParams() {\n return new LayoutParams();\n }", "float mo196a(ViewGroup viewGroup, View view);", "public interface ILViewGroup<U extends UDViewGroup> extends ILView<U> {\n\n void bringSubviewToFront(UDView child);\n\n void sendSubviewToBack(UDView child);\n\n @NonNull\n ViewGroup.LayoutParams applyLayoutParams(ViewGroup.LayoutParams src, UDView.UDLayoutParams udLayoutParams);\n\n @NonNull\n ViewGroup.LayoutParams applyChildCenter(ViewGroup.LayoutParams src, UDView.UDLayoutParams udLayoutParams);\n\n}", "protected abstract int getLayoutViewId();", "private void fillDown(int nextTop) {\n LayoutParams p;\n while (nextTop > 0 && topViewPosition > 0) {\n topViewPosition--;\n View child = obtainView(topViewPosition);\n p = (LayoutParams) child.getLayoutParams();\n if (p == null) {\n p = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\n Log.e(TAG, \"fillViews: p == null\");\n }\n p.viewType = mAdapter.getItemViewType(topViewPosition);\n addViewInLayout(child, 0, p, true);\n child.requestLayout();\n needReLayout=true;\n nextTop -= p.height;\n }\n }", "@Override // android.widget.PopupWindow\n public WindowManager.LayoutParams getDecorViewLayoutParams() {\n return this.mWindowLayoutParams;\n }", "private void m22265Oj() {\n this.dLm = (LinearLayout) findViewById(R.id.dot_container);\n this.f3556yH = (ViewPager) findViewById(R.id.viewPager);\n azI();\n }", "public ViewGroup.LayoutParams generateDefaultLayoutParams() {\n return new C17366a(-1, -2);\n }", "public View mo7054a(LayoutInflater layoutInflater, ViewGroup viewGroup) {\n C7707a.m18760a(\"controls:onCreateView\");\n View inflate = layoutInflater.inflate(R.layout.controller_controls, viewGroup, false);\n this.f15636R = (ViewGroup) inflate;\n this.f15637S = (FrameLayout) inflate.findViewById(R.id.button_inbox);\n this.f15638T = (ImageView) inflate.findViewById(R.id.button_inbox_image);\n this.f15639U = (FrameLayout) inflate.findViewById(R.id.button_map);\n this.f15640V = (ImageView) inflate.findViewById(R.id.button_map_image);\n this.f15641W = (FrameLayout) inflate.findViewById(R.id.button_profile);\n this.f15642X = (ImageView) inflate.findViewById(R.id.button_profile_image);\n this.f15643Y = (ViewGroup) inflate.findViewById(R.id.button_dashboard);\n this.f15645a0 = inflate.findViewById(R.id.button_search);\n this.f15646b0 = (ConstraintLayout) inflate.findViewById(R.id.button_discover);\n this.f15650f0 = (TextView) inflate.findViewById(R.id.discover_count);\n this.f15647c0 = (ImageView) inflate.findViewById(R.id.img_button_discover);\n this.f15648d0 = (LottieAnimationView) inflate.findViewById(R.id.lottie_button_discover);\n this.f15649e0.add(this.f15639U);\n this.f15649e0.add(this.f15637S);\n this.f15649e0.add(this.f15643Y);\n this.f15649e0.add(this.f15641W);\n this.f15646b0.setOnClickListener(this);\n this.f15644Z = (ViewGroup) inflate.findViewById(R.id.button_best_friends);\n C7707a.m18759a();\n this.f15664t0.onCreateView(inflate);\n return inflate;\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.main);\r\n\t\t\r\n\t\tmCustomViewGroup = (CustomViewGroup) findViewById(R.id.customViewGroup1);\r\n\t\tmCellViewGroup = (CellViewGroup) findViewById(R.id.cellViewGroup1);\r\n\t\tchildView = (Button) mCustomViewGroup.getChildAt(1);\r\n\t\tbutton1 = (Button) findViewById(R.id.button1);\r\n\t\tbutton2 = (Button) findViewById(R.id.button2);\r\n\t\tbutton3 = (Button) findViewById(R.id.button3);\r\n\t\tbutton7 = (Button) findViewById(R.id.button7);\r\n\t\thandler = new Handler(){\r\n\t\t\tpublic void handleMessage(android.os.Message msg) {\r\n\t\t\t\tswitch (msg.what) {\r\n\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\tpost(new Runnable() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tif (childView.getWidth() <= 0) {\r\n\t\t\t\t\t\t\t\t\tremoveCallbacks(this);\r\n\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\tmCustomViewGroup.setHalfWidthOfChild(1);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tchildView.layout(childView.getLeft() - 20, childView.getTop(), childView.getRight(), childView.getBottom());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t};\r\n\t\tbutton1.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\thandler.sendEmptyMessage(0);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton2.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n//\t\t\t\thandler.sendEmptyMessage(1);\r\n\t\t\t\tLog.i(\"after\", \"\" + cellChildView.getLeft());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton3.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tmCustomViewGroup.updateViewLayout(childView,new ViewGroup.LayoutParams(50, 50));\r\n\t\t\t\tcellChildView = new Button(MainActivity.this);\r\n\t\t\t\tcellChildView.setText(\"1111\");\r\n\t\t\t\tCellLayoutParams cellLayoutParams = new CellLayoutParams(0, 0, 100, 100);\r\n\t\t\t\tmCellViewGroup.addView(cellChildView, cellLayoutParams);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton7.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tTranslateAnimation translateAnimation = new TranslateAnimation(0, 100, 0, 0);\r\n\t\t\t\ttranslateAnimation.setDuration(1000);\r\n//\t\t\t\ttranslateAnimation.setFillAfter(true);\r\n\t\t\t\tLog.i(\"before\", \"\" + cellChildView.getLeft());\r\n\t\t\t\ttranslateAnimation.setAnimationListener(new AnimationListener() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tLog.i(\"onAnimationStart\", \"\" + cellChildView.getLeft());\r\n\t\t\t\t\t\t/**运行动画删除自己**/\r\n//\t\t\t\t\t\tmCellViewGroup.removeView(cellChildView);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onAnimationRepeat(Animation animation) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onAnimationEnd(Animation animation) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tLog.i(\"onAnimationEnd\", \"\" + cellChildView.getLeft());\r\n\t\t\t\t\t\tmCellViewGroup.postDelayed(new Runnable() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t/**View运行完动画后left、top、right、bottom数值都是不变的,再延迟重新加入一次,不延迟有闪烁。**/\r\n\t\t\t\t\t\t\t\tCellLayoutParams cellLayoutParams = new CellLayoutParams(100, 0, 100, 100);\r\n\t\t\t\t\t\t\t\tcellChildView.setLayoutParams(cellLayoutParams);\r\n//\t\t\t\t\t\t\t\tmCellViewGroup.updateViewLayout(cellChildView, cellLayoutParams);\r\n//\t\t\t\t\t\t\t\tmCellViewGroup.addView(cellChildView, cellLayoutParams);\r\n\t\t\t\t\t\t\t\t//这里left也没变的原因是cellChildView还没及时加入到CellViewGroup\r\n\t\t\t\t\t\t\t\tLog.i(\"after\", \"\" + cellChildView.getLeft());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}, 10);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tcellChildView.startAnimation(translateAnimation);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) {\n return new LayoutParams(p);\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n final int count = getChildCount();\n int parentWidth = getMeasuredWidth();\n\n //get the available size of child view\n int childLeft = this.getPaddingLeft();\n int childTop = this.getPaddingTop();\n\n //walk through each child, and arrange it from left to right\n for (int i = 0; i < count; i++) {\n View child = getChildAt(i);\n if (child.getVisibility() != GONE) {\n LayoutUtils.layoutChild(child, childLeft, childTop);\n childTop += child.getMeasuredHeight();\n }\n }\n }", "@Override\n public void onGlobalLayout() {\n if (right == 0) {\n imgStepsLast.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n right = imgStepsLast.getRight();\n }\n showHelpView(layoutInflater);\n\n }", "float mo18284b(ViewGroup viewGroup, View view);", "public View initTopView() {\n return null;\n }", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n int i5 = 0;\n int i6 = 0;\n int i7 = 0;\n int i8 = 0;\n int i9 = 0;\n while (i5 < this.f80949f && i6 < this.f80948e.size()) {\n View childAt = getChildAt(i5);\n C32569u.m150513a((Object) childAt, C6969H.m41409d(\"G6A8BDC16BB\"));\n if (childAt.getVisibility() == 8) {\n i7++;\n i5++;\n } else {\n ViewGroup.LayoutParams layoutParams = childAt.getLayoutParams();\n if (layoutParams != null) {\n ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) layoutParams;\n int measuredWidth = childAt.getMeasuredWidth() + marginLayoutParams.leftMargin + marginLayoutParams.rightMargin;\n int measuredHeight = childAt.getMeasuredHeight() + marginLayoutParams.topMargin + marginLayoutParams.bottomMargin;\n Integer num = this.f80948e.get(i6);\n C32569u.m150513a((Object) num, C6969H.m41409d(\"G64AFDC14BA13A43CE81AAB44FBEBC6EA\"));\n if (C32569u.m150507a(i5 - i7, num.intValue()) < 0) {\n i9 += measuredWidth;\n childAt.layout(marginLayoutParams.leftMargin + i9, marginLayoutParams.topMargin + i8, i9 - marginLayoutParams.rightMargin, (measuredHeight + i8) - marginLayoutParams.bottomMargin);\n } else {\n Integer num2 = this.f80946c.get(i6);\n C32569u.m150513a((Object) num2, C6969H.m41409d(\"G64AFDC14BA18AE20E1068473FEECCDD254\"));\n i8 += num2.intValue();\n Integer num3 = this.f80948e.get(i6);\n C32569u.m150513a((Object) num3, C6969H.m41409d(\"G64AFDC14BA13A43CE81AAB44FBEBC6EA\"));\n i7 += num3.intValue();\n i6++;\n i5--;\n i9 = 0;\n }\n i5++;\n } else {\n throw new TypeCastException(\"null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams\");\n }\n }\n }\n }", "@Override\n int getLayout() {\n return R.layout.activity_main;\n }", "public android.view.ViewGroup.LayoutParams generateDefaultLayoutParams() {\n return new LayoutParams(super.generateDefaultLayoutParams());\n }", "@Override\r\n\tprotected void onLayout(boolean paramBoolean, int paramInt1, int paramInt2,\r\n\t\t\tint paramInt3, int paramInt4) {\n\t\tint j = paramInt3 - paramInt1;\r\n\t\tint k = paramInt4 - paramInt2;\r\n\t\tif (this.navBar != null) {\r\n\t\t\tint i = this.navBar.getMeasuredHeight();\r\n\t\t\tthis.navBar.layout(0, 0, j, i);\r\n\t\t\tthis.mainContent.layout(0, i, j, k);\r\n\t\t}\r\n\t\tif (this.spinnerView != null)\r\n\t\t\tthis.spinnerView.layout(0, 0, j, k);\r\n\t}", "protected void prepareChildViews() {\n\n }", "public void onClick(View v) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tint id=v.getId();\n\t\t\t\t\t\tfloat setX,setY;\n\t\t\t\t\t\t String str2=\"\"+(sm[id].getXValue()*screenwidth);\n\t\t\t\t\t\t setX = Float.parseFloat(str2);\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t str2=\"\"+(sm[id].getYValue()*screenheight);\n\t\t\t\t\t\t setY = Float.parseFloat(str2);\n\t\t\t\t\t\t//Toast.makeText(getContext(), \"By image click\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t//Log.d(\"x y\",\"\"+setX+\" \"+setY);\n\t\t\t\t\t\t//Button img=new Button(context);\n\t\t\t\t\t\t//img.setBackgroundResource(R.drawable.back_blue_button);\n\t\t\t\t\t\t//img.setText(\"from\"+\"\"+sm[id].getID());\n//\t\t\t\t\t\t RelativeLayout.LayoutParams par2=new RelativeLayout.LayoutParams(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT,android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT);\n//\t\t\t\t\t\t par2.leftMargin=(int)(setX);\n//\t\t\t\t\t\t par2.topMargin=(int)(setY);\n//\t\t\t\t\t\t popMsg.setLayoutParams(par2);\n//\t\t\t\t\t\t popMsg.setText(\"from\"+\"\"+sm[id].getID());\n//\t\t\t\t\t\t //popMsg.setText(\"from sfsf dfdfsfd dfdsf df dfdfdf d fdfedfd dfdfdf dfdf df dfdfd \");\n//\t\t\t\t\t\t popMsg.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t//RelativeLayout.LayoutParams par2=v.(RelativeLayout.LayoutParams)getTag();\n\t\t\t\t\t\t // img.setLayoutParams(par2);\n\t\t\t\t\t\t // mapLayout.addView(img);\n\t\t\t\t\t\t String text=\"Project - \"+sm[id].getProjectName()+\"\\n\"+\"Building - \"+sm[id].getBuildingName()+\"\\n\"+\"Floor - \"+sm[id].getFloor()+\"\\n\"+\"Apartment - \"+sm[id].getApartment()+\"\\n\"+\"Area - \"+sm[id].getAptAreaName()+\"\\n\"+\"SnagType - \"+sm[id].getSnagType()+\"\\n\"+\"FaultType - \"+sm[id].getFaultType()+\"\\n\"+\"Status - \"+sm[id].getSnagStatus()+\"\\n\"+\"ReportDate - \"+sm[id].getReportDate()+\"\\n\"+\"SnagDetails - \"+sm[id].getSnagDetails()+\"\\n\"+\"PriorityLevel - \"+sm[id].getSnagPriority()+\"\\n\"+\"Cost - \"+sm[id].getCost()+\"\\n\"+\"CostTO - \"+sm[id].getCostTo()+\"\\n\"+\"AllocatedToName - \"+sm[id].getAllocatedToName()+\"\\n\"+\"InspectorName - \"+sm[id].getInspectorName()+\"\\n\"+\"ContractorName - \"+sm[id].getContractorName()+\"\\n\"+\"SubContractorName - \"+sm[id].getSubContractorName()+\"\\n\"+\"ContractorStatus - \"+sm[id].getContractorStatus();\n\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 final int loc=id;\n\t\t\t\t\t\t new AlertDialog.Builder(context)\n\t\t\t\t \t .setTitle(\"Snag Detail\")\n\t\t\t\t \t .setMessage(\"\"+text)\n\t\t\t\t \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t \t public void onClick(DialogInterface dialog, int which) { \n\t\t\t\t \t \t//Toast.makeText(context,\"\"+0.052083332*screenwidth+\" \"+0.078125*screenheight,Toast.LENGTH_LONG).show();\n\t\t\t\t \t // continue with delete\n\t\t\t\t \t }\n\t\t\t\t \t })\n\t\t\t\t \t .show();\n\t\t\t\t\t}", "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 configureChildView(int childPosition, ViewHolder viewHolder) {}", "public LayoutParams generateDefaultLayoutParams() {\n return new LayoutParams(-1, -2);\n }", "protected View getBottomLayout() {\n\t\treturn new View(this);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_top, container, false);\n\n title = rootView.findViewById(R.id.textview_title);\n author = rootView.findViewById(R.id.textview_author);\n year = rootView.findViewById(R.id.textview_year);\n\n\n return rootView;\n }", "public void setViewPos(View view, int x, int y, int w, int h) {\n RelativeLayout.LayoutParams rl = new RelativeLayout.LayoutParams(w, h);\n rl.leftMargin = x;\n rl.topMargin = y;\n view.setLayoutParams(rl);\n this.MyRelativeLayout.addView(view);\n }", "public void findViews() {\n titleTextView = findViewById(R.id.song_title_text_view);\n artistTextView = findViewById(R.id.song_artist_text_view);\n albumCoverImg = findViewById(R.id.album_cover_img);\n albumTextView = findViewById(R.id.album_text_view);\n playButton = findViewById(R.id.play_button);\n nextButton = findViewById(R.id.next_button);\n backButton = findViewById(R.id.back_button);\n shuffleButton = findViewById(R.id.shuffle_button);\n repeatButton = findViewById(R.id.repeat_button);\n }", "public boolean checkLayoutParams(android.view.ViewGroup.LayoutParams layoutParams) {\n return layoutParams instanceof LayoutParams;\n }", "void getTopView(Node root, int arr[], int height) {\n\t\tif (root == null)\n\t\t\treturn;\n\t\tarr[height] = root.data;\n\t\tgetTopViewLeft(root.left, arr,height - 1);\n\t\tgetTopViewRight(root.right, arr,height + 1);\n\t}", "protected void onLayout(boolean bl2, int n2, int n3, int n4, int n5) {\n int n6 = n4 - n2;\n n2 = this.getPaddingLeft();\n int n7 = this.getPaddingRight();\n int n8 = this.getPaddingTop();\n int n9 = this.getChildCount();\n n4 = n2;\n if (this.mFirstLayout) {\n float f2 = this.mCanSlide && this.mPreservedOpenState ? 1.0f : 0.0f;\n this.mSlideOffset = f2;\n }\n n5 = 0;\n n3 = n2;\n n2 = n4;\n for (n4 = n5; n4 < n9; ++n4) {\n View view = this.getChildAt(n4);\n if (view.getVisibility() == 8) continue;\n LayoutParams layoutParams = (LayoutParams)view.getLayoutParams();\n int n10 = view.getMeasuredWidth();\n n5 = 0;\n if (layoutParams.slideable) {\n int n11 = layoutParams.leftMargin;\n int n12 = layoutParams.rightMargin;\n this.mSlideRange = n11 = Math.min(n2, n6 - n7 - this.mOverhangSize) - n3 - (n11 + n12);\n bl2 = layoutParams.leftMargin + n3 + n11 + n10 / 2 > n6 - n7;\n layoutParams.dimWhenOffset = bl2;\n n3 += (int)((float)n11 * this.mSlideOffset) + layoutParams.leftMargin;\n } else if (this.mCanSlide && this.mParallaxBy != 0) {\n n5 = (int)((1.0f - this.mSlideOffset) * (float)this.mParallaxBy);\n n3 = n2;\n } else {\n n3 = n2;\n }\n n5 = n3 - n5;\n view.layout(n5, n8, n5 + n10, n8 + view.getMeasuredHeight());\n n2 += view.getWidth();\n }\n if (this.mFirstLayout) {\n if (this.mCanSlide) {\n if (this.mParallaxBy != 0) {\n this.parallaxOtherViews(this.mSlideOffset);\n }\n if (((LayoutParams)this.mSlideableView.getLayoutParams()).dimWhenOffset) {\n this.dimChildView(this.mSlideableView, this.mSlideOffset, this.mSliderFadeColor);\n }\n } else {\n for (n2 = 0; n2 < n9; ++n2) {\n this.dimChildView(this.getChildAt(n2), 0.0f, this.mSliderFadeColor);\n }\n }\n this.updateObscuredViewsVisibility(this.mSlideableView);\n }\n this.mFirstLayout = false;\n }", "@Override\n protected void onMeasure(int widthMeasureSpec,int heightMeasureSpec){\n int width = MeasureSpec.getSize(widthMeasureSpec);\n int widthMode = MeasureSpec.getMode(widthMeasureSpec);\n\n int height = MeasureSpec.getSize(heightMeasureSpec);\n int heightMode = MeasureSpec.getMode(heightMeasureSpec);\n\n width = height = Math.min(width,height);\n\n if (width != height){\n Log.w(\"ControlLayout\",\"ControlLayout width and height need to be equal\");\n }\n\n setMeasuredDimension(width,height);\n\n mRadius = Math.min(getMeasuredHeight(),getMeasuredWidth())/2;\n mBaseDrawRadius = (mRadius*3)/4 ; //set mBaseDrawRadius 3/4 percent of mRadius\n mPadDrawRadius = mRadius/4; //set mPadDrawRadius 1/4 of mRadius\n\n final int count = getChildCount(); //get child view count, infact this should be 2: base and pad\n\n int childMode = MeasureSpec.EXACTLY;\n for(int i =0;i < count;i++){\n final View child = getChildAt(i);\n\n int makeMeasureSpec = -1;\n if(child.getId() == R.id.id_controlPad_base_view){\n makeMeasureSpec = MeasureSpec.makeMeasureSpec(mRadius*2,childMode); //control base view layout match parent\n }else if (child.getId() == R.id.id_controlPad_pad_view){\n makeMeasureSpec = MeasureSpec.makeMeasureSpec((int)(mRadius/4)*2,childMode);\n }\n child.measure(makeMeasureSpec,makeMeasureSpec);\n }\n\n }", "private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}", "private final void m136465e() {\n View view = getView();\n if (view != null) {\n if (mo118763m()) {\n C32569u.m150513a((Object) view, C6969H.m41409d(\"G7F8AD00D\"));\n View findViewById = view.findViewById(R.id.view_landscape_top_bg);\n C32569u.m150513a((Object) findViewById, C6969H.m41409d(\"G7F8AD00DF126A22CF1319C49FCE1D0D46893D025AB3FBB16E409\"));\n findViewById.setVisibility(0);\n View findViewById2 = view.findViewById(R.id.view_landscape_bottom_bg);\n C32569u.m150513a((Object) findViewById2, C6969H.m41409d(\"G7F8AD00DF126A22CF1319C49FCE1D0D46893D025BD3FBF3DE903AF4AF5\"));\n findViewById2.setVisibility(0);\n View findViewById3 = view.findViewById(R.id.view_portrait_bottom_bg);\n C32569u.m150513a((Object) findViewById3, C6969H.m41409d(\"G7F8AD00DF126A22CF1318047E0F1D1D66097EA18B024BF26EB31924F\"));\n findViewById3.setVisibility(4);\n } else {\n C32569u.m150513a((Object) view, C6969H.m41409d(\"G7F8AD00D\"));\n View findViewById4 = view.findViewById(R.id.view_landscape_top_bg);\n C32569u.m150513a((Object) findViewById4, C6969H.m41409d(\"G7F8AD00DF126A22CF1319C49FCE1D0D46893D025AB3FBB16E409\"));\n findViewById4.setVisibility(4);\n View findViewById5 = view.findViewById(R.id.view_landscape_bottom_bg);\n C32569u.m150513a((Object) findViewById5, C6969H.m41409d(\"G7F8AD00DF126A22CF1319C49FCE1D0D46893D025BD3FBF3DE903AF4AF5\"));\n findViewById5.setVisibility(4);\n }\n C29896af afVar = C29896af.f101382a;\n View findViewById6 = view.findViewById(R.id.anchor_bottom_right);\n C32569u.m150513a((Object) findViewById6, C6969H.m41409d(\"G7F8AD00DF131A52AEE018277F0EAD7C3668EEA08B637A33D\"));\n C29896af.m139383a(afVar, findViewById6, 0, 0, m136460b(), 0, 22, null);\n }\n }", "public abstract int getLayoutResources();", "HeadViewHolder(View itemView) {\n super(itemView);\n viewPager = itemView.findViewById(R.id.viewPager);\n// rbContinuous = itemView.findViewById(R.id.rb_continuous);\n// rbDaily = itemView.findViewById(R.id.rb_daily);\n// layoutStyle = itemView.findViewById(R.id.layout_style);\n// tvAdd = itemView.findViewById(R.id.tv_add);\n }", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n int i5;\n int i6;\n int i7;\n int childCount = getChildCount();\n int i8 = i3 - i;\n int i9 = i4 - i2;\n int paddingLeft = getPaddingLeft();\n int paddingTop = getPaddingTop();\n int paddingRight = getPaddingRight();\n int paddingBottom = getPaddingBottom();\n int scrollX = getScrollX();\n int i10 = paddingBottom;\n int i11 = 0;\n int i12 = paddingTop;\n int i13 = paddingLeft;\n int i14 = 0;\n while (true) {\n i5 = 8;\n if (i14 >= childCount) {\n break;\n }\n View childAt = getChildAt(i14);\n if (childAt.getVisibility() != 8) {\n LayoutParams layoutParams = (LayoutParams) childAt.getLayoutParams();\n if (layoutParams.isDecor) {\n int i15 = layoutParams.gravity & 7;\n int i16 = layoutParams.gravity & 112;\n if (i15 == 1) {\n i6 = Math.max((i8 - childAt.getMeasuredWidth()) / 2, i13);\n } else if (i15 == 3) {\n i6 = i13;\n i13 = childAt.getMeasuredWidth() + i13;\n } else if (i15 != 5) {\n i6 = i13;\n } else {\n i6 = (i8 - paddingRight) - childAt.getMeasuredWidth();\n paddingRight += childAt.getMeasuredWidth();\n }\n if (i16 == 16) {\n i7 = Math.max((i9 - childAt.getMeasuredHeight()) / 2, i12);\n } else if (i16 == 48) {\n i7 = i12;\n i12 = childAt.getMeasuredHeight() + i12;\n } else if (i16 != 80) {\n i7 = i12;\n } else {\n i7 = (i9 - i10) - childAt.getMeasuredHeight();\n i10 += childAt.getMeasuredHeight();\n }\n int i17 = i6 + scrollX;\n childAt.layout(i17, i7, childAt.getMeasuredWidth() + i17, i7 + childAt.getMeasuredHeight());\n i11++;\n }\n }\n i14++;\n }\n int i18 = (i8 - i13) - paddingRight;\n int i19 = 0;\n while (i19 < childCount) {\n View childAt2 = getChildAt(i19);\n if (childAt2.getVisibility() != i5) {\n LayoutParams layoutParams2 = (LayoutParams) childAt2.getLayoutParams();\n if (!layoutParams2.isDecor) {\n ItemInfo infoForChild = infoForChild(childAt2);\n if (infoForChild != null) {\n float f = (float) i18;\n int floor = ((int) Math.floor((double) ((infoForChild.offset * f) + (((float) getClientWidth()) * ((1.0f - this.mAdapter.getPageWidth(i19)) / 2.0f)) + 0.5f))) + i13;\n if (layoutParams2.needsMeasure) {\n layoutParams2.needsMeasure = false;\n childAt2.measure(MeasureSpec.makeMeasureSpec((int) (f * layoutParams2.widthFactor), UCCore.VERIFY_POLICY_QUICK), MeasureSpec.makeMeasureSpec((i9 - i12) - i10, UCCore.VERIFY_POLICY_QUICK));\n }\n childAt2.layout(floor, i12, childAt2.getMeasuredWidth() + floor, childAt2.getMeasuredHeight() + i12);\n }\n }\n }\n i19++;\n i5 = 8;\n }\n this.mTopPageBounds = i12;\n this.mBottomPageBounds = i9 - i10;\n this.mDecorChildCount = i11;\n scrollTo(getRate(), 0);\n if (this.mAdapter != null) {\n pageScrolled(getRate());\n }\n this.mFirstLayout = false;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView rootView = inflater.inflate(R.layout.targeting, container, false);\n\t\tViewGroup main = (ViewGroup) rootView.findViewById(R.id.main);\n\n\t\t// Adding custom parameters to the request\n\t\tMap<String, Object> customParams = new HashMap<String, Object>();\n\t\t// customParams.put(\"tm\", Integer.valueOf(-11));\n\n\t\t// create one adview with deferred loading\n\t\tString[] matchingKeywords = { \"ems\" };\n\t\tadView = new GuJEMSAdView(getActivity(), customParams,\n\t\t\t\tmatchingKeywords, null, R.layout.targeting_adview_top, false);\n\n\t\t// Programmatically add listeners\n\t\tadView.setOnAdSuccessListener(new IOnAdSuccessListener() {\n\n\t\t\tprivate static final long serialVersionUID = -9160587495885653766L;\n\n\t\t\t@Override\n\t\t\tpublic void onAdSuccess() {\n\n\t\t\t\tSystem.out.println(\"I received an ad. [Targeting-Top]\");\n\t\t\t}\n\t\t});\n\t\tadView.setOnAdEmptyListener(new IOnAdEmptyListener() {\n\n\t\t\tprivate static final long serialVersionUID = -3891758300923903713L;\n\n\t\t\t@Override\n\t\t\tpublic void onAdEmpty() {\n\n\t\t\t\tSystem.out.println(\"I received no ad! [Targeting-Top]\");\n\t\t\t}\n\t\t});\n\n\t\t// Programmatically add adview\n\t\tmain.addView(adView,\n\t\t\t\tmain.indexOfChild(rootView.findViewById(R.id.imageView1)));\n\n\t\t// Adding a keyword to the request\n\t\tMap<String, Object> customParams2 = new HashMap<String, Object>();\n\t\tcustomParams2.put(\"as\", 16542);\n\t\t// Create second adview with deferred loading\n\t\tadView2 = new GuJEMSAdView(getActivity(), customParams2, // customParams2,\n\t\t\t\tnull, // kws2,\n\t\t\t\tnull, R.layout.targeting_adview_bottom, false);\n\n\t\t// Programmatically add listeners\n\t\tadView2.setOnAdSuccessListener(new IOnAdSuccessListener() {\n\n\t\t\tprivate static final long serialVersionUID = -9160587495885653766L;\n\n\t\t\t@Override\n\t\t\tpublic void onAdSuccess() {\n\n\t\t\t\tSystem.out.println(\"I received an ad. [Targeting-Bottom]\");\n\t\t\t}\n\t\t});\n\t\tadView2.setOnAdEmptyListener(new IOnAdEmptyListener() {\n\n\t\t\tprivate static final long serialVersionUID = -3891758300923903713L;\n\n\t\t\t@Override\n\t\t\tpublic void onAdEmpty() {\n\n\t\t\t\tSystem.out.println(\"I received no ad! [Targeting-Bottom]\");\n\t\t\t}\n\t\t});\n\n\t\t// Programmatically add adview\n\n\t\tmain.addView(adView2,\n\t\t\t\tmain.indexOfChild(rootView.findViewById(R.id.sampleText)) + 1);\n\n\t\t// perform the actual ad request\n\t\tadView.load();\n\t\tadView2.load();\n\t\tgetActivity().setTitle(\"Targeting\");\n\t\treturn rootView;\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 }", "public interface BottomView {\n}" ]
[ "0.64905316", "0.64448494", "0.64332783", "0.6262434", "0.62591517", "0.6209726", "0.612661", "0.6101911", "0.61018276", "0.59749633", "0.5905841", "0.5843496", "0.5832093", "0.5815285", "0.580944", "0.5779946", "0.57376075", "0.5735805", "0.57321864", "0.56917894", "0.56902015", "0.5667734", "0.56659484", "0.5655187", "0.56480104", "0.56316257", "0.5618238", "0.5618155", "0.56178904", "0.5584756", "0.5577612", "0.55500907", "0.5541775", "0.5538871", "0.55197173", "0.55193776", "0.55140215", "0.5492573", "0.5480649", "0.5453405", "0.544368", "0.5440411", "0.5440411", "0.5440411", "0.54363275", "0.54353935", "0.54329455", "0.5424567", "0.5421905", "0.53935283", "0.53931797", "0.5387827", "0.5387637", "0.53743106", "0.5371099", "0.5366493", "0.5365403", "0.5364264", "0.5346182", "0.534203", "0.5338897", "0.5334739", "0.5334179", "0.5333134", "0.5331666", "0.5331002", "0.5327121", "0.53254604", "0.5324223", "0.53232276", "0.53222936", "0.5315433", "0.5315193", "0.5309977", "0.530645", "0.530564", "0.5301449", "0.5294348", "0.52822345", "0.5275916", "0.5275597", "0.5272913", "0.52632153", "0.52590114", "0.52560633", "0.5255722", "0.5254401", "0.5252717", "0.52524686", "0.52466416", "0.5242297", "0.5240483", "0.5237784", "0.5228259", "0.5225453", "0.5224483", "0.5222118", "0.52166903", "0.52166855", "0.5215838", "0.5211784" ]
0.0
-1
Log.e("onLayout", l + "|" + t + "|" + r + "|" + b);
@Override protected void onLayout(boolean changed, int l, int t, int r, int b) { view_top.layout((int) mDrange + dip2px(getContext(), 20) - view_top.getMeasuredWidth() / 2, t, (int) mDrange + view_top.getMeasuredWidth() / 2 + dip2px(getContext(), 20), view_top.getMeasuredHeight()); view_mid.layout((int) mDrange + dip2px(getContext(), 20) - view_mid.getMeasuredWidth() / 2, view_top.getMeasuredHeight(), (int) mDrange + view_mid.getMeasuredWidth() / 2 + dip2px(getContext(), 20), view_top.getMeasuredHeight() + view_mid.getMeasuredHeight()); pb.layout(dip2px(getContext(), 20) + l, view_top.getMeasuredHeight() + view_mid.getMeasuredHeight(), r - dip2px(getContext(), 20), view_top.getMeasuredHeight() + view_mid.getMeasuredHeight() + pb.getMeasuredHeight()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n }", "@Override\n\t\tpublic void layout (final int l, final int t, final int r, final int b) {\n\t\t}", "@Override\r\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tLog.v(\"MyView01>layout\",\"f-1\");\r\n\t\t\tsuper.layout(l, t, r, b);\r\n\t\t\tLog.v(\"MyView01>layout\",\"f-2\");\r\n\t\t}", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n i3 -= i;\n i4 -= i2;\n int dp = AndroidUtilities.m26dp(8.0f);\n int i5 = 0;\n ChatAttachAlert.this.attachPhotoRecyclerView.layout(0, dp, i3, ChatAttachAlert.this.attachPhotoRecyclerView.getMeasuredHeight() + dp);\n ChatAttachAlert.this.progressView.layout(0, dp, i3, ChatAttachAlert.this.progressView.getMeasuredHeight() + dp);\n ChatAttachAlert.this.lineView.layout(0, AndroidUtilities.m26dp(96.0f), i3, AndroidUtilities.m26dp(96.0f) + ChatAttachAlert.this.lineView.getMeasuredHeight());\n ChatAttachAlert.this.hintTextView.layout((i3 - ChatAttachAlert.this.hintTextView.getMeasuredWidth()) - AndroidUtilities.m26dp(5.0f), (i4 - ChatAttachAlert.this.hintTextView.getMeasuredHeight()) - AndroidUtilities.m26dp(5.0f), i3 - AndroidUtilities.m26dp(5.0f), i4 - AndroidUtilities.m26dp(5.0f));\n i = (i3 - ChatAttachAlert.this.mediaBanTooltip.getMeasuredWidth()) / 2;\n dp += (ChatAttachAlert.this.attachPhotoRecyclerView.getMeasuredHeight() - ChatAttachAlert.this.mediaBanTooltip.getMeasuredHeight()) / 2;\n ChatAttachAlert.this.mediaBanTooltip.layout(i, dp, ChatAttachAlert.this.mediaBanTooltip.getMeasuredWidth() + i, ChatAttachAlert.this.mediaBanTooltip.getMeasuredHeight() + dp);\n i3 = (i3 - AndroidUtilities.m26dp(360.0f)) / 3;\n dp = 0;\n while (i5 < 8) {\n if (ChatAttachAlert.this.views[i5] != null) {\n i = AndroidUtilities.m26dp((float) (((dp / 4) * 97) + 105));\n i2 = AndroidUtilities.m26dp(10.0f) + ((dp % 4) * (AndroidUtilities.m26dp(85.0f) + i3));\n ChatAttachAlert.this.views[i5].layout(i2, i, ChatAttachAlert.this.views[i5].getMeasuredWidth() + i2, ChatAttachAlert.this.views[i5].getMeasuredHeight() + i);\n dp++;\n }\n i5++;\n }\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n Log.v(TAG, \"onLayout l = \" + l + \"; t = \" + t + \"; r = \" + r + \"; b = \" + b);\n int count = getChildCount();\n int x = l;\n int y = t;\n for(int i = 0; i < count; i++){\n View child = (View)getChildAt(i);\n child.layout(x, y, x + r, y + b);\n x = x + r;\n }\n }", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n }", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n super.onLayout(changed, l, t, r, b);\n C0312e eVar = this.f1126a;\n if (eVar != null) {\n eVar.mo4671a(this, l, t, r, b);\n }\n }", "@Override\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tsuper.layout(l, t, r, b);\n\t\t\tLog.e(\"FYF\", getId() + \" ImageView layout\");\n\t\t}", "@Override\n\tprotected void onLayout(boolean changed, int left, int top, int right,\n\t\t\tint bottom) {\n\t\tsuper.onLayout(changed, left, top, right, bottom);\n\t\tSystem.out.println(\"changed=\"+changed);\n\t\tSystem.out.println(\"left=\"+left);\n\t\tSystem.out.println(\"top=\"+top);\n\t\tSystem.out.println(\"right=\"+right);\n\t\tSystem.out.println(\"bottom=\"+bottom);\n\t}", "public void onLayout(boolean r10, int r11, int r12, int r13, int r14) {\n /*\n r9 = this;\n r6 = r13 - r11;\n r7 = r14 - r12;\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0 = r0.listView;\n r0 = r0.getChildCount();\n r1 = 1;\n r8 = 0;\n r2 = -1;\n if (r0 <= 0) goto L_0x003f;\n L_0x0013:\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0 = r0.listView;\n r3 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r3 = r3.listView;\n r3 = r3.getChildCount();\n r3 = r3 - r1;\n r0 = r0.getChildAt(r3);\n r3 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r3 = r3.listView;\n r3 = r3.findContainingViewHolder(r0);\n r3 = (org.telegram.p004ui.Components.RecyclerListView.Holder) r3;\n if (r3 == 0) goto L_0x003f;\n L_0x0036:\n r3 = r3.getAdapterPosition();\n r0 = r0.getTop();\n goto L_0x0041;\n L_0x003f:\n r0 = 0;\n r3 = -1;\n L_0x0041:\n if (r3 < 0) goto L_0x0051;\n L_0x0043:\n r4 = r9.lastHeight;\n r5 = r7 - r4;\n if (r5 == 0) goto L_0x0051;\n L_0x0049:\n r0 = r0 + r7;\n r0 = r0 - r4;\n r4 = r9.getPaddingTop();\n r0 = r0 - r4;\n goto L_0x0053;\n L_0x0051:\n r0 = 0;\n r3 = -1;\n L_0x0053:\n super.onLayout(r10, r11, r12, r13, r14);\n if (r3 == r2) goto L_0x0074;\n L_0x0058:\n r2 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r2.ignoreLayout = r1;\n r1 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r1 = r1.layoutManager;\n r1.scrollToPositionWithOffset(r3, r0);\n r1 = 0;\n r0 = r9;\n r2 = r11;\n r3 = r12;\n r4 = r13;\n r5 = r14;\n super.onLayout(r1, r2, r3, r4, r5);\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0.ignoreLayout = r8;\n L_0x0074:\n r9.lastHeight = r7;\n r9.lastWidth = r6;\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0.updateLayout();\n r0 = org.telegram.p004ui.Components.ChatAttachAlert.this;\n r0.checkCameraViewPosition();\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.p004ui.Components.ChatAttachAlert$C40922.onLayout(boolean, int, int, int, int):void\");\n }", "public void onLayout(boolean z, int i2, int i3, int i4, int i5) {\n }", "@Override\r\n\t\tprotected void onLayout(boolean changed, int left, int top, int right,\r\n\t\t\t\tint bottom) {\n\t\t\tLog.v(\"MyView01>onLayout\",\"f-1\");\r\n\t\t\tsuper.onLayout(changed, left, top, right, bottom);\r\n\t\t\tLog.v(\"MyView01>onLayout\",\"f-2\");\r\n\t\t}", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n AppMethodBeat.i(105958);\n super.onLayout(z, i, i2, i3, i4);\n this.lfN = (i3 - i) / 2;\n int i5 = this.lfN;\n if (this.lfP == null || this.lfP.getWidth() != i5) {\n String str = \"MicroMsg.DoubleTabView\";\n String str2 = \"sharp width changed, from %d to %d\";\n Object[] objArr = new Object[2];\n objArr[0] = Integer.valueOf(this.lfP == null ? -1 : this.lfP.getWidth());\n objArr[1] = Integer.valueOf(i5);\n ab.w(str, str2, objArr);\n this.lfP = Bitmap.createBitmap(i5, com.tencent.mm.bz.a.fromDPToPix(getContext(), 3), Config.ARGB_8888);\n new Canvas(this.lfP).drawColor(getResources().getColor(R.color.a61));\n l(this.lfO, 0.0f);\n this.lfR.setImageBitmap(this.lfP);\n }\n setTo(this.lfO);\n AppMethodBeat.o(105958);\n }", "@Override\n\tpublic void onFinishLayout(View lay) {\n\t}", "public void mo9839a() {\n onLayout(false, 0, 0, 0, 0);\n }", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n int measuredWidth = getMeasuredWidth() / 2;\n i2 = getMeasuredHeight() / 2;\n ChatAttachAlert.this.shutterButton.layout(measuredWidth - (ChatAttachAlert.this.shutterButton.getMeasuredWidth() / 2), i2 - (ChatAttachAlert.this.shutterButton.getMeasuredHeight() / 2), (ChatAttachAlert.this.shutterButton.getMeasuredWidth() / 2) + measuredWidth, (ChatAttachAlert.this.shutterButton.getMeasuredHeight() / 2) + i2);\n if (getMeasuredWidth() == AndroidUtilities.m26dp(100.0f)) {\n measuredWidth = getMeasuredWidth() / 2;\n i3 = i2 / 2;\n i2 = (i2 + i3) + AndroidUtilities.m26dp(17.0f);\n i4 = i3 - AndroidUtilities.m26dp(17.0f);\n i3 = measuredWidth;\n } else {\n i2 = measuredWidth / 2;\n measuredWidth = (measuredWidth + i2) + AndroidUtilities.m26dp(17.0f);\n i4 = getMeasuredHeight() / 2;\n i3 = i2 - AndroidUtilities.m26dp(17.0f);\n i2 = i4;\n }\n ChatAttachAlert.this.switchCameraButton.layout(measuredWidth - (ChatAttachAlert.this.switchCameraButton.getMeasuredWidth() / 2), i2 - (ChatAttachAlert.this.switchCameraButton.getMeasuredHeight() / 2), measuredWidth + (ChatAttachAlert.this.switchCameraButton.getMeasuredWidth() / 2), i2 + (ChatAttachAlert.this.switchCameraButton.getMeasuredHeight() / 2));\n for (measuredWidth = 0; measuredWidth < 2; measuredWidth++) {\n ChatAttachAlert.this.flashModeButton[measuredWidth].layout(i3 - (ChatAttachAlert.this.flashModeButton[measuredWidth].getMeasuredWidth() / 2), i4 - (ChatAttachAlert.this.flashModeButton[measuredWidth].getMeasuredHeight() / 2), (ChatAttachAlert.this.flashModeButton[measuredWidth].getMeasuredWidth() / 2) + i3, (ChatAttachAlert.this.flashModeButton[measuredWidth].getMeasuredHeight() / 2) + i4);\n }\n }", "public void recordLayout()\r\n\t{\n\t}", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n int topTop = 0;\n mTop.layout(l, topTop,\n mTop.getMeasuredWidth(),\n topTop + mTop.getMeasuredHeight());\n //TOOL\n\n\n //REFRESH\n //lp = (MarginLayoutParams) mRefresh.getLayoutParams();\n int refreshTop = mTop.getMeasuredHeight();\n mRefresh.layout(l, refreshTop,\n mRefresh.getMeasuredWidth(),\n refreshTop + mRefresh.getMeasuredHeight());\n //TOOL\n int toolTop;\n // lp = (MarginLayoutParams) mTool.getLayoutParams();\n if (mFirstLayout) {\n toolTop = mTop.getMeasuredHeight();\n } else {\n toolTop = mTool.getTop();\n }\n mTool.layout(l, toolTop,\n mTool.getMeasuredWidth(),\n toolTop + mTool.getMeasuredHeight());\n\n //ANOTHER\n if (mAnotherTool != null) {\n int anotherToolTop;\n if (mFirstLayout) {\n anotherToolTop = mTop.getMeasuredHeight() + mTool.getMeasuredHeight();\n } else {\n anotherToolTop = mAnotherTool.getTop();\n }\n mAnotherTool.layout(l, anotherToolTop,\n mAnotherTool.getMeasuredWidth(),\n anotherToolTop + mAnotherTool.getMeasuredHeight());\n }\n\n //NORMAL\n // lp = (MarginLayoutParams) mNormal.getLayoutParams();\n int normalTop;\n if (mFirstLayout) {\n if (mAnotherTool != null) {\n normalTop = mTop.getMeasuredHeight() + mTool.getMeasuredHeight() + mAnotherTool.getMeasuredHeight();\n } else {\n normalTop = mTop.getMeasuredHeight() + mTool.getMeasuredHeight();\n }\n } else {\n normalTop = mNormal.getTop();\n }\n mNormal.layout(l, normalTop,\n mNormal.getMeasuredWidth(),\n normalTop + mNormal.getMeasuredHeight());\n\n mFirstLayout = false;\n }", "String getLayout();", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n AppMethodBeat.m2504i(38321);\n super.onLayout(z, i, i2, i3, i4);\n AppMethodBeat.m2505o(38321);\n }", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n int titleHeight = this.titleIconContainer.getMeasuredHeight();\n View view = this.titleIconContainer;\n view.layout(0, 0, view.getMeasuredWidth(), titleHeight);\n int containerWidth = getMeasuredWidth();\n int messageTop = ((ViewGroup.MarginLayoutParams) this.message.getLayoutParams()).topMargin + titleHeight;\n int messageWidth = this.message.getMeasuredWidth();\n int messageHeight = this.message.getMeasuredHeight();\n if (getLayoutDirection() == 1) {\n this.message.layout(containerWidth - messageWidth, messageTop, containerWidth, messageTop + messageHeight);\n } else {\n this.message.layout(0, messageTop, messageWidth, messageTop + messageHeight);\n }\n }", "protected void onLoadLayout(View view) {\n }", "public void onLayout(boolean bl2, int n10, int n11, int n12, int n13) {\n void var5_6;\n void var4_5;\n void var3_4;\n int n14;\n super.onLayout(bl2, n14, (int)var3_4, (int)var4_5, (int)var5_6);\n Rect rect = this.i;\n this.getGlobalVisibleRect(rect);\n rect = this.i;\n n14 = rect.right;\n int n15 = rect.left;\n }", "public abstract void doLayout();", "abstract void snapshotLayout();", "public void onLayout(boolean r10, int r11, int r12, int r13, int r14) {\n /*\n r9 = this;\n int r10 = r9.getChildCount()\n int r0 = r9.measureKeyboardHeight()\n r1 = 1101004800(0x41a00000, float:20.0)\n int r1 = org.telegram.messenger.AndroidUtilities.dp(r1)\n r2 = 0\n if (r0 > r1) goto L_0x001c\n org.telegram.ui.PopupNotificationActivity r0 = org.telegram.ui.PopupNotificationActivity.this\n org.telegram.ui.Components.ChatActivityEnterView r0 = r0.chatActivityEnterView\n int r0 = r0.getEmojiPadding()\n goto L_0x001d\n L_0x001c:\n r0 = 0\n L_0x001d:\n if (r2 >= r10) goto L_0x00e3\n android.view.View r1 = r9.getChildAt(r2)\n int r3 = r1.getVisibility()\n r4 = 8\n if (r3 != r4) goto L_0x002d\n goto L_0x00df\n L_0x002d:\n android.view.ViewGroup$LayoutParams r3 = r1.getLayoutParams()\n android.widget.FrameLayout$LayoutParams r3 = (android.widget.FrameLayout.LayoutParams) r3\n int r4 = r1.getMeasuredWidth()\n int r5 = r1.getMeasuredHeight()\n int r6 = r3.gravity\n r7 = -1\n if (r6 != r7) goto L_0x0042\n r6 = 51\n L_0x0042:\n r7 = r6 & 7\n r6 = r6 & 112(0x70, float:1.57E-43)\n r7 = r7 & 7\n r8 = 1\n if (r7 == r8) goto L_0x0056\n r8 = 5\n if (r7 == r8) goto L_0x0051\n int r7 = r3.leftMargin\n goto L_0x0061\n L_0x0051:\n int r7 = r13 - r4\n int r8 = r3.rightMargin\n goto L_0x0060\n L_0x0056:\n int r7 = r13 - r11\n int r7 = r7 - r4\n int r7 = r7 / 2\n int r8 = r3.leftMargin\n int r7 = r7 + r8\n int r8 = r3.rightMargin\n L_0x0060:\n int r7 = r7 - r8\n L_0x0061:\n r8 = 16\n if (r6 == r8) goto L_0x0073\n r8 = 80\n if (r6 == r8) goto L_0x006c\n int r6 = r3.topMargin\n goto L_0x007f\n L_0x006c:\n int r6 = r14 - r0\n int r6 = r6 - r12\n int r6 = r6 - r5\n int r8 = r3.bottomMargin\n goto L_0x007e\n L_0x0073:\n int r6 = r14 - r0\n int r6 = r6 - r12\n int r6 = r6 - r5\n int r6 = r6 / 2\n int r8 = r3.topMargin\n int r6 = r6 + r8\n int r8 = r3.bottomMargin\n L_0x007e:\n int r6 = r6 - r8\n L_0x007f:\n org.telegram.ui.PopupNotificationActivity r8 = org.telegram.ui.PopupNotificationActivity.this\n org.telegram.ui.Components.ChatActivityEnterView r8 = r8.chatActivityEnterView\n boolean r8 = r8.isPopupView(r1)\n if (r8 == 0) goto L_0x0094\n int r3 = r9.getMeasuredHeight()\n if (r0 == 0) goto L_0x0092\n int r3 = r3 - r0\n L_0x0092:\n r6 = r3\n goto L_0x00da\n L_0x0094:\n org.telegram.ui.PopupNotificationActivity r8 = org.telegram.ui.PopupNotificationActivity.this\n org.telegram.ui.Components.ChatActivityEnterView r8 = r8.chatActivityEnterView\n boolean r8 = r8.isRecordCircle(r1)\n if (r8 == 0) goto L_0x00da\n org.telegram.ui.PopupNotificationActivity r6 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r6 = r6.popupContainer\n int r6 = r6.getTop()\n org.telegram.ui.PopupNotificationActivity r7 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r7 = r7.popupContainer\n int r7 = r7.getMeasuredHeight()\n int r6 = r6 + r7\n int r7 = r1.getMeasuredHeight()\n int r6 = r6 - r7\n int r7 = r3.bottomMargin\n int r6 = r6 - r7\n org.telegram.ui.PopupNotificationActivity r7 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r7 = r7.popupContainer\n int r7 = r7.getLeft()\n org.telegram.ui.PopupNotificationActivity r8 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r8 = r8.popupContainer\n int r8 = r8.getMeasuredWidth()\n int r7 = r7 + r8\n int r8 = r1.getMeasuredWidth()\n int r7 = r7 - r8\n int r3 = r3.rightMargin\n int r7 = r7 - r3\n L_0x00da:\n int r4 = r4 + r7\n int r5 = r5 + r6\n r1.layout(r7, r6, r4, r5)\n L_0x00df:\n int r2 = r2 + 1\n goto L_0x001d\n L_0x00e3:\n r9.notifyHeightChanged()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.PopupNotificationActivity.AnonymousClass1.onLayout(boolean, int, int, int, int):void\");\n }", "public static void logLayout(StructuredFile log)\n\t{\n\t}", "@Override\r\n\tprotected void onLayout(boolean paramBoolean, int paramInt1, int paramInt2,\r\n\t\t\tint paramInt3, int paramInt4) {\n\t\tint j = paramInt3 - paramInt1;\r\n\t\tint k = paramInt4 - paramInt2;\r\n\t\tif (this.navBar != null) {\r\n\t\t\tint i = this.navBar.getMeasuredHeight();\r\n\t\t\tthis.navBar.layout(0, 0, j, i);\r\n\t\t\tthis.mainContent.layout(0, i, j, k);\r\n\t\t}\r\n\t\tif (this.spinnerView != null)\r\n\t\t\tthis.spinnerView.layout(0, 0, j, k);\r\n\t}", "public abstract int presentViewLayout();", "@Override\n public void requestLayout() {\n super.requestLayout();\n Log.v(Log.SUBSYSTEM.LAYOUT, TAG, \"requestLayout(%s): root layout requested; posting\", getName());\n\n runOnGlThread(mLayoutRunnable);\n }", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n int i5 = 0;\n int i6 = 0;\n int i7 = 0;\n int i8 = 0;\n int i9 = 0;\n while (i5 < this.f80949f && i6 < this.f80948e.size()) {\n View childAt = getChildAt(i5);\n C32569u.m150513a((Object) childAt, C6969H.m41409d(\"G6A8BDC16BB\"));\n if (childAt.getVisibility() == 8) {\n i7++;\n i5++;\n } else {\n ViewGroup.LayoutParams layoutParams = childAt.getLayoutParams();\n if (layoutParams != null) {\n ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) layoutParams;\n int measuredWidth = childAt.getMeasuredWidth() + marginLayoutParams.leftMargin + marginLayoutParams.rightMargin;\n int measuredHeight = childAt.getMeasuredHeight() + marginLayoutParams.topMargin + marginLayoutParams.bottomMargin;\n Integer num = this.f80948e.get(i6);\n C32569u.m150513a((Object) num, C6969H.m41409d(\"G64AFDC14BA13A43CE81AAB44FBEBC6EA\"));\n if (C32569u.m150507a(i5 - i7, num.intValue()) < 0) {\n i9 += measuredWidth;\n childAt.layout(marginLayoutParams.leftMargin + i9, marginLayoutParams.topMargin + i8, i9 - marginLayoutParams.rightMargin, (measuredHeight + i8) - marginLayoutParams.bottomMargin);\n } else {\n Integer num2 = this.f80946c.get(i6);\n C32569u.m150513a((Object) num2, C6969H.m41409d(\"G64AFDC14BA18AE20E1068473FEECCDD254\"));\n i8 += num2.intValue();\n Integer num3 = this.f80948e.get(i6);\n C32569u.m150513a((Object) num3, C6969H.m41409d(\"G64AFDC14BA13A43CE81AAB44FBEBC6EA\"));\n i7 += num3.intValue();\n i6++;\n i5--;\n i9 = 0;\n }\n i5++;\n } else {\n throw new TypeCastException(\"null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams\");\n }\n }\n }\n }", "@Override\n public void onGlobalLayout() {\n if (bottom == 0) {\n txtGrayInstructions.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n bottom = txtGrayInstructions.getBottom();\n }\n //showHelpView(layoutInflater);\n\n }", "public boolean onCustomLayout(View view, int i, int i2, int i3, int i4) {\n int i5 = i3 - i;\n i2 = i4 - i2;\n Object obj = i5 < i2 ? 1 : null;\n if (view == this.cameraPanel) {\n if (obj != null) {\n if (this.cameraPhotoRecyclerView.getVisibility() == 0) {\n this.cameraPanel.layout(0, i4 - AndroidUtilities.m26dp(196.0f), i5, i4 - AndroidUtilities.m26dp(96.0f));\n } else {\n this.cameraPanel.layout(0, i4 - AndroidUtilities.m26dp(100.0f), i5, i4);\n }\n } else if (this.cameraPhotoRecyclerView.getVisibility() == 0) {\n this.cameraPanel.layout(i3 - AndroidUtilities.m26dp(196.0f), 0, i3 - AndroidUtilities.m26dp(96.0f), i2);\n } else {\n this.cameraPanel.layout(i3 - AndroidUtilities.m26dp(100.0f), 0, i3, i2);\n }\n return true;\n }\n View view2 = this.counterTextView;\n if (view == view2) {\n if (obj != null) {\n i5 = (i5 - view2.getMeasuredWidth()) / 2;\n i4 -= AndroidUtilities.m26dp(154.0f);\n this.counterTextView.setRotation(0.0f);\n if (this.cameraPhotoRecyclerView.getVisibility() == 0) {\n i4 -= AndroidUtilities.m26dp(96.0f);\n }\n } else {\n i5 = i3 - AndroidUtilities.m26dp(154.0f);\n i4 = (i2 / 2) + (this.counterTextView.getMeasuredWidth() / 2);\n this.counterTextView.setRotation(-90.0f);\n if (this.cameraPhotoRecyclerView.getVisibility() == 0) {\n i5 -= AndroidUtilities.m26dp(96.0f);\n }\n }\n TextView textView = this.counterTextView;\n textView.layout(i5, i4, textView.getMeasuredWidth() + i5, this.counterTextView.getMeasuredHeight() + i4);\n return true;\n } else if (view != this.cameraPhotoRecyclerView) {\n return false;\n } else {\n if (obj != null) {\n i2 -= AndroidUtilities.m26dp(88.0f);\n view.layout(0, i2, view.getMeasuredWidth(), view.getMeasuredHeight() + i2);\n } else {\n i = (i + i5) - AndroidUtilities.m26dp(88.0f);\n view.layout(i, 0, view.getMeasuredWidth() + i, view.getMeasuredHeight());\n }\n return true;\n }\n }", "@Override\n\t\t\tpublic void onLayoutChange(View v, int left, int top, int right,\n\t\t\t\t\tint bottom, int oldLeft, int oldTop, int oldRight,\n\t\t\t\t\tint oldBottom) {\n\n\t\t\t\tif (bottom > oldBottom && oldBottom != 0)\n\t\t\t\t\tflaginput = false;\n\t\t\t\telse if (bottom < oldBottom && oldBottom != 0)\n\t\t\t\t\tflaginput = true;\n\n\t\t\t}", "public Object getLayoutInfo() { return _layoutInfo; }", "protected void onLayout(boolean bl2, int n2, int n3, int n4, int n5) {\n int n6 = n4 - n2;\n n2 = this.getPaddingLeft();\n int n7 = this.getPaddingRight();\n int n8 = this.getPaddingTop();\n int n9 = this.getChildCount();\n n4 = n2;\n if (this.mFirstLayout) {\n float f2 = this.mCanSlide && this.mPreservedOpenState ? 1.0f : 0.0f;\n this.mSlideOffset = f2;\n }\n n5 = 0;\n n3 = n2;\n n2 = n4;\n for (n4 = n5; n4 < n9; ++n4) {\n View view = this.getChildAt(n4);\n if (view.getVisibility() == 8) continue;\n LayoutParams layoutParams = (LayoutParams)view.getLayoutParams();\n int n10 = view.getMeasuredWidth();\n n5 = 0;\n if (layoutParams.slideable) {\n int n11 = layoutParams.leftMargin;\n int n12 = layoutParams.rightMargin;\n this.mSlideRange = n11 = Math.min(n2, n6 - n7 - this.mOverhangSize) - n3 - (n11 + n12);\n bl2 = layoutParams.leftMargin + n3 + n11 + n10 / 2 > n6 - n7;\n layoutParams.dimWhenOffset = bl2;\n n3 += (int)((float)n11 * this.mSlideOffset) + layoutParams.leftMargin;\n } else if (this.mCanSlide && this.mParallaxBy != 0) {\n n5 = (int)((1.0f - this.mSlideOffset) * (float)this.mParallaxBy);\n n3 = n2;\n } else {\n n3 = n2;\n }\n n5 = n3 - n5;\n view.layout(n5, n8, n5 + n10, n8 + view.getMeasuredHeight());\n n2 += view.getWidth();\n }\n if (this.mFirstLayout) {\n if (this.mCanSlide) {\n if (this.mParallaxBy != 0) {\n this.parallaxOtherViews(this.mSlideOffset);\n }\n if (((LayoutParams)this.mSlideableView.getLayoutParams()).dimWhenOffset) {\n this.dimChildView(this.mSlideableView, this.mSlideOffset, this.mSliderFadeColor);\n }\n } else {\n for (n2 = 0; n2 < n9; ++n2) {\n this.dimChildView(this.getChildAt(n2), 0.0f, this.mSliderFadeColor);\n }\n }\n this.updateObscuredViewsVisibility(this.mSlideableView);\n }\n this.mFirstLayout = false;\n }", "public abstract int getFragmentLayout();", "public void onLayout(boolean z, int i2, int i3, int i4, int i5) {\r\n int i6;\r\n boolean a2 = wa.a(this);\r\n int paddingRight = a2 ? (i4 - i2) - getPaddingRight() : getPaddingLeft();\r\n int paddingTop = getPaddingTop();\r\n int paddingTop2 = ((i5 - i3) - getPaddingTop()) - getPaddingBottom();\r\n View view = this.k;\r\n if (view == null || view.getVisibility() == 8) {\r\n i6 = paddingRight;\r\n } else {\r\n ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) this.k.getLayoutParams();\r\n int i7 = a2 ? marginLayoutParams.rightMargin : marginLayoutParams.leftMargin;\r\n int i8 = a2 ? marginLayoutParams.leftMargin : marginLayoutParams.rightMargin;\r\n int a3 = AbstractC0056a.a(paddingRight, i7, a2);\r\n i6 = AbstractC0056a.a(a3 + a(this.k, a3, paddingTop, paddingTop2, a2), i8, a2);\r\n }\r\n LinearLayout linearLayout = this.m;\r\n if (!(linearLayout == null || this.l != null || linearLayout.getVisibility() == 8)) {\r\n i6 += a(this.m, i6, paddingTop, paddingTop2, a2);\r\n }\r\n View view2 = this.l;\r\n if (view2 != null) {\r\n a(view2, i6, paddingTop, paddingTop2, a2);\r\n }\r\n int paddingLeft = a2 ? getPaddingLeft() : (i4 - i2) - getPaddingRight();\r\n ActionMenuView actionMenuView = this.f443c;\r\n if (actionMenuView != null) {\r\n a(actionMenuView, paddingLeft, paddingTop, paddingTop2, !a2);\r\n }\r\n }", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n Object obj;\n int i5;\n LayoutParams layoutParams;\n int measuredHeight;\n int paddingTop;\n int measuredWidth;\n if (s.T(this) == 1) {\n obj = 1;\n } else {\n obj = null;\n }\n int width = getWidth();\n int height = getHeight();\n int paddingLeft = getPaddingLeft();\n int paddingRight = getPaddingRight();\n int paddingTop2 = getPaddingTop();\n int paddingBottom = getPaddingBottom();\n int i6 = width - paddingRight;\n int[] iArr = this.auf;\n iArr[1] = 0;\n iArr[0] = 0;\n int aa = s.aa(this);\n int min = aa >= 0 ? Math.min(aa, i4 - i2) : 0;\n if (!bQ(this.atJ)) {\n aa = i6;\n i5 = paddingLeft;\n } else if (obj != null) {\n aa = b(this.atJ, i6, iArr, min);\n i5 = paddingLeft;\n } else {\n i5 = a(this.atJ, paddingLeft, iArr, min);\n aa = i6;\n }\n if (bQ(this.atN)) {\n if (obj != null) {\n aa = b(this.atN, aa, iArr, min);\n } else {\n i5 = a(this.atN, i5, iArr, min);\n }\n }\n if (bQ(this.acw)) {\n if (obj != null) {\n i5 = a(this.acw, i5, iArr, min);\n } else {\n aa = b(this.acw, aa, iArr, min);\n }\n }\n i6 = getCurrentContentInsetLeft();\n int currentContentInsetRight = getCurrentContentInsetRight();\n iArr[0] = Math.max(0, i6 - i5);\n iArr[1] = Math.max(0, currentContentInsetRight - ((width - paddingRight) - aa));\n i6 = Math.max(i5, i6);\n aa = Math.min(aa, (width - paddingRight) - currentContentInsetRight);\n if (bQ(this.atO)) {\n if (obj != null) {\n aa = b(this.atO, aa, iArr, min);\n } else {\n i6 = a(this.atO, i6, iArr, min);\n }\n }\n if (!bQ(this.atK)) {\n i5 = aa;\n currentContentInsetRight = i6;\n } else if (obj != null) {\n i5 = b(this.atK, aa, iArr, min);\n currentContentInsetRight = i6;\n } else {\n i5 = aa;\n currentContentInsetRight = a(this.atK, i6, iArr, min);\n }\n boolean bQ = bQ(this.atH);\n boolean bQ2 = bQ(this.atI);\n i6 = 0;\n if (bQ) {\n layoutParams = (LayoutParams) this.atH.getLayoutParams();\n i6 = (layoutParams.bottomMargin + (layoutParams.topMargin + this.atH.getMeasuredHeight())) + 0;\n }\n if (bQ2) {\n layoutParams = (LayoutParams) this.atI.getLayoutParams();\n measuredHeight = (layoutParams.bottomMargin + (layoutParams.topMargin + this.atI.getMeasuredHeight())) + i6;\n } else {\n measuredHeight = i6;\n }\n if (bQ || bQ2) {\n layoutParams = (LayoutParams) (bQ ? this.atH : this.atI).getLayoutParams();\n LayoutParams layoutParams2 = (LayoutParams) (bQ2 ? this.atI : this.atH).getLayoutParams();\n Object obj2 = ((!bQ || this.atH.getMeasuredWidth() <= 0) && (!bQ2 || this.atI.getMeasuredWidth() <= 0)) ? null : 1;\n switch (this.Hu & 112) {\n case 48:\n paddingTop = (layoutParams.topMargin + getPaddingTop()) + this.atV;\n break;\n case 80:\n paddingTop = (((height - paddingBottom) - layoutParams2.bottomMargin) - this.atW) - measuredHeight;\n break;\n default:\n paddingTop = (((height - paddingTop2) - paddingBottom) - measuredHeight) / 2;\n if (paddingTop < layoutParams.topMargin + this.atV) {\n aa = layoutParams.topMargin + this.atV;\n } else {\n measuredHeight = (((height - paddingBottom) - measuredHeight) - paddingTop) - paddingTop2;\n if (measuredHeight < layoutParams.bottomMargin + this.atW) {\n aa = Math.max(0, paddingTop - ((layoutParams2.bottomMargin + this.atW) - measuredHeight));\n } else {\n aa = paddingTop;\n }\n }\n paddingTop = paddingTop2 + aa;\n break;\n }\n if (obj != null) {\n aa = (obj2 != null ? this.atT : 0) - iArr[1];\n i6 = i5 - Math.max(0, aa);\n iArr[1] = Math.max(0, -aa);\n if (bQ) {\n layoutParams = (LayoutParams) this.atH.getLayoutParams();\n measuredWidth = i6 - this.atH.getMeasuredWidth();\n i5 = this.atH.getMeasuredHeight() + paddingTop;\n this.atH.layout(measuredWidth, paddingTop, i6, i5);\n paddingTop = i5 + layoutParams.bottomMargin;\n i5 = measuredWidth - this.atU;\n } else {\n i5 = i6;\n }\n if (bQ2) {\n layoutParams = (LayoutParams) this.atI.getLayoutParams();\n measuredWidth = layoutParams.topMargin + paddingTop;\n this.atI.layout(i6 - this.atI.getMeasuredWidth(), measuredWidth, i6, this.atI.getMeasuredHeight() + measuredWidth);\n measuredWidth = i6 - this.atU;\n aa = layoutParams.bottomMargin;\n aa = measuredWidth;\n } else {\n aa = i6;\n }\n if (obj2 != null) {\n aa = Math.min(i5, aa);\n } else {\n aa = i6;\n }\n i5 = aa;\n } else {\n aa = (obj2 != null ? this.atT : 0) - iArr[0];\n currentContentInsetRight += Math.max(0, aa);\n iArr[0] = Math.max(0, -aa);\n if (bQ) {\n layoutParams = (LayoutParams) this.atH.getLayoutParams();\n i6 = this.atH.getMeasuredWidth() + currentContentInsetRight;\n measuredWidth = this.atH.getMeasuredHeight() + paddingTop;\n this.atH.layout(currentContentInsetRight, paddingTop, i6, measuredWidth);\n aa = layoutParams.bottomMargin + measuredWidth;\n measuredWidth = i6 + this.atU;\n paddingTop = aa;\n } else {\n measuredWidth = currentContentInsetRight;\n }\n if (bQ2) {\n layoutParams = (LayoutParams) this.atI.getLayoutParams();\n i6 = layoutParams.topMargin + paddingTop;\n paddingTop = this.atI.getMeasuredWidth() + currentContentInsetRight;\n this.atI.layout(currentContentInsetRight, i6, paddingTop, this.atI.getMeasuredHeight() + i6);\n i6 = this.atU + paddingTop;\n aa = layoutParams.bottomMargin;\n aa = i6;\n } else {\n aa = currentContentInsetRight;\n }\n if (obj2 != null) {\n currentContentInsetRight = Math.max(measuredWidth, aa);\n }\n }\n }\n b(this.aud, 3);\n int size = this.aud.size();\n measuredWidth = currentContentInsetRight;\n for (i6 = 0; i6 < size; i6++) {\n measuredWidth = a((View) this.aud.get(i6), measuredWidth, iArr, min);\n }\n b(this.aud, 5);\n currentContentInsetRight = this.aud.size();\n i6 = 0;\n measuredHeight = i5;\n while (i6 < currentContentInsetRight) {\n i5 = b((View) this.aud.get(i6), measuredHeight, iArr, min);\n i6++;\n measuredHeight = i5;\n }\n b(this.aud, 1);\n ArrayList arrayList = this.aud;\n size = iArr[0];\n paddingTop = iArr[1];\n paddingTop2 = arrayList.size();\n i5 = 0;\n currentContentInsetRight = 0;\n while (i5 < paddingTop2) {\n View view = (View) arrayList.get(i5);\n layoutParams = (LayoutParams) view.getLayoutParams();\n size = layoutParams.leftMargin - size;\n aa = layoutParams.rightMargin - paddingTop;\n paddingBottom = Math.max(0, size);\n int max = Math.max(0, aa);\n size = Math.max(0, -size);\n paddingTop = Math.max(0, -aa);\n i5++;\n currentContentInsetRight += (view.getMeasuredWidth() + paddingBottom) + max;\n }\n aa = ((((width - paddingLeft) - paddingRight) / 2) + paddingLeft) - (currentContentInsetRight / 2);\n i6 = aa + currentContentInsetRight;\n if (aa < measuredWidth) {\n aa = measuredWidth;\n } else if (i6 > measuredHeight) {\n aa -= i6 - measuredHeight;\n }\n i5 = this.aud.size();\n measuredWidth = 0;\n i6 = aa;\n while (measuredWidth < i5) {\n measuredWidth++;\n i6 = a((View) this.aud.get(measuredWidth), i6, iArr, min);\n }\n this.aud.clear();\n }", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n this.mDrawArea.left = 0;\n this.mDrawArea.top = 0;\n this.mDrawArea.right = r - l;\n this.mDrawArea.bottom = b - t;\n this.mZoomView.layout(this.mDrawArea.left, this.mDrawArea.top, this.mDrawArea.right, this.mDrawArea.bottom);\n if (!inZoomView() || changed) {\n resetZoomView();\n layoutViewItems(changed);\n }\n }", "@Override\n protected void onLayout(boolean bl, int n, int n2, int n3, int n4) {\n Drawable drawable2;\n int n5 = this.getPaddingLeft();\n int n6 = n3 - n;\n int n7 = this.getPaddingRight();\n int n8 = this.getPaddingRight();\n n = this.getMeasuredHeight();\n int n9 = this.getChildCount();\n int n10 = this.getGravity();\n switch (n10 & 0x70) {\n default: {\n n = this.getPaddingTop();\n break;\n }\n case 80: {\n n = this.getPaddingTop() + n4 - n2 - n;\n break;\n }\n case 16: {\n n = this.getPaddingTop() + (n4 - n2 - n) / 2;\n }\n }\n n3 = (drawable2 = this.getDividerDrawable()) == null ? 0 : drawable2.getIntrinsicHeight();\n for (n4 = 0; n4 < n9; ++n4) {\n drawable2 = this.getChildAt(n4);\n n2 = n;\n if (drawable2 != null) {\n n2 = n;\n if (drawable2.getVisibility() != 8) {\n int n11;\n int n12 = drawable2.getMeasuredWidth();\n int n13 = drawable2.getMeasuredHeight();\n LinearLayoutCompat.LayoutParams layoutParams = (LinearLayoutCompat.LayoutParams)drawable2.getLayoutParams();\n n2 = n11 = layoutParams.gravity;\n if (n11 < 0) {\n n2 = n10 & 0x800007;\n }\n switch (GravityCompat.getAbsoluteGravity(n2, ViewCompat.getLayoutDirection((View)this)) & 7) {\n default: {\n n2 = n5 + layoutParams.leftMargin;\n break;\n }\n case 1: {\n n2 = (n6 - n5 - n8 - n12) / 2 + n5 + layoutParams.leftMargin - layoutParams.rightMargin;\n break;\n }\n case 5: {\n n2 = n6 - n7 - n12 - layoutParams.rightMargin;\n }\n }\n n11 = n;\n if (this.hasDividerBeforeChildAt(n4)) {\n n11 = n + n3;\n }\n n = n11 + layoutParams.topMargin;\n this.setChildFrame((View)drawable2, n2, n, n12, n13);\n n2 = n + (layoutParams.bottomMargin + n13);\n }\n }\n n = n2;\n }\n }", "@Override\n public void layout() {\n // TODO: not implemented\n }", "protected abstract int getFragmentLayout();", "protected abstract int getFragmentLayout();", "protected abstract int getFragmentLayout();", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n AppMethodBeat.m2504i(92669);\n super.onLayout(z, i, i2, i3, i4);\n setButtonText();\n AppMethodBeat.m2505o(92669);\n }", "void computeNewLayout();", "public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 61;BA.debugLine=\"utilidades.ResetUserFontScale(Activity)\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv0 /*String*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(mostCurrent._activity.getObject())));\n //BA.debugLineNum = 62;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b)\n\t{\n\n\t\tDisplayMetrics displayMetrics = getResources().getDisplayMetrics();\n\t\tint screenWidth = displayMetrics.widthPixels;\n\t\t//int screenHeight = displayMetrics.heightPixels;\n\t\tint childTop = 30;\n\t\tint childLeft = 20;\n\t\tint cameraPicWidth = screenWidth / 5;\n\t\tint cameraPicHeight = 2 * cameraPicWidth;\n\t\tint space = 20;\n\t\tint column = 0;\n\n\t\tfinal int count = getChildCount();\n\t\tfor (int i = 0; i < count; i++)\n\t\t{\n\t\t\tfinal View child = getChildAt(i);\n\t\t\tif (child.getVisibility() != View.GONE)\n\t\t\t{\n\t\t\t\tchild.setVisibility(View.VISIBLE);\n\t\t\t\t//child.measure(r - l, b - t);\n\t\t\t\tchild.layout(childLeft + space, childTop, childLeft + cameraPicWidth + space, childTop + cameraPicHeight + space);\n\t\t\t\tcolumn++;\n\t\t\t\tif (childLeft < screenWidth - 2 * (space + cameraPicWidth))\n\t\t\t\t{\n\t\t\t\t\tchildLeft += cameraPicWidth + space;\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tcolumn = 0;\n\t\t\t\t\tchildLeft = 20;\n\t\t\t\t\tchildTop += cameraPicHeight;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onGlobalLayout() {\n if (right == 0) {\n imgStepsLast.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n right = imgStepsLast.getRight();\n }\n showHelpView(layoutInflater);\n\n }", "public void onCreate(android.os.Bundle r8) {\n /*\n r7 = this;\n android.view.Window r0 = r7.getWindow()\n r1 = 2\n r0.requestFeature(r1)\n android.view.Window r0 = r7.getWindow()\n r2 = -1\n r0.setFeatureInt(r1, r2)\n super.onCreate(r8)\n android.widget.LinearLayout r8 = new android.widget.LinearLayout // Catch:{ Exception -> 0x01e1 }\n r8.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n r7.f15166b = r8 // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout$LayoutParams r8 = new android.widget.LinearLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n r8.<init>(r2, r2) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r0 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r0.setLayoutParams(r8) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r8 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r0 = 1\n r8.setOrientation(r0) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r8 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n java.lang.String r3 = \"IAInternalBrowserView\"\n r8.setContentDescription(r3) // Catch:{ Exception -> 0x01e1 }\n android.widget.RelativeLayout r8 = new android.widget.RelativeLayout // Catch:{ Exception -> 0x01e1 }\n r8.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout$LayoutParams r3 = new android.widget.LinearLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n r4 = -2\n r3.<init>(r2, r4) // Catch:{ Exception -> 0x01e1 }\n r8.setLayoutParams(r3) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r3 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r3.addView(r8) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r3 = new android.widget.LinearLayout // Catch:{ Exception -> 0x01e1 }\n r3.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n r3.setId(r0) // Catch:{ Exception -> 0x01e1 }\n android.widget.RelativeLayout$LayoutParams r4 = new android.widget.RelativeLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n android.content.res.Resources r5 = r7.getResources() // Catch:{ Exception -> 0x01e1 }\n int r6 = com.fyber.inneractive.sdk.C7636R.integer.ia_ib_toolbar_height_dp // Catch:{ Exception -> 0x01e1 }\n int r5 = r5.getInteger(r6) // Catch:{ Exception -> 0x01e1 }\n int r5 = com.fyber.inneractive.sdk.util.C8006j.m18072b(r5) // Catch:{ Exception -> 0x01e1 }\n r4.<init>(r2, r5) // Catch:{ Exception -> 0x01e1 }\n r5 = 12\n r4.addRule(r5) // Catch:{ Exception -> 0x01e1 }\n r3.setLayoutParams(r4) // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_background // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n com.fyber.inneractive.sdk.util.C8006j.m18071a(r3, r4) // Catch:{ Exception -> 0x01e1 }\n r8.addView(r3) // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_left_arrow // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15168d = r4 // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_right_arrow // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15169e = r4 // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_refresh // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15170f = r4 // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_close // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15171g = r4 // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15168d // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15169e // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15170f // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15171g // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r3 = new android.webkit.WebView // Catch:{ Exception -> 0x01e1 }\n r3.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n r7.f15167c = r3 // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r3 = r7.f15167c // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.C7637id.inneractive_webview_internal_browser // Catch:{ Exception -> 0x01e1 }\n r3.setId(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.RelativeLayout$LayoutParams r3 = new android.widget.RelativeLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n r3.<init>(r2, r2) // Catch:{ Exception -> 0x01e1 }\n r3.addRule(r1, r0) // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r1 = r7.f15167c // Catch:{ Exception -> 0x01e1 }\n r1.setLayoutParams(r3) // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r1 = r7.f15167c // Catch:{ Exception -> 0x01e1 }\n r8.addView(r1) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r8 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r7.setContentView(r8) // Catch:{ Exception -> 0x01e1 }\n android.content.Intent r8 = r7.getIntent()\n android.webkit.WebView r1 = r7.f15167c\n android.webkit.WebSettings r1 = r1.getSettings()\n r1.setJavaScriptEnabled(r0)\n r1.setSupportZoom(r0)\n r1.setBuiltInZoomControls(r0)\n r1.setUseWideViewPort(r0)\n r1.setLoadWithOverviewMode(r0)\n android.webkit.WebView r0 = r7.f15167c\n disableWebviewZoomControls(r0)\n android.webkit.WebView r0 = r7.f15167c\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$1 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$1\n r1.<init>()\n r0.setWebViewClient(r1)\n android.webkit.WebView r0 = r7.f15167c\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$2 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$2\n r1.<init>()\n r0.setWebChromeClient(r1)\n java.lang.String r0 = \"extra_url\"\n java.lang.String r8 = r8.getStringExtra(r0)\n boolean r0 = m16888b(r8)\n if (r0 == 0) goto L_0x016a\n java.lang.String r0 = \"http%3A%2F%2F\"\n boolean r0 = r8.startsWith(r0)\n if (r0 != 0) goto L_0x013f\n java.lang.String r0 = \"https%3A%2F%2F\"\n boolean r0 = r8.startsWith(r0)\n if (r0 == 0) goto L_0x012e\n goto L_0x013f\n L_0x012e:\n boolean r8 = r7.m16890c(r8)\n if (r8 == 0) goto L_0x013b\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$InternalBrowserListener r8 = f15165a\n if (r8 == 0) goto L_0x013b\n r8.onApplicationInBackground()\n L_0x013b:\n r7.finish()\n goto L_0x016f\n L_0x013f:\n java.lang.String r0 = \"utf-8\"\n java.lang.String r0 = java.net.URLDecoder.decode(r8, r0) // Catch:{ Exception -> 0x0154 }\n java.net.URL r1 = new java.net.URL // Catch:{ Exception -> 0x0154 }\n r1.<init>(r0) // Catch:{ Exception -> 0x0154 }\n android.webkit.WebView r8 = r7.f15167c // Catch:{ Exception -> 0x0151 }\n r8.loadUrl(r0) // Catch:{ Exception -> 0x0151 }\n goto L_0x0169\n L_0x0151:\n r8 = move-exception\n r8 = r0\n goto L_0x0155\n L_0x0154:\n r0 = move-exception\n L_0x0155:\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n java.lang.String r1 = \"Failed to open Url: \"\n r0.<init>(r1)\n r0.append(r8)\n java.lang.String r8 = r0.toString()\n com.fyber.inneractive.sdk.util.IAlog.m18023d(r8)\n r7.finish()\n L_0x0169:\n goto L_0x016f\n L_0x016a:\n android.webkit.WebView r0 = r7.f15167c\n r0.loadUrl(r8)\n L_0x016f:\n android.widget.ImageButton r8 = r7.f15168d\n r0 = 0\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15168d\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$3 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$3\n r1.<init>()\n r8.setOnClickListener(r1)\n android.widget.ImageButton r8 = r7.f15168d\n java.lang.String r1 = \"IABackButton\"\n r8.setContentDescription(r1)\n android.widget.ImageButton r8 = r7.f15169e\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15169e\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$4 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$4\n r1.<init>()\n r8.setOnClickListener(r1)\n android.widget.ImageButton r8 = r7.f15169e\n java.lang.String r1 = \"IAForwardButton\"\n r8.setContentDescription(r1)\n android.widget.ImageButton r8 = r7.f15170f\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15170f\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$5 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$5\n r1.<init>()\n r8.setOnClickListener(r1)\n android.widget.ImageButton r8 = r7.f15170f\n java.lang.String r1 = \"IARefreshButton\"\n r8.setContentDescription(r1)\n android.widget.ImageButton r8 = r7.f15171g\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15171g\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$6 r0 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$6\n r0.<init>()\n r8.setOnClickListener(r0)\n android.widget.ImageButton r8 = r7.f15171g\n java.lang.String r0 = \"IACloseButton\"\n r8.setContentDescription(r0)\n int r8 = android.os.Build.VERSION.SDK_INT\n r0 = 21\n if (r8 >= r0) goto L_0x01dd\n android.content.Context r8 = com.fyber.inneractive.sdk.util.C8006j.m18075n()\n android.webkit.CookieSyncManager.createInstance(r8)\n android.webkit.CookieSyncManager r8 = android.webkit.CookieSyncManager.getInstance()\n r8.startSync()\n L_0x01dd:\n com.fyber.inneractive.sdk.util.C8006j.m18079r()\n return\n L_0x01e1:\n r8 = move-exception\n r7.finish()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity.onCreate(android.os.Bundle):void\");\n }", "@Override \r\n\tprotected void onLayout(boolean changed, int left, int top, int right, int bottom)\r\n\t{\n\t\tif(changed)\r\n\t\t{\r\n\t\t\tthis.calculateChildViewLayoutParams();\r\n\t\t}\r\n\t\t\r\n\t\t// Set the layout position for the menu and content\r\n\t\tthis.m_listView.layout(left, top, right, bottom);\r\n\t\tthis.m_playerInfo.layout(left, (top - this.m_currentInfoOffset), right, (bottom - this.m_currentInfoOffset));\r\n\t\tthis.m_playerControls.layout(left, (top - this.m_currentControlsOffset), right, (bottom - this.m_currentControlsOffset));\r\n\t\tthis.m_banner.layout(left, top, right, bottom);\r\n\t\t\r\n\t}", "public static Object gvLayout(Object... arg) {\r\nUNSUPPORTED(\"6y1to7xw4qcx9wxk34th6ze7q\"); // int gvLayout(GVC_t *gvc, graph_t *g, const char *engine)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"9cn2lsc78g1edtf7fifdb4iqx\"); // char buf[256];\r\nUNSUPPORTED(\"1bh3yj957he6yv2dkeg4pzwdk\"); // int rc;\r\nUNSUPPORTED(\"ajvhg377bzgyjw1u7fc6ynufe\"); // rc = gvlayout_select(gvc, engine);\r\nUNSUPPORTED(\"5wvj0ph8uqfgg8jl3g39jsf51\"); // if (rc == 999) {\r\nUNSUPPORTED(\"bqcqxlaqnxiukaofkbaeohlrc\"); // agerr (AGERR, \"Layout type: \\\"%s\\\" not recognized. Use one of:%s\\n\",\r\nUNSUPPORTED(\"6vb5xjowxadh06keqoi8xkixl\"); // engine, gvplugin_list(gvc, API_layout, engine));\r\nUNSUPPORTED(\"f3a98gxettwtewduvje9y3524\"); // return -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"2zgcvtw13j4ii0vfdebphrdmh\"); // if (gvLayoutJobs(gvc, g) == -1)\r\nUNSUPPORTED(\"8d9xfgejx5vgd6shva5wk5k06\"); // \treturn -1;\r\nUNSUPPORTED(\"1cg49iv90v5mueolzbu69xy3q\"); // /* set bb attribute for basic layout.\r\nUNSUPPORTED(\"a7i33czrx785isv8bnwlpc39h\"); // * doesn't yet include margins, scaling or page sizes because\r\nUNSUPPORTED(\"25x3oqnrohvx47gdi47wjsvje\"); // * those depend on the renderer being used. */\r\nUNSUPPORTED(\"2cxu41gtx0x2822685tf09ctd\"); // if (GD_drawing(g)->landscape)\r\nUNSUPPORTED(\"bw86vkkrgie6ys9mgl56wng55\"); // sprintf(buf, \"%d %d %d %d\",\r\nUNSUPPORTED(\"bejqbur89cau7q2a7x8pbuhd7\"); // ROUND(GD_bb(g).LL.y), ROUND(GD_bb(g).LL.x),\r\nUNSUPPORTED(\"3ey1j2uf8t8xsknqe7zba77pt\"); // ROUND(GD_bb(g).UR.y), ROUND(GD_bb(g).UR.x));\r\nUNSUPPORTED(\"div10atae09n36x269sl208r1\"); // else\r\nUNSUPPORTED(\"bw86vkkrgie6ys9mgl56wng55\"); // sprintf(buf, \"%d %d %d %d\",\r\nUNSUPPORTED(\"7r04i6r8wgv29cf9sh4x0os5v\"); // ROUND(GD_bb(g).LL.x), ROUND(GD_bb(g).LL.y),\r\nUNSUPPORTED(\"buvo4ybvfnr1ki5uxao1rrf74\"); // ROUND(GD_bb(g).UR.x), ROUND(GD_bb(g).UR.y));\r\nUNSUPPORTED(\"dpbq2928p9qeg5a464f8e2yjy\"); // agsafeset(g, \"bb\", buf, \"\");\r\nUNSUPPORTED(\"5oxhd3fvp0gfmrmz12vndnjt\"); // return 0;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}", "@Override\n public void onGlobalLayout() {\n int width = rl.getWidth();\n int height = rl.getHeight();\n\n //...\n //do whatever you want with them\n //...\n head = new Rectangle(.46111*width, .14558*height, .07604*width, .06282*height);\n neck = new Rectangle(.46528*width, .2084*height, .07188*width, .02816*height);\n leftShoulder = new Rectangle(.55451*width, .22357*height, .07639*width, .026*height);\n leftArm = new Rectangle(.6309*width, .2279*height, .16681*width, .0325*height);\n leftHand = new Rectangle(.79771*width, .2279*height, .0759*width, .03033*height);\n rightShoulder = new Rectangle(.36458*width, .22357*height, .08292*width, .02816*height);\n rightArm = new Rectangle(.20764*width, .2279*height, .15694*width, .0325*height);\n rightHand = new Rectangle(.1181*width, .2279*height, .08958*width, .03033*height);\n chest = new Rectangle(.41625*width, .23657*height, .16951*width, .065*height);\n stomach = new Rectangle(.43361*width, .3*height, .12785*width, .06512*height);\n leftLeg = new Rectangle(.50236*width, .36668*height, .08*width, .22322*height);\n rightLeg = new Rectangle(.41618*width, .36668*height, .08*width, .22322*height);\n leftFoot = new Rectangle(.52674*width, .5899*height, .06597*width, .0498*height);\n rightFoot = new Rectangle(.40583*width, .5899*height, .06597*width, .0498*height);\n\n //this is an important step not to keep receiving callbacks:\n //we should remove this listener\n //I use the function to remove it based on the api level!\n if(android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN)\n rl.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n else\n rl.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n }", "public void onGlobalLayout() {\n if (Build.VERSION.SDK_INT >= 16)\n rootView.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n else\n rootView.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n\n initLayoutPositions();\n\n }", "public final int getLayout() {\n return 2130970726;\n }", "@Override\n public void onLayout(PrintAttributes oldAttributes,\n PrintAttributes newAttributes,\n CancellationSignal cancellationSignal,\n LayoutResultCallback callback,\n Bundle metadata) {\n\n }", "@Override\n\t\tpublic void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop,\n\t\t\t\tint oldRight, int oldBottom) {\n\t\t\t\n\t\t\tSystem.out.println(\"*\" + index +\"-\"+(right-left));\n\t\t\tcolWidth[index]=right-left;\n\t\t\n\t\t\tsetMyWidth();\n\t\t}", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n if (flag) {\n //进行一些初始化的操作\n/* if ((mOvalHeight == -1) || (mOvalWidth == -1)) {\n if (mWidth > mHeight) {\n mOvalHeight = (mHeight - 100) / 2;\n mOvalWidth = mOvalHeight + 100;\n } else {\n mOvalWidth = (mWidth - 100) / 2;\n mOvalHeight = mOvalWidth + 100;\n }\n }else {\n mOvalWidth /= 2;\n mOvalHeight /= 2;\n }*/\n\n if (mOvalHeightMargin != -1) {\n mOvalHeight = (mHeight - mOvalHeightMargin * 2) / 2;\n } else if (mOvalHeight == -1) {\n mOvalHeight = mHeight / 2;\n }\n if (mOvalWidthMargin != -1) {\n mOvalWidth = (mWidth - mOvalWidthMargin * 2) / 2;\n } else if (mOvalWidth == -1) {\n mOvalWidth = mWidth / 2;\n }\n\n\n if ((mChildWidth == -1) && (mChildHeight == -1)) {\n mChildWidth = 50;\n mChildHeight = 50;\n }\n\n //下面是获取所有的子view,给子view分配初始位置,默认第一个是270度,相当于y轴负半轴。\n mChildCount = getChildCount();\n mChildrenView = new View[mChildCount];\n mAngles = new double[mChildCount];\n mAngles[0] = 270;\n double j = 360 / mChildCount;\n for (int i = 0; i < mChildCount; i++) {\n mChildrenView[i] = getChildAt(i);\n final int finalI = i;\n mChildrenView[i].setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n if (itemClickListener == null)\n Log.e(TAG, \"你点击了的position = \" + finalI + \",但是itemClickListener == null\");\n else {\n itemClickListener.onItemClick(v, finalI, true);\n }\n }\n });\n if (i > 0) {\n if ((mAngles[i] + j) <= 360) {\n mAngles[i] = mAngles[i - 1] + j;\n } else {\n mAngles[i] = mAngles[i - 1] + j - 360;\n }\n }\n int x = (int) (mOvalWidth * Math.cos(mAngles[i] * Math.PI / 180));\n int y = (int) (mOvalHeight * Math.sin(mAngles[i] * Math.PI / 180));\n mChildrenView[i].layout(mWidth / 2 - x - mChildWidth / 2, mHeight / 2 - y - mChildHeight / 2, mWidth / 2 - x + mChildWidth / 2, mHeight / 2 - y + mChildHeight / 2);\n }\n flag = false;\n }\n }", "protected abstract\n @LayoutRes\n int getLayoutRes(int position);", "@Override\n protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n// int childLeft = getPaddingLeft();\n// int childRight = right - left - getPaddingRight();\n// int childTop = getPaddingTop();\n// int childBottom = bottom - top - getPaddingBottom();\n//\n// int tempLeftBottom = childTop + leftLabel.getMeasuredHeight();\n// leftLabel.item_personal_center_prefix(childLeft, childTop, childRight, tempLeftBottom);\n// childTop += leftLabel.getMeasuredHeight();\n//\n// int tempRightTop = childBottom - rightLebel.getMeasuredHeight();\n// rightLebel.item_personal_center_prefix(childLeft, tempRightTop, childRight, childBottom);\n// childBottom -= rightLebel.getMeasuredHeight();\n//\n//\n// inputEdit.item_personal_center_prefix(childLeft, childTop, childRight, childBottom);\n int childLeft = getPaddingLeft();\n int childTop = getPaddingTop();\n int childBottom = leftLabel.getMeasuredHeight();\n int w = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);\n int h = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);\n leftLabel.measure(w, h);\n inputEdit.measure(w, h);\n rightLebel.measure(w, h);\n divider.measure(w, h);\n\n int childRight = leftLabel.getMeasuredWidth();\n leftLabel.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft += leftLabel.getMeasuredWidth();\n childRight = right - getPaddingRight() - rightLebel.getMeasuredWidth();\n childBottom = inputEdit.getMeasuredHeight();\n inputEdit.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft = right - rightLebel.getMeasuredWidth() - getPaddingRight();\n childRight = right - getPaddingRight();\n childBottom = rightLebel.getMeasuredHeight();\n rightLebel.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft = getPaddingLeft();\n childRight= right - getPaddingRight();\n childTop = getPaddingTop() + inputEdit.getMeasuredHeight();\n childBottom = childTop + 1;\n divider.layout(childLeft, childTop + dividerPadding, childRight, childBottom);\n }", "@Override\n public void noteNewPlayout()\n {\n\n }", "public void setupLayout() {\n // left empty for subclass to override\n }", "private void g()\n/* */ {\n/* 63 */ this.b = new c(this.a);\n/* 64 */ addView(this.b, new FrameLayout.LayoutParams(-1, -1));\n/* 65 */ i();\n/* */ }", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n int i5;\n int i6;\n int i7;\n int i8;\n int i9;\n int i10;\n int i11 = this.expandDirection;\n int i12 = 8;\n float f = 0.0f;\n char c = 0;\n char c2 = 1;\n if (i11 == 0 || i11 == 1) {\n boolean z2 = this.expandDirection == 0;\n this.touchDelegateGroup.clearTouchDelegates();\n int measuredHeight = z2 ? (i4 - i2) - this.menuButton.getMeasuredHeight() : 0;\n if (z2) {\n i5 = measuredHeight - this.menuBottomMargin;\n } else {\n i5 = measuredHeight + this.menuTopMargin;\n }\n int i13 = (this.labelsPosition == 0 ? (i3 - i) - (this.maxButtonWidth / 2) : this.maxButtonWidth / 2) - (this.labelsPosition == 0 ? this.menuRightMargin : -this.menuLeftMargin);\n int measuredWidth = i13 - (this.menuButton.getMeasuredWidth() / 2);\n MenuFAB menuFAB = this.menuButton;\n menuFAB.layout(measuredWidth, i5, menuFAB.getMeasuredWidth() + measuredWidth, this.menuButton.getMeasuredHeight() + i5);\n int i14 = (this.maxButtonWidth / 2) + this.labelsMargin;\n int i15 = this.labelsPosition == 0 ? i13 - i14 : i14 + i13;\n if (z2) {\n i6 = i5 - this.buttonSpacing;\n } else {\n i6 = this.menuButton.getMeasuredHeight() + i5 + this.buttonSpacing;\n }\n int i16 = this.buttonsCount - 1;\n while (i16 >= 0) {\n View childAt = getChildAt(i16);\n if (childAt.equals(this.menuButton) || childAt.getVisibility() == i12) {\n i7 = i5;\n } else {\n int measuredWidth2 = i13 - (childAt.getMeasuredWidth() / 2);\n if (z2) {\n i6 -= childAt.getMeasuredHeight();\n }\n childAt.layout(measuredWidth2, i6, childAt.getMeasuredWidth() + measuredWidth2, childAt.getMeasuredHeight() + i6);\n float f2 = (float) (i5 - i6);\n childAt.setTranslationY(this.expanded ? 0.0f : f2);\n childAt.setAlpha(this.expanded ? 1.0f : 0.0f);\n LayoutParams layoutParams = (LayoutParams) childAt.getLayoutParams();\n ObjectAnimator access$300 = layoutParams.mCollapseDir;\n i7 = i5;\n float[] fArr = new float[2];\n fArr[c] = f;\n fArr[c2] = f2;\n access$300.setFloatValues(fArr);\n ObjectAnimator access$400 = layoutParams.mExpandDir;\n float[] fArr2 = new float[2];\n fArr2[c] = f2;\n fArr2[c2] = f;\n access$400.setFloatValues(fArr2);\n layoutParams.setAnimationsTarget(childAt);\n View view = (View) childAt.getTag(C5959R.C5962id.fab_label);\n if (view != null) {\n if (this.labelsPosition == 0) {\n i8 = i15 - view.getMeasuredWidth();\n } else {\n i8 = view.getMeasuredWidth() + i15;\n }\n int i17 = this.labelsPosition == 0 ? i8 : i15;\n if (this.labelsPosition == 0) {\n i8 = i15;\n }\n int measuredHeight2 = (i6 - this.labelsVerticalOffset) + ((childAt.getMeasuredHeight() - view.getMeasuredHeight()) / 2);\n view.layout(i17, measuredHeight2, i8, measuredHeight2 + view.getMeasuredHeight());\n this.touchDelegateGroup.addTouchDelegate(new TouchDelegate(new Rect(Math.min(measuredWidth2, i17), i6 - (this.buttonSpacing / 2), Math.max(measuredWidth2 + childAt.getMeasuredWidth(), i8), childAt.getMeasuredHeight() + i6 + (this.buttonSpacing / 2)), childAt));\n view.setTranslationY(this.expanded ? 0.0f : f2);\n view.setAlpha(this.expanded ? 1.0f : 0.0f);\n LayoutParams layoutParams2 = (LayoutParams) view.getLayoutParams();\n layoutParams2.mCollapseDir.setFloatValues(new float[]{0.0f, f2});\n layoutParams2.mExpandDir.setFloatValues(new float[]{f2, 0.0f});\n layoutParams2.setAnimationsTarget(view);\n }\n if (z2) {\n i6 -= this.buttonSpacing;\n } else {\n i6 = i6 + childAt.getMeasuredHeight() + this.buttonSpacing;\n }\n }\n i16--;\n i5 = i7;\n i12 = 8;\n f = 0.0f;\n c = 0;\n c2 = 1;\n }\n } else if (i11 == 2 || i11 == 3) {\n boolean z3 = this.expandDirection == 2;\n int measuredWidth3 = z3 ? (i3 - i) - this.menuButton.getMeasuredWidth() : 0;\n if (z3) {\n i9 = measuredWidth3 - this.menuRightMargin;\n } else {\n i9 = measuredWidth3 + this.menuLeftMargin;\n }\n int i18 = i4 - i2;\n int i19 = this.maxButtonHeight;\n int measuredHeight3 = ((i18 - i19) + ((i19 - this.menuButton.getMeasuredHeight()) / 2)) - this.menuBottomMargin;\n MenuFAB menuFAB2 = this.menuButton;\n menuFAB2.layout(i9, measuredHeight3, menuFAB2.getMeasuredWidth() + i9, this.menuButton.getMeasuredHeight() + measuredHeight3);\n if (z3) {\n i10 = i9 - this.buttonSpacing;\n } else {\n i10 = this.menuButton.getMeasuredWidth() + i9 + this.buttonSpacing;\n }\n for (int i20 = this.buttonsCount - 1; i20 >= 0; i20--) {\n View childAt2 = getChildAt(i20);\n if (!childAt2.equals(this.menuButton) && childAt2.getVisibility() != 8) {\n if (z3) {\n i10 -= childAt2.getMeasuredWidth();\n }\n int measuredHeight4 = ((this.menuButton.getMeasuredHeight() - childAt2.getMeasuredHeight()) / 2) + measuredHeight3;\n childAt2.layout(i10, measuredHeight4, childAt2.getMeasuredWidth() + i10, childAt2.getMeasuredHeight() + measuredHeight4);\n float f3 = (float) (i9 - i10);\n childAt2.setTranslationX(this.expanded ? 0.0f : f3);\n childAt2.setAlpha(this.expanded ? 1.0f : 0.0f);\n LayoutParams layoutParams3 = (LayoutParams) childAt2.getLayoutParams();\n layoutParams3.mCollapseDir.setFloatValues(new float[]{0.0f, f3});\n layoutParams3.mExpandDir.setFloatValues(new float[]{f3, 0.0f});\n layoutParams3.setAnimationsTarget(childAt2);\n if (z3) {\n i10 -= this.buttonSpacing;\n } else {\n i10 = i10 + childAt2.getMeasuredWidth() + this.buttonSpacing;\n }\n }\n }\n }\n }", "@Override // android.widget.FrameLayout, android.view.View\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void onMeasure(int r12, int r13) {\n /*\n r11 = this;\n int r0 = r11.b\n r1 = 1\n r2 = 0\n r3 = 1073741824(0x40000000, float:2.0)\n r4 = -2147483648(0xffffffff80000000, float:-0.0)\n if (r0 == 0) goto L_0x008a\n int r5 = r11.c\n if (r5 != 0) goto L_0x0010\n goto L_0x008a\n L_0x0010:\n float r0 = (float) r0\n float r5 = (float) r5\n float r0 = r0 / r5\n int r5 = android.view.View.MeasureSpec.getSize(r12)\n int r6 = android.view.View.MeasureSpec.getSize(r13)\n int r7 = android.view.View.MeasureSpec.getMode(r12)\n int r8 = android.view.View.MeasureSpec.getMode(r13)\n int r9 = r11.getChildCount()\n if (r7 != 0) goto L_0x0030\n if (r8 != 0) goto L_0x0030\n super.onMeasure(r12, r13)\n goto L_0x00dd\n L_0x0030:\n if (r7 != 0) goto L_0x0037\n float r12 = (float) r6\n float r12 = r12 * r0\n int r5 = (int) r12\n goto L_0x003f\n L_0x0037:\n if (r8 != 0) goto L_0x003a\n goto L_0x003c\n L_0x003a:\n if (r8 == r3) goto L_0x003f\n L_0x003c:\n float r12 = (float) r5\n float r12 = r12 / r0\n int r6 = (int) r12\n L_0x003f:\n r12 = 0\n r13 = 0\n L_0x0041:\n if (r12 >= r9) goto L_0x0080\n android.view.View r0 = r11.getChildAt(r12)\n int r7 = r0.getVisibility()\n r8 = 8\n if (r7 != r8) goto L_0x0050\n goto L_0x007d\n L_0x0050:\n android.view.ViewGroup$LayoutParams r7 = r0.getLayoutParams()\n if (r7 == 0) goto L_0x0067\n int r8 = r7.width\n r10 = -1\n if (r8 != r10) goto L_0x005e\n r8 = 1073741824(0x40000000, float:2.0)\n goto L_0x0060\n L_0x005e:\n r8 = -2147483648(0xffffffff80000000, float:-0.0)\n L_0x0060:\n int r7 = r7.height\n if (r7 != r10) goto L_0x0069\n r7 = 1073741824(0x40000000, float:2.0)\n goto L_0x006b\n L_0x0067:\n r8 = -2147483648(0xffffffff80000000, float:-0.0)\n L_0x0069:\n r7 = -2147483648(0xffffffff80000000, float:-0.0)\n L_0x006b:\n int r8 = android.view.View.MeasureSpec.makeMeasureSpec(r5, r8)\n int r7 = android.view.View.MeasureSpec.makeMeasureSpec(r6, r7)\n r0.measure(r8, r7)\n int r0 = r0.getMeasuredHeight()\n if (r0 <= 0) goto L_0x007d\n r13 = 1\n L_0x007d:\n int r12 = r12 + 1\n goto L_0x0041\n L_0x0080:\n if (r13 == 0) goto L_0x0086\n r11.setMeasuredDimension(r5, r6)\n goto L_0x00dd\n L_0x0086:\n r11.setMeasuredDimension(r2, r2)\n goto L_0x00dd\n L_0x008a:\n int r0 = android.view.View.MeasureSpec.getSize(r12)\n int r5 = android.view.View.MeasureSpec.getSize(r13)\n int r12 = android.view.View.MeasureSpec.getMode(r12)\n int r13 = android.view.View.MeasureSpec.getMode(r13)\n int r6 = r11.getChildCount()\n if (r0 != 0) goto L_0x00a5\n if (r5 != 0) goto L_0x00a5\n r11.setMeasuredDimension(r2, r2)\n L_0x00a5:\n com.my.target.gc r2 = r11.a\n int r7 = android.view.View.MeasureSpec.makeMeasureSpec(r0, r4)\n int r8 = android.view.View.MeasureSpec.makeMeasureSpec(r5, r4)\n r2.measure(r7, r8)\n com.my.target.gc r2 = r11.a\n int r2 = r2.getMeasuredWidth()\n com.my.target.gc r7 = r11.a\n int r7 = r7.getMeasuredHeight()\n if (r13 == r3) goto L_0x00c1\n r5 = r7\n L_0x00c1:\n if (r12 == r3) goto L_0x00c4\n r0 = r2\n L_0x00c4:\n if (r6 <= r1) goto L_0x00da\n L_0x00c6:\n if (r1 >= r6) goto L_0x00da\n android.view.View r12 = r11.getChildAt(r1)\n int r13 = android.view.View.MeasureSpec.makeMeasureSpec(r0, r4)\n int r2 = android.view.View.MeasureSpec.makeMeasureSpec(r5, r4)\n r12.measure(r13, r2)\n int r1 = r1 + 1\n goto L_0x00c6\n L_0x00da:\n r11.setMeasuredDimension(r0, r5)\n L_0x00dd:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.my.target.nativeads.views.IconAdView.onMeasure(int, int):void\");\n }", "@android.annotation.TargetApi(17)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void resolveLayoutDirection(int r6) {\n /*\n r5 = this;\n int r0 = r5.leftMargin\n int r1 = r5.rightMargin\n super.resolveLayoutDirection(r6)\n r6 = -1\n r5.ad = r6\n r5.ae = r6\n r5.ab = r6\n r5.ac = r6\n r5.af = r6\n r5.ag = r6\n int r2 = r5.t\n r5.af = r2\n int r2 = r5.v\n r5.ag = r2\n float r2 = r5.z\n r5.ah = r2\n int r2 = r5.a\n r5.ai = r2\n int r2 = r5.b\n r5.aj = r2\n float r2 = r5.c\n r5.ak = r2\n int r2 = r5.getLayoutDirection()\n r3 = 0\n r4 = 1\n if (r4 != r2) goto L_0x0036\n r2 = 1\n goto L_0x0037\n L_0x0036:\n r2 = 0\n L_0x0037:\n if (r2 == 0) goto L_0x00ac\n int r2 = r5.p\n if (r2 == r6) goto L_0x0043\n int r2 = r5.p\n r5.ad = r2\n L_0x0041:\n r3 = 1\n goto L_0x004c\n L_0x0043:\n int r2 = r5.q\n if (r2 == r6) goto L_0x004c\n int r2 = r5.q\n r5.ae = r2\n goto L_0x0041\n L_0x004c:\n int r2 = r5.r\n if (r2 == r6) goto L_0x0055\n int r2 = r5.r\n r5.ac = r2\n r3 = 1\n L_0x0055:\n int r2 = r5.s\n if (r2 == r6) goto L_0x005e\n int r2 = r5.s\n r5.ab = r2\n r3 = 1\n L_0x005e:\n int r2 = r5.x\n if (r2 == r6) goto L_0x0066\n int r2 = r5.x\n r5.ag = r2\n L_0x0066:\n int r2 = r5.y\n if (r2 == r6) goto L_0x006e\n int r2 = r5.y\n r5.af = r2\n L_0x006e:\n r2 = 1065353216(0x3f800000, float:1.0)\n if (r3 == 0) goto L_0x0078\n float r3 = r5.z\n float r3 = r2 - r3\n r5.ah = r3\n L_0x0078:\n boolean r3 = r5.Y\n if (r3 == 0) goto L_0x00dc\n int r3 = r5.S\n if (r3 != r4) goto L_0x00dc\n float r3 = r5.c\n r4 = -1082130432(0xffffffffbf800000, float:-1.0)\n int r3 = (r3 > r4 ? 1 : (r3 == r4 ? 0 : -1))\n if (r3 == 0) goto L_0x0092\n float r3 = r5.c\n float r2 = r2 - r3\n r5.ak = r2\n r5.ai = r6\n r5.aj = r6\n goto L_0x00dc\n L_0x0092:\n int r2 = r5.a\n if (r2 == r6) goto L_0x009f\n int r2 = r5.a\n r5.aj = r2\n r5.ai = r6\n r5.ak = r4\n goto L_0x00dc\n L_0x009f:\n int r2 = r5.b\n if (r2 == r6) goto L_0x00dc\n int r2 = r5.b\n r5.ai = r2\n r5.aj = r6\n r5.ak = r4\n goto L_0x00dc\n L_0x00ac:\n int r2 = r5.p\n if (r2 == r6) goto L_0x00b4\n int r2 = r5.p\n r5.ac = r2\n L_0x00b4:\n int r2 = r5.q\n if (r2 == r6) goto L_0x00bc\n int r2 = r5.q\n r5.ab = r2\n L_0x00bc:\n int r2 = r5.r\n if (r2 == r6) goto L_0x00c4\n int r2 = r5.r\n r5.ad = r2\n L_0x00c4:\n int r2 = r5.s\n if (r2 == r6) goto L_0x00cc\n int r2 = r5.s\n r5.ae = r2\n L_0x00cc:\n int r2 = r5.x\n if (r2 == r6) goto L_0x00d4\n int r2 = r5.x\n r5.af = r2\n L_0x00d4:\n int r2 = r5.y\n if (r2 == r6) goto L_0x00dc\n int r2 = r5.y\n r5.ag = r2\n L_0x00dc:\n int r2 = r5.r\n if (r2 != r6) goto L_0x012e\n int r2 = r5.s\n if (r2 != r6) goto L_0x012e\n int r2 = r5.q\n if (r2 != r6) goto L_0x012e\n int r2 = r5.p\n if (r2 != r6) goto L_0x012e\n int r2 = r5.f\n if (r2 == r6) goto L_0x00fd\n int r2 = r5.f\n r5.ad = r2\n int r2 = r5.rightMargin\n if (r2 > 0) goto L_0x010d\n if (r1 <= 0) goto L_0x010d\n r5.rightMargin = r1\n goto L_0x010d\n L_0x00fd:\n int r2 = r5.g\n if (r2 == r6) goto L_0x010d\n int r2 = r5.g\n r5.ae = r2\n int r2 = r5.rightMargin\n if (r2 > 0) goto L_0x010d\n if (r1 <= 0) goto L_0x010d\n r5.rightMargin = r1\n L_0x010d:\n int r1 = r5.d\n if (r1 == r6) goto L_0x011e\n int r6 = r5.d\n r5.ab = r6\n int r6 = r5.leftMargin\n if (r6 > 0) goto L_0x012e\n if (r0 <= 0) goto L_0x012e\n r5.leftMargin = r0\n return\n L_0x011e:\n int r1 = r5.e\n if (r1 == r6) goto L_0x012e\n int r6 = r5.e\n r5.ac = r6\n int r6 = r5.leftMargin\n if (r6 > 0) goto L_0x012e\n if (r0 <= 0) goto L_0x012e\n r5.leftMargin = r0\n L_0x012e:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.ConstraintLayout.LayoutParams.resolveLayoutDirection(int):void\");\n }", "public static String _but_cerrar_ciclo_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 454;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Main\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 455;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n public void requestLayout() {\n super.requestLayout();\n if (onRequestLayoutListener != null && !isRequestLayoutPosted) {\n isRequestLayoutPosted = true;\n postDelayed(requestLayoutRunnable, 33);\n }\n }", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n int i5;\n int i6;\n int i7;\n int childCount = getChildCount();\n int i8 = i3 - i;\n int i9 = i4 - i2;\n int paddingLeft = getPaddingLeft();\n int paddingTop = getPaddingTop();\n int paddingRight = getPaddingRight();\n int paddingBottom = getPaddingBottom();\n int scrollX = getScrollX();\n int i10 = paddingBottom;\n int i11 = 0;\n int i12 = paddingTop;\n int i13 = paddingLeft;\n int i14 = 0;\n while (true) {\n i5 = 8;\n if (i14 >= childCount) {\n break;\n }\n View childAt = getChildAt(i14);\n if (childAt.getVisibility() != 8) {\n LayoutParams layoutParams = (LayoutParams) childAt.getLayoutParams();\n if (layoutParams.isDecor) {\n int i15 = layoutParams.gravity & 7;\n int i16 = layoutParams.gravity & 112;\n if (i15 == 1) {\n i6 = Math.max((i8 - childAt.getMeasuredWidth()) / 2, i13);\n } else if (i15 == 3) {\n i6 = i13;\n i13 = childAt.getMeasuredWidth() + i13;\n } else if (i15 != 5) {\n i6 = i13;\n } else {\n i6 = (i8 - paddingRight) - childAt.getMeasuredWidth();\n paddingRight += childAt.getMeasuredWidth();\n }\n if (i16 == 16) {\n i7 = Math.max((i9 - childAt.getMeasuredHeight()) / 2, i12);\n } else if (i16 == 48) {\n i7 = i12;\n i12 = childAt.getMeasuredHeight() + i12;\n } else if (i16 != 80) {\n i7 = i12;\n } else {\n i7 = (i9 - i10) - childAt.getMeasuredHeight();\n i10 += childAt.getMeasuredHeight();\n }\n int i17 = i6 + scrollX;\n childAt.layout(i17, i7, childAt.getMeasuredWidth() + i17, i7 + childAt.getMeasuredHeight());\n i11++;\n }\n }\n i14++;\n }\n int i18 = (i8 - i13) - paddingRight;\n int i19 = 0;\n while (i19 < childCount) {\n View childAt2 = getChildAt(i19);\n if (childAt2.getVisibility() != i5) {\n LayoutParams layoutParams2 = (LayoutParams) childAt2.getLayoutParams();\n if (!layoutParams2.isDecor) {\n ItemInfo infoForChild = infoForChild(childAt2);\n if (infoForChild != null) {\n float f = (float) i18;\n int floor = ((int) Math.floor((double) ((infoForChild.offset * f) + (((float) getClientWidth()) * ((1.0f - this.mAdapter.getPageWidth(i19)) / 2.0f)) + 0.5f))) + i13;\n if (layoutParams2.needsMeasure) {\n layoutParams2.needsMeasure = false;\n childAt2.measure(MeasureSpec.makeMeasureSpec((int) (f * layoutParams2.widthFactor), UCCore.VERIFY_POLICY_QUICK), MeasureSpec.makeMeasureSpec((i9 - i12) - i10, UCCore.VERIFY_POLICY_QUICK));\n }\n childAt2.layout(floor, i12, childAt2.getMeasuredWidth() + floor, childAt2.getMeasuredHeight() + i12);\n }\n }\n }\n i19++;\n i5 = 8;\n }\n this.mTopPageBounds = i12;\n this.mBottomPageBounds = i9 - i10;\n this.mDecorChildCount = i11;\n scrollTo(getRate(), 0);\n if (this.mAdapter != null) {\n pageScrolled(getRate());\n }\n this.mFirstLayout = false;\n }", "interface HandleLayout {\n}", "private final void m110459at() {\n float b = ((float) C23482j.m77098b(mo75261ab())) / ((float) C23486n.m77122a(375.0d));\n if (mo86957ao()) {\n this.f89205aX = (LinearLayout) this.itemView.findViewById(R.id.e_w);\n this.f89206aY = (LinearLayout) this.itemView.findViewById(R.id.e_u);\n this.f89216bj = (DmtTextView) this.itemView.findViewById(R.id.cl);\n this.f89207aZ = (AdRatingView) this.itemView.findViewById(R.id.d5);\n this.f89209ba = this.itemView.findViewById(R.id.ce);\n this.f89210bb = (DmtTextView) this.itemView.findViewById(R.id.b_);\n this.f89217bk = (LinearLayout) this.itemView.findViewById(R.id.ch);\n this.f89218bl = (DescTextView) this.itemView.findViewById(R.id.bo);\n this.f89219bm = (RemoteImageView) this.itemView.findViewById(R.id.c5);\n this.f89211bc = (DmtTextView) this.itemView.findViewById(R.id.aj6);\n this.f89220bn = (DmtTextView) this.itemView.findViewById(R.id.aj_);\n LinearLayout linearLayout = this.f89206aY;\n if (linearLayout != null) {\n LayoutParams layoutParams = linearLayout.getLayoutParams();\n if (layoutParams != null) {\n layoutParams.width = (int) (((float) C23486n.m77122a(183.0d)) * b);\n }\n }\n DmtTextView dmtTextView = this.f89220bn;\n if (dmtTextView != null) {\n LayoutParams layoutParams2 = dmtTextView.getLayoutParams();\n if (layoutParams2 != null) {\n layoutParams2.width = (int) (((float) C23486n.m77122a(86.5d)) * b);\n }\n }\n DmtTextView dmtTextView2 = this.f89211bc;\n if (dmtTextView2 != null) {\n LayoutParams layoutParams3 = dmtTextView2.getLayoutParams();\n if (layoutParams3 != null) {\n layoutParams3.width = (int) (((float) C23486n.m77122a(86.5d)) * b);\n if (layoutParams3 != null) {\n if (layoutParams3 != null) {\n ((MarginLayoutParams) layoutParams3).setMarginStart((int) (((float) C23486n.m77122a(10.0d)) * b));\n } else {\n throw new TypeCastException(\"null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams\");\n }\n }\n }\n }\n } else {\n this.f89205aX = (LinearLayout) this.itemView.findViewById(R.id.aw_);\n this.f89206aY = (LinearLayout) this.itemView.findViewById(R.id.aw8);\n this.f89216bj = (DmtTextView) this.itemView.findViewById(R.id.ck);\n this.f89207aZ = (AdRatingView) this.itemView.findViewById(R.id.d4);\n this.f89209ba = this.itemView.findViewById(R.id.cd);\n this.f89210bb = (DmtTextView) this.itemView.findViewById(R.id.b9);\n this.f89217bk = (LinearLayout) this.itemView.findViewById(R.id.cg);\n this.f89218bl = (DescTextView) this.itemView.findViewById(R.id.bn);\n this.f89219bm = (RemoteImageView) this.itemView.findViewById(R.id.c4);\n this.f89211bc = (DmtTextView) this.itemView.findViewById(R.id.aj5);\n this.f89220bn = (DmtTextView) this.itemView.findViewById(R.id.aj9);\n LinearLayout linearLayout2 = this.f89206aY;\n if (linearLayout2 != null) {\n LayoutParams layoutParams4 = linearLayout2.getLayoutParams();\n if (layoutParams4 != null) {\n layoutParams4.width = (int) (((float) C23486n.m77122a(223.0d)) * b);\n }\n }\n DmtTextView dmtTextView3 = this.f89220bn;\n if (dmtTextView3 != null) {\n LayoutParams layoutParams5 = dmtTextView3.getLayoutParams();\n if (layoutParams5 != null) {\n layoutParams5.width = (int) (((float) C23486n.m77122a(106.5d)) * b);\n }\n }\n DmtTextView dmtTextView4 = this.f89211bc;\n if (dmtTextView4 != null) {\n LayoutParams layoutParams6 = dmtTextView4.getLayoutParams();\n if (layoutParams6 != null) {\n layoutParams6.width = (int) (((float) C23486n.m77122a(106.5d)) * b);\n if (layoutParams6 != null) {\n if (layoutParams6 != null) {\n ((MarginLayoutParams) layoutParams6).setMarginStart((int) (((float) C23486n.m77122a(10.0d)) * b));\n } else {\n throw new TypeCastException(\"null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams\");\n }\n }\n }\n }\n }\n DescTextView descTextView = this.f89218bl;\n if (descTextView != null) {\n descTextView.setDescLightDrawable(R.drawable.z2);\n }\n DescTextView descTextView2 = this.f89218bl;\n if (descTextView2 != null) {\n descTextView2.mo1061a();\n }\n LinearLayout linearLayout3 = this.f89205aX;\n if (linearLayout3 != null) {\n linearLayout3.setOnClickListener(new C34215i(this));\n }\n DmtTextView dmtTextView5 = this.f89216bj;\n if (dmtTextView5 != null) {\n dmtTextView5.setOnClickListener(new C34207c(this));\n }\n LinearLayout linearLayout4 = this.f89217bk;\n if (linearLayout4 != null) {\n linearLayout4.setOnClickListener(new C34208d(this));\n }\n DescTextView descTextView3 = this.f89218bl;\n if (descTextView3 != null) {\n descTextView3.setOnClickListener(new C34209e(this));\n }\n RemoteImageView remoteImageView = this.f89219bm;\n if (remoteImageView != null) {\n remoteImageView.setOnClickListener(new C34210f(this));\n }\n DmtTextView dmtTextView6 = this.f89211bc;\n if (dmtTextView6 != null) {\n dmtTextView6.setOnClickListener(new C34211g(this));\n }\n DmtTextView dmtTextView7 = this.f89220bn;\n if (dmtTextView7 != null) {\n dmtTextView7.setOnClickListener(new C34214h(this));\n }\n C43081e.m136671a((View) this.f89211bc, 0.75f);\n C43081e.m136670a(this.f89220bn);\n C43081e.m136671a((View) this.f89218bl, 0.75f);\n C43081e.m136671a((View) this.f89219bm, 0.75f);\n C43081e.m136671a((View) this.f89217bk, 0.75f);\n C43081e.m136671a((View) this.f89216bj, 0.75f);\n if (C25352e.m83221d(this.f77546j)) {\n DmtTextView dmtTextView8 = this.f89211bc;\n if (dmtTextView8 != null) {\n dmtTextView8.setText(C25384x.m83526a(mo75261ab(), this.f77546j, true));\n }\n float a = (float) C23486n.m77122a(2.0d);\n Context ab = mo75261ab();\n C7573i.m23582a((Object) ab, \"context\");\n Drawable bVar = new C24510b(a, ab.getResources().getColor(R.color.w0));\n if (C25352e.m83199A(this.f77546j)) {\n bVar = C43081e.m136669a(bVar.mutate(), C0683b.m2912c(mo75261ab(), R.color.a5q));\n C7573i.m23582a((Object) bVar, \"AdAnimationUtils.tintDra…or(context, R.color.s14))\");\n }\n DmtTextView dmtTextView9 = this.f89211bc;\n if (dmtTextView9 != null) {\n dmtTextView9.setBackground(bVar);\n }\n }\n if (SymphonyAdManager.m82664a().mo65651b(mo75261ab(), this.f77546j) || SymphonyAdManager.m82664a().mo65654c(mo75261ab(), this.f77546j)) {\n int i = 0;\n if (C25352e.m83221d(this.f77546j)) {\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) awemeRawAd, \"mAweme.awemeRawAd!!\");\n i = awemeRawAd.getNativeCardType();\n }\n switch (i) {\n case 1:\n m110460au();\n return;\n case 2:\n m110461av();\n return;\n default:\n m110460au();\n break;\n }\n }\n }", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n super.onLayout(z, i, i2, i3, i4);\n StickerMasksAlert.this.updateLayout(false);\n }", "public int onCreateViewLayout() {\n return R.layout.gb_fragment_performance_settings;\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n\n int frameWidth = getWidth();\n int frameHeight = getHeight();\n int horizontalPadding = mPreviewHMarging;\n int verticalPadding = mPreviewVMarging;\n// FrameLayout f = mFrame;\n\n // Ignore the vertical paddings, so that we won't draw the frame on the\n // top and bottom sides\n int previewHeight = frameHeight - verticalPadding;\n int previewWidth = frameWidth - horizontalPadding;\n\n // resize frame and preview for aspect ratio\n if (previewHeight > previewWidth * mAspectRatio) {\n previewHeight = (int) (previewWidth * mAspectRatio + .5);\n } else {\n previewWidth = (int) (previewHeight / mAspectRatio + .5);\n }\n // limit the previewWidth large than minimalWidth\n if (previewWidth < mPreviewMinWidth){\n previewWidth = mPreviewMinWidth;\n previewHeight = (int)(previewWidth * mAspectRatio + .5);\n }\n\n frameWidth = previewWidth + mPreviewHMarging;\n frameHeight = previewHeight + mPreviewVMarging;\n\n int hSpace = ((r - l) - frameWidth) / 2;\n int vSpace = ((b - t) - frameHeight);\n\n // calc the tPads\n int tPads = 0;\n\n if (vSpace > 0) {\n // calc the bottom control bar width for special density\n int bottomHeight = 0;\n switch (mMetrics.densityDpi){\n case DisplayMetrics.DENSITY_HIGH:\n bottomHeight = mHdpiBottomHeight;\n break;\n case DisplayMetrics.DENSITY_MEDIUM:\n bottomHeight = mMdpiBottomHeight;\n break;\n case DisplayMetrics.DENSITY_LOW:\n bottomHeight = mMdpiBottomHeight * DisplayMetrics.DENSITY_LOW / DisplayMetrics.DENSITY_MEDIUM;\n break;\n case DisplayMetrics.DENSITY_XHIGH:\n bottomHeight = mHdpiBottomHeight * DisplayMetrics.DENSITY_XHIGH / DisplayMetrics.DENSITY_HIGH;\n break;\n default:\n bottomHeight = mHdpiBottomHeight * mMetrics.densityDpi / DisplayMetrics.DENSITY_HIGH;\n break;\n }\n\n int tmp = vSpace - bottomHeight;\n if (tmp > 0) {\n /*int cameraId = ((CameraActivity)mActivity).mCameraId;\n if (Compatible.instance().mIsIriverMX100 && cameraId == Const.CAMERA_FRONT){\n tPads = vSpace/2;\n }\n else if (!RotationUtil.calcNeedRevert(cameraId)) {\n //large-screen preview align with the up edge of control bar\n tPads = tmp;\n }\n else {*///small-screen preview vertical center the screen\n tPads = vSpace/2;\n //}\n }else {\n tPads = 0;\n }\n }\n if (mIsGifMode) { // GIF mode preview size is specified\n int width = (int) (mMetrics.widthPixels * 0.9);//(int)getResources().getDimension(R.dimen.gif_mode_preview_width);\n /*\n * FIX BUG: 5484\n * FIX COMMENT: some devices the width is larger than height,so these devices's ratio value is width divided height\n * DATE: 2013-12-05\n */\n double ratio = mAspectRatio;\n if(ratio < 1) {\n ratio = 1 / ratio;\n }\n int height = (int) (width * ratio);//(int)getResources().getDimension(R.dimen.gif_mode_preview_height);\n int frontPaddingTop = (int)getResources().getDimension(R.dimen.gif_mode_preview_padding_top);\n int backPaddingLeft = (mMetrics.widthPixels - width)/2;\n int backPaddingTop = frontPaddingTop - (height - width)/2;\n mFrame.measure(\n MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY),\n MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY));\n if (!mGifModeFrontCamera) {\n mFrame.layout(backPaddingLeft, backPaddingTop, width+backPaddingLeft, height+backPaddingTop);\n }else {\n mFrame.layout(0, frontPaddingTop, height, frontPaddingTop+width);\n }\n } else {\n mFrame.measure(\n MeasureSpec.makeMeasureSpec(frameWidth, MeasureSpec.EXACTLY),\n MeasureSpec.makeMeasureSpec(frameHeight, MeasureSpec.EXACTLY));\n mFrame.layout(l + hSpace, t + tPads, r - hSpace, b - vSpace + tPads);\n int[] layoutPars = new int[4];\n layoutPars[0] = l + hSpace;\n layoutPars[1] = t + tPads;\n layoutPars[2] = r - hSpace;\n layoutPars[3] = b - vSpace + tPads;\n setmFrameLayoutParas(layoutPars);\n }\n\n\n /*if (mFocus != null) {\n int size = mFocus.getWidth()/2;\n int x = mFocus.getTouchIndexX();\n int y = mFocus.getTouchIndexY();\n if ((x >= 0)&&( y >= 0)){\n // touchafaec mode\n mFocus.layout(x - size, y - size,x + size,y + size);\n }else{\n mFocus.setPosition(frameWidth/2, frameHeight/2);\n }\n }*/\n\n if (mSizeListener != null) {\n mSizeListener.onSizeChanged();\n }\n\n if (mIsRatioChanged) {/*\n mIsRatioChanged = false;\n if (mActivity instanceof CameraActivity){\n Handler handler = ((CameraActivity)mActivity).getHandler();\n// handler.sendEmptyMessage(Camera.MULTI_PIC_INITIALIZE);\n handler.sendEmptyMessage(Camera.UPDATE_SPLITE_LINE);\n if (Camera.mCurrentCameraMode == Camera.CAMERA_MODE_MAGIC_LENS\n || Camera.mCurrentCameraMode == Camera.CAMERA_MODE_PIP) {\n handler.sendEmptyMessage(Camera.RESTART_PREVIEW);\n }\n *//**\n * FIX BUG: 1348\n * FIX COMMENT: let layout adaptive.\n * DATE: 2012-07-30\n *//*\n Message message = new Message();\n message.what = Camera.UPDATE_REVIEW_EDIT_BAR_SIZE;\n message.arg1 = tPads;\n handler.handleMessage(message);\n }\n */}\n /*\n View view = mActivity.findViewById(R.id.top_menu_root);\n int topviewHeight = (view != null)?view.getHeight():0;\n // initialize the original top bar height\n if ((mInitTopBarHeight == 0) && (topviewHeight > 0)){\n mInitTopBarHeight = topviewHeight;\n }\n\n if (mInitTopBarHeight != 0) {\n // reset the height of top bar view\n\n int nHeight = 0;\n if (tPads > mInitTopBarHeight){\n nHeight = tPads;\n }\n else{\n nHeight = mInitTopBarHeight;\n }\n\n if (mActivity instanceof CameraActivity){\n Handler handler = ((CameraActivity)mActivity).getHandler();\n Message m = handler.obtainMessage(VideoCamera.RELAYOUT_TOP_BAR, nHeight, 0, null);\n handler.sendMessage(m);\n }else{\n ViewGroup.LayoutParams layoutParams = view.getLayoutParams();\n layoutParams.width = LayoutParams.FILL_PARENT;\n layoutParams.height = nHeight;\n view.setLayoutParams(layoutParams);\n }\n }\n */\n }", "@Override\n protected void onLayout(boolean b, int left, int top, int right, int bottom) {\n int childCount = this.getChildCount();\n for(int i = 0; i < childCount; i++) {\n View child = this.getChildAt(i);\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n child.layout(lp.x, lp.y, lp.x + child.getMeasuredWidth(), lp.y + child.getMeasuredHeight());\n }\n\n }", "public String _buildui() throws Exception{\n_screenimg.SetBackgroundImageNew((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),\"hotelappscreen.jpg\").getObject()));\n //BA.debugLineNum = 42;BA.debugLine=\"screenimg.Gravity = Gravity.FILL\";\n_screenimg.setGravity(__c.Gravity.FILL);\n //BA.debugLineNum = 43;BA.debugLine=\"wholescreen.AddView(screenimg,0,10%y,100%x,80%y)\";\n_wholescreen.AddView((android.view.View)(_screenimg.getObject()),(int) (0),__c.PerYToCurrent((float) (10),ba),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (80),ba));\n //BA.debugLineNum = 44;BA.debugLine=\"wholescreen.Color = Colors.ARGB(150,0,0,0)\";\n_wholescreen.setColor(__c.Colors.ARGB((int) (150),(int) (0),(int) (0),(int) (0)));\n //BA.debugLineNum = 47;BA.debugLine=\"infoholder.Color = Colors.ARGB(150,0,0,0)\";\n_infoholder.setColor(__c.Colors.ARGB((int) (150),(int) (0),(int) (0),(int) (0)));\n //BA.debugLineNum = 48;BA.debugLine=\"wholescreen.AddView(infoholder,30%x,100%y,40%x,30\";\n_wholescreen.AddView((android.view.View)(_infoholder.getObject()),__c.PerXToCurrent((float) (30),ba),__c.PerYToCurrent((float) (100),ba),__c.PerXToCurrent((float) (40),ba),__c.PerYToCurrent((float) (30),ba));\n //BA.debugLineNum = 49;BA.debugLine=\"usernamefield.Gravity = Gravity.LEFT\";\n_usernamefield.setGravity(__c.Gravity.LEFT);\n //BA.debugLineNum = 50;BA.debugLine=\"usernamefield.Color = Colors.White\";\n_usernamefield.setColor(__c.Colors.White);\n //BA.debugLineNum = 51;BA.debugLine=\"usernamefield.Hint = \\\"Username\\\"\";\n_usernamefield.setHint(\"Username\");\n //BA.debugLineNum = 53;BA.debugLine=\"usernamefield.Text = \\\"[email protected]\\\"\";\n_usernamefield.setText(BA.ObjectToCharSequence(\"[email protected]\"));\n //BA.debugLineNum = 54;BA.debugLine=\"usernamefield.HintColor = Colors.DarkGray\";\n_usernamefield.setHintColor(__c.Colors.DarkGray);\n //BA.debugLineNum = 55;BA.debugLine=\"usernamefield.SingleLine = True\";\n_usernamefield.setSingleLine(__c.True);\n //BA.debugLineNum = 56;BA.debugLine=\"usernamefield.TextColor = Colors.Black\";\n_usernamefield.setTextColor(__c.Colors.Black);\n //BA.debugLineNum = 57;BA.debugLine=\"infoholder.AddView(usernamefield,2.5%x,2.5%y,35%x\";\n_infoholder.AddView((android.view.View)(_usernamefield.getObject()),__c.PerXToCurrent((float) (2.5),ba),__c.PerYToCurrent((float) (2.5),ba),__c.PerXToCurrent((float) (35),ba),__c.PerYToCurrent((float) (5),ba));\n //BA.debugLineNum = 59;BA.debugLine=\"passwordfield.Gravity = Gravity.LEFT\";\n_passwordfield.setGravity(__c.Gravity.LEFT);\n //BA.debugLineNum = 60;BA.debugLine=\"passwordfield.Color = Colors.White\";\n_passwordfield.setColor(__c.Colors.White);\n //BA.debugLineNum = 61;BA.debugLine=\"passwordfield.Hint = \\\"Password\\\"\";\n_passwordfield.setHint(\"Password\");\n //BA.debugLineNum = 63;BA.debugLine=\"passwordfield.Text = \\\"a936157z\\\"\";\n_passwordfield.setText(BA.ObjectToCharSequence(\"a936157z\"));\n //BA.debugLineNum = 64;BA.debugLine=\"passwordfield.HintColor = Colors.DarkGray\";\n_passwordfield.setHintColor(__c.Colors.DarkGray);\n //BA.debugLineNum = 65;BA.debugLine=\"passwordfield.SingleLine = True\";\n_passwordfield.setSingleLine(__c.True);\n //BA.debugLineNum = 66;BA.debugLine=\"passwordfield.TextColor = Colors.Black\";\n_passwordfield.setTextColor(__c.Colors.Black);\n //BA.debugLineNum = 67;BA.debugLine=\"passwordfield.PasswordMode = True\";\n_passwordfield.setPasswordMode(__c.True);\n //BA.debugLineNum = 68;BA.debugLine=\"infoholder.AddView(passwordfield,2.5%x,(usernamef\";\n_infoholder.AddView((android.view.View)(_passwordfield.getObject()),__c.PerXToCurrent((float) (2.5),ba),(int) ((_usernamefield.getTop()+_usernamefield.getHeight())+__c.DipToCurrent((int) (10))),__c.PerXToCurrent((float) (35),ba),__c.PerYToCurrent((float) (5),ba));\n //BA.debugLineNum = 70;BA.debugLine=\"loginbtn.Gravity = Gravity.CENTER\";\n_loginbtn.setGravity(__c.Gravity.CENTER);\n //BA.debugLineNum = 71;BA.debugLine=\"loginbtn.Color = Colors.White\";\n_loginbtn.setColor(__c.Colors.White);\n //BA.debugLineNum = 72;BA.debugLine=\"loginbtn.Text = \\\"Login\\\"\";\n_loginbtn.setText(BA.ObjectToCharSequence(\"Login\"));\n //BA.debugLineNum = 73;BA.debugLine=\"loginbtn.TextSize = 20\";\n_loginbtn.setTextSize((float) (20));\n //BA.debugLineNum = 74;BA.debugLine=\"loginbtn.Textcolor = Colors.Black\";\n_loginbtn.setTextColor(__c.Colors.Black);\n //BA.debugLineNum = 75;BA.debugLine=\"HelperFunctions1.Apply_ViewStyle(loginbtn,Colors.\";\n_helperfunctions1._apply_viewstyle(ba,(anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(_loginbtn.getObject())),__c.Colors.Black,__c.Colors.RGB((int) (0),(int) (128),(int) (255)),__c.Colors.White,__c.Colors.RGB((int) (77),(int) (166),(int) (255)),__c.Colors.Gray,__c.Colors.Gray,__c.Colors.Gray,(int) (10));\n //BA.debugLineNum = 76;BA.debugLine=\"infoholder.AddView(loginbtn,2.5%x,(passwordfield.\";\n_infoholder.AddView((android.view.View)(_loginbtn.getObject()),__c.PerXToCurrent((float) (2.5),ba),(int) ((_passwordfield.getTop()+_passwordfield.getHeight())+__c.PerYToCurrent((float) (5),ba)),__c.PerXToCurrent((float) (35),ba),__c.PerYToCurrent((float) (5),ba));\n //BA.debugLineNum = 78;BA.debugLine=\"singup.Gravity = Gravity.CENTER\";\n_singup.setGravity(__c.Gravity.CENTER);\n //BA.debugLineNum = 79;BA.debugLine=\"singup.Color = Colors.White\";\n_singup.setColor(__c.Colors.White);\n //BA.debugLineNum = 80;BA.debugLine=\"singup.Text = \\\"Sing up\\\"\";\n_singup.setText(BA.ObjectToCharSequence(\"Sing up\"));\n //BA.debugLineNum = 81;BA.debugLine=\"singup.TextSize = 20\";\n_singup.setTextSize((float) (20));\n //BA.debugLineNum = 82;BA.debugLine=\"singup.Textcolor = Colors.Black\";\n_singup.setTextColor(__c.Colors.Black);\n //BA.debugLineNum = 83;BA.debugLine=\"HelperFunctions1.Apply_ViewStyle(singup,Colors.Bl\";\n_helperfunctions1._apply_viewstyle(ba,(anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(_singup.getObject())),__c.Colors.Black,__c.Colors.RGB((int) (0),(int) (128),(int) (255)),__c.Colors.White,__c.Colors.RGB((int) (77),(int) (166),(int) (255)),__c.Colors.Gray,__c.Colors.Gray,__c.Colors.Gray,(int) (10));\n //BA.debugLineNum = 84;BA.debugLine=\"infoholder.AddView(singup,2.5%x,(loginbtn.Top + l\";\n_infoholder.AddView((android.view.View)(_singup.getObject()),__c.PerXToCurrent((float) (2.5),ba),(int) ((_loginbtn.getTop()+_loginbtn.getHeight())+__c.DipToCurrent((int) (5))),__c.PerXToCurrent((float) (35),ba),__c.PerYToCurrent((float) (5),ba));\n //BA.debugLineNum = 86;BA.debugLine=\"infoholder.SetLayoutAnimated(1000,30%x,30%y,40%x,\";\n_infoholder.SetLayoutAnimated((int) (1000),__c.PerXToCurrent((float) (30),ba),__c.PerYToCurrent((float) (30),ba),__c.PerXToCurrent((float) (40),ba),__c.PerYToCurrent((float) (30),ba));\n //BA.debugLineNum = 87;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@LayoutRes\n protected abstract int getLayoutId();", "public LayoutThread(String layout, int w, int h) { \n this.layout = layout; this.w = w; this.h = h; \n }", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tl = 0;\n\t\tt = 0;\n\t\tr = getWidth();\n\t\tb = getHeight();\n\n\t\tif (header != null) {\n\t\t\theader.layout(l, t, r, header.getMeasuredHeight());\n\t\t\titem.layout(l, header.getMeasuredHeight(), r, b);\n\t\t} else if (divider != null) {\n\t\t\tdivider.setBounds(l, t, r, dividerHeight);\n\t\t\titem.layout(l, dividerHeight, r, b);\n\t\t} else {\n\t\t\titem.layout(l, t, r, b);\n\t\t}\n\t}", "public static String _but_cerrar_mosquito_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 458;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Main\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 459;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "protected abstract int getResLayout();", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n TextView textView;\n super.onLayout(z, i, i2, i3, i4);\n if (!(this.viewType == 1 || this.nameTextView.getLineCount() > 1 || (textView = this.captionTextView) == null)) {\n textView.getVisibility();\n }\n int measuredHeight = this.nameTextView.getMeasuredHeight() - AndroidUtilities.dp(22.0f);\n TextView textView2 = this.captionTextView;\n if (textView2 != null && textView2.getVisibility() == 0) {\n TextView textView3 = this.captionTextView;\n textView3.layout(textView3.getLeft(), this.captionTextView.getTop() + measuredHeight, this.captionTextView.getRight(), this.captionTextView.getBottom() + measuredHeight);\n measuredHeight += this.captionTextView.getMeasuredHeight() + AndroidUtilities.dp(3.0f);\n }\n TextView textView4 = this.dateTextView;\n textView4.layout(textView4.getLeft(), this.dateTextView.getTop() + measuredHeight, this.dateTextView.getRight(), this.dateTextView.getBottom() + measuredHeight);\n RLottieImageView rLottieImageView = this.statusImageView;\n rLottieImageView.layout(rLottieImageView.getLeft(), this.statusImageView.getTop() + measuredHeight, this.statusImageView.getRight(), measuredHeight + this.statusImageView.getBottom());\n LineProgressView lineProgressView = this.progressView;\n lineProgressView.layout(lineProgressView.getLeft(), (getMeasuredHeight() - this.progressView.getMeasuredHeight()) - (this.needDivider ? 1 : 0), this.progressView.getRight(), getMeasuredHeight() - (this.needDivider ? 1 : 0));\n }", "@Override\r\n\tprotected void setLayout() {\n\t\tsetContentView(R.layout.edit_trace_info_activity);\r\n\t}", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n int width = getWidth();\n int i5 = this.f61215h;\n int paddingLeft = getPaddingLeft();\n int paddingRight = width - getPaddingRight();\n int childCount = getChildCount();\n for (int i6 = 0; i6 < childCount; i6++) {\n View childAt = getChildAt(i6);\n C17366a aVar = (C17366a) childAt.getLayoutParams();\n if (childAt.getVisibility() != 8) {\n int i7 = i5 + aVar.topMargin;\n if (aVar.f61235b) {\n i7 = (int) (((float) i7) - this.f61212e);\n }\n int measuredHeight = childAt.getMeasuredHeight() + i7;\n int measuredWidth = childAt.getMeasuredWidth();\n int i8 = (((paddingRight - paddingLeft) - measuredWidth) / 2) + paddingLeft;\n childAt.layout(i8, i7, measuredWidth + i8, measuredHeight);\n i5 = measuredHeight + aVar.bottomMargin;\n }\n }\n }", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n this.aeC.layout(0, 0, i3 - i, i4 - i2);\n if (!hs()) {\n hr();\n }\n }", "public FlowLayout(int paramInt1, int paramInt2, int paramInt3) {\n/* 659 */ this.serialVersionOnStream = 1;\n/* */ this.hgap = paramInt2;\n/* */ this.vgap = paramInt3;\n/* */ setAlignment(paramInt1);\n/* */ }", "protected abstract void iniciarLayout();", "public abstract\n @LayoutRes\n int getLayoutId();", "static public View inflateLayout(int Presid,View PlayoutView) //~1410I~\r\n { //~1410I~\r\n if (Dump.Y) Dump.println(\"AView:inflateLayout2 res=\"+Integer.toHexString(Presid)+\",view=\"+PlayoutView.toString());//~@@@@R~\r\n \tAG.setCurrentView(Presid,PlayoutView); //~1410I~\r\n return PlayoutView; //~1410I~\r\n }", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n if (this.a != null) {\n int measuredWidth = this.a.get(0).getMeasuredWidth();\n int size = this.a.size();\n int i5 = ((i3 - i) - (measuredWidth * size)) / (size + 1);\n int i6 = ((i4 - i2) - measuredWidth) / 2;\n for (View next : this.a) {\n LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) next.getLayoutParams();\n layoutParams.leftMargin = i5;\n layoutParams.topMargin = i6;\n next.setLayoutParams(layoutParams);\n }\n }\n super.onLayout(z, i, i2, i3, i4);\n }", "@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tsuper.onDraw(canvas);\n\t\tLog.e(\"FYF\", getId() + \"TestDrawLinearLayout on draw\");\n\t}", "public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n i3 = ((i3 - i) - AndroidUtilities.m26dp(360.0f)) / 3;\n for (i = 0; i < 4; i++) {\n i2 = AndroidUtilities.m26dp(10.0f) + ((i % 4) * (AndroidUtilities.m26dp(85.0f) + i3));\n View childAt = getChildAt(i);\n childAt.layout(i2, 0, childAt.getMeasuredWidth() + i2, childAt.getMeasuredHeight());\n }\n }", "public final void onLayout(boolean z, int i, int i2, int i3, int i4) {\n super.onLayout(z, i, i2, i3, i4);\n postDelayed(new C38377a(new C38375a(this)), 300);\n }", "public void setViewResource(int layout) {\n/* 114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void onMeasure(int r26, int r27) {\n /*\n r25 = this;\n r0 = r25\n r1 = r26\n r2 = r27\n java.lang.System.currentTimeMillis()\n int r3 = android.view.View.MeasureSpec.getMode(r26)\n int r4 = android.view.View.MeasureSpec.getSize(r26)\n int r5 = android.view.View.MeasureSpec.getMode(r27)\n int r6 = android.view.View.MeasureSpec.getSize(r27)\n int r7 = r25.getPaddingLeft()\n int r8 = r25.getPaddingTop()\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r9 = r0.mLayoutWidget\n r9.c(r7)\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r9 = r0.mLayoutWidget\n r9.d(r8)\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r9 = r0.mLayoutWidget\n int r10 = r0.mMaxWidth\n int[] r9 = r9.u\n r11 = 0\n r9[r11] = r10\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r9 = r0.mLayoutWidget\n int r10 = r0.mMaxHeight\n int[] r9 = r9.u\n r12 = 1\n r9[r12] = r10\n int r9 = android.os.Build.VERSION.SDK_INT\n r10 = 17\n if (r9 < r10) goto L_0x0050\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r9 = r0.mLayoutWidget\n int r10 = r25.getLayoutDirection()\n if (r10 != r12) goto L_0x004d\n r10 = 1\n goto L_0x004e\n L_0x004d:\n r10 = 0\n L_0x004e:\n r9.a = r10\n L_0x0050:\n r25.setSelfDimensionBehaviour(r26, r27)\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r9 = r0.mLayoutWidget\n int r9 = r9.n()\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r10 = r0.mLayoutWidget\n int r10 = r10.o()\n boolean r13 = r0.mDirtyHierarchy\n if (r13 == 0) goto L_0x006a\n r0.mDirtyHierarchy = r11\n r25.updateHierarchy()\n r13 = 1\n goto L_0x006b\n L_0x006a:\n r13 = 0\n L_0x006b:\n int r14 = r0.mOptimizationLevel\n r15 = 8\n r14 = r14 & r15\n if (r14 != r15) goto L_0x0074\n r14 = 1\n goto L_0x0075\n L_0x0074:\n r14 = 0\n L_0x0075:\n if (r14 == 0) goto L_0x008a\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r15 = r0.mLayoutWidget\n r15.D()\n int r12 = r15.aG\n r15.a(r12)\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r12 = r0.mLayoutWidget\n r12.f(r9, r10)\n r25.internalMeasureDimensions(r26, r27)\n goto L_0x008d\n L_0x008a:\n r25.internalMeasureChildren(r26, r27)\n L_0x008d:\n r25.updatePostMeasures()\n int r12 = r25.getChildCount()\n if (r12 <= 0) goto L_0x009d\n if (r13 == 0) goto L_0x009d\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r12 = r0.mLayoutWidget\n android.support.constraint.solver.widgets.Analyzer.a(r12)\n L_0x009d:\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r12 = r0.mLayoutWidget\n boolean r12 = r12.aB\n if (r12 == 0) goto L_0x00e1\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r12 = r0.mLayoutWidget\n boolean r12 = r12.aC\n r13 = -2147483648(0xffffffff80000000, float:-0.0)\n if (r12 == 0) goto L_0x00c3\n if (r3 != r13) goto L_0x00c3\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r12 = r0.mLayoutWidget\n int r12 = r12.aE\n if (r12 >= r4) goto L_0x00bc\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r12 = r0.mLayoutWidget\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r15 = r0.mLayoutWidget\n int r15 = r15.aE\n r12.e(r15)\n L_0x00bc:\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r12 = r0.mLayoutWidget\n android.support.constraint.solver.widgets.ConstraintWidget$DimensionBehaviour r15 = android.support.constraint.solver.widgets.ConstraintWidget.DimensionBehaviour.FIXED\n r12.a(r15)\n L_0x00c3:\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r12 = r0.mLayoutWidget\n boolean r12 = r12.aD\n if (r12 == 0) goto L_0x00e1\n if (r5 != r13) goto L_0x00e1\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r12 = r0.mLayoutWidget\n int r12 = r12.aF\n if (r12 >= r6) goto L_0x00da\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r12 = r0.mLayoutWidget\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r13 = r0.mLayoutWidget\n int r13 = r13.aF\n r12.f(r13)\n L_0x00da:\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r12 = r0.mLayoutWidget\n android.support.constraint.solver.widgets.ConstraintWidget$DimensionBehaviour r13 = android.support.constraint.solver.widgets.ConstraintWidget.DimensionBehaviour.FIXED\n r12.b(r13)\n L_0x00e1:\n int r12 = r0.mOptimizationLevel\n r13 = 32\n r12 = r12 & r13\n r15 = 1073741824(0x40000000, float:2.0)\n if (r12 != r13) goto L_0x013d\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r12 = r0.mLayoutWidget\n int r12 = r12.n()\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r13 = r0.mLayoutWidget\n int r13 = r13.o()\n int r11 = r0.mLastMeasureWidth\n if (r11 == r12) goto L_0x0104\n if (r3 != r15) goto L_0x0104\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r3 = r0.mLayoutWidget\n java.util.List<android.support.constraint.solver.widgets.ConstraintWidgetGroup> r3 = r3.aA\n r11 = 0\n android.support.constraint.solver.widgets.Analyzer.a(r3, r11, r12)\n L_0x0104:\n int r3 = r0.mLastMeasureHeight\n if (r3 == r13) goto L_0x0112\n if (r5 != r15) goto L_0x0112\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r3 = r0.mLayoutWidget\n java.util.List<android.support.constraint.solver.widgets.ConstraintWidgetGroup> r3 = r3.aA\n r5 = 1\n android.support.constraint.solver.widgets.Analyzer.a(r3, r5, r13)\n L_0x0112:\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r3 = r0.mLayoutWidget\n boolean r3 = r3.aC\n if (r3 == 0) goto L_0x0127\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r3 = r0.mLayoutWidget\n int r3 = r3.aE\n if (r3 <= r4) goto L_0x0127\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r3 = r0.mLayoutWidget\n java.util.List<android.support.constraint.solver.widgets.ConstraintWidgetGroup> r3 = r3.aA\n r11 = 0\n android.support.constraint.solver.widgets.Analyzer.a(r3, r11, r4)\n goto L_0x0128\n L_0x0127:\n r11 = 0\n L_0x0128:\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r3 = r0.mLayoutWidget\n boolean r3 = r3.aD\n if (r3 == 0) goto L_0x013d\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r3 = r0.mLayoutWidget\n int r3 = r3.aF\n if (r3 <= r6) goto L_0x013d\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r3 = r0.mLayoutWidget\n java.util.List<android.support.constraint.solver.widgets.ConstraintWidgetGroup> r3 = r3.aA\n r4 = 1\n android.support.constraint.solver.widgets.Analyzer.a(r3, r4, r6)\n goto L_0x013e\n L_0x013d:\n r4 = 1\n L_0x013e:\n int r3 = r25.getChildCount()\n if (r3 <= 0) goto L_0x0149\n java.lang.String r3 = \"First pass\"\n r0.solveLinearSystem(r3)\n L_0x0149:\n java.util.ArrayList<android.support.constraint.solver.widgets.ConstraintWidget> r3 = r0.mVariableDimensionsWidgets\n int r3 = r3.size()\n int r5 = r25.getPaddingBottom()\n int r8 = r8 + r5\n int r5 = r25.getPaddingRight()\n int r7 = r7 + r5\n if (r3 <= 0) goto L_0x0379\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r6 = r0.mLayoutWidget\n android.support.constraint.solver.widgets.ConstraintWidget$DimensionBehaviour r6 = r6.z()\n android.support.constraint.solver.widgets.ConstraintWidget$DimensionBehaviour r12 = android.support.constraint.solver.widgets.ConstraintWidget.DimensionBehaviour.WRAP_CONTENT\n if (r6 != r12) goto L_0x0167\n r6 = 1\n goto L_0x0168\n L_0x0167:\n r6 = 0\n L_0x0168:\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r12 = r0.mLayoutWidget\n android.support.constraint.solver.widgets.ConstraintWidget$DimensionBehaviour r12 = r12.A()\n android.support.constraint.solver.widgets.ConstraintWidget$DimensionBehaviour r13 = android.support.constraint.solver.widgets.ConstraintWidget.DimensionBehaviour.WRAP_CONTENT\n if (r12 != r13) goto L_0x0174\n r12 = 1\n goto L_0x0175\n L_0x0174:\n r12 = 0\n L_0x0175:\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r13 = r0.mLayoutWidget\n int r13 = r13.n()\n int r4 = r0.mMinWidth\n int r4 = java.lang.Math.max(r13, r4)\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r13 = r0.mLayoutWidget\n int r13 = r13.o()\n int r11 = r0.mMinHeight\n int r11 = java.lang.Math.max(r13, r11)\n r13 = r4\n r5 = r11\n r4 = 0\n r11 = 0\n r18 = 0\n L_0x0193:\n r16 = 1\n if (r4 >= r3) goto L_0x02d6\n java.util.ArrayList<android.support.constraint.solver.widgets.ConstraintWidget> r15 = r0.mVariableDimensionsWidgets\n java.lang.Object r15 = r15.get(r4)\n android.support.constraint.solver.widgets.ConstraintWidget r15 = (android.support.constraint.solver.widgets.ConstraintWidget) r15\n r19 = r3\n java.lang.Object r3 = r15.aa\n android.view.View r3 = (android.view.View) r3\n if (r3 == 0) goto L_0x02b8\n android.view.ViewGroup$LayoutParams r20 = r3.getLayoutParams()\n r21 = r10\n r10 = r20\n android.support.constraint.ConstraintLayout$LayoutParams r10 = (android.support.constraint.ConstraintLayout.LayoutParams) r10\n r22 = r9\n boolean r9 = r10.Z\n if (r9 != 0) goto L_0x02b5\n boolean r9 = r10.Y\n if (r9 != 0) goto L_0x02b5\n int r9 = r3.getVisibility()\n r23 = r11\n r11 = 8\n if (r9 == r11) goto L_0x02b2\n if (r14 == 0) goto L_0x01db\n android.support.constraint.solver.widgets.ResolutionDimension r9 = r15.j()\n boolean r9 = r9.e()\n if (r9 == 0) goto L_0x01db\n android.support.constraint.solver.widgets.ResolutionDimension r9 = r15.k()\n boolean r9 = r9.e()\n if (r9 != 0) goto L_0x02b2\n L_0x01db:\n int r9 = r10.width\n r11 = -2\n if (r9 != r11) goto L_0x01eb\n boolean r9 = r10.V\n if (r9 == 0) goto L_0x01eb\n int r9 = r10.width\n int r9 = getChildMeasureSpec(r1, r7, r9)\n goto L_0x01f5\n L_0x01eb:\n int r9 = r15.n()\n r11 = 1073741824(0x40000000, float:2.0)\n int r9 = android.view.View.MeasureSpec.makeMeasureSpec(r9, r11)\n L_0x01f5:\n int r11 = r10.height\n r1 = -2\n if (r11 != r1) goto L_0x0205\n boolean r1 = r10.W\n if (r1 == 0) goto L_0x0205\n int r1 = r10.height\n int r1 = getChildMeasureSpec(r2, r8, r1)\n goto L_0x020f\n L_0x0205:\n int r1 = r15.o()\n r11 = 1073741824(0x40000000, float:2.0)\n int r1 = android.view.View.MeasureSpec.makeMeasureSpec(r1, r11)\n L_0x020f:\n r3.measure(r9, r1)\n android.support.constraint.solver.Metrics r1 = r0.mMetrics\n if (r1 == 0) goto L_0x0221\n android.support.constraint.solver.Metrics r1 = r0.mMetrics\n r24 = r8\n long r8 = r1.b\n long r8 = r8 + r16\n r1.b = r8\n goto L_0x0223\n L_0x0221:\n r24 = r8\n L_0x0223:\n int r1 = r3.getMeasuredWidth()\n int r8 = r3.getMeasuredHeight()\n int r9 = r15.n()\n if (r1 == r9) goto L_0x025b\n r15.e(r1)\n if (r14 == 0) goto L_0x023d\n android.support.constraint.solver.widgets.ResolutionDimension r9 = r15.j()\n r9.a(r1)\n L_0x023d:\n if (r6 == 0) goto L_0x0259\n int r1 = r15.t()\n if (r1 <= r13) goto L_0x0259\n int r1 = r15.t()\n android.support.constraint.solver.widgets.ConstraintAnchor$Type r9 = android.support.constraint.solver.widgets.ConstraintAnchor.Type.RIGHT\n android.support.constraint.solver.widgets.ConstraintAnchor r9 = r15.a(r9)\n int r9 = r9.b()\n int r1 = r1 + r9\n int r1 = java.lang.Math.max(r13, r1)\n r13 = r1\n L_0x0259:\n r23 = 1\n L_0x025b:\n int r1 = r15.o()\n if (r8 == r1) goto L_0x028b\n r15.f(r8)\n if (r14 == 0) goto L_0x026d\n android.support.constraint.solver.widgets.ResolutionDimension r1 = r15.k()\n r1.a(r8)\n L_0x026d:\n if (r12 == 0) goto L_0x0289\n int r1 = r15.u()\n if (r1 <= r5) goto L_0x0289\n int r1 = r15.u()\n android.support.constraint.solver.widgets.ConstraintAnchor$Type r8 = android.support.constraint.solver.widgets.ConstraintAnchor.Type.BOTTOM\n android.support.constraint.solver.widgets.ConstraintAnchor r8 = r15.a(r8)\n int r8 = r8.b()\n int r1 = r1 + r8\n int r1 = java.lang.Math.max(r5, r1)\n r5 = r1\n L_0x0289:\n r23 = 1\n L_0x028b:\n boolean r1 = r10.X\n if (r1 == 0) goto L_0x029e\n int r1 = r3.getBaseline()\n r8 = -1\n if (r1 == r8) goto L_0x029e\n int r8 = r15.S\n if (r1 == r8) goto L_0x029e\n r15.S = r1\n r23 = 1\n L_0x029e:\n int r1 = android.os.Build.VERSION.SDK_INT\n r8 = 11\n if (r1 < r8) goto L_0x02af\n int r1 = r3.getMeasuredState()\n r3 = r18\n int r18 = combineMeasuredStates(r3, r1)\n goto L_0x02c4\n L_0x02af:\n r3 = r18\n goto L_0x02c4\n L_0x02b2:\n r24 = r8\n goto L_0x02c0\n L_0x02b5:\n r24 = r8\n goto L_0x02be\n L_0x02b8:\n r24 = r8\n r22 = r9\n r21 = r10\n L_0x02be:\n r23 = r11\n L_0x02c0:\n r3 = r18\n r18 = r3\n L_0x02c4:\n r11 = r23\n int r4 = r4 + 1\n r3 = r19\n r10 = r21\n r9 = r22\n r8 = r24\n r1 = r26\n r15 = 1073741824(0x40000000, float:2.0)\n goto L_0x0193\n L_0x02d6:\n r19 = r3\n r24 = r8\n r22 = r9\n r21 = r10\n r23 = r11\n r3 = r18\n if (r23 == 0) goto L_0x0323\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r1 = r0.mLayoutWidget\n r4 = r22\n r1.e(r4)\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r1 = r0.mLayoutWidget\n r4 = r21\n r1.f(r4)\n if (r14 == 0) goto L_0x02f9\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r1 = r0.mLayoutWidget\n r1.C()\n L_0x02f9:\n java.lang.String r1 = \"2nd pass\"\n r0.solveLinearSystem(r1)\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r1 = r0.mLayoutWidget\n int r1 = r1.n()\n if (r1 >= r13) goto L_0x030d\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r1 = r0.mLayoutWidget\n r1.e(r13)\n r12 = 1\n goto L_0x030e\n L_0x030d:\n r12 = 0\n L_0x030e:\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r1 = r0.mLayoutWidget\n int r1 = r1.o()\n if (r1 >= r5) goto L_0x031c\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r1 = r0.mLayoutWidget\n r1.f(r5)\n r12 = 1\n L_0x031c:\n if (r12 == 0) goto L_0x0323\n java.lang.String r1 = \"3rd pass\"\n r0.solveLinearSystem(r1)\n L_0x0323:\n r1 = r19\n r4 = 0\n L_0x0326:\n if (r4 >= r1) goto L_0x037c\n java.util.ArrayList<android.support.constraint.solver.widgets.ConstraintWidget> r5 = r0.mVariableDimensionsWidgets\n java.lang.Object r5 = r5.get(r4)\n android.support.constraint.solver.widgets.ConstraintWidget r5 = (android.support.constraint.solver.widgets.ConstraintWidget) r5\n java.lang.Object r6 = r5.aa\n android.view.View r6 = (android.view.View) r6\n if (r6 == 0) goto L_0x0372\n int r8 = r6.getMeasuredWidth()\n int r9 = r5.n()\n if (r8 != r9) goto L_0x034a\n int r8 = r6.getMeasuredHeight()\n int r9 = r5.o()\n if (r8 == r9) goto L_0x0372\n L_0x034a:\n int r8 = r5.ac\n r9 = 8\n if (r8 == r9) goto L_0x0374\n int r8 = r5.n()\n r10 = 1073741824(0x40000000, float:2.0)\n int r8 = android.view.View.MeasureSpec.makeMeasureSpec(r8, r10)\n int r5 = r5.o()\n int r5 = android.view.View.MeasureSpec.makeMeasureSpec(r5, r10)\n r6.measure(r8, r5)\n android.support.constraint.solver.Metrics r5 = r0.mMetrics\n if (r5 == 0) goto L_0x0376\n android.support.constraint.solver.Metrics r5 = r0.mMetrics\n long r11 = r5.b\n long r11 = r11 + r16\n r5.b = r11\n goto L_0x0376\n L_0x0372:\n r9 = 8\n L_0x0374:\n r10 = 1073741824(0x40000000, float:2.0)\n L_0x0376:\n int r4 = r4 + 1\n goto L_0x0326\n L_0x0379:\n r24 = r8\n r3 = 0\n L_0x037c:\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r1 = r0.mLayoutWidget\n int r1 = r1.n()\n int r1 = r1 + r7\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r4 = r0.mLayoutWidget\n int r4 = r4.o()\n int r4 = r4 + r24\n int r5 = android.os.Build.VERSION.SDK_INT\n r6 = 11\n if (r5 < r6) goto L_0x03c6\n r5 = r26\n int r1 = resolveSizeAndState(r1, r5, r3)\n int r3 = r3 << 16\n int r2 = resolveSizeAndState(r4, r2, r3)\n r3 = 16777215(0xffffff, float:2.3509886E-38)\n r1 = r1 & r3\n r2 = r2 & r3\n int r3 = r0.mMaxWidth\n int r1 = java.lang.Math.min(r3, r1)\n int r3 = r0.mMaxHeight\n int r2 = java.lang.Math.min(r3, r2)\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r3 = r0.mLayoutWidget\n boolean r3 = r3.aI\n r4 = 16777216(0x1000000, float:2.3509887E-38)\n if (r3 == 0) goto L_0x03b7\n r1 = r1 | r4\n L_0x03b7:\n android.support.constraint.solver.widgets.ConstraintWidgetContainer r3 = r0.mLayoutWidget\n boolean r3 = r3.aJ\n if (r3 == 0) goto L_0x03be\n r2 = r2 | r4\n L_0x03be:\n r0.setMeasuredDimension(r1, r2)\n r0.mLastMeasureWidth = r1\n r0.mLastMeasureHeight = r2\n return\n L_0x03c6:\n r0.setMeasuredDimension(r1, r4)\n r0.mLastMeasureWidth = r1\n r0.mLastMeasureHeight = r4\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.ConstraintLayout.onMeasure(int, int):void\");\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}", "public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n setContentView(C0354R.layout.layout_edit_main);\n loadLayoutFromPref();\n this.mImageView = (LayoutView) findViewById(C0354R.C0356id.layoutview);\n this.mLayoutAdapter = new LayoutAdapter(this, (LayoutItem) this.mLayoutItems.get(this.mCurrentLayout), this.mImageView);\n switchLayout(0);\n setupActionBarDropdown(getIntent().getIntExtra(KEY_INITIAL_LAYOUT, 0));\n registerForContextMenu(this.mImageView);\n this.mImageView.setOnCreateContextMenuListener(new ContextMenuListener(this));\n this.mImageView.setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n SingleView viewFromLastPosition = LayoutEditorActivity.this.mImageView.getViewFromLastPosition();\n if (viewFromLastPosition != null) {\n LayoutEditorActivity.this.addOrEditView(viewFromLastPosition);\n }\n }\n });\n ((Button) findViewById(C0354R.C0356id.btncancel)).setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n LayoutEditorActivity.this.finish();\n }\n });\n ((Button) findViewById(C0354R.C0356id.btnsave)).setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n LayoutEditorActivity.this.saveLayoutToPref();\n Intent intent = new Intent();\n intent.setClass(LayoutEditorActivity.this, MainActivity.class);\n intent.setAction(Constants.ACTION_EDIT_LAYOUT);\n LayoutEditorActivity.this.startActivity(intent);\n LayoutEditorActivity.this.finish();\n }\n });\n GAHelper.recordScreen(this, TAG);\n }", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tsuper.onLayout(changed, l, t, r, b);\n\t\tif(changed){\n\t\t\tthis.scrollTo(0, 0);\n\t\t}\n\t}", "@Override\n protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n super.onLayout(changed, left, top, right, bottom);\n\n horizon = (getHeight() - 100) / density;\n\n // set city coordinates\n float loc[] = new float[3];\n loc[0] = getWidth() / (density * 4);\n loc[1] = getWidth() / (density * 2);\n loc[2] = (getWidth() * 3) / (density * 4);\n\n for (int i = 0; i < cityCount; ++i) {\n cityLocations[i] = new PointF(loc[i], horizon);\n }\n }" ]
[ "0.731758", "0.71280205", "0.6978295", "0.67996913", "0.6778277", "0.67513347", "0.6651915", "0.661463", "0.6549832", "0.6514518", "0.65017754", "0.6489977", "0.64305377", "0.6335413", "0.63230556", "0.6299407", "0.6255943", "0.62048966", "0.61936915", "0.6171821", "0.61667424", "0.61658555", "0.6161777", "0.61341655", "0.6099789", "0.60918236", "0.6065716", "0.6054798", "0.60178936", "0.60178316", "0.6004968", "0.5997412", "0.597671", "0.5952183", "0.59212244", "0.5914478", "0.5910602", "0.590353", "0.5894418", "0.5894303", "0.5852924", "0.5852067", "0.5840276", "0.5840276", "0.5840276", "0.5819657", "0.5818548", "0.58152014", "0.5812267", "0.5808138", "0.57799494", "0.57733524", "0.5772004", "0.5769995", "0.5767638", "0.57661337", "0.5753657", "0.57495904", "0.5731777", "0.5707624", "0.5702334", "0.5692283", "0.56916666", "0.5685519", "0.568025", "0.5679017", "0.5658742", "0.5658112", "0.5651335", "0.564503", "0.56304795", "0.56267005", "0.5616818", "0.5613697", "0.5613101", "0.55969137", "0.55920804", "0.5578406", "0.55780536", "0.55723596", "0.5570144", "0.5568349", "0.55466384", "0.55200696", "0.5514898", "0.5501044", "0.54953545", "0.54810077", "0.547366", "0.54729754", "0.5462388", "0.54519254", "0.54464096", "0.5446097", "0.5445227", "0.543804", "0.543134", "0.542971", "0.5417447", "0.541718" ]
0.65946877
8
An interface for an injector to implement Inversion of Control (IoC)
public interface IApplicationInjector { public Runnable getServerListener(int port, int poolSize) throws ApplicationException; public Runnable getWorker(Socket socket) throws ApplicationException; public IFileUtil getFileUtil() throws ApplicationException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface Injector {\n void inject(InternalContext context, Object o);\n }", "private void inject() {\n }", "public interface InjectorWrapper {\n\tApplicationInjector getInjector();\n}", "public interface PlatformInjector {\n /**\n * Injects the server connection. This will allow various addons (like getting the Floodgate\n * data and debug mode) to work.\n *\n * @throws Exception if the platform couldn't be injected\n */\n void inject() throws Exception;\n\n /**\n * Some platforms may not be able to remove their injection process. If so, this method will\n * return false.\n *\n * @return true if it is safe to attempt to remove our injection performed in {@link #inject()}.\n */\n default boolean canRemoveInjection() {\n return true;\n }\n\n /**\n * Removes the injection from the server. Please note that this function should only be used\n * internally (on plugin shutdown). This method will also remove every added addon.\n *\n * @throws Exception if the platform injection could not be removed\n */\n void removeInjection() throws Exception;\n\n /**\n * If the server connection is currently injected.\n *\n * @return true if the server connection is currently injected, returns false otherwise\n */\n boolean isInjected();\n\n /**\n * Adds an addon to the addon list of the Floodgate Injector (the addon is called when Floodgate\n * injects a channel). See {@link InjectorAddon} for more info.\n *\n * @param addon the addon to add to the addon list\n * @return true if the addon has been added, false if the addon is already present\n */\n boolean addAddon(InjectorAddon addon);\n\n /**\n * Removes an addon from the addon list of the Floodgate Injector (the addon is called when\n * Floodgate injects a channel). See {@link InjectorAddon} for more info.\n *\n * @param addon the class of the addon to remove from the addon list\n * @param <T> the addon type\n * @return the removed addon instance\n */\n <T extends InjectorAddon> T removeAddon(Class<T> addon);\n}", "public interface AbstractInjector<T> {\n /**\n * 注射代码\n *\n * @param finder\n * @param target\n * @param source\n */\n void inject(Finder finder, T target, Object source);\n\n /**\n * 设置间隔时间\n *\n * @param time\n */\n void setIntervalTime(long time);\n}", "private final void inject() {\n }", "public interface DataInjector {\n\n DataInjector injectId(UUID id);\n DataInjector injectType(String type);\n DataInjector injectContextEntry(String name, Object value);\n\n}", "public interface MessageServiceInjector {\n public Consumer getConsumer() ;\n}", "public interface HelloService extends IProvider{\n void sayHello(String name);\n}", "public interface Provider{\n Service newService();\n}", "public interface Provider {\n Service newService();\n}", "public interface Provider {\n Service newService();\n}", "public interface Provider {\n Service newService();\n }", "@Singleton\n@Component(modules = {NetModule.class})\npublic interface NetComponent {\n void inject(OrderListActivityPresenter presenter);\n\n void inject(MapActivityPresenter presenter);\n\n void inject(LoginActivityPresenter presenter);\n}", "protected Injector() {\n }", "@Singleton\n@Component(modules = { AppModule.class, NetModule.class })\npublic interface NetComponent {\n void inject(MainHandler handler);\n}", "private Injector() {\n }", "@GinModules(InjectorModule.class)\npublic interface Injector extends Ginjector {\n PlaceHistoryHandler getPlaceHistoryHandler();\n MainView getAppWidget();\n}", "@Component(dependencies = ApplicationComponent.class)\npublic interface HttpComponent {\n\n void inject(VideoFragment videoFragment);\n\n void inject(DetailFragment detailFragment);\n\n void inject(JdDetailFragment jdDetailFragment);\n\n void inject(ImageBrowseActivity imageBrowseActivity);\n\n void inject( com.lunioussky.orirea.ui.news.DetailFragment detailFragment);\n\n void inject(ArticleReadActivity articleReadActivity);\n\n void inject(NewsFragment newsFragment);\n\n}", "void inject(MyMoneyApplication myMoneyApplication);", "@Component(modules = CarModule.class)\npublic interface ManComponent {\n void injectMan(Man man);\n}", "@Singleton\n@Component(modules = {\n ApplicationModule.class,\n NetworkModule.class,\n StorageModule.class\n})\npublic interface ApplicationComponent {\n ActivityComponent plus(ActivityModule module);\n\n void inject(MyServiceInterceptor myServiceInterceptor);\n\n}", "@Singleton\n@Component(modules = {ApiModule.class, CarWashCardModule.class})\npublic interface CarWashCardComponent {\n void Inject(CarWashCardFrgm carWashCardFrgm);\n void Inject(CardBagAct cardBagAct);\n}", "public interface MineService {\n}", "@Singleton\n@Component(modules = UserModule.class, dependencies = FlowerComponent.class)\npublic interface UserComponent {\n User getUser();\n}", "@Singleton\n@Component(modules = {ContextModule.class, BusModule.class, GithubModule.class, GankModule.class, ZhiHuModule.class, RssModule.class})\npublic interface AppComponent {\n Context getContext();\n GankService getGankService();\n ZhiHuService getZhiHuService();\n RssService getRssService();\n EventBus getBus();\n}", "@Component(modules = CupModule.class)\npublic interface CupCompoment {\n\n void injectCup(Cup cup);\n}", "@Singleton\n@Component (modules = {\n PagoPaAPIModule.class,\n NetModule.class,\n LogModule.class\n})\npublic interface PagoPaAPIComponent {\n PagoPaAPI getPagoPaAPI();\n}", "Builder injectionFactory(InjectionObjectFactory factory);", "@GinModules(MyAppGinModule.class)\npublic interface MyAppGinjector extends Ginjector {\n\n String ANNOTATED_STRING_VALUE = \"abc\";\n\n MyApp getMyApp();\n\n SimpleObject getSimple();\n\n MyService getMyService();\n\n MyServiceImpl getMyServiceImpl();\n\n MyProvided getMyProvided();\n\n @Named(\"blue\") SimpleObject getSimpleBlue();\n @Named(\"red\") SimpleObject getSimpleRed();\n\n EagerObject getEagerObject();\n\n // Providers we never bound explicitly -- they should be synthesized\n // since we bound the keys directly\n Provider<SimpleObject> getSimpleProvider();\n @Named(\"blue\") Provider<SimpleObject> getSimpleBlueProvider();\n\n @MyBindingAnnotation String getAnnotatedString();\n\n MyRemoteServiceAsync getMyRemoteServiceAsync();\n}", "@UserScope\n@ActivityScope\n@Component(dependencies = NetComponent.class, modules = AuthModule.class)\npublic interface AuthComponent {\n\n void inject(InputInviteCodeActivity activity);\n\n void inject(LoginActivity activity);\n\n void inject(RegisterStep3Activity activity);\n\n void inject(RegisterStep2Activity activity);\n\n void inject(RegisterStep1Activity activity);\n\n void inject(ResetPasswordActivity activity);\n\n AuthPresenter presenter();\n}", "@SuppressWarnings(\"unused\")\n@Singleton\n@Component(modules = {ApplicationModule.class})\npublic interface ApplicationComponent {\n void inject(DIApplication application);\n\n void inject(BaseActivity activity);\n void inject(BaseFragment fragment);\n\n void inject(DogSyncService service);\n}", "void inject(TravelsProvider provider);", "private InjectorManager() {\n // no prepared injectors\n }", "@Singleton\n@Component(\n modules = {\n AppModule.class,\n ObjectBoxModule.class\n })\npublic interface AppComponent {\n void inject(ToDoListActivity activity);\n void inject(TaskEditorActivity activity);\n //void inject(ICommonRepository repository);\n //ICommonRepository repo();\n}", "@Singleton\n@Component(modules = {NetworkModule.class,})\npublic interface CarsComponent {\n void inject(CarsActivity carsActivity);\n\n}", "@Component(\n modules = {\n ComputerModule.class,\n AccessoriesModule.class,\n DrinksModule.class\n }\n)\npublic interface DemoComponent {\n\n Programmer programmer();\n void inject(MainActivity activity);\n\n}", "@Singleton\n@Component(modules = {ImagesModule.class, LibsModule.class})\npublic interface ImagesComponent {\n void inject(ImagesFragment fragment);\n //ImagesPresenter getPresenter();\n}", "public interface ComponentInjector {\n\n public void inject(Object object);\n\n public void inject(Class c, JComponent component, String fieldName);\n\n}", "@Singleton @Component(modules = {ApplicationModule.class, ApiModule.class})\npublic interface ApplicationComponent {\n Context getContext();\n Bus getBus();\n TRApi getTRApi();\n\n void inject(ZhihuApplication zhihuApplication);\n\n void inject(BaseNewActivity baseNewActivity);\n}", "@Singleton\n@Component(modules = {ModelModule.class, PresenterModule.class})\npublic interface AppComponent {\n void inject(ModelImpl dataRepository);\n\n void inject(BasePresenter basePresenter);\n\n void inject(PresenterSearch presenterSearch);\n\n void inject(FavouriteActivity favouriteActivity);\n}", "@PresenterScope\n@Component(modules = ApiServiceModule.class)\npublic interface PresenterComponent {\n\n BasePresenter inject(BasePresenter presenter);\n\n OkHttpClient getOkhttpClient();\n\n Retrofit getRetrofit();\n\n}", "@Singleton\n@Component(modules = {ApplicationModule.class})\npublic interface ApplicationComponent {\n\n void inject(GoToDream goToDream);\n\n @Named(\"application\")\n Context getContext();\n}", "@Singleton\n @Component(modules = { DripCoffeeModule.class })\n public interface Coffee {\n CoffeeMaker maker();\n }", "@Singleton\n@Component(modules = {AppModule.class})\npublic interface AppComponent {\n\n void inject(SearchUserPresenter presenter);\n\n void inject(UserDetailsPresenter presenter);\n\n}", "public interface Provider {\n //Connection connect(String url, java.util.Properties info)\n Service newService();\n}", "public interface Injector\r\n{\r\n\t/**\r\n\t * @return true of the address is intended for us, ie, it is for\r\n\t * a known mailing list or it is a VERP bounce.\r\n\t * \r\n\t * @throws a RuntimeException if the address was invalid\r\n\t */\r\n\tpublic boolean accept(String toAddress);\r\n\r\n\t/**\r\n\t * Processes of a piece of raw mail in rfc822 format.\r\n\t * \r\n\t * Mail can be anything - a message to a mailing list, a bounce\r\n\t * message, or something else. It will be processed accordingly.\r\n\t *\r\n\t * If the message is a duplicate, a new messageId will be assigned \r\n\t * and the message will be saved. If you want to change this behaviour,\r\n\t * use the version that takes an ignoredDuplicates flag.\r\n\t * \r\n\t * @param fromAddress is the rfc822-compliant envelope sender.\r\n\t * @param toAddress is the rfc822-compliant envelope recipient.\r\n\t * @param mailData is the rfc822-compliant message.\r\n\t *\r\n\t * @return true if the message was handled, false if message is not for us\r\n\t * \r\n\t * @throws LimitExceededException if the input data was too large\r\n\t * @throws a RuntimeException if there is a problem with the input data\r\n\t */\r\n\tpublic boolean inject(String fromAddress, String toAddress, InputStream mailData) throws LimitExceededException;\r\n\r\n\t/**\r\n\t * Convenience method for remote clients. Most inputStream implementations\r\n\t * are not serializable.\r\n\t */\r\n\tpublic boolean inject(String fromAddress, String toAddress, byte[] mailData) throws LimitExceededException;\r\n\t\r\n\t/**\r\n\t * Imports of a piece of raw mail in rfc822 format into the archives\r\n\t * of a particular list.\r\n\t * \r\n\t * @param ignoreDuplicate if true will skip messages whose message-id already exists\r\n\t * @param fallbackDate is the date to use only if a date cannot be extracted from the message headers\r\n\t * \r\n\t * @return the sent date of the message, if one could be identified \r\n\t *\r\n\t * @throws NotFoundException if the list id is not a valid list\r\n\t */\r\n\tpublic Date importMessage(Long listId, String envelopeSender, InputStream mailData, boolean ignoreDuplicate, Date fallbackDate) throws NotFoundException;\r\n}", "public interface HttpComponent {\n void inject(MainActivity mainActivity);\n}", "void inject(BaseApplication application);", "public interface BasePresenter {\n void init();\n}", "public interface MainProvider extends IProvider {\n void providerMain(Context context);\n}", "public interface ServerComponent extends Service {\r\n\r\n\t/**\r\n\t * Set a configuration for this component\r\n\t * \r\n\t * @param conf\r\n\t */\r\n\tpublic void injectConfiguration(ComponentConfiguration conf);\r\n\r\n\t/**\r\n\t * Set a server context for this component\r\n\t * \r\n\t * @param context\r\n\t */\r\n\tpublic void injectContext(ComponentContext context);\r\n\r\n\t/**\r\n\t * Retrive the current configuration for this component\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic ComponentConfiguration getConfiguration();\r\n}", "@Singleton\n@Component(modules = {ApplicationModule.class})\npublic interface ApplicationComponent {\n void inject(PlayerFragmentPresenter playerFragmentPresenter);\n void inject(PlayerService playerService);\n}", "public abstract void injectComponent();", "void inject() throws Exception;", "public interface BasePresenter {\n\n void start();\n\n void unregister();\n}", "@ApplicationScope\n@Component(modules = {ContextModule.class,ServiceModule.class}) // tell which modules to use in order to generate this instance\npublic interface ApplicationComponent {\n\n\n\n SharedPreferencesClass getSharedPrefs();\n\n RequestManager getGlide();\n\n void injectRepo(ProjectRepository repository);\n\n}", "@Singleton\n@Component(modules = ImeiMainModule.class)\npublic interface ImeiMainComponent {\n void inject(ImeiAplication app);\n\n //Exposed to sub-graphs.\n ImeiAplication app();\n}", "@Singleton\n@Component(modules = {UseCaseModule.class, RepositoryModule.class})\npublic interface IRepositoryComponent {\n}", "@Singleton\n@Component(modules = {ServiceAPIModule.class})\npublic interface ServiceModelComponent {\n void inject(AccountModel model);\n void inject(DataModel model);\n void inject(ImageModel model);\n void inject(ManagerModel model);\n void inject(StethoOkHttpGlideModule module);\n}", "public interface HotelInfoService extends IProvider {\n HotelInfo getInfo();\n}", "@Singleton\n@Component(modules = {\n ApplicationModule.class,\n PreferenceModule.class,\n NetworkModule.class,\n ServiceModule.class\n})\npublic interface DiComponent {\n void inject(MainActivity activity);\n}", "@UserScope\r\n@Component(modules = PersonalModule.class,dependencies = NetComponent.class)\r\npublic interface PersonalComponent {\r\n void Inject(PersenalFragment persenalFragment);\r\n}", "@Singleton\r\n@Component(modules = {UIModule.class, InteractorModule.class, MockModelModule.class, MockNetworkModule.class})\r\npublic interface MockAnimalFindApplicationComponent extends AnimalFindApplicationComponent {\r\n}", "@Singleton\n@Component(\n modules = {\n AppModule.class,\n DataModule.class,\n InfoModule.class,\n FlavorModule.class\n }\n)\npublic interface AppComponent {\n\n void inject(HardwiredApp app);\n void inject(AddComputerDialog dialog);\n void inject(ComputerRecyclerAdapter adapter);\n\n DirectoryComponent plus(DirectoryModule module);\n DetailComponent plus(DetailModule module);\n}", "@Singleton\n@Component(modules = {AppModule.class, NetworkModule.class,PresenterModule.class})\npublic interface AppComponent {\n\n // void inject(DisplayMovieActivity displayMovieActivity );\n\n //register main activity it will need objects for injection\n void inject(MoviesListFragment moviesListFragment);\n\n //register MainPresenter it will need objects for injection\n void inject(MoviesListPresenter moviesListPresenter);\n\n void inject(MoviesDetailsFragment moviesDetailsFragment);\n void inject(MoviesDetailsPresenter moviesDetailsPresenter);\n\n\n}", "public interface ConfigurationProvider extends ContainerProvider, PackageProvider {\n}", "public interface IPresenter {\n\n /**\n * 做一些初始化操作\n */\n void onStart();\n\n /**\n * 在框架中会默认调用\n */\n void onDestroy();\n\n}", "@Inject\n\tpublic OfyFactory(Injector injector) {\n\t\tthis.injector = injector;\n\n\t\tlong time = System.currentTimeMillis();\n\n\t\tthis.register(Customer.class);\n\t\tthis.register(EmailLookup.class);\n\t\tthis.register(SavingsAccount.class);\n\t\tthis.register(Transaction.class);\n\n\t\tlong millis = System.currentTimeMillis() - time;\n\t\tlog.info(\"Registration took \" + millis + \" millis\");\n\t}", "void inject(PresenterLayer presenterLayer);", "public interface IUserService {\n}", "@Component(modules = WheelsModule.class)\npublic interface CarComponent {\n Car getCar();\n void inject(MainActivity activity); //se necesita declarar especificamente la activity para la forma 2\n}", "@Singleton\n@Component(modules = ObscuredModule.class)\npublic interface ObscuredComponent {\n}", "@Singleton\n@Component(modules = {ViewModule.class, NetworkModule.class, MapModule.class})\npublic interface ErrandComponent {\n void inject(MapsActivity mapsActivity);\n\n}", "@Singleton\n@Component(modules = {PracticeModule.class})\npublic interface ApplicationComponent {\n\n /**\n * Inject method for the SplashActivity instance.\n *\n * @param activity is the type SplashActivity\n */\n void inject(SplashActivity activity);\n\n /**\n * Inject method for the HomeActivity instance.\n *\n * @param activity is the type HomeActivity\n */\n void inject(HomeActivity activity);\n\n /**\n * Inject method for the SubscriberListFragment\n *\n * @param fragment is the type SubscriberListFragment\n */\n void inject(SubscriberListFragment fragment);\n\n /**\n * Inject method for the SubscriberDetailsFragment\n *\n * @param fragment is the type SubscriberDetailsFragment\n */\n void inject(SubscriberDetailsFragment fragment);\n\n /**\n * Inject method for the WebClientFragment\n *\n * @param fragment is the type WebClientFragment\n */\n void inject(WebClientFragment fragment);\n}", "@Component(modules = { MarketBillingModule.class })\npublic interface MarketBillingComponent {\n MarketBilling make();\n}", "@OTPScope\n@Component(modules = {OtpVerifyModule.class}, dependencies = BaseAppComponent.class)\npublic interface OtpVerifyComponent {\n public void inject(OtpVerficationActivity activity);\n}", "public interface Service {\n\n}", "public interface Service {\n\n}", "public interface WeighInService {\n}", "public interface IBasePresenter {\n\n}", "@Component(modules = {LocalModule.class, NetworkModule.class}, dependencies = ApplicationComponent.class)\npublic interface BaseComponent {\n\n OKHttp getOkHTTP();\n\n Retrofit getRetrofit();\n\n LocalDataCache getLocalDataCache();\n}", "public interface PanSequenceService extends BaseService<PanSequence> {\n}", "public interface IProvider extends BaseProvider{\n}", "@Singleton\n@Component(modules = ThirdModule.class)\npublic interface ThirdComponent {\n void inject(ThirdActivity thirdActivity);\n}", "public interface Provider {\n Animal produce();\n}", "@Component(modules = NoticePresenterModule.class)\npublic interface NoticeComponent {\n void inject(NoticeFragment fragment);\n}", "public interface HomeModuleService extends ModuleCall{\n}", "@VisibleForTesting\n public IAppOpsService injectIAppOpsService() {\n return IAppOpsService.Stub.asInterface(ServiceManager.getService(\"appops\"));\n }", "public interface IEngineeringProjectService extends IService<EngineeringProject> {\n}", "public interface BasePresenter {\n\n void initialize();\n void dispose();\n\n}", "public interface AccountInfoService extends IService<AccountInfo> {\n\n}", "@Component(dependencies = AppComponent.class,modules = LoginActivityModule.class)\npublic interface LoginActivityComponent {\n void inject(LoginActivity activity);\n LoginActivityPresenter getLoginPresenter();\n}", "public interface DaggerComponetBase {\n\n}", "@Singleton\n@Component(modules={\n AccountServiceModule.class,\n UserServiceModule.class,\n ConnectionModule.class,\n RemoteAccountModule.class,\n DaoModule.class,\n AuthenticationModule.class,\n CSVGeneratorModule.class,\n EmailServiceModule.class\n})\npublic interface ApplicationComponent {\n\n /**\n * The view needs classes defined in the services. The inject method\n * lets us do this.\n * Create an inject method for every different classes (controllers) in the views that would need them\n * @param myMoneyApplication\n */\n void inject(MyMoneyApplication myMoneyApplication);\n\n void inject(LoginController loginController);\n\n void inject(AccountListController accountListController);\n\n void inject(SignUpController signUpController);\n\n void inject(TransactionTableController tableController);\n\n void inject(UpdateUserAccountController updateUserAccountController);\n\n void inject(AllTransactionsController allTransactionsController);\n\n void inject(AccountDetailsController accountDetailsController);\n}", "@Singleton\n@Component(modules = {AppModule.class, ConnexionModule.class})\npublic interface ConnexionComponent {\n void inject(ConnexionActivity activity);\n void inject(ChatFragment fragment);\n}", "public interface UserService extends Service<User> {\n\n}", "public interface UserService extends Service<User> {\n\n}", "public interface UserService extends Service<User> {\n\n}", "public interface AutenticacionIBS extends AuthenticationProvider {\r\n\r\n}" ]
[ "0.7773213", "0.710158", "0.69357336", "0.693044", "0.6845925", "0.6768528", "0.67417794", "0.6729392", "0.6674628", "0.664532", "0.66421944", "0.66421944", "0.6490192", "0.647334", "0.6471384", "0.6470109", "0.6460015", "0.6457337", "0.6452833", "0.6441034", "0.64152807", "0.64110816", "0.64043087", "0.63747686", "0.6359156", "0.6350341", "0.63472193", "0.63458145", "0.63373333", "0.6336612", "0.63360476", "0.6323009", "0.6305997", "0.6295528", "0.62805355", "0.62744164", "0.62714624", "0.6255763", "0.6246946", "0.6244789", "0.6237838", "0.62326574", "0.6227555", "0.62254655", "0.62150425", "0.62127244", "0.6208074", "0.62042797", "0.61935985", "0.61924314", "0.61899644", "0.61868644", "0.617614", "0.6171962", "0.6157635", "0.61566186", "0.6155574", "0.6153106", "0.6139234", "0.6133752", "0.6127287", "0.6119574", "0.6112265", "0.610594", "0.6086459", "0.608445", "0.6076513", "0.6071376", "0.6060373", "0.6059392", "0.60521185", "0.6047842", "0.60412127", "0.6012977", "0.60110605", "0.60108715", "0.60090154", "0.60020936", "0.60020936", "0.5991868", "0.59909385", "0.59872234", "0.5986476", "0.59841305", "0.5981133", "0.5973196", "0.59671503", "0.59440863", "0.5937503", "0.59316343", "0.59304774", "0.59129304", "0.5908193", "0.59055513", "0.58991754", "0.58943033", "0.58882475", "0.58882475", "0.58882475", "0.5886496" ]
0.7068029
2
Created by liyazhou on 2017/10/15.
public interface FileDownloadInterface { void onFileDownloadSuccess(); void onFileDownloadFailed(Exception ex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\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\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n void init() {\n }", "@Override\n public void func_104112_b() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private void poetries() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\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\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private void init() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void init() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public void memoria() {\n \n }", "public void mo38117a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\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 public int describeContents() { return 0; }", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "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 public void initialize() {\n \n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private void init() {\n\n\n\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "Petunia() {\r\n\t\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "private void kk12() {\n\n\t}", "@Override\n public void init() {\n }" ]
[ "0.60484457", "0.59484166", "0.57668763", "0.5730084", "0.5730084", "0.5726957", "0.56599945", "0.56308204", "0.5594536", "0.5570882", "0.55593157", "0.5555593", "0.5545653", "0.5540953", "0.55371314", "0.55267006", "0.55062073", "0.55057156", "0.5501327", "0.54966515", "0.54839677", "0.54817015", "0.5476938", "0.5471682", "0.54680103", "0.5466588", "0.5466588", "0.5466588", "0.5466588", "0.5466588", "0.5466588", "0.54665864", "0.54537964", "0.54480726", "0.5447072", "0.5447072", "0.5447072", "0.5447072", "0.5447072", "0.5441404", "0.5441404", "0.5433472", "0.5411467", "0.5403346", "0.5393339", "0.5393339", "0.5388118", "0.5388118", "0.5388118", "0.53872573", "0.53838915", "0.53829783", "0.53721005", "0.5359129", "0.53530914", "0.53530914", "0.53530914", "0.5341036", "0.53396505", "0.5333504", "0.5333504", "0.5332821", "0.53314316", "0.53314316", "0.53314316", "0.53259623", "0.5301655", "0.53000504", "0.529409", "0.5290235", "0.5288232", "0.52867335", "0.5285243", "0.52763385", "0.526877", "0.5259688", "0.52545905", "0.52545905", "0.52545905", "0.5252284", "0.5252284", "0.5252284", "0.5252284", "0.5252284", "0.5252284", "0.5252284", "0.52436197", "0.5243576", "0.5242092", "0.52352494", "0.5201714", "0.51990664", "0.51930416", "0.5190415", "0.5189609", "0.5185276", "0.51803976", "0.5179711", "0.5179408", "0.517895", "0.5178786" ]
0.0
-1
Create contents of the view part.
@Override public void createPartControl(Composite parent) { Composite container = new Composite(parent, SWT.NONE); btnNewButton = new Button(container, SWT.NONE); btnNewButton.addMouseListener(new MouseAdapter() { @Override public void mouseDown(MouseEvent e) { currentPage = 1; getRegister(currentPage, name, tabFolder.getSelectionIndex()); } }); btnNewButton.setBounds(286, 513, 75, 30); btnNewButton.setText("\u9996\u9875"); button = new Button(container, SWT.NONE); button.addMouseListener(new MouseAdapter() { @Override public void mouseDown(MouseEvent e) { currentPage--; getRegister(currentPage, name, tabFolder.getSelectionIndex()); } }); button.setText("\u4E0A\u4E00\u9875"); button.setBounds(367, 513, 75, 30); button_1 = new Button(container, SWT.NONE); button_1.addMouseListener(new MouseAdapter() { @Override public void mouseDown(MouseEvent e) { currentPage = page.getPageCount(); getRegister(currentPage, name, tabFolder.getSelectionIndex()); } }); button_1.setText("\u5C3E\u9875"); button_1.setBounds(652, 513, 75, 30); button_2 = new Button(container, SWT.NONE); button_2.addMouseListener(new MouseAdapter() { @Override public void mouseDown(MouseEvent e) { currentPage++; getRegister(currentPage, name, tabFolder.getSelectionIndex()); } }); button_2.setText("\u4E0B\u4E00\u9875"); button_2.setBounds(571, 513, 75, 30); text = new Text(container, SWT.BORDER); text.setText(""+currentPage); text.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE)); text.setBounds(445, 515, 32, 26); Label label = new Label(container, SWT.NONE); label.setText("/"); label.setBounds(483, 518, 6, 20); label_1 = new Label(container, SWT.NONE); label_1.setText("2"); label_1.setBounds(495, 518, 22, 20); Button button_3 = new Button(container, SWT.NONE); button_3.addMouseListener(new MouseAdapter() { @Override public void mouseDown(MouseEvent e) { int want = Integer.parseInt(text.getText()); if(want<1){ want = 1; }else if(want>page.getCurrentPage()){ want = page.getPageCount(); } currentPage = want; getRegister(currentPage, name, tabFolder.getSelectionIndex()); } }); button_3.setText("->"); button_3.setBounds(527, 513, 32, 30); text_1 = new Text(container, SWT.BORDER); text_1.setBounds(286, 134, 73, 26); Button btnNewButton_1 = new Button(container, SWT.NONE); btnNewButton_1.addMouseListener(new MouseAdapter() { @Override public void mouseDown(MouseEvent e) { name = text_1.getText(); currentPage = 1; getRegister(currentPage, name, tabFolder.getSelectionIndex()); } }); btnNewButton_1.setBounds(367, 134, 55, 30); btnNewButton_1.setText("\u67E5\u627E"); tabFolder = new TabFolder(container, SWT.NONE); tabFolder.setBounds(281, 184, 456, 323); tabItem_2 = new TabItem(tabFolder, SWT.NONE); tabItem_2.setText("\u672A\u8BCA\u65AD"); table_2 = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION); table_2.addMouseListener(new MouseAdapter() { @Override public void mouseDoubleClick(MouseEvent e) { DbUtils db = new DbUtils(); Details detail = new Details(new Shell(), SWT.CLOSE); for(HashMap<String, Object> map:page.getList()){ if(map.get("name").equals(table_2.getItem(table_2.getSelectionIndex()).getText(0))){ register = new Register(); register.setPatient_id(Integer.parseInt(map.get("patient_id").toString())); register.setName(map.get("name").toString()); register.setDepartment(map.get("department_name").toString()); register.setKinds(map.get("kinds_name").toString()); register.setOperator(map.get("operator").toString()); register.setTime(map.get("time").toString()); register.setPrice(Double.parseDouble(map.get("price").toString())); register.setResult((map.get("result").toString().equals("") ? "":map.get("result").toString())); register.setState(map.get("state_name").toString()); } } db.update("update register set state = 2 where name = '"+register.getName()+"'"); register.setState("诊断中"); detail.setRegister(register); detail.open(); currentPage = 1; getRegister(currentPage, name, tabFolder.getSelectionIndex()); } }); table_2.setLinesVisible(true); table_2.setHeaderVisible(true); tabItem_2.setControl(table_2); TableColumn tableColumn_4 = new TableColumn(table_2, SWT.NONE); tableColumn_4.setWidth(100); tableColumn_4.setText("\u59D3\u540D"); TableColumn tableColumn_5 = new TableColumn(table_2, SWT.NONE); tableColumn_5.setWidth(115); tableColumn_5.setText("\u7ECF\u529E\u4EBA"); TableColumn tableColumn_6 = new TableColumn(table_2, SWT.NONE); tableColumn_6.setWidth(118); tableColumn_6.setText("\u7C7B\u578B"); TableColumn tableColumn_7 = new TableColumn(table_2, SWT.NONE); tableColumn_7.setWidth(108); tableColumn_7.setText("\u4EF7\u683C"); Menu menu_2 = new Menu(table_2); table_2.setMenu(menu_2); MenuItem menuItem_4 = new MenuItem(menu_2, SWT.NONE); menuItem_4.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { DbUtils db = new DbUtils(); Details detail = new Details(new Shell(), SWT.NONE); for(HashMap<String, Object> map:page.getList()){ if(map.get("name").equals(table_2.getItem(table_2.getSelectionIndex()).getText(0))){ register = new Register(); register.setPatient_id(Integer.parseInt(map.get("patient_id").toString())); register.setName(map.get("name").toString()); register.setDepartment(map.get("department_name").toString()); register.setKinds(map.get("kinds_name").toString()); register.setOperator(map.get("operator").toString()); register.setTime(map.get("time").toString()); register.setPrice(Double.parseDouble(map.get("price").toString())); register.setResult((map.get("result").toString().equals("") ? "无":map.get("result").toString())); register.setState(map.get("state_name").toString()); } } detail.setRegister(register); detail.open(); } }); menuItem_4.setText("\u6253\u5F00"); MenuItem menuItem_5 = new MenuItem(menu_2, SWT.NONE); menuItem_5.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { DbUtils db = new DbUtils(); name = table_2.getItem(table_2.getSelectionIndex()).getText(0); Warning_1 warning = new Warning_1(new Shell(), SWT.NONE); warning.open(); if(warning.isResult()) if(db.update("delete from register where name = '"+name+"'")!=0){ OpenBox.Open("操作成功"); currentPage = 1; getRegister(currentPage, name, tabFolder.getSelectionIndex()); } else OpenBox.Open("操作失败"); currentPage = 1; getRegister(currentPage, name, tabFolder.getSelectionIndex()); } }); menuItem_5.setText("\u5220\u9664"); tabItem_1 = new TabItem(tabFolder, SWT.NONE); tabItem_1.setText("\u8BCA\u65AD\u4E2D"); table_1 = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION); table_1.addMouseListener(new MouseAdapter() { @Override public void mouseDoubleClick(MouseEvent e) { DbUtils db = new DbUtils(); Details detail = new Details(new Shell(), SWT.CLOSE); for(HashMap<String, Object> map:page.getList()){ if(map.get("name").equals(table_1.getItem(table_1.getSelectionIndex()).getText(0))){ register = new Register(); register.setPatient_id(Integer.parseInt(map.get("patient_id").toString())); register.setName(map.get("name").toString()); register.setDepartment(map.get("department_name").toString()); register.setKinds(map.get("kinds_name").toString()); register.setOperator(map.get("operator").toString()); register.setTime(map.get("time").toString()); register.setPrice(Double.parseDouble(map.get("price").toString())); register.setResult((map.get("result").toString().equals("") ? "":map.get("result").toString())); register.setState(map.get("state_name").toString()); } } db.update("update register set state = 2 where name = '"+register.getName()+"'"); detail.setRegister(register); detail.open(); currentPage = 1; getRegister(currentPage, name, tabFolder.getSelectionIndex()); } }); table_1.setLinesVisible(true); table_1.setHeaderVisible(true); tabItem_1.setControl(table_1); TableColumn tableColumn = new TableColumn(table_1, SWT.NONE); tableColumn.setWidth(100); tableColumn.setText("\u59D3\u540D"); TableColumn tableColumn_1 = new TableColumn(table_1, SWT.NONE); tableColumn_1.setWidth(115); tableColumn_1.setText("\u7ECF\u529E\u4EBA"); TableColumn tableColumn_2 = new TableColumn(table_1, SWT.NONE); tableColumn_2.setWidth(118); tableColumn_2.setText("\u7C7B\u578B"); TableColumn tableColumn_3 = new TableColumn(table_1, SWT.NONE); tableColumn_3.setWidth(108); tableColumn_3.setText("\u4EF7\u683C"); Menu menu_1 = new Menu(table_1); table_1.setMenu(menu_1); MenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE); menuItem_2.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { Details detail = new Details(new Shell(), SWT.CLOSE); for(HashMap<String, Object> map:page.getList()){ if(map.get("name").equals(table_1.getItem(table_1.getSelectionIndex()).getText(0))){ register = new Register(); register.setPatient_id(Integer.parseInt(map.get("patient_id").toString())); register.setName(map.get("name").toString()); register.setDepartment(map.get("department_name").toString()); register.setKinds(map.get("kinds_name").toString()); register.setOperator(map.get("operator").toString()); register.setTime(map.get("time").toString()); register.setPrice(Double.parseDouble(map.get("price").toString())); register.setResult((map.get("result").toString().equals("") ? "无":map.get("result").toString())); register.setState(map.get("state_name").toString()); } } detail.setRegister(register); detail.open(); getRegister(currentPage, name, tabFolder.getSelectionIndex()); } }); menuItem_2.setText("\u6253\u5F00"); MenuItem menuItem_3 = new MenuItem(menu_1, SWT.NONE); menuItem_3.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { DbUtils db = new DbUtils(); name = table_1.getItem(table_1.getSelectionIndex()).getText(0); Warning_1 warning = new Warning_1(new Shell(), SWT.CLOSE); warning.open(); if(warning.isResult()) if(db.update("delete from register where name = '"+name+"'")!=0){ OpenBox.Open("操作成功"); currentPage = 1; getRegister(currentPage, name, tabFolder.getSelectionIndex()); } else OpenBox.Open("操作失败"); } }); menuItem_3.setText("\u5220\u9664"); tabItem = new TabItem(tabFolder, SWT.NONE); tabItem.setText("\u5DF2\u8BCA\u65AD"); table = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION); tabItem.setControl(table); table.addMouseListener(new MouseAdapter() { @Override public void mouseDoubleClick(MouseEvent e) { DbUtils db = new DbUtils(); Details detail = new Details(new Shell(), SWT.NONE); for(HashMap<String, Object> map:page.getList()){ if(map.get("name").equals(table.getItem(table.getSelectionIndex()).getText(0))){ register = new Register(); register.setPatient_id(Integer.parseInt(map.get("patient_id").toString())); register.setName(map.get("name").toString()); register.setDepartment(map.get("department_name").toString()); register.setKinds(map.get("kinds_name").toString()); register.setOperator(map.get("operator").toString()); register.setTime(map.get("time").toString()); register.setPrice(Double.parseDouble(map.get("price").toString())); register.setResult((map.get("result").toString().equals("") ? "":map.get("result").toString())); register.setState(map.get("state_name").toString()); } } detail.setRegister(register); detail.open(); currentPage = 1; getRegister(currentPage, name, tabFolder.getSelectionIndex()); } }); table.setHeaderVisible(true); table.setLinesVisible(true); TableColumn tblclmnNewColumn = new TableColumn(table, SWT.NONE); tblclmnNewColumn.setWidth(100); tblclmnNewColumn.setText("\u59D3\u540D"); TableColumn tblclmnNewColumn_1 = new TableColumn(table, SWT.NONE); tblclmnNewColumn_1.setWidth(115); tblclmnNewColumn_1.setText("\u7ECF\u529E\u4EBA"); TableColumn tblclmnNewColumn_2 = new TableColumn(table, SWT.NONE); tblclmnNewColumn_2.setText("\u7C7B\u578B"); tblclmnNewColumn_2.setWidth(118); TableColumn tblclmnNewColumn_3 = new TableColumn(table, SWT.NONE); tblclmnNewColumn_3.setWidth(108); tblclmnNewColumn_3.setText("\u4EF7\u683C"); Menu menu = new Menu(table); table.setMenu(menu); MenuItem menuItem = new MenuItem(menu, SWT.NONE); menuItem.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { Details detail = new Details(new Shell(), SWT.NONE); for(HashMap<String, Object> map:page.getList()){ if(map.get("name").equals(table.getItem(table.getSelectionIndex()).getText(0))){ register = new Register(); register.setPatient_id(Integer.parseInt(map.get("patient_id").toString())); register.setName(map.get("name").toString()); register.setDepartment(map.get("department_name").toString()); register.setKinds(map.get("kinds_name").toString()); register.setOperator(map.get("operator").toString()); register.setTime(map.get("time").toString()); register.setPrice(Double.parseDouble(map.get("price").toString())); register.setResult((map.get("result").toString().equals("") ? "无":map.get("result").toString())); register.setState(map.get("state_name").toString()); } } detail.setRegister(register); detail.open(); } }); menuItem.setText("\u6253\u5F00"); MenuItem menuItem_1 = new MenuItem(menu, SWT.NONE); menuItem_1.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { DbUtils db = new DbUtils(); name = table.getItem(table.getSelectionIndex()).getText(0); Warning_1 warning = new Warning_1(new Shell(), SWT.NONE); warning.open(); if(warning.isResult()) if(db.update("delete from register where name = '"+name+"'")!=0){ OpenBox.Open("操作成功"); currentPage = 1; getRegister(currentPage, name, tabFolder.getSelectionIndex()); } else OpenBox.Open("操作失败"); } }); menuItem_1.setText("\u5220\u9664"); getRegister(currentPage, name, tabFolder.getSelectionIndex()); createActions(); initializeToolBar(); initializeMenu(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createContents() {\n\n\t}", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "ViewComponentPart createViewComponentPart();", "protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}", "protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "public Content createContent();", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(447, 310);\n\t\tshell.setText(\"Verisure ASCII Node\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n\t\t\n\t\tTabItem basicItem = new TabItem(tabFolder, SWT.NONE);\n\t\tbasicItem.setText(\"Basic\");\n\t\t\n\t\tComposite basicComposite = new Composite(tabFolder, SWT.NONE);\n\t\tbasicItem.setControl(basicComposite);\n\t\tbasicComposite.setLayout(null);\n\t\t\n\t\tButton btnDelMeasurments = new Button(basicComposite, SWT.NONE);\n\t\t\n\t\tbtnDelMeasurments.setToolTipText(\"Delete the measurements from the device.\");\n\t\tbtnDelMeasurments.setBounds(269, 192, 159, 33);\n\t\tbtnDelMeasurments.setText(\"Delete measurements\");\n\t\t\n\t\tButton btnGetMeasurement = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetMeasurement.setToolTipText(\"Get the latest measurement from the device.\");\n\t\t\n\t\tbtnGetMeasurement.setBounds(0, 36, 159, 33);\n\t\tbtnGetMeasurement.setText(\"Get new bloodvalue\");\n\t\t\n\t\tfinal StyledText receiveArea = new StyledText(basicComposite, SWT.BORDER | SWT.WRAP);\n\t\treceiveArea.setLocation(167, 30);\n\t\treceiveArea.setSize(259, 92);\n\t\treceiveArea.setToolTipText(\"This is where the measurement will be displayd.\");\n\t\t\n\t\tButton btnBase64 = new Button(basicComposite, SWT.RADIO);\n\t\tbtnBase64.setToolTipText(\"Show the latest blood value (base64 encoded).\");\n\t\tbtnBase64.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\t\n\t\tbtnDelMeasurments.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Deleting measurements, please wait...\");\n\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"DEL\";\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\tSystem.out.println(\"Sov i tre sekunder.\");\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\treceiveArea.setText(\"Deleted measurements from device.\");\n\t\t\t}\n\t\t});\n\t\tbtnBase64.setSelection(true);\n\t\tbtnBase64.setBounds(137, 130, 74, 25);\n\t\tbtnBase64.setText(\"base64\");\n\t\t\n\t\tButton btnHex = new Button(basicComposite, SWT.RADIO);\n\t\tbtnHex.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\n\t\t\t\ttype = 2;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\tbtnHex.setToolTipText(\"Show the measurement in hex.\");\n\t\tbtnHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnHex.setBounds(217, 130, 50, 25);\n\t\tbtnHex.setText(\"hex\");\n\t\t\n\t\tButton btnAscii = new Button(basicComposite, SWT.RADIO);\n\t\t\n\t\tbtnAscii.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 1;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * Return that the value should be represented as base64.\n\t\t * \n\t\t */\n\t\t\n\t\tbtnBase64.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 0;\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnAscii.setToolTipText(\"Show the measurement in ascii.\");\n\t\tbtnAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnAscii.setBounds(269, 130, 53, 25);\n\t\tbtnAscii.setText(\"ascii\");\n\t\t\n\t\tLabel label = new Label(basicComposite, SWT.NONE);\n\t\tlabel.setText(\"A master thesis project by Pétur and David\");\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlabel.setBounds(10, 204, 192, 21);\n\t\t\n\t\tButton btnGetDbValue = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetDbValue.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting latest measurements from db, please wait...\");\n\t\t\t}\n\t\t});\n\t\tbtnGetDbValue.setBounds(0, 71, 159, 33);\n\t\tbtnGetDbValue.setText(\"Get latest bloodvalue\");\n\t\t\n\t\t/*\n\t\t *Get measurement from device event handler \n\t\t *\n\t\t *@param The Mouse Adapter\n\t\t * \n\t\t */\n\t\t\n\t\t\n\t\tbtnGetMeasurement.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\tpublic void MouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Getting measurement from device, please wait...\");\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"LOG\";\n\t\t\t\t\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\t\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(2000);\n\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting measurements from device, please wait...\");\n\t\t\t}\n\t\t});\n\n\t\t\n\t\t/*\n\t\t * The advanced tab section\n\t\t */\n\t\t\n\t\tTabItem advancedItem = new TabItem(tabFolder, SWT.NONE);\n\t\tadvancedItem.setText(\"Advanced\");\n\t\t\n\t\tComposite advComposite = new Composite(tabFolder, SWT.NONE);\n\t\tadvancedItem.setControl(advComposite);\n\t\tadvComposite.setLayout(null);\n\t\t\n\t\tButton advSendButton = new Button(advComposite, SWT.NONE);\n\t\t\n\t\n\t\tadvSendButton.setToolTipText(\"Send arbitary data to the device.\");\n\t\n\t\tadvSendButton.setBounds(307, 31, 121, 33);\n\t\tadvSendButton.setText(\"Send Data\");\n\t\t\n\t\tLabel lblNewLabel = new Label(advComposite, SWT.NONE);\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(10, 204, 192, 21);\n\t\tlblNewLabel.setText(\"A master thesis project by Pétur and David\");\n\t\t\n\t\tfinal StyledText advSendArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvSendArea.setToolTipText(\"This is where you type your arbitary data to send to the device.\");\n\t\tadvSendArea.setBounds(10, 31, 291, 33);\n\t\t\n\t\tButton advReceiveButton = new Button(advComposite, SWT.NONE);\n\t\t\n\n\t\t\n\t\tadvReceiveButton.setToolTipText(\"Receive data from the database.\");\n\t\tadvReceiveButton.setBounds(10, 70, 99, 33);\n\t\tadvReceiveButton.setText(\"Receive Data\");\n\t\t\n\t\tfinal StyledText advReceiveArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvReceiveArea.setToolTipText(\"This is where the receive data will be presented.\");\n\t\tadvReceiveArea.setBounds(115, 67, 313, 70);\n\t\t\n\t\tButton advAscii = new Button(advComposite, SWT.RADIO);\n\t\tadvAscii.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 1;\n\t\t\t}\n\t\t});\n\t\t\n\t\tadvReceiveButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receiving the data, please wait...\");\n\t\t\t\tXBNConnection xbn = new XBNConnection();\n\t\t\t\tString text = xbn.getNodeFaults(advType);\n\t\t\t\tadvReceiveArea.setText(text);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receivng data from device, please wait\");\n\t\t\t}\n\t\t});\n\t\tadvAscii.setSelection(true);\n\t\tadvAscii.setToolTipText(\"Show the database results as ascii.\");\n\t\tadvAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvAscii.setBounds(10, 109, 54, 25);\n\t\tadvAscii.setText(\"ascii\");\n\t\t\n\t\tButton advHex = new Button(advComposite, SWT.RADIO);\n\t\tadvHex.setToolTipText(\"Show the database results as hex.\");\n\t\tadvHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvHex.setBounds(66, 109, 43, 25);\n\t\tadvHex.setText(\"hex\");\n\t\tadvHex.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 2;\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnDeleteDatabase = new Button(advComposite, SWT.NONE);\n\t\tbtnDeleteDatabase.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tdb.deleteMessages();\n\t\t\t\tadvReceiveArea.setText(\"Deleted data from database\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnDeleteDatabase.setToolTipText(\"Delete entries in the database.\");\n\t\tbtnDeleteDatabase.setText(\"Delete database\");\n\t\tbtnDeleteDatabase.setBounds(269, 192, 159, 33);\n\t\t\n\t\n\t\t\n\n\t\t/*\n\t\t * This is the advanced send button. Can send arbitary text to the device.\n\t\t */\n\t\t\n\t\tadvSendButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\t//advSendArea.setText(\"Sending: '\"+advSendArea.getText()+\"' to the device, please wait...\");\n\t\t\t\tString theText = advSendArea.getText();\n\t\t\t\tSystem.out.println(\"Texten som ska skickas är: \" + theText);\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tString chunkText = \"\";\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tStringBuilder sb = new StringBuilder(theText);\n\t\t\t\t// Add and @ to be sure that there will never be two strings that are\n\t\t\t\t// the same in a row.\n\t\t\t\t// for (int i = 3; i < sb.toString().length(); i += 6) {\n\t\t\t\t// sb.insert(i, \"@\");\n\t\t\t\t// }\n\t\t\t\t// theText = sb.toString();\n\t\t\t\tSystem.out.println(theText);\n\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\tif (theText.length() < 3) {\n\t\t\t\t\t\tchunkText = theText.substring(0, theText.length());\n\t\t\t\t\t\tint pad = theText.length() % 3;\n\t\t\t\t\t\tif (pad == 1) {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchunkText = theText.substring(0, 3);\n\t\t\t\t\t}\n\n\t\t\t\t\ttheText = theText.substring(3);\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\trest.doPut(chunkText);\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twhile (theText.length() > 0 && db.getAck(chunkText, rest));\n\t\t\t\tadvSendArea.setText(\"Data sent to the device.\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t});\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}", "protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}", "@Override\n public void Create() {\n\n initView();\n }", "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}", "abstract public Content createContent();", "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 }", "public abstract void createContents(Panel mainPanel);", "protected void createContents() {\n\n\t\tfinal FileServeApplicationWindow appWindow = this;\n\n\t\tthis.shlFileServe = new Shell();\n\t\tthis.shlFileServe.setSize(450, 300);\n\t\tthis.shlFileServe.setText(\"File Serve - Server\");\n\t\tthis.shlFileServe.setLayout(new BorderLayout(0, 0));\n\n\t\tthis.composite = new Composite(this.shlFileServe, SWT.NONE);\n\t\tthis.composite.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tthis.composite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.composite.setLayout(new FormLayout());\n\n\t\tthis.lblServerTcpPort = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerTcpPort = new FormData();\n\t\tfd_lblServerTcpPort.top = new FormAttachment(0, 10);\n\t\tfd_lblServerTcpPort.left = new FormAttachment(0, 10);\n\t\tthis.lblServerTcpPort.setLayoutData(fd_lblServerTcpPort);\n\t\tthis.lblServerTcpPort.setText(\"Server TCP Port:\");\n\n\t\tthis.serverTCPPortField = new Text(this.composite, SWT.BORDER);\n\t\tthis.serverTCPPortField.setTextLimit(5);\n\t\tthis.serverTCPPortField.addVerifyListener(new VerifyListener() {\n\t\t\t@Override\n\t\t\tpublic void verifyText(VerifyEvent e) {\n\t\t\t\te.doit = true;\n\t\t\t\tfor(int i = 0; i < e.text.length(); i++) {\n\n\t\t\t\t\tchar c = e.text.charAt(i);\n\n\t\t\t\t\tboolean b = false;\n\n\t\t\t\t\tif(c >= '0' && c <= '9') {b = true;}\n\t\t\t\t\telse if(c == SWT.BS) {b = true;}\n\t\t\t\t\telse if(c == SWT.DEL) {b = true;}\n\n\t\t\t\t\tif(b == false) {\n\t\t\t\t\t\te.doit = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tFormData fd_serverTCPPortField = new FormData();\n\t\tfd_serverTCPPortField.top = new FormAttachment(0, 7);\n\t\tfd_serverTCPPortField.right = new FormAttachment(100, -54);\n\t\tfd_serverTCPPortField.left = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tthis.serverTCPPortField.setLayoutData(fd_serverTCPPortField);\n\n\t\tthis.btnStartServer = new Button(this.composite, SWT.NONE);\n\t\tFormData fd_btnStartServer = new FormData();\n\t\tfd_btnStartServer.bottom = new FormAttachment(100, -10);\n\t\tfd_btnStartServer.right = new FormAttachment(100, -10);\n\t\tthis.btnStartServer.setLayoutData(fd_btnStartServer);\n\t\tthis.btnStartServer.setText(\"Start Server\");\n\n\t\tthis.lblServerStatus = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerStatus = new FormData();\n\t\tfd_lblServerStatus.right = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_lblServerStatus.top = new FormAttachment(this.btnStartServer, 5, SWT.TOP);\n\t\tfd_lblServerStatus.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblServerStatus.setLayoutData(fd_lblServerStatus);\n\t\tthis.lblServerStatus.setText(\"Server Status: Stopped\");\n\n\t\tthis.text = new Text(this.composite, SWT.BORDER);\n\t\tFormData fd_text = new FormData();\n\t\tfd_text.top = new FormAttachment(this.serverTCPPortField, 6);\n\t\tthis.text.setLayoutData(fd_text);\n\n\t\tthis.lblHighestDirectory = new Label(this.composite, SWT.NONE);\n\t\tfd_text.left = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tFormData fd_lblHighestDirectory = new FormData();\n\t\tfd_lblHighestDirectory.top = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tfd_lblHighestDirectory.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblHighestDirectory.setLayoutData(fd_lblHighestDirectory);\n\t\tthis.lblHighestDirectory.setText(\"Highest Directory:\");\n\n\t\tthis.button = new Button(this.composite, SWT.NONE);\n\n\t\tfd_text.right = new FormAttachment(100, -54);\n\t\tFormData fd_button = new FormData();\n\t\tfd_button.left = new FormAttachment(this.text, 6);\n\t\tthis.button.setLayoutData(fd_button);\n\t\tthis.button.setText(\"...\");\n\n\t\tthis.grpConnectionInformation = new Group(this.composite, SWT.NONE);\n\t\tfd_button.bottom = new FormAttachment(this.grpConnectionInformation, -1);\n\t\tthis.grpConnectionInformation.setText(\"Connection Information:\");\n\t\tthis.grpConnectionInformation.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_grpConnectionInformation = new FormData();\n\t\tfd_grpConnectionInformation.bottom = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_grpConnectionInformation.right = new FormAttachment(this.btnStartServer, 0, SWT.RIGHT);\n\t\tfd_grpConnectionInformation.top = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tfd_grpConnectionInformation.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.grpConnectionInformation.setLayoutData(fd_grpConnectionInformation);\n\n\t\tthis.scrolledComposite = new ScrolledComposite(this.grpConnectionInformation, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tthis.scrolledComposite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.scrolledComposite.setExpandHorizontal(true);\n\t\tthis.scrolledComposite.setExpandVertical(true);\n\n\t\tthis.table = new Table(this.scrolledComposite, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tthis.table.setLinesVisible(true);\n\t\tthis.table.setHeaderVisible(true);\n\t\tthis.scrolledComposite.setContent(this.table);\n\t\tthis.scrolledComposite.setMinSize(this.table.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(538, 450);\n\t\tshell.setText(\"SWT Application\");\n\n\t\tfinal DateTime dateTime = new DateTime(shell, SWT.BORDER | SWT.CALENDAR);\n\t\tdateTime.setBounds(10, 10, 514, 290);\n\n\t\tfinal DateTime dateTime_1 = new DateTime(shell, SWT.BORDER | SWT.TIME);\n\t\tdateTime_1.setBounds(10, 306, 135, 29);\n\t\tvideoPath = new Text(shell, SWT.BORDER);\n\t\tvideoPath.setBounds(220, 306, 207, 27);\n\n\t\tButton btnBrowseVideo = new Button(shell, SWT.NONE);\n\t\tbtnBrowseVideo.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\tvideoPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.setBounds(433, 306, 91, 29);\n\t\tbtnBrowseVideo.setText(\"browse\");\n\t\ttorrentPath = new Text(shell, SWT.BORDER);\n\t\ttorrentPath.setBounds(220, 341, 207, 27);\n\t\tButton btnBrowseTorrent = new Button(shell, SWT.NONE);\n\t\tbtnBrowseTorrent.setText(\"browse\");\n\t\tbtnBrowseTorrent.setBounds(433, 339, 91, 29);\n\t\tbtnBrowseTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\ttorrentPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tButton btnGenerateTorrent = new Button(shell, SWT.NONE);\n\t\tbtnGenerateTorrent.setBounds(10, 374, 516, 29);\n\t\tbtnGenerateTorrent.setText(\"Generate Torrent\");\n\n\t\tvideoLength = new Text(shell, SWT.BORDER);\n\t\tvideoLength.setBounds(10, 341, 135, 27);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.RIGHT);\n\t\tlblNewLabel.setAlignment(SWT.LEFT);\n\t\tlblNewLabel.setBounds(157, 315, 48, 18);\n\t\tlblNewLabel.setText(\"Video\");\n\t\t\n\t\tLabel lblTorrent = new Label(shell, SWT.RIGHT);\n\t\tlblTorrent.setText(\"Torrent\");\n\t\tlblTorrent.setBounds(157, 341, 48, 18);\n\t\tbtnGenerateTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFile video = new File(videoPath.getText());\n\t\t\t\ttry {\n\t\t\t\t\tif (video.exists() && torrentPath.getText() != \"\") {\n\t\t\t\t\t\tMap parameters = new HashMap();\n\t\t\t\t\t\tparameters.put(\"start\", dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds());\n\t\t\t\t\t\tparameters.put(\"target\", torrentPath.getText());\n\t\t\t\t\t\tparameters.put(\"length\", videoLength.getText());\n\t\t\t\t\t\tSystem.out.println(\"start generating \"+parameters.get(\"length\"));\n\t\t\t\t\t\tnew MakeTorrent(videoPath.getText(), new URL(\"https://jomican.csie.org/~jimmy/tracker/announce.php\"), parameters);\n\t\t\t\t\t\tSystem.out.println(\"end generating\");\n\t\t\t\t\t\tFile var = new File(\"var.js\");\n\t\t\t\t\t\tPrintStream stream=new PrintStream(new FileOutputStream(var,false));\n\t\t\t\t\t\tstream.println(\"start_time = \"+(new SimpleDateFormat(\"yyyy/MM/dd-HH:mm:ss\").parse(dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds()).getTime() / 1000)+\";\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"jizz\");\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 395);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tnachname = new Text(shell, SWT.BORDER);\r\n\t\tnachname.setBounds(32, 27, 76, 21);\r\n\t\t\r\n\t\tvorname = new Text(shell, SWT.BORDER);\r\n\t\tvorname.setBounds(32, 66, 76, 21);\r\n\t\t\r\n\t\tLabel lblNachname = new Label(shell, SWT.NONE);\r\n\t\tlblNachname.setBounds(135, 33, 55, 15);\r\n\t\tlblNachname.setText(\"Nachname\");\r\n\t\t\r\n\t\tLabel lblVorname = new Label(shell, SWT.NONE);\r\n\t\tlblVorname.setBounds(135, 66, 55, 15);\r\n\t\tlblVorname.setText(\"Vorname\");\r\n\t\t\r\n\t\tButton btnFgeListeHinzu = new Button(shell, SWT.NONE);\r\n\t\tbtnFgeListeHinzu.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//\r\n\t\t\t\tPerson p = new Person();\r\n\t\t\t\tp.setNachname(getNachname().getText());\r\n\t\t\t\tp.setVorname(getVorname().getText());\r\n\t\t\t\t//\r\n\t\t\t\tPerson.getPersonenListe().add(p);\r\n\t\t\t\tgetGuiListe().add(p.toString());\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFgeListeHinzu.setBounds(43, 127, 147, 25);\r\n\t\tbtnFgeListeHinzu.setText(\"f\\u00FCge liste hinzu\");\r\n\t\t\r\n\t\tButton btnWriteJson = new Button(shell, SWT.NONE);\r\n\t\tbtnWriteJson.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tPerson.write2JSON();\r\n\t\t\t\t\t//\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_INFORMATION | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"JSON geschrieben\");\r\n\t\t\t\t\tmb.setMessage(Person.getPersonenListe().size() + \" Einträge erfolgreich geschrieben\");\r\n\t\t\t\t\tmb.open();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"Fehler bei JSON\");\r\n\t\t\t\t\tmb.setMessage(e1.getMessage());\r\n\t\t\t\t\tmb.open();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnWriteJson.setBounds(54, 171, 75, 25);\r\n\t\tbtnWriteJson.setText(\"write 2 json\");\r\n\t\t\r\n\t\tguiListe = new List(shell, SWT.BORDER);\r\n\t\tguiListe.setBounds(43, 221, 261, 125);\r\n\r\n\t}", "View createView();", "protected Control createContents(Composite parent) {\r\n noDefaultAndApplyButton();\r\n\r\n // The main composite\r\n Composite composite = new Composite(parent, SWT.NONE);\r\n GridLayout layout = new GridLayout(1, false);\r\n layout.marginWidth = 0;\r\n layout.marginHeight = 0;\r\n composite.setLayout(layout);\r\n\r\n // TODO change these labels later\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Provided by Duke University Computer Science Department\");\r\n new Label(composite, SWT.NONE).setText(\"http://www.cs.duke.edu\");\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Questions? Go to our website at http://www.cs.duke.edu/csed/ambient\");\r\n return composite;\r\n }", "protected void createContents() {\n cmd.setBean(nodeProperties);\n cmd.setNode(node);\n shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);\n shell.setLayout(new FormLayout());\n shell.setSize(800, 500);\n shell.setText(\"详细信息属性\");\n\n final Composite composite_3 = new Composite(shell, SWT.NONE);\n final FormData fd_composite_3 = new FormData();\n fd_composite_3.top = new FormAttachment(0, 1);\n fd_composite_3.left = new FormAttachment(0, 5);\n fd_composite_3.height = 100;\n fd_composite_3.right = new FormAttachment(100, -5);\n composite_3.setLayoutData(fd_composite_3);\n composite_3.setLayout(new FormLayout());\n\n final Group basicGroup = new Group(composite_3, SWT.NONE);\n basicGroup.setLayout(new FormLayout());\n final FormData fd_basicGroup = new FormData();\n fd_basicGroup.bottom = new FormAttachment(100, -1);\n fd_basicGroup.top = new FormAttachment(0, -6);\n fd_basicGroup.right = new FormAttachment(100, 0);\n fd_basicGroup.left = new FormAttachment(0, 0);\n basicGroup.setLayoutData(fd_basicGroup);\n\n final Label label = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_label = new FormData();\n fd_label.top = new FormAttachment(0, 0);\n fd_label.right = new FormAttachment(15, 0);\n fd_label.left = new FormAttachment(0, 0);\n label.setLayoutData(fd_label);\n label.setText(\"节点名称:\");\n\n txtName = new Text(basicGroup, SWT.BORDER);\n final FormData fd_txtName = new FormData();\n fd_txtName.top = new FormAttachment(0, 0);\n fd_txtName.right = new FormAttachment(40, 0);\n fd_txtName.left = new FormAttachment(label, 0);\n txtName.setLayoutData(fd_txtName);\n txtName.setEditable(true);\n\n final Label label_1 = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_label_1 = new FormData();\n fd_label_1.top = new FormAttachment(0, 0);\n fd_label_1.right = new FormAttachment(55, 0);\n fd_label_1.left = new FormAttachment(txtName, 0);\n label_1.setLayoutData(fd_label_1);\n label_1.setText(\"数据表名:\");\n\n txtTableName = new Text(basicGroup, SWT.BORDER);\n txtTableName.setEditable(false);\n final FormData fd_txtTableName = new FormData();\n fd_txtTableName.top = new FormAttachment(0, 0);\n fd_txtTableName.right = new FormAttachment(90, 0);\n fd_txtTableName.left = new FormAttachment(label_1, 0);\n txtTableName.setLayoutData(fd_txtTableName);\n\n final Button btnSelectTable = new Button(basicGroup, SWT.NONE);\n final FormData fd_btnSelectTable = new FormData();\n fd_btnSelectTable.top = new FormAttachment(0, 0);\n fd_btnSelectTable.right = new FormAttachment(100, -1);\n fd_btnSelectTable.left = new FormAttachment(txtTableName, 0);\n fd_btnSelectTable.height = 23;\n btnSelectTable.setLayoutData(fd_btnSelectTable);\n btnSelectTable.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n DataTableDialog dataSoruceDlg = new DataTableDialog(shell);\n DataTable dt = dataSoruceDlg.open();\n if (dt != null) {\n txtTableName.setText(dt.getCnName());\n nodeProperties.setTableName(dt.getCnName());\n nodeProperties.setName(dt.getName());\n loadFieldsInfo(dt);\n nodeProperties.setDataTable(dt);\n int res = MessageUtil.comfirm(shell, \"导入\", \"是否导入字段信息?\\r\\n注意:已有字段信息将被覆盖!\");\n if (res == SWT.YES) {\n dataFieldList.clear();\n for (DataField df : dt.getFields()) {\n dataFieldList.add(df);\n }\n tvDataField.refresh();\n }\n }\n }\n });\n btnSelectTable.setText(\"选择表\");\n\n final Label lblDescription = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_lblDescription = new FormData();\n fd_lblDescription.top = new FormAttachment(label, 10);\n fd_lblDescription.bottom = new FormAttachment(100, -2);\n fd_lblDescription.left = new FormAttachment(0, 0);\n fd_lblDescription.right = new FormAttachment(15, 0);\n lblDescription.setLayoutData(fd_lblDescription);\n lblDescription.setText(\"说明:\");\n\n txtDes = new StyledText(basicGroup, SWT.BORDER);\n final FormData fd_txtDes = new FormData();\n fd_txtDes.top = new FormAttachment(txtName, 5);\n fd_txtDes.left = new FormAttachment(15, 0);\n fd_txtDes.right = new FormAttachment(100, -2);\n fd_txtDes.bottom = new FormAttachment(100, -2);\n txtDes.setLayoutData(fd_txtDes);\n\n final Button btnOk = new Button(shell, SWT.NONE);\n btnOk.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/tick.png\"));\n final FormData fd_btnOk = new FormData();\n fd_btnOk.height = 28;\n fd_btnOk.width = 80;\n fd_btnOk.bottom = new FormAttachment(100, -5);\n fd_btnOk.right = new FormAttachment(50, -10);\n btnOk.setLayoutData(fd_btnOk);\n btnOk.setText(\"确定(&O)\");\n btnOk.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event e) {\n save();\n result = 1;\n close();\n }\n });\n\n final Button btnCancel = new Button(shell, SWT.NONE);\n btnCancel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/cross.png\"));\n final FormData fd_btnCancel = new FormData();\n fd_btnCancel.height = 28;\n fd_btnCancel.width = 80;\n fd_btnCancel.bottom = new FormAttachment(100, -5);\n fd_btnCancel.left = new FormAttachment(50, 10);\n btnCancel.setLayoutData(fd_btnCancel);\n btnCancel.setText(\"取消(&C)\");\n btnCancel.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event e) {\n close();\n }\n });\n\n final TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TabItem ti = (TabItem) e.item;\n if (ti.getText().startsWith(\"SQL\")) {\n DataNodeProperties d = new DataNodeProperties();\n d.setAdditionSql(txtOtherCondition.getText());\n // d.setTableName(nodeProperties.getTableName());\n d.setName(nodeProperties.getName());\n d.setFields(dataFieldList);\n d.setFilters(filterList);\n txtSQL.setText(d.getSQL(null));\n }\n else if (ti.getText().startsWith(\"过滤\")) {\n String[] fNames = null;\n if (dataFieldList != null && dataFieldList.size() > 0) {\n fNames = new String[dataFieldList.size()];\n for (int i = 0; i < dataFieldList.size(); i++) {\n fNames[i] = dataFieldList.get(i).getAliasName();\n }\n }\n else fNames = new String[] { \"\" };\n // filtersCellModifier.setAliasNames(fNames);\n tvFilter.setCellModifier(new FiltersCellModifier(tvFilter, fNames));\n tvFilter.getCellEditors()[0] = new ComboBoxCellEditor(tblFilter, fNames, SWT.READ_ONLY);\n }\n else if (ti.getText().startsWith(\"列表配置\")) {\n \tif (dataFieldList.size() > configList.size()) {\n \t\tint configLength = configList.size();\n \t\t//添加\n \tfor (int i = 0 ;i<dataFieldList.size();i++ ) {\n \t\tDataField dataField = dataFieldList.get(i);\n \t\tString cnName = dataField.getCnName();\n String aliasName = dataField.getAliasName();\n if (!\"\".equals(cnName) && !\"\".equals(aliasName)) {\n \tboolean haveFlg = false;\n \tfor (int j = 0 ;j< configLength;j++) {\n \t\tFieldConfig filedCfig = configList.get(j);\n \t\tif (!(filedCfig.getCnName().equals(cnName) &&filedCfig.getName().equals(aliasName))) {\n \t\t\tcontinue;\n \t\t} else {\n \t\t\thaveFlg = true;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif (!haveFlg) {//原列表不存在此记录\n FieldConfig newFieldCfig = new FieldConfig();\n \t\t\tnewFieldCfig.setCnName(cnName);\n \t\t\tnewFieldCfig.setName(aliasName);\n \t\t\tconfigList.add(newFieldCfig);\n \t}\n }\n \t}\n \t//\n// \tfor (int k = 0;k< configLength;k++) {\n// \t\tFieldConfig filedCfig = configList.get(k);\n// \t\tString cnName = filedCfig.getCnName();\n// String aliasName = filedCfig.getName();\n// boolean haveFiledFlg = false;\n// for (int i = 0 ;i<dataFieldList.size();i++ ) {\n// \tDataField dataField = dataFieldList.get(i);\n// \tif (!(dataField.getAliasName().equals(aliasName) && dataField.getCnName().equals(cnName))) {\n// \t\tcontinue;\n// \t} else {\n// \t\thaveFiledFlg = true;\n// \t\tbreak;\n// \t}\n// }\n// if (!haveFiledFlg) {\n// \tconfigList.remove(k);\n// }\n// \n// \t}\n \t//刷新列表\n \ttvShowConfig.refresh();\n \t}\n }\n }\n });\n final FormData fd_tabFolder = new FormData();\n fd_tabFolder.bottom = new FormAttachment(100, -40);\n fd_tabFolder.top = new FormAttachment(composite_3, 3, SWT.BOTTOM);\n fd_tabFolder.right = new FormAttachment(100, -5);\n fd_tabFolder.left = new FormAttachment(0, 5);\n tabFolder.setLayoutData(fd_tabFolder);\n\n final TabItem tabFields = new TabItem(tabFolder, SWT.NONE);\n tabFields.setText(\"查询字段\");\n\n final Composite composite_1 = new Composite(tabFolder, SWT.NONE);\n composite_1.setLayout(new FormLayout());\n tabFields.setControl(composite_1);\n\n final Group group_1 = new Group(composite_1, SWT.NONE);\n final FormData fd_group_1 = new FormData();\n fd_group_1.left = new FormAttachment(0, 0);\n fd_group_1.bottom = new FormAttachment(100, 0);\n fd_group_1.right = new FormAttachment(100, 0);\n fd_group_1.top = new FormAttachment(0, -6);\n group_1.setLayoutData(fd_group_1);\n group_1.setLayout(new FormLayout());\n // tabFields.setControl(group_1);\n\n tvDataField = new TableViewer(group_1, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n tvDataField.setContentProvider(new ViewContentProvider());\n tvDataField.setLabelProvider(new DataFieldsLabelProvider0());\n tvDataField.setColumnProperties(DATAFIELDS0);\n tblDataField = tvDataField.getTable();\n\n CellEditor[] cellEditor = new CellEditor[7];\n cellEditor[0] = new TextCellEditor(tblDataField);\n cellEditor[1] = new TextCellEditor(tblDataField);\n cellEditor[2] = new TextCellEditor(tblDataField);\n cellEditor[3] = new ComboBoxCellEditor(tblDataField, Consts.DATATYPE_LABEL, SWT.READ_ONLY);\n cellEditor[4] = new TextCellEditor(tblDataField);\n cellEditor[5] = new ComboBoxCellEditor(tblDataField, Consts.SORTDIRECT_LABEL, SWT.READ_ONLY);\n// cellEditor[6] = new ComboBoxCellEditor(tblDataField, Consts.AGGREGATE_LABEL, SWT.READ_ONLY);\n// cellEditor[7] = new TextCellEditor(tblDataField);\n cellEditor[6] = new ComboBoxCellEditor(tblDataField, Consts.YESNO_LABEL, SWT.READ_ONLY);\n Text text1 = (Text) cellEditor[4].getControl();\n text1.addVerifyListener(new VerifyListener() {\n public void verifyText(VerifyEvent e) {\n String str = e.text;\n if (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n }\n });\n// Text text2 = (Text) cellEditor[7].getControl();\n// text2.addVerifyListener(new VerifyListener() {\n// public void verifyText(VerifyEvent e) {\n// String str = e.text;\n// if (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n// }\n// });\n\n tvDataField.setCellEditors(cellEditor);\n tvDataField.setCellModifier(new DataFieldsCellModifier2(tvDataField));\n\n final FormData fd_table_1 = new FormData();\n fd_table_1.bottom = new FormAttachment(100, -22);\n fd_table_1.top = new FormAttachment(0, -6);\n fd_table_1.right = new FormAttachment(100, 0);\n fd_table_1.left = new FormAttachment(0, 0);\n tblDataField.setLayoutData(fd_table_1);\n tblDataField.setLinesVisible(true);\n tblDataField.setHeaderVisible(true);\n\n final TableColumn colCnName = new TableColumn(tblDataField, SWT.NONE);\n colCnName.setWidth(100);\n colCnName.setText(\"中文名\");\n\n final TableColumn colFieldName = new TableColumn(tblDataField, SWT.NONE);\n colFieldName.setWidth(100);\n colFieldName.setText(\"字段名\");\n\n final TableColumn colAliasName = new TableColumn(tblDataField, SWT.NONE);\n colAliasName.setWidth(100);\n colAliasName.setText(\"别名\");\n\n final TableColumn colDataType = new TableColumn(tblDataField, SWT.NONE);\n colDataType.setWidth(80);\n colDataType.setText(\"数据类型\");\n\n final TableColumn colSortNo = new TableColumn(tblDataField, SWT.NONE);\n colSortNo.setWidth(60);\n colSortNo.setText(\"排序顺序\");\n\n final TableColumn colSortDirect = new TableColumn(tblDataField, SWT.NONE);\n colSortDirect.setWidth(80);\n colSortDirect.setText(\"排序方向\");\n\n final TableColumn colOutput = new TableColumn(tblDataField, SWT.NONE);\n colOutput.setWidth(80);\n colOutput.setText(\"是否输出\");\n\n final TabItem tabFilter = new TabItem(tabFolder, SWT.NONE);\n tabFilter.setText(\"过滤条件\");\n\n final Composite composite = new Composite(tabFolder, SWT.NONE);\n composite.setLayout(new FormLayout());\n tabFilter.setControl(composite);\n\n final Group group_2 = new Group(composite, SWT.NO_RADIO_GROUP);\n final FormData fd_group_2 = new FormData();\n fd_group_2.left = new FormAttachment(0, 0);\n fd_group_2.right = new FormAttachment(100, 0);\n fd_group_2.top = new FormAttachment(0, -6);\n fd_group_2.bottom = new FormAttachment(100, -80);\n group_2.setLayoutData(fd_group_2);\n group_2.setLayout(new FormLayout());\n\n tvFilter = new TableViewer(group_2, SWT.FULL_SELECTION | SWT.BORDER);\n tvFilter.setLabelProvider(new FiltersLabelProvider());\n tvFilter.setContentProvider(new ViewContentProvider());\n tvFilter.setColumnProperties(FiltersLabelProvider.DATAFIELDS);\n tblFilter = tvFilter.getTable();\n CellEditor[] cellEditor1 = new CellEditor[3];\n cellEditor1[0] = new TextCellEditor(tblFilter);\n String[] aliasNames = new String[] { \"\" };\n cellEditor1[0] = new ComboBoxCellEditor(tblFilter, aliasNames, SWT.READ_ONLY);\n cellEditor1[1] = new ComboBoxCellEditor(tblFilter, Consts.OPERATOR_LABEL, SWT.READ_ONLY);\n cellEditor1[2] = new TextCellEditor(tblFilter);\n tvFilter.setCellEditors(cellEditor1);\n // filtersCellModifier = new FiltersCellModifier(tvFilter, aliasNames);\n tvFilter.setCellModifier(new FiltersCellModifier(tvFilter, aliasNames));\n\n final FormData fd_table_2 = new FormData();\n fd_table_2.bottom = new FormAttachment(100, -21);\n fd_table_2.top = new FormAttachment(0, -5);\n fd_table_2.right = new FormAttachment(100, -1);\n fd_table_2.left = new FormAttachment(0, 1);\n tblFilter.setLayoutData(fd_table_2);\n tblFilter.setLinesVisible(true);\n tblFilter.setHeaderVisible(true);\n\n final TableColumn colFilterFieldName = new TableColumn(tblFilter, SWT.NONE);\n colFilterFieldName.setWidth(120);\n colFilterFieldName.setText(\"字段名称\");\n\n final TableColumn colOper = new TableColumn(tblFilter, SWT.NONE);\n colOper.setWidth(120);\n colOper.setText(\"操作符\");\n\n final TableColumn colFilterData = new TableColumn(tblFilter, SWT.NONE);\n colFilterData.setWidth(500);\n colFilterData.setText(\"操作数据\");\n\n final Button btnFilterAdd = new Button(group_2, SWT.NONE);\n btnFilterAdd.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n Filter df = new Filter();\n df.setField(\"\");\n df.setOperator(\"=\");\n df.setExpression(\"\");\n filterList.add(df);\n tvFilter.refresh();\n }\n });\n btnFilterAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n final FormData fd_btnFilterAdd = new FormData();\n fd_btnFilterAdd.bottom = new FormAttachment(100, -1);\n fd_btnFilterAdd.left = new FormAttachment(0, 1);\n fd_btnFilterAdd.height = 20;\n fd_btnFilterAdd.width = 20;\n btnFilterAdd.setLayoutData(fd_btnFilterAdd);\n\n final Button btnFilterDel = new Button(group_2, SWT.NONE);\n btnFilterDel.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TableItem[] selectItems = tblFilter.getSelection();\n if (selectItems != null && selectItems.length > 0) {\n for (TableItem ti : selectItems) {\n Filter o = (Filter) ti.getData();\n filterList.remove(o);\n }\n tvFilter.refresh();\n }\n }\n });\n btnFilterDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n final FormData fd_btnFilterDel = new FormData();\n fd_btnFilterDel.bottom = new FormAttachment(100, -1);\n fd_btnFilterDel.left = new FormAttachment(btnFilterAdd, 1, SWT.DEFAULT);\n fd_btnFilterDel.height = 20;\n fd_btnFilterDel.width = 20;\n btnFilterDel.setLayoutData(fd_btnFilterDel);\n\n final Button btnFilterUp = new Button(group_2, SWT.NONE);\n btnFilterUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n final FormData fd_btnFilterUp = new FormData();\n fd_btnFilterUp.bottom = new FormAttachment(100, -1);\n fd_btnFilterUp.left = new FormAttachment(btnFilterDel, 1, SWT.DEFAULT);\n fd_btnFilterUp.height = 20;\n fd_btnFilterUp.width = 20;\n btnFilterUp.setLayoutData(fd_btnFilterUp);\n btnFilterUp.setVisible(false);\n\n final Button btnFilterDown = new Button(group_2, SWT.NONE);\n btnFilterDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n final FormData fd_btnFilterDown = new FormData();\n fd_btnFilterDown.bottom = new FormAttachment(100, -1);\n fd_btnFilterDown.left = new FormAttachment(btnFilterUp, 1, SWT.DEFAULT);\n fd_btnFilterDown.height = 20;\n fd_btnFilterDown.width = 20;\n btnFilterDown.setLayoutData(fd_btnFilterDown);\n btnFilterDown.setVisible(false);\n\n final Label label_2 = new Label(composite, SWT.NONE);\n final FormData fd_label_2 = new FormData();\n fd_label_2.bottom = new FormAttachment(100, -60);\n fd_label_2.top = new FormAttachment(group_2, 1);\n fd_label_2.width = 70;\n fd_label_2.left = new FormAttachment(0, 0);\n label_2.setLayoutData(fd_label_2);\n label_2.setText(\"其他条件:\");\n\n txtOtherCondition = new StyledText(composite, SWT.BORDER);\n final FormData fd_txtOtherCondition = new FormData();\n fd_txtOtherCondition.bottom = new FormAttachment(100, -1);\n fd_txtOtherCondition.top = new FormAttachment(label_2, 1);\n fd_txtOtherCondition.right = new FormAttachment(100, -1);\n fd_txtOtherCondition.left = new FormAttachment(0, 1);\n txtOtherCondition.setLayoutData(fd_txtOtherCondition);\n\n final Button btnFieldAdd = new Button(group_1, SWT.NONE);\n btnFieldAdd.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n DataField df = new DataField();\n df.setOutput(Consts.YES);\n df.setSortDirect(\"\");\n df.setSortNo(\"\");\n df.setAggregate(\"\");\n dataFieldList.add(df);\n tvDataField.refresh();\n }\n });\n btnFieldAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n final FormData fd_btnFieldAdd = new FormData();\n fd_btnFieldAdd.bottom = new FormAttachment(100, 0);\n fd_btnFieldAdd.left = new FormAttachment(0, 0);\n fd_btnFieldAdd.height = 20;\n fd_btnFieldAdd.width = 20;\n btnFieldAdd.setLayoutData(fd_btnFieldAdd);\n\n final Button btnFieldDel = new Button(group_1, SWT.NONE);\n btnFieldDel.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TableItem[] selectItems = tblDataField.getSelection();\n if (selectItems != null && selectItems.length > 0) {\n for (TableItem ti : selectItems) {\n DataField o = (DataField) ti.getData();\n //\n String cnName = o.getCnName();\n String aliasName = o.getAliasName();\n for (int i = 0;i< configList.size();i++) {\n \tFieldConfig cfig = configList.get(i);\n \tif (cnName.equals(cfig.getCnName()) && aliasName.equals(cfig.getName())) {\n \t\tconfigList.remove(i);\n \t\tbreak;\n \t}\n }\n \n dataFieldList.remove(o);\n }\n tvDataField.refresh();\n tvShowConfig.refresh();\n }\n }\n });\n btnFieldDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n final FormData fd_btnFieldDel = new FormData();\n fd_btnFieldDel.bottom = new FormAttachment(100, 0);\n fd_btnFieldDel.left = new FormAttachment(0, 21);\n fd_btnFieldDel.height = 20;\n fd_btnFieldDel.width = 20;\n btnFieldDel.setLayoutData(fd_btnFieldDel);\n\n final TabItem tabSQL = new TabItem(tabFolder, SWT.NONE);\n tabSQL.setText(\"SQL语句\");\n\n final Composite composite_2 = new Composite(tabFolder, SWT.NONE);\n composite_2.setLayout(new FormLayout());\n tabSQL.setControl(composite_2);\n\n final Group group = new Group(composite_2, SWT.NONE);\n final FormData fd_group = new FormData();\n fd_group.top = new FormAttachment(0, -6);\n fd_group.right = new FormAttachment(100, 0);\n fd_group.left = new FormAttachment(0, 0);\n fd_group.bottom = new FormAttachment(100, 0);\n group.setLayoutData(fd_group);\n group.setLayout(new FormLayout());\n\n txtSQL = new StyledText(group, SWT.BORDER|SWT.WRAP|SWT.MULTI|SWT.V_SCROLL|SWT.H_SCROLL);\n final FormData fd_txtSQL = new FormData();\n fd_txtSQL.bottom = new FormAttachment(100, 0);\n fd_txtSQL.top = new FormAttachment(0, -6);\n fd_txtSQL.right = new FormAttachment(100, 0);\n fd_txtSQL.left = new FormAttachment(0, 0);\n txtSQL.setLayoutData(fd_txtSQL);\n txtSQL.setWordWrap(true);\n txtSQL.setFont(SWTResourceManager.getFont(\"Fixedsys\", 10, SWT.NONE));\n txtSQL.setEditable(false);\n\n final TabItem tabItem = new TabItem(tabFolder, SWT.NONE);\n tabItem.setText(\"列表配置\");\n\n final Composite composite_1_1 = new Composite(tabFolder, SWT.NONE);\n composite_1_1.setLayout(new FormLayout());\n tabItem.setControl(composite_1_1);\n\n final Group group_3 = new Group(composite_1_1, SWT.NONE);\n group_3.setLayout(new FormLayout());\n final FormData fd_group_3 = new FormData();\n fd_group_3.left = new FormAttachment(0, 0);\n fd_group_3.bottom = new FormAttachment(100, 0);\n fd_group_3.right = new FormAttachment(100, 0);\n fd_group_3.top = new FormAttachment(0, -6);\n group_3.setLayoutData(fd_group_3);\n\n tvShowConfig = new TableViewer(group_3, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n tvShowConfig.setContentProvider(new ViewContentProvider());\n tvShowConfig.setLabelProvider(new ShowConfigLabelProvider());\n tvShowConfig.setColumnProperties(DATAFIELDS);\n tblShowConfig = tvShowConfig.getTable();\n\n CellEditor[] cfigCellEditor = new CellEditor[8];\n cfigCellEditor[0] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[1] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[2] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[3] = new ComboBoxCellEditor(tblShowConfig, Consts.ALIGN_LABEL, SWT.READ_ONLY);\n cfigCellEditor[4] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[5] = new ComboBoxCellEditor(tblShowConfig, Consts.YESNO_LABEL, SWT.READ_ONLY);\n cfigCellEditor[6] = new ComboBoxCellEditor(tblShowConfig, codeSetNames, SWT.READ_ONLY);\n// cellEditor[7] = new DetailLinkCellEditor(tblShowConfig, configList, diagram.getNodes());\n Text text10 = (Text) cfigCellEditor[4].getControl();\n text10.addVerifyListener(new NumberVerifier());\n\n tvShowConfig.setCellEditors(cfigCellEditor);\n tvShowConfig.setCellModifier(new ShowConfigCellModifier(tvShowConfig));\n \n final FormData fd_table_1_1 = new FormData();\n fd_table_1_1.bottom = new FormAttachment(100, -21);\n fd_table_1_1.top = new FormAttachment(0, 1);\n fd_table_1_1.right = new FormAttachment(100, -1);\n fd_table_1_1.left = new FormAttachment(0, 0);\n tblShowConfig.setLayoutData(fd_table_1_1);\n tblShowConfig.setLinesVisible(true);\n tblShowConfig.setHeaderVisible(true);\n\n final TableColumn colCnName_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colCnName_1.setWidth(120);\n colCnName_1.setText(\"中文名\");\n\n final TableColumn colFieldName_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colFieldName_1.setWidth(120);\n colFieldName_1.setText(\"列名\");\n\n final TableColumn colDataType_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colDataType_1.setWidth(60);\n colDataType_1.setText(\"数据格式\");\n\n final TableColumn colAlign = new TableColumn(tblShowConfig, SWT.NONE);\n colAlign.setWidth(70);\n colAlign.setText(\"对齐方式\");\n\n final TableColumn colWidth = new TableColumn(tblShowConfig, SWT.NONE);\n colWidth.setWidth(40);\n colWidth.setText(\"宽度\");\n\n final TableColumn colVisible = new TableColumn(tblShowConfig, SWT.NONE);\n colVisible.setWidth(70);\n colVisible.setText(\"是否显示\");\n\n final TableColumn colCodeSet = new TableColumn(tblShowConfig, SWT.NONE);\n colCodeSet.setWidth(100);\n colCodeSet.setText(\"代码集\");\n\n final Button btnUp = new Button(group_3, SWT.NONE);\n btnUp.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n if (tblShowConfig.getSelectionCount() == 1) {\n int idx = tblShowConfig.getSelectionIndex();\n if (idx > 0) {\n FieldConfig o = (FieldConfig) tblShowConfig.getSelection()[0].getData();\n configList.remove(o);\n configList.add(idx - 1, o);\n tvShowConfig.refresh();\n }\n }\n }\n });\n btnUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n final FormData fd_btnUp = new FormData();\n fd_btnUp.left = new FormAttachment(0,1);\n fd_btnUp.top = new FormAttachment(tblShowConfig, 1);\n fd_btnUp.width = 20;\n fd_btnUp.height = 20;\n btnUp.setLayoutData(fd_btnUp);\n btnUp.setText(\"button\");\n\n final Button btnDown = new Button(group_3, SWT.NONE);\n btnDown.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n if (tblShowConfig.getSelectionCount() == 1) {\n int idx = tblShowConfig.getSelectionIndex();\n if (idx < tblShowConfig.getItemCount()) {\n FieldConfig o = (FieldConfig) tblShowConfig.getSelection()[0].getData();\n configList.remove(o);\n configList.add(idx + 1, o);\n tvShowConfig.refresh();\n }\n }\n }\n });\n btnDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n final FormData fd_btnDown = new FormData();\n fd_btnDown.top = new FormAttachment(tblShowConfig, 1);\n fd_btnDown.width = 20;\n fd_btnDown.height = 20;\n fd_btnDown.left = new FormAttachment(btnUp, 1);\n btnDown.setLayoutData(fd_btnDown);\n btnDown.setText(\"button\");\n\n //\n init();\n }", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), getStyle());\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(getText());\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite = new Composite(shell, SWT.NONE);\r\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite_1 = new Composite(composite, SWT.NONE);\r\n\t\tRowLayout rl_composite_1 = new RowLayout(SWT.VERTICAL);\r\n\t\trl_composite_1.center = true;\r\n\t\trl_composite_1.fill = true;\r\n\t\tcomposite_1.setLayout(rl_composite_1);\r\n\t\t\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayout(new FillLayout(SWT.VERTICAL));\r\n\t\t\r\n\t\tButton btnNewButton = new Button(composite_2, SWT.NONE);\r\n\t\tbtnNewButton.setText(\"New Button\");\r\n\t\t\r\n\t\tButton btnRadioButton = new Button(composite_2, SWT.RADIO);\r\n\t\tbtnRadioButton.setText(\"Radio Button\");\r\n\t\t\r\n\t\tButton btnCheckButton = new Button(composite_2, SWT.CHECK);\r\n\t\tbtnCheckButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCheckButton.setText(\"Check Button\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(41, 226, 75, 25);\n\t\tbtnNewButton.setText(\"Limpiar\");\n\t\t\n\t\tButton btnGuardar = new Button(shell, SWT.NONE);\n\t\tbtnGuardar.setBounds(257, 226, 75, 25);\n\t\tbtnGuardar.setText(\"Guardar\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(25, 181, 130, 21);\n\t\t\n\t\ttext_1 = new Text(shell, SWT.BORDER);\n\t\ttext_1.setBounds(230, 181, 130, 21);\n\t\t\n\t\ttext_2 = new Text(shell, SWT.BORDER);\n\t\ttext_2.setBounds(25, 134, 130, 21);\n\t\t\n\t\ttext_3 = new Text(shell, SWT.BORDER);\n\t\ttext_3.setBounds(25, 86, 130, 21);\n\t\t\n\t\ttext_4 = new Text(shell, SWT.BORDER);\n\t\ttext_4.setBounds(25, 42, 130, 21);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(227, 130, 75, 25);\n\t\tbtnNewButton_1.setText(\"Buscar\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setBounds(25, 21, 55, 15);\n\t\tlabel.setText(\"#\");\n\t\t\n\t\tLabel lblFechaYHora = new Label(shell, SWT.NONE);\n\t\tlblFechaYHora.setBounds(25, 69, 75, 15);\n\t\tlblFechaYHora.setText(\"Fecha y Hora\");\n\t\t\n\t\tLabel lblPlaca = new Label(shell, SWT.NONE);\n\t\tlblPlaca.setBounds(25, 113, 55, 15);\n\t\tlblPlaca.setText(\"Placa\");\n\t\t\n\t\tLabel lblMarca = new Label(shell, SWT.NONE);\n\t\tlblMarca.setBounds(25, 161, 55, 15);\n\t\tlblMarca.setText(\"Marca\");\n\t\t\n\t\tLabel lblColor = new Label(shell, SWT.NONE);\n\t\tlblColor.setBounds(230, 161, 55, 15);\n\t\tlblColor.setText(\"Color\");\n\n\t}", "protected void createContents() {\n\t\t\n\t\tshlMailview = new Shell();\n\t\tshlMailview.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tshlMailview.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tshlMailview.setSize(1124, 800);\n\t\tshlMailview.setText(\"MailView\");\n\t\tshlMailview.setLayout(new BorderLayout(0, 0));\t\t\n\t\t\n\t\tMenu menu = new Menu(shlMailview, SWT.BAR);\n\t\tshlMailview.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\");\n\t\t\n\t\tMenu mainMenu = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(mainMenu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(mainMenu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tMenuItem exitMenu = new MenuItem(mainMenu, SWT.NONE);\n\t\texitMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\t\t\t\n\t\t\t\tshlMailview.close();\n\t\t\t}\n\t\t});\n\t\texitMenu.setText(\"\\u0412\\u044B\\u0445\\u043E\\u0434\");\n\t\t\n\t\tMenuItem filtrMenu = new MenuItem(menu, SWT.NONE);\n\t\tfiltrMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfilterDialog fd = new filterDialog(shlMailview, 0);\n\t\t\t\tfd.open();\n\t\t\t}\n\t\t});\n\t\tfiltrMenu.setText(\"\\u0424\\u0438\\u043B\\u044C\\u0442\\u0440\");\n\t\t\n\t\tMenuItem settingsMenu = new MenuItem(menu, SWT.NONE);\n\t\tsettingsMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tsettingDialog sd = new settingDialog(shlMailview, 0);\n\t\t\t\tsd.open();\n\t\t\t}\n\t\t});\n\t\tsettingsMenu.setText(\"\\u041D\\u0430\\u0441\\u0442\\u0440\\u043E\\u0439\\u043A\\u0438\");\n\t\t\n\t\tfinal TabFolder tabFolder = new TabFolder(shlMailview, SWT.NONE);\n\t\ttabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(tabFolder.getSelectionIndex() == 1)\n\t\t\t\t{\n\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttabFolder.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\t\n\t\tTabItem lettersTab = new TabItem(tabFolder, SWT.NONE);\n\t\tlettersTab.setText(\"\\u041F\\u0438\\u0441\\u044C\\u043C\\u0430\");\n\t\t\n\t\tComposite composite_2 = new Composite(tabFolder, SWT.NONE);\n\t\tlettersTab.setControl(composite_2);\n\t\tcomposite_2.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite_4 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_4 = new FormData();\n\t\tfd_composite_4.bottom = new FormAttachment(0, 81);\n\t\tfd_composite_4.top = new FormAttachment(0);\n\t\tfd_composite_4.left = new FormAttachment(0);\n\t\tfd_composite_4.right = new FormAttachment(0, 1100);\n\t\tcomposite_4.setLayoutData(fd_composite_4);\n\t\t\n\t\tComposite composite_5 = new Composite(composite_2, SWT.NONE);\n\t\tcomposite_5.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_composite_5 = new FormData();\n\t\tfd_composite_5.bottom = new FormAttachment(composite_4, 281, SWT.BOTTOM);\n\t\tfd_composite_5.left = new FormAttachment(composite_4, 0, SWT.LEFT);\n\t\tfd_composite_5.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\tfd_composite_5.top = new FormAttachment(composite_4, 6);\n\t\tcomposite_5.setLayoutData(fd_composite_5);\n\t\t\n\t\tComposite composite_10 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_10 = new FormData();\n\t\tfd_composite_10.top = new FormAttachment(composite_5, 6);\n\t\tfd_composite_10.bottom = new FormAttachment(100, -10);\n\t\t\n\t\tlettersTable = new Table(composite_5, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tlettersTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\titem.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.NONE));\n\t\t\t\t\tbox.Preview(Integer.parseInt(item.getText(0)));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlettersTable.setLinesVisible(true);\n\t\tlettersTable.setHeaderVisible(true);\n\t\tTableColumn msgId = new TableColumn(lettersTable, SWT.NONE);\n\t\tmsgId.setResizable(false);\n\t\tmsgId.setText(\"ID\");\n\t\t\n\t\tTableColumn from = new TableColumn(lettersTable, SWT.NONE);\n\t\tfrom.setWidth(105);\n\t\tfrom.setText(\"\\u041E\\u0442\");\n\t\tfrom.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn to = new TableColumn(lettersTable, SWT.NONE);\n\t\tto.setWidth(111);\n\t\tto.setText(\"\\u041A\\u043E\\u043C\\u0443\");\n\t\tto.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn subject = new TableColumn(lettersTable, SWT.NONE);\n\t\tsubject.setWidth(406);\n\t\tsubject.setText(\"\\u0422\\u0435\\u043C\\u0430\");\n\t\tsubject.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn created = new TableColumn(lettersTable, SWT.NONE);\n\t\tcreated.setWidth(176);\n\t\tcreated.setText(\"\\u0421\\u043E\\u0437\\u0434\\u0430\\u043D\\u043E\");\n\t\tcreated.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\n\t\t\n\t\tTableColumn received = new TableColumn(lettersTable, SWT.NONE);\n\t\treceived.setWidth(194);\n\t\treceived.setText(\"\\u041F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E\");\n\t\treceived.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\t\t\n\t\t\n\t\tMenu popupMenuLetter = new Menu(lettersTable);\n\t\tlettersTable.setMenu(popupMenuLetter);\n\t\t\n\t\tMenuItem miUpdate = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiUpdate.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmiUpdate.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tfinal MenuItem miDelete = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiDelete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\tfd_composite_10.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\t\n\t\tfinal Button btnInbox = new Button(composite_4, SWT.NONE);\n\t\tfinal Button btnTrash = new Button(composite_4, SWT.NONE);\n\t\t\n\t\tbtnInbox.setBounds(10, 10, 146, 39);\n\t\tbtnInbox.setEnabled(false);\n\t\tbtnInbox.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(false);\t\t\t\t\n\t\t\t\tbtnInbox.setEnabled(false);\n\t\t\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\t\t\tbtnTrash.setEnabled(true);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnInbox.setText(\"\\u0412\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435\");\n\t\tbtnTrash.setLocation(170, 10);\n\t\tbtnTrash.setSize(146, 39);\n\t\tbtnTrash.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(true);\n\t\t\t\tbtnInbox.setEnabled(true);\n\t\t\t\tmiDelete.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\tbtnTrash.setEnabled(false);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnTrash.setText(\"\\u041A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0430\");\n\t\t\n\t\tButton deleteLetter = new Button(composite_4, SWT.NONE);\n\t\tdeleteLetter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdeleteLetter.setLocation(327, 11);\n\t\tdeleteLetter.setSize(146, 37);\n\t\tdeleteLetter.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tdeleteLetter.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\n\t\tLabel label = new Label(composite_4, SWT.NONE);\n\t\tlabel.setLocation(501, 17);\n\t\tlabel.setSize(74, 27);\n\t\tlabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlabel.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\n\t\tCombo listAccounts = new Combo(composite_4, SWT.NONE);\n\t\tlistAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlistAccounts.setLocation(583, 19);\n\t\tlistAccounts.setSize(180, 23);\n\t\tlistAccounts.setItems(new String[] {\"\\u0412\\u0441\\u0435\"});\n\t\tlistAccounts.select(0);\n\t\t\n\t\tprogressBar = new ProgressBar(composite_4, SWT.NONE);\n\t\tprogressBar.setBounds(10, 64, 263, 17);\n\t\tfd_composite_10.left = new FormAttachment(0);\n\t\tcomposite_10.setLayoutData(fd_composite_10);\n\t\t\n\t\theaderMessage = new Text(composite_10, SWT.BORDER);\n\t\theaderMessage.setFont(SWTResourceManager.getFont(\"Segoe UI\", 14, SWT.NORMAL));\n\t\theaderMessage.setBounds(0, 0, 1100, 79);\n\t\t\n\t\tsc = new ScrolledComposite(composite_10, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tsc.setBounds(0, 85, 1100, 230);\n\t\tsc.setExpandHorizontal(true);\n\t\tsc.setExpandVertical(true);\t\t\n\t\t\n\t\tTabItem accountsTab = new TabItem(tabFolder, SWT.NONE);\n\t\taccountsTab.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u044B\");\n\t\t\n\t\tComposite accountComposite = new Composite(tabFolder, SWT.NONE);\n\t\taccountsTab.setControl(accountComposite);\n\t\taccountComposite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\n\t\t\tLabel labelListAccounts = new Label(accountComposite, SWT.NONE);\n\t\t\tlabelListAccounts.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\tlabelListAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\tlabelListAccounts.setBounds(10, 37, 148, 31);\n\t\t\tlabelListAccounts.setText(\"\\u0421\\u043F\\u0438\\u0441\\u043E\\u043A \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u043E\\u0432\");\n\t\t\t\n\t\t\tComposite Actions = new Composite(accountComposite, SWT.NONE);\n\t\t\tActions.setBounds(412, 71, 163, 234);\n\t\t\t\n\t\t\tButton addAccount = new Button(Actions, SWT.NONE);\n\t\t\taddAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, true);\n\t\t\t\t\tad.open();\n\t\t\t\t}\n\t\t\t});\n\t\t\taddAccount.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\t\taddAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\taddAccount.setBounds(10, 68, 141, 47);\n\t\t\taddAccount.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton editAccount = new Button(Actions, SWT.NONE);\n\t\t\teditAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, false);\n\t\t\t\t\tad.open();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\teditAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\teditAccount.setBounds(10, 121, 141, 47);\n\t\t\teditAccount.setText(\"\\u0418\\u0437\\u043C\\u0435\\u043D\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton deleteAccount = new Button(Actions, SWT.NONE);\n\t\t\tdeleteAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tif(MessageDialog.openConfirm(shlMailview, \"Удаление\", \"Вы хотите удалить учетную запись \" + item.getText(1)+\"?\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tservice.DeleteAccount(item.getText(0));\n\t\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tdeleteAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\t\t\t\n\t\t\tdeleteAccount.setBounds(10, 174, 141, 47);\n\t\t\tdeleteAccount.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tfinal Button Include = new Button(Actions, SWT.NONE);\n\t\t\tInclude.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tservice.toogleIncludeAccount(item.getText(0));\n\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tInclude.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\tInclude.setBounds(10, 10, 141, 47);\n\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\n\t\t\taccountsTable = new Table(accountComposite, SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION);\n\t\t\taccountsTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getSelection()[0].getText(2)==\"Включен\")\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u044B\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\taccountsTable.setBounds(10, 74, 396, 296);\n\t\t\taccountsTable.setHeaderVisible(true);\n\t\t\taccountsTable.setLinesVisible(true);\n\t\t\t\n\t\t\tTableColumn tblclmnId = new TableColumn(accountsTable, SWT.NONE);\n\t\t\ttblclmnId.setWidth(35);\n\t\t\ttblclmnId.setText(\"ID\");\n\t\t\t//accountsTable.setRedraw(false);\n\t\t\t\n\t\t\tTableColumn columnLogin = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnLogin.setWidth(244);\n\t\t\tcolumnLogin.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\t\n\t\t\tTableColumn columnState = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnState.setWidth(100);\n\t\t\tcolumnState.setText(\"\\u0421\\u043E\\u0441\\u0442\\u043E\\u044F\\u043D\\u0438\\u0435\");\n\t}", "protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }", "protected void createContents() {\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 void Create() {\n initView();\n initData();\n }", "private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}", "public void createContents(Composite parent) {\n\t\tparent.setLayout(new FillLayout());\n\t\tfMainSection = fToolkit.createSection(parent, Section.TITLE_BAR);\n\n\t\tComposite mainComposite = fToolkit.createComposite(fMainSection, SWT.NONE);\n\t\tfToolkit.paintBordersFor(mainComposite);\n\t\tfMainSection.setClient(mainComposite);\n\t\tmainComposite.setLayout(new GridLayout(1, true));\n\t\t\n\t\tcreateClassListViewer(mainComposite);\n\t\tcreateBottomButtons(mainComposite);\n\t\tcreateTextClientComposite(fMainSection);\n\t}", "private void createContents() {\n\t\tshlAbout = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshlAbout.setMinimumSize(new Point(800, 600));\n\t\tshlAbout.setSize(800, 688);\n\t\tshlAbout.setText(\"About\");\n\t\t\n\t\tLabel lblKelimetrikAPsycholinguistic = new Label(shlAbout, SWT.CENTER);\n\t\tlblKelimetrikAPsycholinguistic.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlblKelimetrikAPsycholinguistic.setBounds(0, 10, 784, 21);\n\t\tlblKelimetrikAPsycholinguistic.setText(\"KelimetriK: A psycholinguistic tool of Turkish\");\n\t\t\n\t\tScrolledComposite scrolledComposite = new ScrolledComposite(shlAbout, SWT.BORDER | SWT.V_SCROLL);\n\t\tscrolledComposite.setBounds(0, 37, 774, 602);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\t\t\n\t\tComposite composite = new Composite(scrolledComposite, SWT.NONE);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setSize(107, 21);\n\t\tlabel.setText(\"Introduction\");\n\t\tlabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_1 = new Label(composite, SWT.WRAP);\n\t\tlabel_1.setLocation(0, 27);\n\t\tlabel_1.setSize(753, 157);\n\t\tlabel_1.setText(\"Selection of appropriate words for a fully controlled word stimuli set is an essential component for conducting an effective psycholinguistic studies (Perea, & Polatsek, 1998; Bowers, Davis, & Hanley, 2004). For example, if the word stimuli set of a visual word recognition study is full of high frequency words, this may create a bias on the behavioral scores and would lead to incorrect inferences about the hypothesis. Thus, experimenters who are intended to work with any kind of verbal stimuli should consider such linguistic variables to obtain reliable results.\\r\\n\\r\\nKelimetriK is a query-based software program designed to demonstrate several lexical variables and orthographic statistics of words. As shown in Figure X, the user-friendly interface of KelimetriK is an easy-to-use software developed to be a helpful source experimenters who are preparing verbal stimuli sets for psycholinguistic studies. KelimetriK provides information about several lexical properties of word-frequency, neighborhood size, orthographic similarity and relatedness. KelimetriK\\u2019s counterparts in other language are N-watch in English (Davis, 2005) and BuscaPalabras in Spanish (Davis, & Perea, 2005).\");\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setLocation(0, 190);\n\t\tlabel_2.setSize(753, 21);\n\t\tlabel_2.setText(\"The lexical variables in KelimetriK Software\");\n\t\tlabel_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_3 = new Label(composite, SWT.WRAP);\n\t\tlabel_3.setBounds(0, 228, 753, 546);\n\t\tlabel_3.setText(\"Output lexical variables (and orthographic statistics) in KelimetriK are word-frequency, bigram and tri-gram frequency and average frequency values, orthographic neighborhood size (Coltheart\\u2019s N), orthographic Levensthein distance 20 (OLD20) and transposed letter and subset/superset similarity.\\r\\n\\r\\nWord frequency is a value that describes of how many times a word occurred in a given text. Research shows that there is a consistent logarithmic relationship between reaction time and word\\u2019s frequency score; the impact of effect is higher for smaller frequencies words that the effect gets smaller on higher frequency scores (Davis, 2005).\\r\\n\\r\\nBi-grams and tri-grams are are obtained by decomposing a word (string of tokens) into sequences of two and three number of neighboring elements (Manning, & Sch\\u00FCtze, 1999). For example, the Turkish word \\u201Ckule\\u201D (tower in English) can be decomposed into three different bigram sets (\\u201Cku\\u201D, \\u201Cul\\u201D, \\u201Cle\\u201D). Bigram/trigram frequency values are obtained by counting how many same letter (four in this case) words will start with first bigram set (e.g. \\u201Cku\\u201D), how many words have second bigram set in the middle (e.g. \\u201Cul\\u201D) in the middle, and how many words will end with last bigram set (\\u201Cle\\u201D) in a given lexical word database. The trigrams for the word \\u201Ckule\\u201D are \\u201Ckul\\u201D and \\u201Cule\\u201D. Average bi-gram/tri-gram frequency is obtained by adding a word\\u2019s entire bi-gram/ tri-gram frequencies and then dividing it by number of bigrams (\\u201Ckule\\u201D consist of three bigrams).\\r\\n\\r\\nOrthographic neighborhood size (Coltheart\\u2019s N) refers to number of words that can be obtained from a given lexical database word list by substituting a single letter of a word (Coltheart et al, 1977). For example, orthographic neighborhood size of the word \\u201Ckule\\u201D is 9 if searched on KelimetriK (\\u201C\\u015Fule\\u201D, \\u201Ckula\\u201D, \\u201Ckulp\\u201D, \\u201Cfule\\u201D, \\u201Ckale\\u201D, \\u201Ck\\u00F6le\\u201D, \\u201Ckele\\u201D, \\u201Ckile\\u201D, \\u201Cku\\u015Fe\\u201D). A word\\u2019s orthographic neighborhood size could influence behavioral performance in visual word recognition tasks of lexical decision, naming, perceptual identification, and semantic categorization (Perea, & Polatsek, 1998).\\r\\n\\r\\nOrthographic Levensthein distance 20 (OLD20) of a word is the average of 20 most close words in the unit of Levensthein distance (Yarkoni, Balota, & Yap, 2008). Levensthein distance between the two strings of letters is obtained by counting the minimum number of operations (substitution, deletion or insertion) required while passing from one letter string to the other (Levenshthein, 1966). Behavioral studies show that, OLD20 is negatively correlated with orthographic neighborhood size (r=-561) and positively correlated with word-length (r=868) for English words (Yarkoni, Balota, & Yap, 2008). Moreover, OLD20 explains more variance on visual word recognition scores than orthographic neighborhood size and word length (Yarkoni, Balota, & Yap, 2008).\\r\\n\\r\\nOrthographic similarity between two words means they are the neighbors of each other like the words \\u201Cal\\u0131n\\u201D (forehead in English) and \\u201Calan\\u201D (area in English). Transposed letter (TL) and subset/superset are the two most common similarities in the existing literature (Davis, 2005). TL similiarity is the case when the two letters differ from each other based on a single pair of adjacent letters as in the Turkish words of \\u201Cesen\\u201D (blustery) and \\u201Cesne\\u201D (yawn). Studies have shown that TL similarity may facilitate detection performance on naming and lexical decision task (Andrews, 1996). Subset/Superset similarity occurs when there is an embedded word in a given input word such as \\u201Cs\\u00FCt\\u201D (subset: milk in Turkish) \\u201Cs\\u00FCtun\\u201D (superset: pillar in Turkish). Presence of a subset in a word in a stimuli set may influence the subject\\u2019s reading performance, hence may create a confounding factor on the behavioral results (Bowers, Davis, & Hanley, 2005).\");\n\t\t\n\t\tLabel lblAndrewsLexical = new Label(composite, SWT.NONE);\n\t\tlblAndrewsLexical.setLocation(0, 798);\n\t\tlblAndrewsLexical.setSize(753, 296);\n\t\tlblAndrewsLexical.setText(\"Andrews (1996). Lexical retrieval and selection processes: Effects of transposed-letter confusability, Journal of Memory and Language 35, 775\\u2013800\\r\\n\\r\\nBowers, J. S., Davis, C. J., & Hanley, D. A. (2005). References automatic semantic activation of embedded words: Is there a \\u2018\\u2018hat\\u2019\\u2019 in \\u2018\\u2018that\\u2019\\u2019? Journal of Memory and Language, 52, 131-143.\\r\\n\\r\\nColtheart, M., Davelaar, E., Jonasson, J. T., & Besner, D. (1977). Access to the internal lexicon. Attention and Performance, 6, 535-555.\\r\\n\\r\\nDavis, C. J. (2005). N-Watch: A program for deriving neighborhood size and other psycholinguistic statistics. Behavior Research Methods, 37, 65-70.\\r\\n\\r\\nDavis, C. J., & Parea, M. (2005). BuscaPalabras: A program for deriving orthographic and phonological neighborhood statistics and other psycholinguistic indices in Spanish. Behavior Research Methods, 37, 665-671.\\r\\n\\r\\nLevenshtein, V. I. (1966, February). Binary codes capable of correcting deletions, insertions and reversals. In Soviet physics doklady (Vol. 10, p. 707).\\r\\n\\r\\nManning, C. D., & Sch\\u00FCtze, H. (1999). Foundations of statistical natural language processing. MIT press.\\r\\n\\r\\nPerea, M., & Pollatsek, A. (1998). The effects of neighborhood frequency in reading and lexical decision. Journal of Experimental Psychology, 24, 767-779.\\r\\n\\r\\nYarkoni, T., Balota, D., & Yap, M. (2008). Moving beyond Coltheart\\u2019s N: A new measure of orthographic similarity. Psychonomic Bulletin & Review, 15(5), 971-979.\\r\\n\");\n\t\t\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tlabel_4.setBounds(0, 771, 753, 21);\n\t\tlabel_4.setText(\"References\");\n\t\tlabel_4.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tscrolledComposite.setContent(composite);\n\t\tscrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.RESIZE | SWT.TITLE);\r\n\t\tshell.setSize(690, 436);\r\n\t\t\r\n\t\tDimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tint w = 690;\r\n\t\tint h = 436;\r\n\t\tshell.setBounds((int)(scrSize.width-w)/2,(int)(scrSize.height-h)/2,w, h);\r\n\t\tshell.setText(getText());\r\n\r\n\t\t\r\n\t\tloadData();\r\n\t\t\r\n\t\tviewer = new TableViewer(shell,SWT.FULL_SELECTION |SWT.MULTI |SWT.BORDER);\r\n\t\t\r\n\t\tfinal Table table = viewer.getTable();\r\n\t\ttable.setBounds(23, 53, 638, 285);\r\n\t\ttable.setLinesVisible(true);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setRedraw(true);\r\n\t\t\r\n\t\tTableColumn tbCol_Time = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Time.setWidth(69);\r\n\t\ttbCol_Time.setText(\"序号\");\t\t\r\n\t\t\r\n\t\tTableColumn tbCol_Path = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Path.setWidth(127);\r\n\t\ttbCol_Path.setText(\"进程\");\t\r\n\t\t\r\n\t\tTableColumn tbCol_Info = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Info.setWidth(123);\r\n\t\ttbCol_Info.setText(\"Hash值\");\r\n\t\t\r\n\t\tTableColumn tbCol_Type = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Type.setWidth(92);\r\n\t\ttbCol_Type.setText(\"类型\");\r\n\t\t\r\n\t\tTableColumn tbCol_Hash = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Hash.setWidth(196);\r\n\t\ttbCol_Hash.setText(\"描述信息\");\r\n\t\t\r\n\t\tviewer.setContentProvider(new TableViewerContentProvider());\r\n\t\tviewer.setLabelProvider(new TableViewerLabelProvider());\r\n\t\tviewer.setInput(white_list);\t\t\t\t//===== 设置数据源 ======\r\n\t\t\r\n\t\trefresh();\r\n\t\t\r\n\t\tlbl_ItemCount = new Label(shell, SWT.NONE);\r\n\t\tlbl_ItemCount.setBounds(43, 355, 194, 21);\r\n\t\tlbl_ItemCount.setText(\"未通过验证进程: \"+ table.getItemCount() +\"个\");\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(309, 344, 88, 25);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcount--;\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"楷体_GB2312\", 16, SWT.BOLD));\r\n\t\tlabel.setBounds(301, 10, 118, 21);\r\n\t\tlabel.setText(\"详细信息\");\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);\r\n\t\tlabel_1.setBounds(10, 45, 664, 2);\r\n\r\n\t\t\r\n\t\t//添加窗体鼠标事件\r\n\t\tshell.addMouseListener(new MouseListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\t\t\t\t\r\n\t\t\t\tx=e.x;\r\n\t\t\t\ty=e.y;\t\t\t\t\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tx=y=-1;\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//鼠标移动事件\r\n\t\tshell.addMouseMoveListener(new MouseMoveListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseMove(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif(x>0)\r\n\t\t\t\t{\r\n\t\t\t\t\tshell.setLocation(e.x-x + shell.getLocation().x,\r\n\t\t\t\t\t\te.y-y + shell.getLocation().y);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAccountHeader.setAlignment(SWT.CENTER);\n\t\tdialogAccountHeader.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tdialogAccountHeader.setLayoutData(BorderLayout.NORTH);\n\t\tif(!this.isNeedAdd)\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0420\\u0435\\u0434\\u0430\\u043A\\u0442\\u0438\\u0440\\u043E\\u0432\\u0430\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u043B\\u0435\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel.setBounds(10, 16, 106, 21);\n\t\tlabel.setText(\"\\u0418\\u043C\\u044F \\u0441\\u0435\\u0440\\u0432\\u0435\\u0440\\u0430\");\n\t\t\n\t\ttextServer = new Text(composite, SWT.BORDER);\n\t\ttextServer.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextServer.setBounds(122, 13, 241, 32);\n\t\t\n\t\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_1.setText(\"\\u041B\\u043E\\u0433\\u0438\\u043D\");\n\t\tlabel_1.setBounds(10, 58, 55, 21);\n\t\t\n\t\ttextLogin = new Text(composite, SWT.BORDER);\n\t\ttextLogin.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextLogin.setBounds(122, 55, 241, 32);\n\t\ttextLogin.setFocus();\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_2.setText(\"\\u041F\\u0430\\u0440\\u043E\\u043B\\u044C\");\n\t\tlabel_2.setBounds(10, 106, 55, 21);\n\t\t\n\t\ttextPass = new Text(composite, SWT.PASSWORD | SWT.BORDER);\n\t\ttextPass.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextPass.setBounds(122, 103, 241, 32);\n\t\t\n\t\tif(isNeedAdd){\n\t\t\ttextServer.setText(\"imap.mail.ru\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttextServer.setText(this.account.getServer());\n\t\t\ttextLogin.setText(account.getLogin());\n\t\t\ttextPass.setText(account.getPass());\n\t\t}\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.SOUTH);\n\t\t\n\t\tButton btnSaveAccount = new Button(composite_1, SWT.NONE);\n\t\tbtnSaveAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString login = textLogin.getText();\n\t\t\t\tif(textServer.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле имя сервера не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textLogin.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (!login.matches(\"^([_A-Za-z0-9-]+)@([A-Za-z0-9]+)\\\\.([A-Za-z]{2,})$\"))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин введен некорректно!\");\n\t\t\t\t\treturn;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(Setting.Instance().AnyAccounts(textLogin.getText(), isNeedAdd))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"такой логин уже существует!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textPass.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле пароль не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(isNeedAdd)\n\t\t\t\t{\n\t\t\t\t\tservice.AddAccount(textServer.getText(), textLogin.getText(), textPass.getText());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\taccount.setLogin(textLogin.getText());\n\t\t\t\t\taccount.setPass(textPass.getText());\n\t\t\t\t\taccount.setServer(textServer.getText());\t\n\t\t\t\t\tservice.EditAccount(account);\n\t\t\t\t}\n\t\t\t\tservice.RepaintAccount(table);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnSaveAccount.setLocation(154, 0);\n\t\tbtnSaveAccount.setSize(96, 32);\n\t\tbtnSaveAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnSaveAccount.setText(\"\\u0421\\u043E\\u0445\\u0440\\u0430\\u043D\\u0438\\u0442\\u044C\");\n\t\t\n\t\tButton btnCancel = new Button(composite_1, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setLocation(267, 0);\n\t\tbtnCancel.setSize(96, 32);\n\t\tbtnCancel.setText(\"\\u041E\\u0442\\u043C\\u0435\\u043D\\u0430\");\n\t\tbtnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}", "private void createContents() {\r\n this.shell = new Shell(this.getParent(), this.getStyle());\r\n this.shell.setText(\"自動プロキシ構成スクリプトファイル生成\");\r\n this.shell.setLayout(new GridLayout(1, false));\r\n\r\n Composite composite = new Composite(this.shell, SWT.NONE);\r\n composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n composite.setLayout(new GridLayout(1, false));\r\n\r\n Label labelTitle = new Label(composite, SWT.NONE);\r\n labelTitle.setText(\"自動プロキシ構成スクリプトファイルを生成します\");\r\n\r\n String server = Filter.getServerName();\r\n if (server == null) {\r\n Group manualgroup = new Group(composite, SWT.NONE);\r\n manualgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n manualgroup.setLayout(new GridLayout(2, false));\r\n manualgroup.setText(\"鎮守府サーバーが未検出です。IPアドレスを入力して下さい。\");\r\n\r\n Label iplabel = new Label(manualgroup, SWT.NONE);\r\n iplabel.setText(\"IPアドレス:\");\r\n\r\n final Text text = new Text(manualgroup, SWT.BORDER);\r\n GridData gdip = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n gdip.widthHint = SwtUtils.DPIAwareWidth(150);\r\n text.setLayoutData(gdip);\r\n text.setText(\"0.0.0.0\");\r\n text.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent e) {\r\n CreatePacFileDialog.this.server = text.getText();\r\n }\r\n });\r\n\r\n this.server = \"0.0.0.0\";\r\n } else {\r\n this.server = server;\r\n }\r\n\r\n Button storeButton = new Button(composite, SWT.NONE);\r\n storeButton.setText(\"保存先を選択...\");\r\n storeButton.addSelectionListener(new FileSelectionAdapter(this));\r\n\r\n Group addrgroup = new Group(composite, SWT.NONE);\r\n addrgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n addrgroup.setLayout(new GridLayout(2, false));\r\n addrgroup.setText(\"アドレス(保存先のアドレスより生成されます)\");\r\n\r\n Label ieAddrLabel = new Label(addrgroup, SWT.NONE);\r\n ieAddrLabel.setText(\"IE用:\");\r\n\r\n this.iePath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdIePath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdIePath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.iePath.setLayoutData(gdIePath);\r\n\r\n Label fxAddrLabel = new Label(addrgroup, SWT.NONE);\r\n fxAddrLabel.setText(\"Firefox用:\");\r\n\r\n this.firefoxPath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdFxPath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdFxPath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.firefoxPath.setLayoutData(gdFxPath);\r\n\r\n this.shell.pack();\r\n }", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM | SWT.BORDER | SWT.PRIMARY_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/list-2x.png\"));\n\t\tshell.setSize(610, 340);\n\t\tshell.setText(\"Thuoc List View\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\tshell.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.ESC){\n\t\t\t\t\tobjThuoc = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n \n Composite compositeInShellThuoc = new Composite(shell, SWT.NONE);\n\t\tcompositeInShellThuoc.setLayout(new BorderLayout(0, 0));\n\t\tcompositeInShellThuoc.setLayoutData(BorderLayout.CENTER);\n \n\t\tComposite compositeHeaderThuoc = new Composite(compositeInShellThuoc, SWT.NONE);\n\t\tcompositeHeaderThuoc.setLayoutData(BorderLayout.NORTH);\n\t\tcompositeHeaderThuoc.setLayout(new GridLayout(5, false));\n\n\t\ttextSearchThuoc = new Text(compositeHeaderThuoc, SWT.BORDER);\n\t\ttextSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttextSearchThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==13){\n\t\t\t\t\treloadTableThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnNewButtonSearchThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonSearchThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/media-play-2x.png\"));\n\t\tbtnNewButtonSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\n\t\tbtnNewButtonSearchThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\treloadTableThuoc();\n\t\t\t}\n\t\t});\n\t\tButton btnNewButtonExportExcelThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonExportExcelThuoc.setText(\"Export Excel\");\n\t\tbtnNewButtonExportExcelThuoc.setImage(SWTResourceManager.getImage(KhamBenhListDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tbtnNewButtonExportExcelThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\tbtnNewButtonExportExcelThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tGridData gd_btnNewButtonThuoc = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNewButtonThuoc.widthHint = 87;\n\t\tbtnNewButtonSearchThuoc.setLayoutData(gd_btnNewButtonThuoc);\n\t\tbtnNewButtonSearchThuoc.setText(\"Search\");\n \n\t\ttableViewerThuoc = new TableViewer(compositeInShellThuoc, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttableThuoc = tableViewerThuoc.getTable();\n\t\ttableThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttableThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.F5){\n\t\t\t\t\treloadTableThuoc();\n }\n if(e.keyCode==SWT.F4){\n\t\t\t\t\teditTableThuoc();\n }\n\t\t\t\telse if(e.keyCode==13){\n\t\t\t\t\tselectTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.DEL){\n\t\t\t\t\tdeleteTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.F7){\n\t\t\t\t\tnewItemThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n tableThuoc.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tselectTableThuoc();\n\t\t\t}\n\t\t});\n \n\t\ttableThuoc.setLinesVisible(true);\n\t\ttableThuoc.setHeaderVisible(true);\n\t\ttableThuoc.setLayoutData(BorderLayout.CENTER);\n\n\t\tTableColumn tbTableColumnThuocMA_HOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setText(\"MA_HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocMA_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_AX.setText(\"MA_AX\");\n\n\t\tTableColumn tbTableColumnThuocHOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocHOAT_CHAT.setText(\"HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocHOATCHAT_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOATCHAT_AX.setWidth(100);\n\t\ttbTableColumnThuocHOATCHAT_AX.setText(\"HOATCHAT_AX\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setText(\"MA_DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setText(\"MA_DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocDUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocDUONG_DUNG.setText(\"DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocDUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setText(\"DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocHAM_LUONG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAM_LUONG.setWidth(100);\n\t\ttbTableColumnThuocHAM_LUONG.setText(\"HAM_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocHAMLUONG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAMLUONG_AX.setWidth(100);\n\t\ttbTableColumnThuocHAMLUONG_AX.setText(\"HAMLUONG_AX\");\n\n\t\tTableColumn tbTableColumnThuocTEN_THUOC = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTEN_THUOC.setWidth(100);\n\t\ttbTableColumnThuocTEN_THUOC.setText(\"TEN_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocTENTHUOC_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTENTHUOC_AX.setWidth(100);\n\t\ttbTableColumnThuocTENTHUOC_AX.setText(\"TENTHUOC_AX\");\n\n\t\tTableColumn tbTableColumnThuocSO_DANG_KY = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSO_DANG_KY.setWidth(100);\n\t\ttbTableColumnThuocSO_DANG_KY.setText(\"SO_DANG_KY\");\n\n\t\tTableColumn tbTableColumnThuocSODANGKY_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSODANGKY_AX.setWidth(100);\n\t\ttbTableColumnThuocSODANGKY_AX.setText(\"SODANGKY_AX\");\n\n\t\tTableColumn tbTableColumnThuocDONG_GOI = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDONG_GOI.setWidth(100);\n\t\ttbTableColumnThuocDONG_GOI.setText(\"DONG_GOI\");\n\n\t\tTableColumn tbTableColumnThuocDON_VI_TINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDON_VI_TINH.setWidth(100);\n\t\ttbTableColumnThuocDON_VI_TINH.setText(\"DON_VI_TINH\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA.setText(\"DON_GIA\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA_TT = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA_TT.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA_TT.setText(\"DON_GIA_TT\");\n\n\t\tTableColumn tbTableColumnThuocSO_LUONG = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocSO_LUONG.setWidth(100);\n\t\ttbTableColumnThuocSO_LUONG.setText(\"SO_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocMA_CSKCB = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_CSKCB.setWidth(100);\n\t\ttbTableColumnThuocMA_CSKCB.setText(\"MA_CSKCB\");\n\n\t\tTableColumn tbTableColumnThuocHANG_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHANG_SX.setWidth(100);\n\t\ttbTableColumnThuocHANG_SX.setText(\"HANG_SX\");\n\n\t\tTableColumn tbTableColumnThuocNUOC_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNUOC_SX.setWidth(100);\n\t\ttbTableColumnThuocNUOC_SX.setText(\"NUOC_SX\");\n\n\t\tTableColumn tbTableColumnThuocNHA_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHA_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHA_THAU.setText(\"NHA_THAU\");\n\n\t\tTableColumn tbTableColumnThuocQUYET_DINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocQUYET_DINH.setWidth(100);\n\t\ttbTableColumnThuocQUYET_DINH.setText(\"QUYET_DINH\");\n\n\t\tTableColumn tbTableColumnThuocCONG_BO = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocCONG_BO.setWidth(100);\n\t\ttbTableColumnThuocCONG_BO.setText(\"CONG_BO\");\n\n\t\tTableColumn tbTableColumnThuocMA_THUOC_BV = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_THUOC_BV.setWidth(100);\n\t\ttbTableColumnThuocMA_THUOC_BV.setText(\"MA_THUOC_BV\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THUOC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THUOC.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THUOC.setText(\"LOAI_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THAU = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THAU.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THAU.setText(\"LOAI_THAU\");\n\n\t\tTableColumn tbTableColumnThuocNHOM_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHOM_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHOM_THAU.setText(\"NHOM_THAU\");\n\n\t\tTableColumn tbTableColumnThuocMANHOM_9324 = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocMANHOM_9324.setWidth(100);\n\t\ttbTableColumnThuocMANHOM_9324.setText(\"MANHOM_9324\");\n\n\t\tTableColumn tbTableColumnThuocHIEULUC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocHIEULUC.setWidth(100);\n\t\ttbTableColumnThuocHIEULUC.setText(\"HIEULUC\");\n\n\t\tTableColumn tbTableColumnThuocKETQUA = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocKETQUA.setWidth(100);\n\t\ttbTableColumnThuocKETQUA.setText(\"KETQUA\");\n\n\t\tTableColumn tbTableColumnThuocTYP = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTYP.setWidth(100);\n\t\ttbTableColumnThuocTYP.setText(\"TYP\");\n\n\t\tTableColumn tbTableColumnThuocTHUOC_RANK = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTHUOC_RANK.setWidth(100);\n\t\ttbTableColumnThuocTHUOC_RANK.setText(\"THUOC_RANK\");\n\n Menu menuThuoc = new Menu(tableThuoc);\n\t\ttableThuoc.setMenu(menuThuoc);\n\t\t\n\t\tMenuItem mntmNewItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmNewItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tnewItemThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmNewItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/arrow-circle-top-2x.png\"));\n\t\tmntmNewItemThuoc.setText(\"New\");\n\t\t\n\t\tMenuItem mntmEditItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmEditItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/wrench-2x.png\"));\n\t\tmntmEditItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\teditTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmEditItemThuoc.setText(\"Edit\");\n\t\t\n\t\tMenuItem mntmDeleteThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmDeleteThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/circle-x-2x.png\"));\n\t\tmntmDeleteThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdeleteTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmDeleteThuoc.setText(\"Delete\");\n\t\t\n\t\tMenuItem mntmExportThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmExportThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmExportThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tmntmExportThuoc.setText(\"Export Excel\");\n\t\t\n\t\ttableViewerThuoc.setLabelProvider(new TableLabelProviderThuoc());\n\t\ttableViewerThuoc.setContentProvider(new ContentProviderThuoc());\n\t\ttableViewerThuoc.setInput(listDataThuoc);\n //\n //\n\t\tloadDataThuoc();\n\t\t//\n reloadTableThuoc();\n\t}", "public void createPartControl(Composite parent) {\n\t\tviewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tdrillDownAdapter = new DrillDownAdapter(viewer);\n\t\tviewer.setContentProvider(new ViewContentProvider());\n\t\tviewer.setLabelProvider(new ViewLabelProvider());\n\t\tviewer.setSorter(new NameSorter());\n\t\tviewer.setInput(getViewSite());\n\n\t\t// Create the help context id for the viewer's control\n\t\tPlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(), \"TreeView.viewer\");\n\t\tmakeActions();\n\t\thookContextMenu();\n\t\thookDoubleClickAction();\n\t\tcontributeToActionBars();\n\t}", "protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(340, 217);\n\t\tshell.setText(\"Benvenuto\");\n\t\tshell.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tFormData fd_composite = new FormData();\n\t\tfd_composite.bottom = new FormAttachment(100, -10);\n\t\tfd_composite.top = new FormAttachment(0, 10);\n\t\tfd_composite.right = new FormAttachment(100, -10);\n\t\tfd_composite.left = new FormAttachment(0, 10);\n\t\tcomposite.setLayoutData(fd_composite);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblUsername = new Label(composite, SWT.NONE);\n\t\tlblUsername.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\ttxtUsername = new Text(composite, SWT.BORDER);\n\t\ttxtUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tfinal String username = txtUsername.getText();\n\t\tSystem.out.println(username);\n\t\t\n\t\tLabel lblPeriodo = new Label(composite, SWT.NONE);\n\t\tlblPeriodo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblPeriodo.setText(\"Periodo\");\n\t\t\n\t\tfinal CCombo combo_1 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_1.setVisibleItemCount(6);\n\t\tcombo_1.setItems(new String[] {\"1 settimana\", \"1 mese\", \"3 mesi\", \"6 mesi\", \"1 anno\", \"Overall\"});\n\t\t\n\t\tLabel lblNumeroCanzoni = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoni.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblNumeroCanzoni.setText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tfinal CCombo combo = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo.setItems(new String[] {\"25\", \"50\"});\n\t\tcombo.setVisibleItemCount(2);\n\t\tcombo.setToolTipText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tLabel lblNumeroCanzoniDa = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoniDa.setText(\"Numero canzoni da consigliare\");\n\t\t\n\t\tfinal CCombo combo_2 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_2.setVisibleItemCount(3);\n\t\tcombo_2.setToolTipText(\"Numero canzoni da consigliare\");\n\t\tcombo_2.setItems(new String[] {\"5\", \"10\", \"20\"});\n\t\t\n\t\tButton btnAvviaRicerca = new Button(composite, SWT.NONE);\n\t\tbtnAvviaRicerca.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfinal String username = txtUsername.getText();\n\t\t\t\tfinal String numSong = combo.getText();\n\t\t\t\tfinal String period = combo_1.getText();\n\t\t\t\tfinal String numConsigli = combo_2.getText();\n\t\t\t\tif(username.isEmpty() || numSong.isEmpty() || period.isEmpty() || numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"si prega di compilare tutti i campi\");\n\t\t\t\t}\n\t\t\t\tif(!username.isEmpty() && !numSong.isEmpty() && !period.isEmpty() && !numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"tutto ok\");\n\t\t\t\t\t\n\t\t\t\t\tFileOutputStream out;\n\t\t\t\t\tPrintStream ps;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new FileOutputStream(\"datiutente.txt\");\n\t\t\t\t\t\tps = new PrintStream(out);\n\t\t\t\t\t\tps.println(username);\n\t\t\t\t\t\tps.println(numSong);\n\t\t\t\t\t\tps.println(period);\n\t\t\t\t\t\tps.println(numConsigli);\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\tSystem.err.println(\"Errore nella scrittura del file\");\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tPrincipaleParteA.main();\n\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t\t\n\t\t});\n\t\tGridData gd_btnAvviaRicerca = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);\n\t\tgd_btnAvviaRicerca.heightHint = 31;\n\t\tbtnAvviaRicerca.setLayoutData(gd_btnAvviaRicerca);\n\t\tbtnAvviaRicerca.setText(\"Avvia Ricerca\");\n\t}", "private void createContents() {\r\n\t\tshlAjouterNouvelleEquation = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);\r\n\t\tshlAjouterNouvelleEquation.setSize(363, 334);\r\n\t\tif(modification)\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Modifier Equation\");\r\n\t\telse\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Ajouter Nouvelle Equation\");\r\n\t\tshlAjouterNouvelleEquation.setLayout(new FormLayout());\r\n\r\n\r\n\t\tLabel lblContenuEquation = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblContenuEquation = new FormData();\r\n\t\tfd_lblContenuEquation.top = new FormAttachment(0, 5);\r\n\t\tfd_lblContenuEquation.left = new FormAttachment(0, 5);\r\n\t\tlblContenuEquation.setLayoutData(fd_lblContenuEquation);\r\n\t\tlblContenuEquation.setText(\"Contenu Equation\");\r\n\r\n\r\n\t\tcontrainteButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnContrainte = new FormData();\r\n\t\tfd_btnContrainte.top = new FormAttachment(0, 27);\r\n\t\tfd_btnContrainte.right = new FormAttachment(100, -10);\r\n\t\tcontrainteButton.setLayoutData(fd_btnContrainte);\r\n\t\tcontrainteButton.setText(\"Contrainte\");\r\n\r\n\t\torientationButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnOrinet = new FormData();\r\n\t\tfd_btnOrinet.top = new FormAttachment(0, 27);\r\n\t\tfd_btnOrinet.right = new FormAttachment(contrainteButton, -10);\r\n\r\n\t\torientationButton.setLayoutData(fd_btnOrinet);\r\n\t\t\r\n\t\torientationButton.setText(\"Orient\\u00E9\");\r\n\r\n\t\tcontenuEquation = new Text(shlAjouterNouvelleEquation, SWT.BORDER|SWT.SINGLE);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.right = new FormAttachment(orientationButton, -10, SWT.LEFT);\r\n\t\tfd_text.top = new FormAttachment(0, 25);\r\n\t\tfd_text.left = new FormAttachment(0, 5);\r\n\t\tcontenuEquation.setLayoutData(fd_text);\r\n\r\n\t\tcontenuEquation.addListener(SWT.FocusOut, out->{\r\n\t\t\tSystem.out.println(\"Making list...\");\r\n\t\t\ttry {\r\n\t\t\t\tequation.getListeDeParametresEqn_DYNAMIC();\r\n\t\t\t\tif(!btnTerminer.isDisposed()){\r\n\t\t\t\t\tif(!btnTerminer.getEnabled())\r\n\t\t\t\t\t\t btnTerminer.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\tthis.showError(shlAjouterNouvelleEquation, e1.toString());\r\n\t\t\t\t btnTerminer.setEnabled(false);\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\t\r\n\t\t});\r\n\r\n\t\tLabel lblNewLabel = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tfd_lblNewLabel.top = new FormAttachment(0, 51);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 5);\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Param\\u00E8tre de Sortie\");\r\n\r\n\t\tparametreDeSortieCombo = new Combo(shlAjouterNouvelleEquation, SWT.DROP_DOWN |SWT.READ_ONLY);\r\n\t\tparametreDeSortieCombo.setEnabled(false);\r\n\r\n\t\tFormData fd_combo = new FormData();\r\n\t\tfd_combo.top = new FormAttachment(0, 71);\r\n\t\tfd_combo.left = new FormAttachment(0, 5);\r\n\t\tparametreDeSortieCombo.setLayoutData(fd_combo);\r\n\t\tparametreDeSortieCombo.addListener(SWT.FocusIn, in->{\r\n\t\t\tparametreDeSortieCombo.setItems(makeItems.apply(equation.getListeDeParametresEqn()));\r\n\t\t\tparametreDeSortieCombo.pack();\r\n\t\t\tparametreDeSortieCombo.update();\r\n\t\t});\r\n\r\n\t\tSashForm sashForm = new SashForm(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_sashForm = new FormData();\r\n\t\tfd_sashForm.top = new FormAttachment(parametreDeSortieCombo, 6);\r\n\t\tfd_sashForm.bottom = new FormAttachment(100, -50);\r\n\t\tfd_sashForm.right = new FormAttachment(100);\r\n\t\tfd_sashForm.left = new FormAttachment(0, 5);\r\n\t\tsashForm.setLayoutData(fd_sashForm);\r\n\r\n\r\n\r\n\r\n\t\tGroup propertiesGroup = new Group(sashForm, SWT.NONE);\r\n\t\tpropertiesGroup.setLayout(new FormLayout());\r\n\r\n\t\tpropertiesGroup.setText(\"Propri\\u00E9t\\u00E9s\");\r\n\t\tFormData fd_propertiesGroup = new FormData();\r\n\t\tfd_propertiesGroup.top = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.left = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.bottom = new FormAttachment(100, 0);\r\n\t\tfd_propertiesGroup.right = new FormAttachment(100, 0);\r\n\t\tpropertiesGroup.setLayoutData(fd_propertiesGroup);\r\n\r\n\r\n\r\n\r\n\r\n\t\tproperties = new Text(propertiesGroup, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tFormData fd_grouptext = new FormData();\r\n\t\tfd_grouptext.top = new FormAttachment(0,0);\r\n\t\tfd_grouptext.left = new FormAttachment(0, 0);\r\n\t\tfd_grouptext.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grouptext.right = new FormAttachment(100, 0);\r\n\t\tproperties.setLayoutData(fd_grouptext);\r\n\r\n\r\n\r\n\t\tGroup grpDescription = new Group(sashForm, SWT.NONE);\r\n\t\tgrpDescription.setText(\"Description\");\r\n\t\tgrpDescription.setLayout(new FormLayout());\r\n\t\tFormData fd_grpDescription = new FormData();\r\n\t\tfd_grpDescription.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grpDescription.right = new FormAttachment(100,0);\r\n\t\tfd_grpDescription.top = new FormAttachment(0);\r\n\t\tfd_grpDescription.left = new FormAttachment(0);\r\n\t\tgrpDescription.setLayoutData(fd_grpDescription);\r\n\r\n\t\tdescription = new Text(grpDescription, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tdescription.setParent(grpDescription);\r\n\r\n\t\tFormData fd_description = new FormData();\r\n\t\tfd_description.top = new FormAttachment(0,0);\r\n\t\tfd_description.left = new FormAttachment(0, 0);\r\n\t\tfd_description.bottom = new FormAttachment(100, 0);\r\n\t\tfd_description.right = new FormAttachment(100, 0);\r\n\r\n\t\tdescription.setLayoutData(fd_description);\r\n\r\n\r\n\t\tsashForm.setWeights(new int[] {50,50});\r\n\r\n\t\tbtnTerminer = new Button(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tbtnTerminer.setEnabled(false);\r\n\t\tFormData fd_btnTerminer = new FormData();\r\n\t\tfd_btnTerminer.top = new FormAttachment(sashForm, 6);\r\n\t\tfd_btnTerminer.left = new FormAttachment(sashForm,0, SWT.CENTER);\r\n\t\tbtnTerminer.setLayoutData(fd_btnTerminer);\r\n\t\tbtnTerminer.setText(\"Terminer\");\r\n\t\tbtnTerminer.addListener(SWT.Selection, e->{\r\n\t\t\t\r\n\t\t\tboolean go = true;\r\n\t\t\tresult = null;\r\n\t\t\tif (status.equals(ValidationStatus.ok())) {\r\n\t\t\t\t//perform all the neccessary tests before validating the equation\t\t\t\t\t\r\n\t\t\t\tif(equation.isOriented()){\r\n\t\t\t\t\tif(!equation.getListeDeParametresEqn().contains(equation.getParametreDeSortie()) || equation.getParametreDeSortie() == null){\t\t\t\t\t\t\r\n\t\t\t\t\t\tString error = \"Erreur sur l'équation \"+equation.getContenuEqn();\r\n\t\t\t\t\t\tgo = false;\r\n\t\t\t\t\t\tshowError(shlAjouterNouvelleEquation, error);\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (go) {\r\n\t\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tequation.setParametreDeSortie(null);\r\n\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t//Just some cleanup\r\n\t\t\t\t\tfor (Parametre par : equation.getListeDeParametresEqn()) {\r\n\t\t\t\t\t\tif (par.getTypeP().equals(TypeParametre.OUTPUT)) {\t\t\t\t\t\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tpar.setTypeP(TypeParametre.UNDETERMINED);\r\n\t\t\t\t\t\t\t\tpar.setSousTypeP(SousTypeParametre.FREE);\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t//\tSystem.out.println(equation.getContenuEqn() +\"\\n\"+equation.isConstraint()+\"\\n\"+equation.isOriented()+\"\\n\"+equation.getParametreDeSortie());\r\n\t\t});\r\n\r\n\t\t//In this sub routine I bind the values to the respective controls in order to observe changes \r\n\t\t//and verify the data insertion\r\n\t\tbindValues();\r\n\t}", "ViewElement createViewElement();", "protected void createContents() {\n\t\tregister Register = new register();\n\t\tRegisterDAOImpl RDI = new RegisterDAOImpl();\t\n\t\t\n\t\tload = new Shell();\n\t\tload.setSize(519, 370);\n\t\tload.setText(\"XX\\u533B\\u9662\\u6302\\u53F7\\u7CFB\\u7EDF\");\n\t\tload.setLayout(new FormLayout());\n\t\t\n\t\tLabel name = new Label(load, SWT.NONE);\n\t\tFormData fd_name = new FormData();\n\t\tfd_name.top = new FormAttachment(20);\n\t\tfd_name.left = new FormAttachment(45, -10);\n\t\tname.setLayoutData(fd_name);\n\t\tname.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tname.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel subjet = new Label(load, SWT.NONE);\n\t\tFormData fd_subjet = new FormData();\n\t\tfd_subjet.left = new FormAttachment(44);\n\t\tfd_subjet.top = new FormAttachment(50);\n\t\tsubjet.setLayoutData(fd_subjet);\n\t\tsubjet.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tsubjet.setText(\"\\u79D1\\u5BA4\");\n\t\t\n\t\tLabel doctor = new Label(load, SWT.NONE);\n\t\tFormData fd_doctor = new FormData();\n\t\tfd_doctor.top = new FormAttachment(60);\n\t\tfd_doctor.left = new FormAttachment(45, -10);\n\t\tdoctor.setLayoutData(fd_doctor);\n\t\tdoctor.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tdoctor.setText(\"\\u533B\\u751F\");\n\t\t\n\t\tnametext = new Text(load, SWT.BORDER);\n\t\tnametext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tnametext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_nametext = new FormData();\n\t\tfd_nametext.right = new FormAttachment(50, 94);\n\t\tfd_nametext.top = new FormAttachment(20);\n\t\tfd_nametext.left = new FormAttachment(50);\n\t\tnametext.setLayoutData(fd_nametext);\n\t\t\n\t\tLabel titlelabel = new Label(load, SWT.NONE);\n\t\tFormData fd_titlelabel = new FormData();\n\t\tfd_titlelabel.right = new FormAttachment(43, 176);\n\t\tfd_titlelabel.top = new FormAttachment(10);\n\t\tfd_titlelabel.left = new FormAttachment(43);\n\t\ttitlelabel.setLayoutData(fd_titlelabel);\n\t\ttitlelabel.setFont(SWTResourceManager.getFont(\"楷体\", 18, SWT.BOLD));\n\t\ttitlelabel.setText(\"XX\\u533B\\u9662\\u95E8\\u8BCA\\u6302\\u53F7\");\n\t\t\n\t\tLabel label = new Label(load, SWT.NONE);\n\t\tFormData fd_label = new FormData();\n\t\tfd_label.top = new FormAttachment(40);\n\t\tfd_label.left = new FormAttachment(44, -10);\n\t\tlabel.setLayoutData(fd_label);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tlabel.setText(\"\\u6302\\u53F7\\u8D39\");\n\t\t\n\t\tcosttext = new Text(load, SWT.BORDER);\n\t\tcosttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tcosttext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_costtext = new FormData();\n\t\tfd_costtext.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_costtext.top = new FormAttachment(40);\n\t\tfd_costtext.left = new FormAttachment(50);\n\t\tcosttext.setLayoutData(fd_costtext);\n\t\t\n\t\tLabel type = new Label(load, SWT.NONE);\n\t\tFormData fd_type = new FormData();\n\t\tfd_type.top = new FormAttachment(30);\n\t\tfd_type.left = new FormAttachment(45, -10);\n\t\ttype.setLayoutData(fd_type);\n\t\ttype.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\ttype.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tCombo typecombo = new Combo(load, SWT.NONE);\n\t\ttypecombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\ttypecombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_typecombo = new FormData();\n\t\tfd_typecombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_typecombo.top = new FormAttachment(30);\n\t\tfd_typecombo.left = new FormAttachment(50);\n\t\ttypecombo.setLayoutData(fd_typecombo);\n\t\ttypecombo.setText(\"\\u95E8\\u8BCA\\u7C7B\\u578B\");\n\t\ttypecombo.add(\"普通门诊\",0);\n\t\ttypecombo.add(\"专家门诊\",1);\n\t\tMySelectionListener3 ms3 = new MySelectionListener3(typecombo,costtext);\n\t\ttypecombo.addSelectionListener(ms3);\n\t\t\n\t\tCombo doctorcombo = new Combo(load, SWT.NONE);\n\t\tdoctorcombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tdoctorcombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_doctorcombo = new FormData();\n\t\tfd_doctorcombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_doctorcombo.top = new FormAttachment(60);\n\t\tfd_doctorcombo.left = new FormAttachment(50);\n\t\tdoctorcombo.setLayoutData(fd_doctorcombo);\n\t\tdoctorcombo.setText(\"\\u9009\\u62E9\\u533B\\u751F\");\n\t\t\n\t\tCombo subject = new Combo(load, SWT.NONE);\n\t\tsubject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tsubject.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tfd_subjet.right = new FormAttachment(subject, -6);\n\t\tfd_subjet.top = new FormAttachment(subject, -1, SWT.TOP);\n\t\tFormData fd_subject = new FormData();\n\t\tfd_subject.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_subject.top = new FormAttachment(50);\n\t\tfd_subject.left = new FormAttachment(50);\n\t\tsubject.setLayoutData(fd_subject);\n\t\tsubject.setText(\"\\u79D1\\u5BA4\\uFF1F\");\n\t\tsubject.add(\"神经内科\", 0);\n\t\tsubject.add(\"呼吸科\", 1);\n\t\tsubject.add(\"泌尿科\", 2);\n\t\tsubject.add(\"放射科\", 3);\n\t\tsubject.add(\"五官\", 4);\n\t\tMySelectionListener myselection = new MySelectionListener(i,subject,doctorcombo,pdtabledaoimpl);\n\t\tsubject.addSelectionListener(myselection);\n\t\t\n\t\tMySelectionListener2 ms2 = new MySelectionListener2(subject,doctorcombo,Register,nametext,RDI);\n\t\tdoctorcombo.addSelectionListener(ms2);\n\t\t\n\t\tButton surebutton = new Button(load, SWT.NONE);\n\t\tFormData fd_surebutton = new FormData();\n\t\tfd_surebutton.top = new FormAttachment(70);\n\t\tfd_surebutton.left = new FormAttachment(44);\n\t\tsurebutton.setLayoutData(fd_surebutton);\n\t\tsurebutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tsurebutton.setText(\"\\u786E\\u5B9A\");\n\t\tsurebutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t Register register = new Register();\n\t\t\t\tPatientDAOImpl patientdaoimpl = new PatientDAOImpl();\n\n/*\t\t\t\tregisterdaoimpl.Save(Register);*/\n\t\t\t\tPatientInfo patientinfo = null;\n\t\t\t\tpatientinfo = patientdaoimpl.findByname(nametext.getText());\n\t\t\t\tif(patientinfo.getId() > 0 ){\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"挂号成功!\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"此用户不存在,请先注册\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t\tload.dispose();\n\t\t\t\t\tregister.open();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton registerbutton = new Button(load, SWT.NONE);\n\t\tFormData fd_registerbutton = new FormData();\n\t\tfd_registerbutton.top = new FormAttachment(70);\n\t\tfd_registerbutton.left = new FormAttachment(53);\n\t\tregisterbutton.setLayoutData(fd_registerbutton);\n\t\tregisterbutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tregisterbutton.setText(\"\\u6CE8\\u518C\");\n\t\tregisterbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\n\t\t\t\tRegister register = new Register();\n\t\t\t\tload.close();\n\t\t\t\tregister.open();\n\t\t\t}\n\t\t});\n\t}", "public void createPartControl(Composite parent) {\n \t\t// Store the display so we can make async calls from listeners\n \t\tdisplay = parent.getDisplay();\n\t\tviewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\n \t\tsetTreeColumns(viewer.getTree());\n \t\tviewer.getTree().setHeaderVisible(true);\n \t\tviewer.setContentProvider(getContentProvider());\n \t\tviewer.setInput(getInput());\n \t\tviewer.setLabelProvider(getLabelProvider());\n \t\tviewer.setComparator(new ViewerComparator());\n \t\tconfigureViewer(viewer);\n \t\taddListeners();\n \t\tmakeActions();\n \t\thookContextMenu();\n \t\thookDoubleClickAction();\n \t\tcontributeToActionBars();\n \t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tnum1 = new Text(shell, SWT.BORDER);\n\t\tnum1.setBounds(32, 51, 112, 19);\n\t\t\n\t\tnum2 = new Text(shell, SWT.BORDER);\n\t\tnum2.setBounds(32, 120, 112, 19);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setBounds(32, 31, 92, 14);\n\t\tlblNewLabel.setText(\"First Number:\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(32, 100, 112, 14);\n\t\tlblNewLabel_1.setText(\"Second Number: \");\n\t\t\n\t\tfinal Label answer = new Label(shell, SWT.NONE);\n\t\tanswer.setBounds(35, 204, 60, 14);\n\t\tanswer.setText(\"Answer:\");\n\t\t\n\t\tButton plusButton = new Button(shell, SWT.NONE);\n\t\tplusButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint number1, number2;\n\t\t\t\ttry {\n\t\t\t\t\tnumber1 = Integer.parseInt(num1.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tnumber2 = Integer.parseInt(num2.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint ans = number1 + number2;\n\t\t\t\tanswer.setText(\"Answer: \" + ans);\n\t\t\t}\n\t\t});\n\t\tplusButton.setBounds(29, 158, 56, 28);\n\t\tplusButton.setText(\"+\");\n\t\t\n\t\t\n\n\t}", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tViewForm viewForm = new ViewForm(parent, SWT.NONE);\n\t\tviewForm.setLayoutData(new FillLayout());\n\t\t\n\t\tfinal Text text = new Text(viewForm, SWT.BORDER |SWT.WRAP |SWT.V_SCROLL );\n\t\tviewForm.setContent(text);\n\t\t\n\t\tToolBar toolBar = new ToolBar(viewForm, SWT.FLAT);\n\t\tToolItem getItem = new ToolItem(toolBar, SWT.PUSH);\n\t\tgetItem.setText(\"get\");\n\t\tgetItem.addSelectionListener(new SelectionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tToolItem clearItem = new ToolItem(toolBar, SWT.PUSH);\n\t\tclearItem.setText(\"clear\");\n\t\tclearItem.addSelectionListener(new SelectionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tviewForm.setTopRight(toolBar);\n\t\t\n\t}", "protected void createContents() {\n\t\tshlFaststone = new Shell();\n\t\tshlFaststone.setImage(SWTResourceManager.getImage(Edit.class, \"/image/all1.png\"));\n\t\tshlFaststone.setToolTipText(\"\");\n\t\tshlFaststone.setSize(944, 479);\n\t\tshlFaststone.setText(\"kaca\");\n\t\tshlFaststone.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tComposite composite = new Composite(shlFaststone, SWT.NONE);\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm = new SashForm(composite, SWT.VERTICAL);\n\t\t//\n\t\tMenu menu = new Menu(shlFaststone, SWT.BAR);\n\t\tshlFaststone.setMenuBar(menu);\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setSelection(true);\n\t\tmenuItem.setText(\"\\u6587\\u4EF6\");\n\t\t\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\t\t\n\t\tfinal Canvas down=new Canvas(shlFaststone,SWT.NONE|SWT.BORDER|SWT.DOUBLE_BUFFERED);\n\t\t\n\t\tComposite composite_4 = new Composite(sashForm, SWT.BORDER);\n\t\tcomposite_4.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_3 = new SashForm(composite_4, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_3);\n\t\tformToolkit.paintBordersFor(sashForm_3);\n\t\t\n\t\tToolBar toolBar = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.WRAP | SWT.RIGHT);\n\t\ttoolBar.setToolTipText(\"\");\n\t\t\n\t\tToolItem toolItem_6 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_6.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_2.notifyListeners(SWT.Selection,event1);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6253\\u5F00.jpg\"));\n\t\ttoolItem_6.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tToolItem tltmNewItem = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t\n\t\ttltmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttltmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\ttltmNewItem.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t//关闭\n\t\tToolItem tltmNewItem_4 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\ttltmNewItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttltmNewItem_4.setText(\"\\u5173\\u95ED\");\n\t\t\n\t\t\n\t\t\n\t\tToolItem tltmNewItem_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t//缩放\n\t\t\n\t\t\n\t\ttltmNewItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u653E\\u5927.jpg\"));\n\t\t\n\t\t//工具栏:放大\n\t\t\n\t\ttltmNewItem_1.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tToolItem tltmNewItem_2 = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t//工具栏:缩小\n\t\ttltmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t\n\t\ttltmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F29\\u5C0F.jpg\"));\n\t\ttltmNewItem_2.setText(\"\\u7F29\\u5C0F\");\n\t\tToolItem toolItem_5 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttoolItem_5.setText(\"\\u9000\\u51FA\");\n\t\t\n\t\tToolBar toolBar_1 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\tformToolkit.adapt(toolBar_1);\n\t\tformToolkit.paintBordersFor(toolBar_1);\n\t\t\n\t\tToolItem toolItem_7 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:标题\n\t\ttoolItem_7.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_7.setText(\"\\u6807\\u9898\");\n\t\ttoolItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6807\\u9898.jpg\"));\n\t\t\n\t\tToolItem toolItem_1 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:调整大小\n\t\ttoolItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_1.setText(\"\\u8C03\\u6574\\u5927\\u5C0F\");\n\t\ttoolItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u8C03\\u6574\\u5927\\u5C0F.jpg\"));\n\t\t\n\t\tToolBar toolBar_2 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar_2.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tformToolkit.adapt(toolBar_2);\n\t\tformToolkit.paintBordersFor(toolBar_2);\n\t\t\n\t\tToolItem toolItem_2 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:裁剪\n\t\ttoolItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_2.setText(\"\\u88C1\\u526A\");\n\t\ttoolItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u88C1\\u526A.jpg\"));\n\t\t\n\t\tToolItem toolItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:剪切\n\t\ttoolItem_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_3.setText(\"\\u526A\\u5207\");\n\t\ttoolItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u526A\\u5207.jpg\"));\n\t\t\n\t\tToolItem toolItem_4 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\n\t\t//工具栏:粘贴\n\t\ttoolItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tcomposite_3.layout();\n\t\t\t\tFile f=new File(\"src/picture/beauty.jpg\");\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tButton lblNewLabel_3 = null;\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcomposite_3.layout();\n\t\t\t}\n\t\t});\n\t\t//omposite;\n\t\t//\n\t\t\n\t\ttoolItem_4.setText(\"\\u590D\\u5236\");\n\t\ttoolItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u590D\\u5236.jpg\"));\n\t\t\n\t\tToolItem tltmNewItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\ttltmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\ttltmNewItem_3.setText(\"\\u7C98\\u8D34\");\n\t\tsashForm_3.setWeights(new int[] {486, 165, 267});\n\t\t\n\t\tComposite composite_1 = new Composite(sashForm, SWT.NONE);\n\t\tformToolkit.adapt(composite_1);\n\t\tformToolkit.paintBordersFor(composite_1);\n\t\tcomposite_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_1 = new SashForm(composite_1, SWT.VERTICAL);\n\t\tformToolkit.adapt(sashForm_1);\n\t\tformToolkit.paintBordersFor(sashForm_1);\n\t\t\n\t\tComposite composite_2 = new Composite(sashForm_1, SWT.NONE);\n\t\tformToolkit.adapt(composite_2);\n\t\tformToolkit.paintBordersFor(composite_2);\n\t\tcomposite_2.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(composite_2, SWT.NONE);\n\t\ttabFolder.setTouchEnabled(true);\n\t\tformToolkit.adapt(tabFolder);\n\t\tformToolkit.paintBordersFor(tabFolder);\n\t\t\n\t\tTabItem tbtmNewItem = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem.setText(\"\\u65B0\\u5EFA\\u4E00\");\n\t\t\n\t\tTabItem tbtmNewItem_1 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_1.setText(\"\\u65B0\\u5EFA\\u4E8C\");\n\t\t\n\t\tTabItem tbtmNewItem_2 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_2.setText(\"\\u65B0\\u5EFA\\u4E09\");\n\t\t\n\t\tButton button = new Button(tabFolder, SWT.CHECK);\n\t\tbutton.setText(\"Check Button\");\n\t\t\n\t\tcomposite_3 = new Composite(sashForm_1, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\t\n\t\tformToolkit.adapt(composite_3);\n\t\tformToolkit.paintBordersFor(composite_3);\n\t\tcomposite_3.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tLabel lblNewLabel_3 = new Label(composite_3, SWT.NONE);\n\t\tformToolkit.adapt(lblNewLabel_3, true, true);\n\t\tlblNewLabel_3.setText(\"\");\n\t\tsashForm_1.setWeights(new int[] {19, 323});\n\t\t\n\t\tComposite composite_5 = new Composite(sashForm, SWT.NONE);\n\t\tcomposite_5.setToolTipText(\"\");\n\t\tcomposite_5.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_2 = new SashForm(composite_5, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_2);\n\t\tformToolkit.paintBordersFor(sashForm_2);\n\t\t\n\t\tLabel lblNewLabel = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel, true, true);\n\t\tlblNewLabel.setText(\"1/1\");\n\t\t\n\t\tLabel lblNewLabel_2 = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_2, true, true);\n\t\tlblNewLabel_2.setText(\"\\u5927\\u5C0F\\uFF1A1366*728\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(sashForm_2, SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_1, true, true);\n\t\tlblNewLabel_1.setText(\"\\u7F29\\u653E\\uFF1A100%\");\n\t\t\n\t\tLabel label = new Label(sashForm_2, SWT.NONE);\n\t\tlabel.setAlignment(SWT.RIGHT);\n\t\tformToolkit.adapt(label, true, true);\n\t\tlabel.setText(\"\\u5494\\u5693\\u5DE5\\u4F5C\\u5BA4\\u7248\\u6743\\u6240\\u6709\");\n\t\tsashForm_2.setWeights(new int[] {127, 141, 161, 490});\n\t\tsashForm.setWeights(new int[] {50, 346, 22});\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u65B0\\u5EFA.jpg\"));\n\t\tmntmNewItem.setText(\"\\u65B0\\u5EFA\");\n\t\t\n\t\tmntmNewItem_2 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\t//Label lblNewLabel_3 = new Label(composite_1, SWT.NONE);\n\t\t\t\t//Canvas c=new Canvas(shlFaststone,SWT.BALLOON);\n\t\t\t\t\n\t\t\t\tFileDialog dialog = new FileDialog(shlFaststone,SWT.OPEN); \n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user_home\"));//设置初始路径\n\t\t\t\tdialog.setFilterNames(new String[] {\"文本文档(*txt)\",\"所有文档\"}); \n\t\t\t\tdialog.setFilterExtensions(new String[]{\"*.exe\",\"*.xls\",\"*.*\"});\n\t\t\t\tString path=dialog.open();\n\t\t\t\tString s=null;\n\t\t\t\tFile f=null;\n\t\t\t\tif(path==null||\"\".equals(path)) {\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\ttry{\n\t\t\t f=new File(path);\n\t\t\t\tbyte[] bs=Fileutil.readFile(f);\n\t\t\t s=new String(bs,\"UTF-8\");\n\t\t\t\t}catch (Exception e1) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tMessageDialog.openError(shlFaststone, \"出错了\", \"打开\"+path+\"出错了\");\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t \n\t\t\t\ttext = new Text(composite_4, SWT.BORDER | SWT.WRAP\n\t\t\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL\n\t\t\t\t\t\t| SWT.MULTI);\n\t\t\t\ttext.setText(s);\n\t\t\t\tcomposite_1.layout();\n\t\t\t\tshlFaststone.setText(shlFaststone.getText()+\"\\t\"+f.getName());\n\t\t\t\t\t\n\t\t\t\tFile f1=new File(path);\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f1));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u6253\\u5F00.jpg\"));\n\t\tmntmNewItem_2.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem mntmNewItem_1 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_1.setText(\"\\u4ECE\\u526A\\u8D34\\u677F\\u5BFC\\u5165\");\n\t\t\n\t\tMenuItem mntmNewItem_3 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\tmntmNewItem_3.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t\n\t\t mntmNewItem_5 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t boolean result=MessageDialog.openConfirm(shlFaststone,\"退出\",\"是否确认退出\");\n\t\t\t\t if(result) {\n\t\t\t\t\t System.exit(0);\n\t\t\t\t }\n\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u4FDD\\u5B58.jpg\"));\n\t\tmntmNewItem_5.setText(\"\\u5173\\u95ED\");\n\t\tevent2=new Event();\n\t\tevent2.widget=mntmNewItem_5;\n\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u6355\\u6349\");\n\t\t\n\t\tMenu menu_2 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_2);\n\t\t\n\t\tMenuItem mntmNewItem_6 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_6.setText(\"\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_7 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6355\\u6349\\u7A97\\u53E3\\u6216\\u5BF9\\u8C61.jpg\"));\n\t\tmntmNewItem_7.setText(\"\\u6355\\u6349\\u7A97\\u53E3\\u5BF9\\u8C61\");\n\t\t\n\t\tMenuItem mntmNewItem_8 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_8.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.jpg\"));\n\t\tmntmNewItem_8.setText(\"\\u6355\\u6349\\u77E9\\u5F62\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_9 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_9.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u624B\\u7ED8\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_9.setText(\"\\u6355\\u6349\\u624B\\u7ED8\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_10 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_10.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6574\\u4E2A\\u5C4F\\u5E55.jpg\"));\n\t\tmntmNewItem_10.setText(\"\\u6355\\u6349\\u6574\\u4E2A\\u5C4F\\u5E55\");\n\t\t\n\t\tMenuItem mntmNewItem_11 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_11.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_11.setText(\"\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_12 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_12.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_12.setText(\"\\u6355\\u6349\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem menuItem_1 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349.jpg\"));\n\t\tmenuItem_1.setText(\"\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349\");\n\t\t\n\t\tMenuItem menuItem_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_2.setText(\"\\u7F16\\u8F91\");\n\t\t\n\t\tMenu menu_3 = new Menu(menuItem_2);\n\t\tmenuItem_2.setMenu(menu_3);\n\t\t\n\t\tMenuItem mntmNewItem_14 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_14.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_14.setText(\"\\u64A4\\u9500\");\n\t\t\n\t\tMenuItem mntmNewItem_13 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_13.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_13.setText(\"\\u91CD\\u505A\");\n\t\t\n\t\tMenuItem mntmNewItem_15 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_15.setText(\"\\u9009\\u62E9\\u5168\\u90E8\");\n\t\t\n\t\tMenuItem mntmNewItem_16 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_16.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7F16\\u8F91.\\u88C1\\u526A.jpg\"));\n\t\tmntmNewItem_16.setText(\"\\u88C1\\u526A\");\n\t\t\n\t\tMenuItem mntmNewItem_17 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_17.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u526A\\u5207.jpg\"));\n\t\tmntmNewItem_17.setText(\"\\u526A\\u5207\");\n\t\t\n\t\tMenuItem mntmNewItem_18 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_18.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u590D\\u5236.jpg\"));\n\t\tmntmNewItem_18.setText(\"\\u590D\\u5236\");\n\t\t\n\t\tMenuItem menuItem_4 = new MenuItem(menu_3, SWT.NONE);\n\t\tmenuItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\tmenuItem_4.setText(\"\\u7C98\\u8D34\");\n\t\t\n\t\tMenuItem mntmNewItem_19 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_19.setText(\"\\u5220\\u9664\");\n\t\t\n\t\tMenuItem menuItem_3 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_3.setText(\"\\u7279\\u6548\");\n\t\t\n\t\tMenu menu_4 = new Menu(menuItem_3);\n\t\tmenuItem_3.setMenu(menu_4);\n\t\t\n\t\tMenuItem mntmNewItem_20 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_20.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6C34\\u5370.jpg\"));\n\t\tmntmNewItem_20.setText(\"\\u6C34\\u5370\");\n\t\t\n\t\tPanelPic ppn = new PanelPic();\n\t\tMenuItem mntmNewItem_21 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_21.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tflag[0]=true;\n\t\t\t\tflag[1]=false;\n\n\t\t\t}\n\n\t\t});\n\t\t\n\t\tdown.addMouseListener(new MouseAdapter(){\n\t\t\tpublic void mouseDown(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=true;\n\t\t\t\tpt=new Point(e.x,e.y);\n\t\t\t\tif(flag[1])\n\t\t\t\t{\n\t\t\t\t\trect=new Composite(down,SWT.BORDER);\n\t\t\t\t\trect.setLocation(e.x, e.y);\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=false;\n\t\t\t\tif(flag[1]&&dirty)\n\t\t\t\t{\n\t\t\t\t\trexx[n-1]=rect.getBounds();\n\t\t\t\t\trect.dispose();\n\t\t\t\t\tdown.redraw();\n\t\t\t\t\tdirty=false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdown.addMouseMoveListener(new MouseMoveListener(){\n\t\t\t@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n if(mouseDown)\n {\n \t dirty=true;\n\t\t\t\tif(flag[0])\n\t\t\t {\n \t GC gc=new GC(down);\n gc.drawLine(pt.x, pt.y, e.x, e.y);\n list.add(new int[]{pt.x,pt.y,e.x,e.y});\n pt.x=e.x;pt.y=e.y;\n\t\t\t }\n else if(flag[1])\n {\n \t if(rect!=null)\n \t rect.setSize(rect.getSize().x+e.x-pt.x, rect.getSize().y+e.y-pt.y);\n// \t down.redraw();\n \t pt.x=e.x;pt.y=e.y;\n }\n }\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tdown.addPaintListener(new PaintListener(){\n\t\t\t@Override\n\t\t\tpublic void paintControl(PaintEvent e) {\n\t\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t\t{\n\t\t\t\t\tint a[]=list.get(i);\n\t\t\t\t\te.gc.drawLine(a[0], a[1], a[2], a[3]);\n\t\t\t\t}\n\t\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\t{\n\t\t\t\t\tif(rexx[i]!=null)\n\t\t\t\t\t\te.gc.drawRectangle(rexx[i]);\n\t\t\t\t}\n\t\t\t}});\n\n\t\t\n\t\tmntmNewItem_21.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6587\\u5B57.jpg\"));\n\t\tmntmNewItem_21.setText(\"\\u753B\\u7B14\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_1 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_1.setText(\"\\u67E5\\u770B\");\n\t\t\n\t\tMenu menu_5 = new Menu(mntmNewSubmenu_1);\n\t\tmntmNewSubmenu_1.setMenu(menu_5);\n\t\t\n\t\tMenuItem mntmNewItem_24 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_24.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u653E\\u5927.jpg\"));\n\t\tmntmNewItem_24.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tMenuItem mntmNewItem_25 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_25.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u7F29\\u5C0F.jpg\"));\n\t\tmntmNewItem_25.setText(\"\\u7F29\\u5C0F\");\n\t\t\n\t\tMenuItem mntmNewItem_26 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_26.setText(\"\\u5B9E\\u9645\\u5C3A\\u5BF8\\uFF08100%\\uFF09\");\n\t\t\n\t\tMenuItem mntmNewItem_27 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_27.setText(\"\\u9002\\u5408\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_28 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_28.setText(\"100%\");\n\t\t\n\t\tMenuItem mntmNewItem_29 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_29.setText(\"200%\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_2.setText(\"\\u8BBE\\u7F6E\");\n\t\t\n\t\tMenu menu_6 = new Menu(mntmNewSubmenu_2);\n\t\tmntmNewSubmenu_2.setMenu(menu_6);\n\t\t\n\t\tMenuItem menuItem_5 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_5.setText(\"\\u5E2E\\u52A9\");\n\t\t\n\t\tMenu menu_7 = new Menu(menuItem_5);\n\t\tmenuItem_5.setMenu(menu_7);\n\t\t\n\t\tMenuItem menuItem_6 = new MenuItem(menu_7, SWT.NONE);\n\t\tmenuItem_6.setText(\"\\u7248\\u672C\");\n\t\t\n\t\tMenuItem mntmNewItem_23 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_23.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\t\n\t\tMenuItem mntmNewItem_30 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_30.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\n\t}", "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 createContents() {\n shell = new Shell(getParent(), SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL);\n shell.setSize(FORM_WIDTH, 700);\n shell.setText(getText());\n shell.setLayout(new GridLayout(1, false));\n\n TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n // STRUCTURE PARAMETERS\n\n TabItem tbtmStructure = new TabItem(tabFolder, SWT.NONE);\n tbtmStructure.setText(\"Structure\");\n\n Composite grpStructure = new Composite(tabFolder, SWT.NONE);\n tbtmStructure.setControl(grpStructure);\n grpStructure.setLayout(TAB_GROUP_LAYOUT);\n grpStructure.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n ParmDialogText.load(grpStructure, parms, \"meta\");\n ParmDialogText.load(grpStructure, parms, \"col\");\n ParmDialogText.load(grpStructure, parms, \"id\");\n ParmDialogChoices.load(grpStructure, parms, \"init\", Activation.values());\n ParmDialogChoices.load(grpStructure, parms, \"activation\", Activation.values());\n ParmDialogFlag.load(grpStructure, parms, \"raw\");\n ParmDialogFlag.load(grpStructure, parms, \"batch\");\n ParmDialogGroup cnn = ParmDialogText.load(grpStructure, parms, \"cnn\");\n ParmDialogGroup filters = ParmDialogText.load(grpStructure, parms, \"filters\");\n ParmDialogGroup strides = ParmDialogText.load(grpStructure, parms, \"strides\");\n ParmDialogGroup subs = ParmDialogText.load(grpStructure, parms, \"sub\");\n if (cnn != null) {\n if (filters != null) cnn.setGrouped(filters);\n if (strides != null) cnn.setGrouped(strides);\n if (subs != null) cnn.setGrouped(subs);\n }\n ParmDialogText.load(grpStructure, parms, \"lstm\");\n ParmDialogGroup wGroup = ParmDialogText.load(grpStructure, parms, \"widths\");\n ParmDialogGroup bGroup = ParmDialogText.load(grpStructure, parms, \"balanced\");\n if (bGroup != null && wGroup != null) {\n wGroup.setExclusive(bGroup);\n bGroup.setExclusive(wGroup);\n }\n\n // SEARCH CONTROL PARAMETERS\n\n TabItem tbtmSearch = new TabItem(tabFolder, SWT.NONE);\n tbtmSearch.setText(\"Training\");\n\n ScrolledComposite grpSearch0 = new ScrolledComposite(tabFolder, SWT.V_SCROLL);\n grpSearch0.setLayout(new FillLayout());\n grpSearch0.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n tbtmSearch.setControl(grpSearch0);\n Composite grpSearch = new Composite(grpSearch0, SWT.NONE);\n grpSearch0.setContent(grpSearch);\n grpSearch.setLayout(TAB_GROUP_LAYOUT);\n grpSearch.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n Enum<?>[] preferTypes = (this.modelType == TrainingProcessor.Type.CLASS ? RunStats.OptimizationType.values()\n : RunStats.RegressionType.values());\n ParmDialogChoices.load(grpSearch, parms, \"prefer\", preferTypes);\n ParmDialogChoices.load(grpSearch, parms, \"method\", Trainer.Type.values());\n ParmDialogText.load(grpSearch, parms, \"bound\");\n ParmDialogChoices.load(grpSearch, parms, \"lossFun\", LossFunctionType.values());\n ParmDialogText.load(grpSearch, parms, \"weights\");\n ParmDialogText.load(grpSearch, parms, \"iter\");\n ParmDialogText.load(grpSearch, parms, \"batchSize\");\n ParmDialogText.load(grpSearch, parms, \"testSize\");\n ParmDialogText.load(grpSearch, parms, \"maxBatches\");\n ParmDialogText.load(grpSearch, parms, \"earlyStop\");\n ParmDialogChoices.load(grpSearch, parms, \"regMode\", Regularization.Mode.values());\n ParmDialogText.load(grpSearch, parms, \"regFactor\");\n ParmDialogText.load(grpSearch, parms, \"seed\");\n ParmDialogChoices.load(grpSearch, parms, \"start\", WeightInit.values());\n ParmDialogChoices.load(grpSearch, parms, \"gradNorm\", GradientNormalization.values());\n ParmDialogChoices.load(grpSearch, parms, \"updater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"learnRate\");\n ParmDialogChoices.load(grpSearch, parms, \"bUpdater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"updateRate\");\n\n grpSearch.setSize(grpSearch.computeSize(FORM_WIDTH - 50, SWT.DEFAULT));\n\n // BOTTOM BUTTON BAR\n\n Composite grpButtonBar = new Composite(shell, SWT.NONE);\n grpButtonBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n grpButtonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n Button btnSave = new Button(grpButtonBar, SWT.NONE);\n btnSave.setText(\"Save\");\n btnSave.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n Button btnClose = new Button(grpButtonBar, SWT.NONE);\n btnClose.setText(\"Cancel\");\n btnClose.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n shell.close();\n }\n });\n\n Button btnOK = new Button(grpButtonBar, SWT.NONE);\n btnOK.setText(\"Save and Close\");\n btnOK.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n shell.close();\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n }", "private void createContents() {\r\n\t\tshlOProgramie = new Shell(getParent().getDisplay(), SWT.DIALOG_TRIM\r\n\t\t\t\t| SWT.RESIZE);\r\n\t\tshlOProgramie.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tshlOProgramie.setText(\"O programie\");\r\n\t\tshlOProgramie.setSize(386, 221);\r\n\t\tint x = 386;\r\n\t\tint y = 221;\r\n\t\t// Get the resolution\r\n\t\tRectangle pDisplayBounds = shlOProgramie.getDisplay().getBounds();\r\n\r\n\t\t// This formulae calculate the shell's Left ant Top\r\n\t\tint nLeft = (pDisplayBounds.width - x) / 2;\r\n\t\tint nTop = (pDisplayBounds.height - y) / 2;\r\n\r\n\t\t// Set shell bounds,\r\n\t\tshlOProgramie.setBounds(nLeft, nTop, x, y);\r\n\t\tsetText(\"O programie\");\r\n\r\n\t\tbtnZamknij = new Button(shlOProgramie, SWT.PUSH | SWT.BORDER_SOLID);\r\n\t\tbtnZamknij.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlOProgramie.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnZamknij.setBounds(298, 164, 68, 23);\r\n\t\tbtnZamknij.setText(\"Zamknij\");\r\n\r\n\t\tText link = new Text(shlOProgramie, SWT.READ_ONLY);\r\n\t\tlink.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlink.setBounds(121, 127, 178, 13);\r\n\t\tlink.setText(\"Kontakt: [email protected]\");\r\n\r\n\t\tCLabel lblNewLabel = new CLabel(shlOProgramie, SWT.BORDER\r\n\t\t\t\t| SWT.SHADOW_IN | SWT.SHADOW_OUT | SWT.SHADOW_NONE);\r\n\t\tlblNewLabel.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlblNewLabel.setBounds(118, 20, 248, 138);\r\n\t\tlblNewLabel\r\n\t\t\t\t.setText(\" Kalkulator walut ver 0.0.2 \\r\\n -------------------------------\\r\\n Program umo\\u017Cliwiaj\\u0105cy pobieranie\\r\\n aktualnych kurs\\u00F3w walut ze strony nbp.pl\\r\\n\\r\\n Copyright by Wojciech Trocki.\\r\\n\");\r\n\r\n\t\tLabel lblNewLabel_1 = new Label(shlOProgramie, SWT.NONE);\r\n\t\tlblNewLabel_1.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(\"images/about.gif\"));\r\n\t\tlblNewLabel_1.setBounds(10, 20, 100, 138);\r\n\t}", "public void createContents(){\n\t\t// Creates control for ScrolledCompositeController controlItemSCSCLC\n\t\tcontrolItemSCSCLC = new ScrolledCompositeController(\"controlItemSC\", coreController, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tsetDirtyManagement(false);\n\t\t\t\t\tgetComposite().setLayout(new MigLayout(\"wrap 2\",\"[align right]10[fill,grow]\",\"[]\"));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t// Creates control for LabelController background$1LBL\n\t\tbackground$1LBL = new LabelController(\"background$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"background\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateBackground(this);\n\t\t// Creates control for LabelController backgroundImage$1LBL\n\t\tbackgroundImage$1LBL = new LabelController(\"backgroundImage$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"backgroundImage\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateBackgroundImage(this);\n\t\t// Creates control for LabelController bounds$1LBL\n\t\tbounds$1LBL = new LabelController(\"bounds$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"bounds\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateBounds(this);\n\t\t// Creates control for LabelController capture$1LBL\n\t\tcapture$1LBL = new LabelController(\"capture$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"capture\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateCapture(this);\n\t\t// Creates control for LabelController containerBackground$1LBL\n\t\tcontainerBackground$1LBL = new LabelController(\"containerBackground$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerBackground\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerBackground(this);\n\t\t// Creates control for LabelController containerBackgroundImage$1LBL\n\t\tcontainerBackgroundImage$1LBL = new LabelController(\"containerBackgroundImage$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerBackgroundImage\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerBackgroundImage(this);\n\t\t// Creates control for LabelController containerBounds$1LBL\n\t\tcontainerBounds$1LBL = new LabelController(\"containerBounds$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerBounds\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerBounds(this);\n\t\t// Creates control for LabelController containerCapture$1LBL\n\t\tcontainerCapture$1LBL = new LabelController(\"containerCapture$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerCapture\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerCapture(this);\n\t\t// Creates control for LabelController containerFocus$1LBL\n\t\tcontainerFocus$1LBL = new LabelController(\"containerFocus$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerFocus\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerFocus(this);\n\t\t// Creates control for LabelController containerFont$1LBL\n\t\tcontainerFont$1LBL = new LabelController(\"containerFont$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerFont\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerFont(this);\n\t\t// Creates control for LabelController containerForeground$1LBL\n\t\tcontainerForeground$1LBL = new LabelController(\"containerForeground$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerForeground\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerForeground(this);\n\t\t// Creates control for LabelController containerLayoutData$1LBL\n\t\tcontainerLayoutData$1LBL = new LabelController(\"containerLayoutData$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerLayoutData\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerLayoutData(this);\n\t\t// Creates control for LabelController containerLocation$1LBL\n\t\tcontainerLocation$1LBL = new LabelController(\"containerLocation$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerLocation\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerLocation(this);\n\t\t// Creates control for LabelController containerMenu$1LBL\n\t\tcontainerMenu$1LBL = new LabelController(\"containerMenu$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerMenu\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerMenu(this);\n\t\t// Creates control for LabelController containerRedraw$1LBL\n\t\tcontainerRedraw$1LBL = new LabelController(\"containerRedraw$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerRedraw\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerRedraw(this);\n\t\t// Creates control for LabelController containerSize$1LBL\n\t\tcontainerSize$1LBL = new LabelController(\"containerSize$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerSize\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerSize(this);\n\t\t// Creates control for LabelController containerStyle$1LBL\n\t\tcontainerStyle$1LBL = new LabelController(\"containerStyle$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerStyle\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerStyle(this);\n\t\t// Creates control for LabelController editable$1LBL\n\t\teditable$1LBL = new LabelController(\"editable$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"editable\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateEditable(this);\n\t\t// Creates control for LabelController enabled$1LBL\n\t\tenabled$1LBL = new LabelController(\"enabled$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"widget\", \"enabled\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateEnabled(this);\n\t\t// Creates control for LabelController focus$1LBL\n\t\tfocus$1LBL = new LabelController(\"focus$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"focus\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateFocus(this);\n\t\t// Creates control for LabelController font$1LBL\n\t\tfont$1LBL = new LabelController(\"font$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"font\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateFont(this);\n\t\t// Creates control for LabelController foreground$1LBL\n\t\tforeground$1LBL = new LabelController(\"foreground$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"foreground\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateForeground(this);\n\t\t// Creates control for LabelController layoutData$1LBL\n\t\tlayoutData$1LBL = new LabelController(\"layoutData$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"layoutData\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateLayoutData(this);\n\t\t// Creates control for LabelController location$1LBL\n\t\tlocation$1LBL = new LabelController(\"location$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"location\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateLocation(this);\n\t\t// Creates control for LabelController menu$1LBL\n\t\tmenu$1LBL = new LabelController(\"menu$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"menu\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateMenu(this);\n\t\t// Creates control for LabelController orientation$1LBL\n\t\torientation$1LBL = new LabelController(\"orientation$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"orientation\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateOrientation(this);\n\t\t// Creates control for LabelController redraw$1LBL\n\t\tredraw$1LBL = new LabelController(\"redraw$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"redraw\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateRedraw(this);\n\t\t// Creates control for LabelController size$1LBL\n\t\tsize$1LBL = new LabelController(\"size$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"size\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateSize(this);\n\t\t// Creates control for LabelController style$1LBL\n\t\tstyle$1LBL = new LabelController(\"style$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"widget\", \"style\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateStyle(this);\n\t\t// Creates control for LabelController tabs$1LBL\n\t\ttabs$1LBL = new LabelController(\"tabs$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"tabs\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateTabs(this);\n\t\t// Creates control for LabelController text$1LBL\n\t\ttext$1LBL = new LabelController(\"text$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"text\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateText(this);\n\t\t// Creates control for LabelController textLimit$1LBL\n\t\ttextLimit$1LBL = new LabelController(\"textLimit$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"textLimit\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateTextLimit(this);\n\t\t// Creates control for LabelController toolTipText$1LBL\n\t\ttoolTipText$1LBL = new LabelController(\"toolTipText$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"widget\", \"toolTipText\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateToolTipText(this);\n\t\t// Creates control for LabelController visible$1LBL\n\t\tvisible$1LBL = new LabelController(\"visible$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"visible\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateVisible(this);\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.CLOSE | SWT.MIN);// 取消最大化与拖拽放大功能\n\t\tshell.setImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/MC.ico\"));\n\t\tshell.setBackgroundImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/back.jpg\"));\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tshell.setSize(1157, 720);\n\t\tshell.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tshell.setLocation(Display.getCurrent().getClientArea().width / 2 - shell.getShell().getSize().x / 2,\n\t\t\t\tDisplay.getCurrent().getClientArea().height / 2 - shell.getSize().y / 2);\n\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/base.png\"));\n\t\tmenuItem.setText(\"\\u7A0B\\u5E8F\");\n\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\n\t\tMenuItem menuI_main = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuI_main.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmenuI_main.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_BookShow window = new Admin_BookShow();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI_main.setText(\"\\u4E3B\\u9875\");\n\n\t\tMenuItem menu_exit = new MenuItem(menu_1, SWT.NONE);\n\t\tmenu_exit.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/reset.png\"));\n\t\tmenu_exit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tWelcomPart window = new WelcomPart();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu_exit.setText(\"\\u9000\\u51FA\");\n\n\t\tMenuItem menubook = new MenuItem(menu, SWT.CASCADE);\n\t\tmenubook.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookTypeManager.png\"));\n\t\tmenubook.setText(\"\\u56FE\\u4E66\\u7BA1\\u7406\");\n\n\t\tMenu menu_2 = new Menu(menubook);\n\t\tmenubook.setMenu(menu_2);\n\n\t\tMenuItem menu1_add = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu1_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_add window = new Book_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_add.setText(\"\\u6DFB\\u52A0\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_select = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_select.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu1_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// 图书查询\n\t\t\t\tshell.close();\n\t\t\t\tBook_select window = new Book_select();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_select.setText(\"\\u67E5\\u8BE2\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_alter = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu1_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_alter window = new Book_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_alter.setText(\"\\u4FEE\\u6539\\u56FE\\u4E66\");\n\n\t\tMenuItem menuI1_delete = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuI1_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenuI1_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_del window = new Book_del();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI1_delete.setText(\"\\u5220\\u9664\\u56FE\\u4E66\");\n\n\t\tMenuItem menutype = new MenuItem(menu, SWT.CASCADE);\n\t\tmenutype.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookManager.png\"));\n\t\tmenutype.setText(\"\\u4E66\\u7C7B\\u7BA1\\u7406\");\n\n\t\tMenu menu_3 = new Menu(menutype);\n\t\tmenutype.setMenu(menu_3);\n\n\t\tMenuItem menu2_add = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu2_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_add window = new Booktype_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_add.setText(\"\\u6DFB\\u52A0\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_alter = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu2_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_alter window = new Booktype_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_alter.setText(\"\\u4FEE\\u6539\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_delete = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenu2_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_delete window = new Booktype_delete();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_delete.setText(\"\\u5220\\u9664\\u4E66\\u7C7B\");\n\n\t\tMenuItem menumark = new MenuItem(menu, SWT.CASCADE);\n\t\tmenumark.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/student.png\"));\n\t\tmenumark.setText(\"\\u501F\\u8FD8\\u8BB0\\u5F55\");\n\n\t\tMenu menu_4 = new Menu(menumark);\n\t\tmenumark.setMenu(menu_4);\n\n\t\tMenuItem menu3_borrow = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_borrow.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/edit.png\"));\n\t\tmenu3_borrow.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_borrowmark window = new Admin_borrowmark();\n\t\t\t\twindow.open();// 借书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_borrow.setText(\"\\u501F\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem menu3_return = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_return.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu3_return.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_returnmark window = new Admin_returnmark();\n\t\t\t\twindow.open();// 还书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_return.setText(\"\\u8FD8\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem mntmhelp = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmhelp.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmntmhelp.setText(\"\\u5173\\u4E8E\");\n\n\t\tMenu menu_5 = new Menu(mntmhelp);\n\t\tmntmhelp.setMenu(menu_5);\n\n\t\tMenuItem menu4_Info = new MenuItem(menu_5, SWT.NONE);\n\t\tmenu4_Info.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/me.png\"));\n\t\tmenu4_Info.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_Info window = new Admin_Info();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu4_Info.setText(\"\\u8F6F\\u4EF6\\u4FE1\\u606F\");\n\n\t\ttable = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable.setFont(SWTResourceManager.getFont(\"黑体\", 10, SWT.NORMAL));\n\t\ttable.setLinesVisible(true);\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setBounds(10, 191, 1119, 447);\n\n\t\tTableColumn tableColumn = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn.setWidth(29);\n\n\t\tTableColumn tableColumn_id = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_id.setWidth(110);\n\t\ttableColumn_id.setText(\"\\u56FE\\u4E66\\u7F16\\u53F7\");\n\n\t\tTableColumn tableColumn_name = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_name.setWidth(216);\n\t\ttableColumn_name.setText(\"\\u56FE\\u4E66\\u540D\\u79F0\");\n\n\t\tTableColumn tableColumn_author = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_author.setWidth(117);\n\t\ttableColumn_author.setText(\"\\u56FE\\u4E66\\u79CD\\u7C7B\");\n\n\t\tTableColumn tableColumn_pub = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_pub.setWidth(148);\n\t\ttableColumn_pub.setText(\"\\u4F5C\\u8005\");\n\n\t\tTableColumn tableColumn_stock = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_stock.setWidth(167);\n\t\ttableColumn_stock.setText(\"\\u51FA\\u7248\\u793E\");\n\n\t\tTableColumn tableColumn_sortid = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_sortid.setWidth(79);\n\t\ttableColumn_sortid.setText(\"\\u5E93\\u5B58\");\n\n\t\tTableColumn tableColumn_record = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_record.setWidth(247);\n\t\ttableColumn_record.setText(\"\\u767B\\u8BB0\\u65F6\\u95F4\");\n\n\t\tCombo combo_way = new Combo(shell, SWT.NONE);\n\t\tcombo_way.add(\"图书编号\");\n\t\tcombo_way.add(\"图书名称\");\n\t\tcombo_way.add(\"图书作者\");\n\t\tcombo_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tcombo_way.setBounds(314, 157, 131, 28);\n\n\t\t// 遍历查询book表\n\t\tButton btnButton_select = new Button(shell, SWT.NONE);\n\t\tbtnButton_select.setImage(SWTResourceManager.getImage(Book_select.class, \"/images/search.png\"));\n\t\tbtnButton_select.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tbtnButton_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tBook book = new Book();\n\t\t\t\tSelectbook selectbook = new Selectbook();\n\t\t\t\ttable.removeAll();\n\t\t\t\tif (combo_way.getText().equals(\"图书编号\")) {\n\t\t\t\t\tbook.setBook_id(text_select.getText().trim());\n\t\t\t\t\tString str[][] = selectbook.ShowAidBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书名称\")) {\n\t\t\t\t\tbook.setBook_name(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAnameBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书作者\")) {\n\t\t\t\t\tbook.setBook_author(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAauthorBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().length() == 0) {\n\t\t\t\t\tString str[][] = selectbook.ShowAllBook();\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnButton_select.setBounds(664, 155, 98, 30);\n\t\tbtnButton_select.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tbtnButton_select.setText(\"查询\");\n\n\t\ttext_select = new Text(shell, SWT.BORDER);\n\t\ttext_select.setBounds(472, 155, 186, 30);\n\n\t\tLabel lblNewLabel_way = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_way.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel_way.setBounds(314, 128, 107, 30);\n\t\tlblNewLabel_way.setText(\"\\u67E5\\u8BE2\\u65B9\\u5F0F\\uFF1A\");\n\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tlblNewLabel_1.setForeground(SWTResourceManager.getColor(255, 255, 255));\n\t\tlblNewLabel_1.setFont(SWTResourceManager.getFont(\"黑体\", 25, SWT.BOLD));\n\t\tlblNewLabel_1.setAlignment(SWT.CENTER);\n\t\tlblNewLabel_1.setBounds(392, 54, 266, 48);\n\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setText(\"\\u8F93\\u5165\\uFF1A\");\n\t\tlblNewLabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(472, 129, 76, 20);\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(44, 47, 90, 24);\r\n\t\tlabel.setText(\"充值金额:\");\r\n\t\t\r\n\t\ttext_balance = new Text(shell, SWT.BORDER);\r\n\t\ttext_balance.setBounds(156, 47, 198, 30);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\t//确认充值\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tString balance=text_balance.getText().trim();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint i=dao.add(balance);\r\n\t\t\t\t\tif(i>0){\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"成功提示\", \"充值成功\");\r\n\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"错误提示\", \"所充值不能为零\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(140, 131, 114, 34);\r\n\t\tbutton.setText(\"确认充值\");\r\n\r\n\t}", "protected abstract StructuredViewer createViewer(Shell shell);", "protected void createContents() {\n\t\tshlCarbAndRemainder = new Shell(Display.getDefault(), SWT.TITLE|SWT.CLOSE|SWT.BORDER);\n\t\tshlCarbAndRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tshlCarbAndRemainder.setSize(323, 262);\n\t\tshlCarbAndRemainder.setText(\"CARB and Remainder\");\n\t\t\n\t\tGroup grpCarbSetting = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpCarbSetting.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpCarbSetting.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpCarbSetting.setText(\"CARB Setting\");\n\t\t\n\t\tgrpCarbSetting.setBounds(10, 0, 295, 106);\n\t\t\n\t\tLabel lblCARBValue = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblCARBValue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblCARBValue.setBounds(10, 32, 149, 22);\n\t\tlblCARBValue.setText(\"CARB Value\");\n\t\t\n\t\tLabel lblAuthenticationPIN = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblAuthenticationPIN.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblAuthenticationPIN.setBounds(10, 68, 149, 22);\n\t\tlblAuthenticationPIN.setText(\"Authentication PIN\");\n\t\t\n\t\tSpinner spinnerCARBValue = new Spinner(grpCarbSetting, SWT.BORDER);\n\t\tspinnerCARBValue.setBounds(206, 29, 72, 22);\n\t\t\n\t\ttextAuthenticationPIN = new Text(grpCarbSetting, SWT.BORDER|SWT.PASSWORD);\n\t\ttextAuthenticationPIN.setBounds(206, 65, 72, 21);\n\t\t\t\t\n\t\tGroup grpRemainder = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpRemainder.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpRemainder.setText(\"Remainder\");\n\t\tgrpRemainder.setBounds(10, 112, 296, 106);\n\t\t\n\t\tButton btnInjectBolus = new Button(grpRemainder, SWT.NONE);\n\t\tbtnInjectBolus.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnInjectBolus.setBounds(183, 38, 103, 41);\n\t\tbtnInjectBolus.setText(\"INJECT BOLUS\");\n\t\t\n\t\tButton btnCancel = new Button(grpRemainder, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshlCarbAndRemainder.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(10, 38, 80, 41);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnSnooze = new Button(grpRemainder, SWT.NONE);\n\t\tbtnSnooze.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnSnooze.setBounds(96, 38, 81, 41);\n\t\tbtnSnooze.setText(\"Snooze\");\n\n\t}", "public void createContents()\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"TTS - Task Tracker System\");\n\t\t\n\t\tbtnLogIn = new Button(shell, SWT.NONE);\n\t\tbtnLogIn.setBounds(349, 84, 75, 25);\n\t\tbtnLogIn.setText(\"Log In\");\n\t\tbtnLogIn.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tif (cboxUserDropDown.getText() != \"\"\n\t\t\t\t\t\t&& cboxUserDropDown.getSelectionIndex() >= 0)\n\t\t\t\t{\n\t\t\t\t\tString selectedUserName = cboxUserDropDown.getText();\n\t\t\t\t\tusers.setLoggedInUser(selectedUserName);\n\t\t\t\t\tshell.setVisible(false);\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t\tnew TaskMainViewWindow(AccessUsers.getLoggedInUser());\n\t\t\t\t\tdisplay.wake();\n\t\t\t\t\tshell.setVisible(true);\n\t\t\t\t\tshell.forceFocus();\n\t\t\t\t\tshell.setActive();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnQuit = new Button(shell, SWT.CENTER);\n\t\tbtnQuit.setBounds(349, 227, 75, 25);\n\t\tbtnQuit.setText(\"Quit\");\n\t\tbtnQuit.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcboxUserDropDown = new Combo(shell, SWT.READ_ONLY);\n\t\tcboxUserDropDown.setBounds(146, 86, 195, 23);\n\t\t\n\t\tinitUserDropDown();\n\t\t\n\t\tlblNewLabel = new Label(shell, SWT.CENTER);\n\t\tlblNewLabel.setBounds(197, 21, 183, 25);\n\t\tlblNewLabel.setFont(new Font(display, \"Times\", 14, SWT.BOLD));\n\t\tlblNewLabel.setForeground(new Color(display, 200, 0, 0));\n\t\tlblNewLabel.setText(\"Task Tracker System\");\n\t\t\n\t\ticon = new Label(shell, SWT.BORDER);\n\t\ticon.setLocation(0, 0);\n\t\ticon.setSize(140, 111);\n\t\ticon.setImage(new Image(null, \"images/task.png\"));\n\t\t\n\t\tbtnCreateUser = new Button(shell, SWT.NONE);\n\t\tbtnCreateUser.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tshell.setEnabled(false);\n\t\t\t\tnew CreateUserWindow(users);\n\t\t\t\tshell.setEnabled(true);\n\t\t\t\tinitUserDropDown();\n\t\t\t\tshell.forceFocus();\n\t\t\t\tshell.setActive();\n\t\t\t}\n\t\t});\n\t\tbtnCreateUser.setBounds(349, 115, 75, 25);\n\t\tbtnCreateUser.setText(\"Create User\");\n\t\t\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(new Point(500, 360));\n\t\tshell.setMinimumSize(new Point(500, 360));\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setText(\"欢迎 \"+user.getName()+\" 同学使用学生成绩管理系统\");\n\t\tnew Label(shell, SWT.NONE);\n\t\t\n\t\tComposite compositeStdData = new Composite(shell, SWT.NONE);\n\t\tcompositeStdData.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdData = new GridLayout(2, false);\n\t\tgl_compositeStdData.verticalSpacing = 15;\n\t\tcompositeStdData.setLayout(gl_compositeStdData);\n\t\t\n\t\tLabel labelStdData = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdData.setAlignment(SWT.CENTER);\n\t\tlabelStdData.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdData.setText(\"成绩数据\");\n\t\t\n\t\tLabel labelStdDataNum = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataNum.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataNum.setText(\"学号:\");\n\t\t\n\t\ttextStdDataNum = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataNum.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataName.setText(\"姓名:\");\n\t\t\n\t\ttextStdDataName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataName.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataLine = new Label(compositeStdData, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabelStdDataLine.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdDataLine.setText(\"New Label\");\n\t\t\n\t\tLabel labelCourseName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelCourseName.setText(\"课程名\");\n\t\t\n\t\tLabel labelScore = new Label(compositeStdData, SWT.NONE);\n\t\tlabelScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelScore.setText(\"成绩\");\n\t\t\n\t\ttextCourseName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\ttextScore = new Text(compositeStdData, SWT.BORDER);\n\t\ttextScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataFill = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataFill.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tnew Label(compositeStdData, SWT.NONE);\n\t\t\n\t\tComposite compositeStdOp = new Composite(shell, SWT.NONE);\n\t\tcompositeStdOp.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdOp = new GridLayout(1, false);\n\t\tgl_compositeStdOp.verticalSpacing = 15;\n\t\tcompositeStdOp.setLayout(gl_compositeStdOp);\n\t\t\n\t\tLabel labelStdOP = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOP.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));\n\t\tlabelStdOP.setAlignment(SWT.CENTER);\n\t\tlabelStdOP.setText(\"操作菜单\");\n\t\t\n\t\tButton buttonStdOPFirst = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPFirst.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPFirst.setText(\"第一门课程\");\n\t\t\n\t\tButton buttonStdOPNext = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPNext.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPNext.setText(\"下一门课程\");\n\t\t\n\t\tButton buttonStdOPPrev = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPPrev.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPPrev.setText(\"上一门课程\");\n\t\t\n\t\tButton buttonStdOPLast = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPLast.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPLast.setText(\"最后一门课程\");\n\t\t\n\t\tCombo comboStdOPSele = new Combo(compositeStdOp, SWT.NONE);\n\t\tcomboStdOPSele.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tcomboStdOPSele.setText(\"课程名?\");\n\t\t\n\t\tLabel labelStdOPFill = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOPFill.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t}", "private void createContents() {\r\n\t\tshlAboutGoko = new Shell(getParent(), getStyle());\r\n\t\tshlAboutGoko.setSize(376, 248);\r\n\t\tshlAboutGoko.setText(\"About Goko\");\r\n\t\tshlAboutGoko.setLayout(new GridLayout(1, false));\r\n\r\n\t\tComposite composite_1 = new Composite(shlAboutGoko, SWT.NONE);\r\n\t\tcomposite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\r\n\t\tcomposite_1.setLayout(new GridLayout(1, false));\r\n\r\n\t\tLabel lblGokoIsA = new Label(composite_1, SWT.WRAP);\r\n\t\tGridData gd_lblGokoIsA = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblGokoIsA.widthHint = 350;\r\n\t\tlblGokoIsA.setLayoutData(gd_lblGokoIsA);\r\n\t\tlblGokoIsA.setText(\"Goko is an open source desktop application for CNC control and operation\");\r\n\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblAlphaVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblAlphaVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblAlphaVersion.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblAlphaVersion.setText(\"Version\");\r\n\r\n\t\tLabel lblVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblVersion.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(composite_1, SWT.NONE);\r\n\r\n\t\tLabel lblDate = new Label(composite_2, SWT.NONE);\r\n\t\tlblDate.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblDate.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblDate.setText(\"Build\");\r\n\t\t\r\n\t\tLabel lblBuild = new Label(composite_2, SWT.NONE);\r\n\t\tlblBuild.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\t\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader(); \r\n\t\tInputStream stream = loader.getResourceAsStream(\"/version.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(stream);\r\n\t\t\tString version = prop.getProperty(\"goko.version\");\r\n\t\t\tString build = prop.getProperty(\"goko.build.timestamp\");\r\n\t\t\tlblVersion.setText(version);\r\n\t\t\tlblBuild.setText(build);\t\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tLOG.error(e);\r\n\t\t}\r\n\t\t\r\n\t\tComposite composite = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblMoreInformationOn = new Label(composite, SWT.NONE);\r\n\t\tGridData gd_lblMoreInformationOn = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblMoreInformationOn.widthHint = 60;\r\n\t\tlblMoreInformationOn.setLayoutData(gd_lblMoreInformationOn);\r\n\t\tlblMoreInformationOn.setText(\"Website :\");\r\n\r\n\t\tLink link = new Link(composite, SWT.NONE);\r\n\t\tlink.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://www.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tlink.setText(\"<a>http://www.goko.fr</a>\");\r\n\t\t\r\n\t\tComposite composite_3 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_3.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblForum = new Label(composite_3, SWT.NONE);\r\n\t\tGridData gd_lblForum = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblForum.widthHint = 60;\r\n\t\tlblForum.setLayoutData(gd_lblForum);\r\n\t\tlblForum.setText(\"Forum :\");\r\n\t\t\r\n\t\tLink link_1 = new Link(composite_3, 0);\r\n\t\tlink_1.setText(\"<a>http://discuss.goko.fr</a>\");\r\n\t\tlink_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://discuss.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tComposite composite_4 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_4.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblContact = new Label(composite_4, SWT.NONE);\r\n\t\tGridData gd_lblContact = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblContact.widthHint = 60;\r\n\t\tlblContact.setLayoutData(gd_lblContact);\r\n\t\tlblContact.setText(\"Contact :\");\r\n\t\t\t \r\n\t\tLink link_2 = new Link(composite_4, 0);\r\n\t\tlink_2.setText(\"<a>\"+toAscii(\"636f6e7461637440676f6b6f2e6672\")+\"</a>\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(550, 400);\n\t\tshell.setText(\"Source A Antenna 1 Data\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnNewButton_1.setBounds(116, 10, 98, 30);\n\t\tbtnNewButton_1.setText(\"pol 1\");\n\t\t\n\t\tButton btnPol = new Button(shell, SWT.NONE);\n\t\tbtnPol.setText(\"pol 2\");\n\t\tbtnPol.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol.setBounds(220, 10, 98, 30);\n\t\t\n\t\tButton btnPol_1 = new Button(shell, SWT.NONE);\n\t\tbtnPol_1.setText(\"pol 3\");\n\t\tbtnPol_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_1.setBounds(324, 10, 98, 30);\n\t\t\n\t\tButton btnPol_2 = new Button(shell, SWT.NONE);\n\t\tbtnPol_2.setText(\"pol 4\");\n\t\tbtnPol_2.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_2.setBounds(428, 10, 98, 30);\n\t\t\n\t\tButton button_3 = new Button(shell, SWT.NONE);\n\t\tbutton_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tPlot_graph nw = new Plot_graph();\n\t\t\t\tnw.GraphScreen();\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(116, 46, 98, 30);\n\t\t\n\t\tButton button_4 = new Button(shell, SWT.NONE);\n\t\tbutton_4.setBounds(116, 83, 98, 30);\n\t\t\n\t\tButton button_5 = new Button(shell, SWT.NONE);\n\t\tbutton_5.setBounds(116, 119, 98, 30);\n\t\t\n\t\tButton button_6 = new Button(shell, SWT.NONE);\n\t\tbutton_6.setBounds(116, 155, 98, 30);\n\t\t\n\t\tButton button_7 = new Button(shell, SWT.NONE);\n\t\tbutton_7.setBounds(220, 155, 98, 30);\n\t\t\n\t\tButton button_8 = new Button(shell, SWT.NONE);\n\t\tbutton_8.setBounds(220, 119, 98, 30);\n\t\t\n\t\tButton button_9 = new Button(shell, SWT.NONE);\n\t\tbutton_9.setBounds(220, 83, 98, 30);\n\t\t\n\t\tButton button_10 = new Button(shell, SWT.NONE);\n\t\tbutton_10.setBounds(220, 46, 98, 30);\n\t\t\n\t\tButton button_11 = new Button(shell, SWT.NONE);\n\t\tbutton_11.setBounds(428, 155, 98, 30);\n\t\t\n\t\tButton button_12 = new Button(shell, SWT.NONE);\n\t\tbutton_12.setBounds(428, 119, 98, 30);\n\t\t\n\t\tButton button_13 = new Button(shell, SWT.NONE);\n\t\tbutton_13.setBounds(428, 83, 98, 30);\n\t\t\n\t\tButton button_14 = new Button(shell, SWT.NONE);\n\t\tbutton_14.setBounds(428, 46, 98, 30);\n\t\t\n\t\tButton button_15 = new Button(shell, SWT.NONE);\n\t\tbutton_15.setBounds(324, 46, 98, 30);\n\t\t\n\t\tButton button_16 = new Button(shell, SWT.NONE);\n\t\tbutton_16.setBounds(324, 83, 98, 30);\n\t\t\n\t\tButton button_17 = new Button(shell, SWT.NONE);\n\t\tbutton_17.setBounds(324, 119, 98, 30);\n\t\t\n\t\tButton button_18 = new Button(shell, SWT.NONE);\n\t\tbutton_18.setBounds(324, 155, 98, 30);\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(1200, 1100);\n\t\tshell.setText(\"Zagreb Montaža d.o.o\");\n\n\t\tfinal Composite cmpMenu = new Composite(shell, SWT.NONE);\n\t\tcmpMenu.setBackground(SWTResourceManager.getColor(119, 136, 153));\n\t\tcmpMenu.setBounds(0, 0, 359, 1061);\n\t\t\n\t\tFormToolkit formToolkit = new FormToolkit(Display.getDefault());\n\t\tfinal Section sctnCalculator = formToolkit.createSection(cmpMenu, Section.TWISTIE | Section.TITLE_BAR);\n\t\tsctnCalculator.setExpanded(false);\n\t\tsctnCalculator.setBounds(10, 160, 339, 23);\n\t\tformToolkit.paintBordersFor(sctnCalculator);\n\t\tsctnCalculator.setText(\"Kalkulator temperature preddgrijavanja\");\n\n\t\tfinal Section sctn10112ce = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112ce.setBounds(45, 189, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112ce);\n\t\tsctn10112ce.setText(\"1011-2 CE\");\n\t\tsctn10112ce.setVisible(false);\n\n\t\tfinal Section sctn10112cet = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112cet.setBounds(45, 218, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112cet);\n\t\tsctn10112cet.setText(\"1011-2 CET\");\n\t\tsctn10112cet.setVisible(false);\n\n\t\tfinal Section sctnAws = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctnAws.setBounds(45, 247, 304, 23);\n\t\tformToolkit.paintBordersFor(sctnAws);\n\t\tsctnAws.setText(\"AWS\");\n\t\tsctnAws.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112ce = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112ce.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112ce.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112cet = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112cet.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112cet.setVisible(false);\n\t\t\n\t\tfinal Composite compositeAws = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcompositeAws.setBounds(365, 0, 829, 1061);\n\t\tcompositeAws.setVisible(false);\n\t\t\n\t\tsctnCalculator.addExpansionListener(new IExpansionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\n\t\t\t\tif (sctnCalculator.isExpanded() == false) {\n\t\t\t\t\tsctn10112ce.setVisible(true);\n\t\t\t\t\tsctn10112cet.setVisible(true);\n\t\t\t\t\tsctnAws.setVisible(true);\n\n\t\t\t\t} else {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tsctnAws.setVisible(false);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t\tsctn10112ce.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112ce.isExpanded() == true) {\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112ce(composite10112ce, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctn10112cet.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112cet.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112cet(composite10112cet, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctnAws.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctnAws.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tnew FAws(compositeAws, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t}\n\t\t});\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setLayout(new GridLayout(1, false));\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t{\r\n\t\t\tfinal Button btnShowTheFake = new Button(shell, SWT.TOGGLE);\r\n\t\t\tbtnShowTheFake.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t\tif (btnShowTheFake.getSelection()) {\r\n\t\t\t\t\t\tRectangle bounds = btnShowTheFake.getBounds();\r\n\t\t\t\t\t\tPoint pos = shell.toDisplay(bounds.x + 5, bounds.y + bounds.height);\r\n\t\t\t\t\t\ttooltip = showTooltip(shell, pos.x, pos.y);\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Hide it\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (tooltip != null && !tooltip.isDisposed())\r\n\t\t\t\t\t\t\ttooltip.dispose();\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t}\r\n\t}", "@Override\r\n\tprotected String getView() {\n\t\treturn OBSView.PARTS_VIEW;\r\n\t}", "public void createPartControl(Composite parent)\n {\n if (Workbench.getInstance().isClosing()) return;\n \n super.createPartControl(parent);\n \n installProjectionSupport();\n installBracketInserter();\n installCaretMoveListener();\n installModuleCompletionHelper();\n installIdleTimer();\n installSyntaxValidationThread();\n installFoldReconciler();\n installTasksReconciler();\n installAnnotationListener();\n \n source = new SourceFile(\n PerlEditorPlugin.getDefault().getLog(),\n getViewer().getDocument());\n \n reconcile();\n }", "protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}", "protected void buildEmptyView() {\n\n\t\t// build panel\n\t\tgContent.removeAll();\n\n\t\t// add helpfile\n\t\tgContent.add(new HelpViewer(\"troop.pages\"));\n\n\t\t// build it\n\t\tgContent.invalidate();\n\t\tgContent.revalidate();\n\t}", "@Override\r\n\tpublic void createControl(Composite parent) {\r\n\t\tpageBook = new PageBook(parent, SWT.NONE);\r\n\t\t\r\n\t\toutline = getViewer().createControl(pageBook);\r\n\t\tgetViewer().setContents(new Root(model));\r\n\t\tselectionSynchronizer.addViewer(getViewer());\r\n\t\t\r\n\t\toverview = new Canvas(pageBook, SWT.NONE);\r\n\t\tlws = new LightweightSystem(overview);\r\n\t\t\r\n IToolBarManager tbm = getSite().getActionBars().getToolBarManager();\r\n showOutlineAction = new Action() {\r\n public void run() {\r\n showPage(outline);\r\n }\r\n };\r\n showOutlineAction.setImageDescriptor(ImageDescriptor.createFromFile(\r\n \t\tDeploymentOutlinePage.class, \"icons/outline.gif\"));\r\n tbm.add(showOutlineAction);\r\n showOverviewAction = new Action() {\r\n public void run() {\r\n showPage(overview);\r\n }\r\n };\r\n showOverviewAction.setImageDescriptor(ImageDescriptor.createFromFile(\r\n \t\tDeploymentOutlinePage.class, \"icons/overview.gif\"));\r\n tbm.add(showOverviewAction);\r\n \r\n initializeOverview();\r\n \r\n showPage(outline);\r\n\t}", "@Override\r\n\tpublic void createContents(Composite viewArea, Map<String, Image> imageMap) {\n\t\tgraph = new Graph(viewArea, SWT.None);\r\n\t\tnodes = new LinkedList<GraphNode>();\r\n\t\tconnections = new LinkedList<GraphConnection>();\r\n\r\n\t\tString[] name = { \"Core\", \"Outline\", \"Package Explorer\", \"JUnit\",\r\n\t\t\t\t\"JavaDoc\", \"Debug\" };\r\n\t\tfor (int i = 0; i < name.length; i++) {\r\n\t\t\tnodes.add(new GraphNode(graph, SWT.None, name[i]));\r\n\t\t}\r\n\r\n\t\tconnections.add(CreateConnection(\"Core\", \"Outline\"));\r\n\t\tgraph.setLayoutAlgorithm(new SpringLayoutAlgorithm(\r\n\t\t\t\tLayoutStyles.NO_LAYOUT_NODE_RESIZING), true);\r\n\t\tgraph.addSelectionListener(new SelectionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\tSystem.out.println(arg0);\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "protected void createContents() {\n\t\tmainShell = new Shell();\n\t\tmainShell.addDisposeListener(new DisposeListener() {\n\t\t\tpublic void widgetDisposed(DisposeEvent arg0) {\n\t\t\t\tLastValueManager manager = LastValueManager.getInstance();\n\t\t\t\tmanager.setLastAppEngineDirectory(mGAELocation.getText());\n\t\t\t\tmanager.setLastProjectDirectory(mAppRootDir.getText());\n\t\t\t\tmanager.setLastPythonBinDirectory(txtPythonLocation.getText());\n\t\t\t\tmanager.save();\n\t\t\t}\n\t\t});\n\t\tmainShell.setSize(460, 397);\n\t\tmainShell.setText(\"Google App Engine Launcher\");\n\t\tmainShell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite mainComposite = new Composite(mainShell, SWT.NONE);\n\t\tmainComposite.setLayout(new GridLayout(1, false));\n\t\t\n\t\tComposite northComposite = new Composite(mainComposite, SWT.NONE);\n\t\tnorthComposite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 1, 1));\n\t\tGridLayout gl_northComposite = new GridLayout(1, false);\n\t\tgl_northComposite.verticalSpacing = 1;\n\t\tnorthComposite.setLayout(gl_northComposite);\n\t\t\n\t\tComposite pythonComposite = new Composite(northComposite, SWT.NONE);\n\t\tpythonComposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblPython = new Label(pythonComposite, SWT.NONE);\n\t\tlblPython.setText(\"Python : \");\n\t\t\n\t\ttxtPythonLocation = new Text(pythonComposite, SWT.BORDER);\n\t\ttxtPythonLocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\ttxtPythonLocation.setText(\"/usr/bin/python2.7\");\n\t\t\n\t\tLabel lblGaeLocation = new Label(pythonComposite, SWT.NONE);\n\t\tlblGaeLocation.setText(\"GAE Location :\");\n\t\t\n\t\tmGAELocation = new Text(pythonComposite, SWT.BORDER);\n\t\tmGAELocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tmGAELocation.setText(\"/home/zelon/Programs/google_appengine\");\n\t\t\n\t\tLabel lblProject = new Label(pythonComposite, SWT.NONE);\n\t\tlblProject.setText(\"Project : \");\n\t\t\n\t\tmAppRootDir = new Text(pythonComposite, SWT.BORDER);\n\t\tmAppRootDir.setSize(322, 27);\n\t\tmAppRootDir.setText(\"/home/zelon/workspaceIndigo/box.wimy.com\");\n\t\t\n\t\tComposite ActionComposite = new Composite(northComposite, SWT.NONE);\n\t\tActionComposite.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tActionComposite.setLayout(new GridLayout(2, true));\n\t\t\n\t\tButton btnTestServer = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnTestServer = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnTestServer.widthHint = 100;\n\t\tbtnTestServer.setLayoutData(gd_btnTestServer);\n\t\tbtnTestServer.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.startTestServer(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText(), 8080);\n\t\t\t}\n\t\t});\n\t\tbtnTestServer.setText(\"Test Server\");\n\t\t\n\t\tButton btnDeploy = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnDeploy = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDeploy.widthHint = 100;\n\t\tbtnDeploy.setLayoutData(gd_btnDeploy);\n\t\tbtnDeploy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.deploy(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText());\n\t\t\t}\n\t\t});\n\t\tbtnDeploy.setText(\"Deploy\");\n\t\tActionComposite.setTabList(new Control[]{btnTestServer, btnDeploy});\n\t\tnorthComposite.setTabList(new Control[]{ActionComposite, pythonComposite});\n\t\t\n\t\tComposite centerComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridData gd_centerComposite = new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1);\n\t\tgd_centerComposite.heightHint = 200;\n\t\tcenterComposite.setLayoutData(gd_centerComposite);\n\t\tcenterComposite.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tlog = new StyledText(centerComposite, SWT.BORDER | SWT.V_SCROLL);\n\t\tlog.setAlignment(SWT.CENTER);\n\t}", "public PartsViewImpl() {\n }", "protected void createContents() {\n\t\tsetText(\"Termination\");\n\t\tsetSize(340, 101);\n\n\t}", "private void createContents() {\r\n shell = new Shell(getParent(), getStyle());\r\n shell.setSize(650, 300);\r\n shell.setText(getText());\r\n\r\n shell.setLayout(new FormLayout());\r\n\r\n lblSOName = new Label(shell, SWT.CENTER);\r\n lblSOName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_lblSOName = new FormData();\r\n fd_lblSOName.bottom = new FormAttachment(0, 20);\r\n fd_lblSOName.right = new FormAttachment(100, -2);\r\n fd_lblSOName.top = new FormAttachment(0, 2);\r\n fd_lblSOName.left = new FormAttachment(0, 2);\r\n lblSOName.setLayoutData(fd_lblSOName);\r\n lblSOName.setText(soName);\r\n\r\n tableParams = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);\r\n tableParams.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_tableParams = new FormData();\r\n fd_tableParams.bottom = new FormAttachment(100, -40);\r\n fd_tableParams.right = new FormAttachment(100, -2);\r\n fd_tableParams.top = new FormAttachment(0, 22);\r\n fd_tableParams.left = new FormAttachment(0, 2);\r\n tableParams.setLayoutData(fd_tableParams);\r\n tableParams.setHeaderVisible(true);\r\n tableParams.setLinesVisible(true);\r\n fillInTable(tableParams);\r\n tableParams.addControlListener(new ControlAdapter() {\r\n\r\n @Override\r\n public void controlResized(ControlEvent e) {\r\n Table table = (Table)e.getSource();\r\n table.getColumn(0).setWidth((int)(table.getClientArea().width*nameSpace));\r\n table.getColumn(1).setWidth((int)(table.getClientArea().width*valueSpace));\r\n table.getColumn(2).setWidth((int)(table.getClientArea().width*hintSpace));\r\n }\r\n });\r\n tableParams.pack();\r\n //paramName.pack();\r\n //paramValue.pack();\r\n\r\n final TableEditor editor = new TableEditor(tableParams);\r\n //The editor must have the same size as the cell and must\r\n //not be any smaller than 50 pixels.\r\n editor.horizontalAlignment = SWT.LEFT;\r\n editor.grabHorizontal = true;\r\n editor.minimumWidth = 50;\r\n // editing the second column\r\n tableParams.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n // Identify the selected row\r\n TableItem item = (TableItem) e.item;\r\n if (item == null) {\r\n return;\r\n }\r\n\r\n // The control that will be the editor must be a child of the Table\r\n IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM);\r\n if (editedParam != null) {\r\n // Clean up any previous editor control\r\n Control oldEditor = editor.getEditor();\r\n if (oldEditor != null) {\r\n oldEditor.dispose();\r\n }\r\n\r\n Control editControl = null;\r\n String cellText = item.getText(columnValueIndex);\r\n switch (editedParam.getType()) {\r\n case BOOLEAN:\r\n Combo cmb = new Combo(tableParams, SWT.READ_ONLY);\r\n String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)};\r\n cmb.setItems(booleanItems);\r\n cmb.select(1);\r\n if (Boolean.parseBoolean(cellText)) {\r\n cmb.select(0);\r\n }\r\n editControl = cmb;\r\n cmb.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n Combo text = (Combo) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n break;\r\n case DATE:\r\n IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam;\r\n LocalDateTime calToUse = calParam.getValue();\r\n Composite dateAndTime = new Composite(tableParams, SWT.NONE);\r\n RowLayout rl = new RowLayout();\r\n rl.wrap = false;\r\n dateAndTime.setLayout(rl);\r\n //Date cellDt;\r\n try {\r\n LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt);\r\n if (locDT != null) {\r\n calToUse = locDT;\r\n }\r\n /*cellDt = dateFmt.parse(cellText);\r\n if (cellDt != null) {\r\n calToUse.setTime(cellDt);\r\n }*/\r\n } catch (DateTimeParseException e1) {\r\n log.error(\"widgetSelected \", e1);\r\n }\r\n\r\n DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN);\r\n datePicker.setData(DATA_VALUE_PARAM, calParam);\r\n DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG);\r\n timePicker.setData(DATA_VALUE_PARAM, calParam);\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1,\r\n calToUse.getDayOfMonth());\r\n timePicker.setTime(calToUse.getHour(), calToUse.getMinute(),\r\n calToUse.getSecond());\r\n\r\n datePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n timePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n dateAndTime.layout();\r\n editControl = dateAndTime;\r\n break;\r\n case INTEGER:\r\n Text intEditor = new Text(tableParams, SWT.NONE);\r\n intEditor.setText(item.getText(columnValueIndex));\r\n intEditor.selectAll();\r\n intEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n Integer resultInt = null;\r\n try {\r\n resultInt = Integer.parseInt(text.getText());\r\n } catch (NumberFormatException nfe) {\r\n log.error(\"NFE \", nfe);\r\n }\r\n if (resultInt != null) {\r\n editor.getItem().setText(columnValueIndex, resultInt.toString());\r\n }\r\n }\r\n });\r\n editControl = intEditor;\r\n break;\r\n case STRING:\r\n default:\r\n Text newEditor = new Text(tableParams, SWT.NONE);\r\n newEditor.setText(item.getText(columnValueIndex));\r\n newEditor.setFont(tableParams.getFont());\r\n newEditor.selectAll();\r\n newEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n editControl = newEditor;\r\n break;\r\n }\r\n\r\n editControl.setFont(tableParams.getFont());\r\n editControl.setFocus();\r\n editor.setEditor(editControl, item, columnValueIndex);\r\n }\r\n }\r\n });\r\n\r\n\r\n btnOK = new Button(shell, SWT.NONE);\r\n btnOK.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnOK = new FormData();\r\n fd_btnOK.bottom = new FormAttachment(100, -7);\r\n fd_btnOK.right = new FormAttachment(40, 2);\r\n fd_btnOK.top = new FormAttachment(100, -35);\r\n fd_btnOK.left = new FormAttachment(15, 2);\r\n btnOK.setLayoutData(fd_btnOK);\r\n btnOK.setText(\"OK\");\r\n btnOK.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.OK, getParamMap());\r\n shell.close();\r\n }\r\n\r\n });\r\n shell.setDefaultButton(btnOK);\r\n\r\n btnCancel = new Button(shell, SWT.NONE);\r\n btnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnCancel = new FormData();\r\n fd_btnCancel.bottom = new FormAttachment(100, -7);\r\n fd_btnCancel.left = new FormAttachment(60, -2);\r\n fd_btnCancel.top = new FormAttachment(100, -35);\r\n fd_btnCancel.right = new FormAttachment(85, -2);\r\n btnCancel.setLayoutData(fd_btnCancel);\r\n btnCancel.setText(\"Cancel\");\r\n btnCancel.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.CANCEL, null);\r\n shell.close();\r\n }\r\n\r\n });\r\n tableParams.redraw();\r\n }", "protected Control createContents(Composite parent) {\n\t\tgetOverlayStore().load();\r\n\t\tgetOverlayStore().start();\r\n Composite composite = createContainer(parent);\r\n \r\n // The layout info for the preference page\r\n GridLayout gridLayout = new GridLayout();\r\n gridLayout.marginHeight = 0;\r\n gridLayout.marginWidth = 0;\r\n composite.setLayout(gridLayout);\r\n \r\n // A panel for the preference page\r\n Composite defPanel = new Composite(composite, SWT.NONE);\r\n GridLayout layout = new GridLayout();\r\n int numColumns = 2;\r\n layout.numColumns = numColumns;\r\n defPanel.setLayout(layout);\r\n GridData gridData =\r\n new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL);\r\n defPanel.setLayoutData(gridData);\r\n \r\n\r\n // Browser options\r\n\t\tGroup wrappingGroup= createGroup(numColumns, defPanel, \"Web Browser\");\r\n\t\tString labelText= \"Use tabbed browsing\";\r\n\t\tlabelText= \"Used tabbed browsing\";\r\n\t\taddCheckBox(wrappingGroup, labelText, CFMLPreferenceConstants.P_TABBED_BROWSER, 1);\r\n \r\n // File paths\r\n createFilePathGroup(defPanel);\r\n \r\n // Images tooltips\r\n\t\tGroup imageGroup= createGroup(numColumns, defPanel, \"Images\");\r\n\t\tlabelText= \"Show Image Tooltips (restart required)\";\r\n\t\taddCheckBox(imageGroup, labelText, CFMLPreferenceConstants.P_IMAGE_TOOLTIPS, 1);\r\n \t\t\r\n\t\t// default help url\r\n\t\tGroup helpGroup= createGroup(numColumns, defPanel, \"External Help Documentation\");\r\n\t\tlabelText= \"Default URL:\";\r\n\t\taddTextField(helpGroup, labelText, CFMLPreferenceConstants.P_DEFAULT_HELP_URL, 50, 0, null);\r\n\t\tlabelText= \"Use external broswer\";\r\n\t\taddCheckBox(helpGroup, labelText, CFMLPreferenceConstants.P_HELP_URL_USE_EXTERNAL_BROWSER, 1);\r\n \r\n // Template Sites\r\n \r\n // createTemplateSitesPathGroup(defPanel);\r\n\r\n\t\tinitializeFields();\r\n\t\tapplyDialogFont(defPanel);\r\n\r\n\t\treturn composite;\r\n }", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setSize(250, 150);\n\t\tshell.setText(getText());\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.SOUTH);\n\t\tcomposite.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite_1.setLayout(new GridLayout(4, false));\n\t\tnew Label(composite_1, SWT.NONE);\n\t\t\n\t\tLabel lblHour = new Label(composite_1, SWT.NONE);\n\t\tlblHour.setSize(0, 0);\n\t\tlblHour.setText(\"Hour\");\n\t\t\n\t\tLabel lblMin = new Label(composite_1, SWT.NONE);\n\t\tlblMin.setSize(0, 0);\n\t\tlblMin.setText(\"Min\");\n\t\t\n\t\tButton btnAm = new Button(composite_1, SWT.RADIO);\n\t\tbtnAm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tampm=0;\n\t\t\t}\n\t\t});\n\t\tbtnAm.setSize(0, 0);\n\t\tbtnAm.setText(\"AM\");\n\t\t\n\t\tLabel lblStartTime = new Label(composite_1, SWT.NONE);\n\t\tlblStartTime.setSize(0, 0);\n\t\tlblStartTime.setText(\"Start Time:\");\n\t\t\n\t\tfinal Spinner hourSpinner = new Spinner(composite_1, SWT.BORDER);\n\t\thourSpinner.setSize(0, 0);\n\t\thourSpinner.setMaximum(12);\n\t\thourSpinner.setMinimum(1);\n\t\t\n\t\tfinal Spinner minSpinner = new Spinner(composite_1, SWT.BORDER);\n\t\tminSpinner.setSize(0, 0);\n\t\tminSpinner.setMaximum(59);\n\t\tminSpinner.setMinimum(0);\n\t\t\n\t\t\n\t\tButton btnPm = new Button(composite_1, SWT.RADIO);\n\t\tbtnPm.setSize(0, 0);\n\t\tbtnPm.setText(\"PM\");\n\t\t\n\t\tButton btnCancel = new Button(composite, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnOk = new Button(composite, SWT.NONE);\n\t\tbtnOk.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\thour = Integer.valueOf(hourSpinner.getText());\n\t\t\t\tminute = Integer.valueOf(minSpinner.getText());\n\t\t\t\tparent.setHour(hour);\n\t\t\t\tSystem.out.println(\"print hour-->\"+hour+\". print parent.hour-->\"+parent.hour);\n\t\t\t\tSystem.out.println(parent.hour);\n\t\t\t\tparent.setMinute(minute);\n\t\t\t\tparent.setAmpm(ampm);\n\t\t\t\tshell.close();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnOk.setText(\"OK\");\n\t\t\n\t\t\n\n\t}", "protected void createContents() throws Exception\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(755, 592);\n\t\tshell.setText(\"Impresor - Documentos v1.2\");\n\t\t\n\t\tthis.commClass.centrarVentana(shell);\n\t\t\n\t\tlistComandos = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.COLOR_WHITE);\n\t\tlistComandos.setBounds(72, 22, 628, 498);\n\t\tlistComandos.setVisible(false);\n\n//Boton que carga los documentos\t\t\n\t\tButton btnLoaddocs = new Button(shell, SWT.NONE);\n\t\tbtnLoaddocs.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tloadDocs(false, false);\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.setBounds(10, 20, 200, 26);\n\t\tbtnLoaddocs.setText(\"Cargar documentos a imprimir\");\n\t\t\n//Browser donde se muestra el documento descargado\n\t\tbrowser = new Browser(shell, SWT.BORDER);\n\t\tbrowser.setBounds(10, 289, 726, 231);\n\t\tbrowser.addProgressListener(new ProgressListener() \n\t\t{\n\t\t\tpublic void changed(ProgressEvent event) {\n\t\t\t\t// Cuando cambia.\t\n\t\t\t}\n\t\t\tpublic void completed(ProgressEvent event) {\n\t\t\t\t/* Cuando se completo \n\t\t\t\t Se usa para parsear el documento una vez cargado, el documento\n\t\t\t\t puede ser un doc xml que contiene un mensaje de error\n\t\t\t\t o un doc html que dara error de parseo Xml,es decir,\n\t\t\t\t ante este error entendemos que se cargo bien el doc HTML.\n\t\t\t\t Paradojico verdad? */\n\t\t\t\tleerDocumentoCargado();\n\t\t\t}\n\t\t });\n\n///Boton para iniciar impresion\t\t\n\t\tButton btnIniPrintW = new Button(shell, SWT.NONE);\n\t\tbtnIniPrintW.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.setBounds(337, 532, 144, 26);\n\t\tbtnIniPrintW.setText(\"Iniciar impresion\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 52, 885, 2);\n\t\t\n\t\tButton btnSalir = new Button(shell, SWT.NONE);\n\t\tbtnSalir.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.setBounds(659, 532, 77, 26);\n\t\tbtnSalir.setText(\"Salir\");\n\t\t\n\t\tthreadLabel = new Label(shell, SWT.BORDER);\n\t\tthreadLabel.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t//mostrar / ocultar el historial de mensajes\n\t\t\t\tMOCmsgHist();\n\t\t\t}\n\t\t});\n\t\tthreadLabel.setAlignment(SWT.CENTER);\n\t\tthreadLabel.setBackground(new Color(display, 255,255,255));\n\t\tthreadLabel.setBounds(10, 0, 891, 18);\n\t\tthreadLabel.setText(\"\");\n\t\t\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel_1.setBounds(10, 281, 726, 2);\n\n\t\ttablaDocs = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttablaDocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.setBounds(10, 52, 726, 215);\n\t\ttablaDocs.setHeaderVisible(true);\n\t\ttablaDocs.setLinesVisible(true);\n\t\tcrearColumnas(tablaDocs);\n\t\t\n//Label que muestra los mensajes\n\t\tmensajeTxt = new Label(shell, SWT.NONE);\n\t\tmensajeTxt.setAlignment(SWT.CENTER);\n\t\tmensajeTxt.setBounds(251, 146, 200, 26);\n\t\tmensajeTxt.setText(\"Espere...\");\n\t\t\n//Listado donde se muestran los documentos cargados\n\t\tlistaDocumentos = new List(shell, SWT.BORDER);\n\t\tlistaDocumentos.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.setBounds(10, 82, 726, 77);\n\t\t\n\t\tButton btnShowPreview = new Button(shell, SWT.CHECK);\n\t\tbtnShowPreview.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tmostrarPreview = true;\n\t\t\t\t}else{\n\t\t\t\t\tmostrarPreview = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShowPreview.setBounds(215, 28, 118, 18);\n\t\tbtnShowPreview.setText(\"Mostrar preview\");\n\t\t\n\t\tButton btnAutoRefresh = new Button(shell, SWT.CHECK);\n\t\tbtnAutoRefresh.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tautoRefresh = true;\n\t\t\t\t\tbeginTarea();\n\t\t\t\t}else{\n\t\t\t\t\tautoRefresh = false;\n\t\t\t\t\tponerMsg(\"Carga automática desactivada\");\n\t\t\t\t\tfinishTarea();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAutoRefresh.setBounds(353, 28, 128, 18);\n\t\tbtnAutoRefresh.setText(\"Recarga Automática\");\n\t\t\n\t\ttareaBack(this, autoRefresh).start();\n\t\tloadDocs(false, false);\n\t}", "@Override\r\n\tpublic void buildPart() {\n\t\t\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttextualRepresentationEClass = createEClass(TEXTUAL_REPRESENTATION);\n\t\tcreateEReference(textualRepresentationEClass, TEXTUAL_REPRESENTATION__BASE_COMMENT);\n\t\tcreateEAttribute(textualRepresentationEClass, TEXTUAL_REPRESENTATION__LANGUAGE);\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellActivated(ShellEvent e) {\n\t\t\t\tloadSettings();\n\t\t\t}\n\t\t});\n\t\tshell.setSize(450, 160);\n\t\tshell.setText(\"Settings\");\n\t\t\n\t\ttextUsername = new Text(shell, SWT.BORDER);\n\t\ttextUsername.setBounds(118, 10, 306, 21);\n\t\t\n\t\ttextPassword = new Text(shell, SWT.BORDER | SWT.PASSWORD);\n\t\ttextPassword.setBounds(118, 38, 306, 21);\n\t\t\n\t\tCLabel lblLogin = new CLabel(shell, SWT.NONE);\n\t\tlblLogin.setBounds(10, 10, 61, 21);\n\t\tlblLogin.setText(\"Login\");\n\t\t\n\t\tCLabel lblPassword = new CLabel(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(10, 38, 61, 21);\n\t\t\n\t\tButton btnSave = new Button(shell, SWT.NONE);\n\t\tbtnSave.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tApplicationSettings as = new ApplicationSettings();\n\t\t as.savePassword(textPassword.getText());\n\t\t as.saveUsername(textUsername.getText());\n\t\t \n\t\t connectionOK = WSHandler.setAutoFillDailyReports(btnAutomaticDailyReport.getSelection());\n\t\t \n\t\t shell.close();\n\t\t if (!(parentDialog == null)) {\n\t\t \tparentDialog.reloadTable();\n\t\t }\n\t\t\t}\n\t\t});\n\t\tbtnSave.setBounds(10, 87, 414, 25);\n\t\tbtnSave.setText(\"Save\");\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell(shell,SWT.SHELL_TRIM|SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\chaogushenqi.png\"));\n\t\tshell.setSize(467, 398);\n\t\tshell.setText(\"\\u5356\\u7A7A\");\n\t\t\n\t\ttext_code = new Text(shell, SWT.BORDER);\n\t\ttext_code.setBounds(225, 88, 73, 23);\n\t\t\n\t\ttext_uprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_uprice.setBounds(225, 117, 73, 23);\n\t\t\n\t\ttext_downprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_downprice.setBounds(225, 146, 73, 23);\n\t\t\n\t\ttext_price = new Text(shell, SWT.BORDER);\n\t\ttext_price.setBounds(225, 178, 73, 23);\n\t\t\n\t\ttext_num = new Text(shell, SWT.BORDER);\n\t\ttext_num.setBounds(225, 207, 73, 23);\n\t\t\n\t\t//下单,取消按钮\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tpaceoder();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(116, 284, 58, 27);\n\t\tbtnNewButton.setText(\"\\u4E0B\\u5355\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(225, 284, 58, 27);\n\t\tbtnNewButton_1.setText(\"\\u53D6\\u6D88\");\n\t\t\n\t\tLabel lbl_code = new Label(shell, SWT.NONE);\n\t\tlbl_code.setBounds(116, 91, 60, 17);\n\t\tlbl_code.setText(\"股票代码:\");\n\t\t\n\t\tLabel lbl_upprice = new Label(shell, SWT.NONE);\n\t\tlbl_upprice.setBounds(116, 120, 60, 17);\n\t\tlbl_upprice.setText(\"涨停价格:\");\n\t\t\n\t\tLabel lbl_downprice = new Label(shell, SWT.NONE);\n\t\tlbl_downprice.setBounds(116, 152, 60, 17);\n\t\tlbl_downprice.setText(\"跌停价格:\");\n\t\t\n\t\tLabel lbl_price = new Label(shell, SWT.NONE);\n\t\tlbl_price.setBounds(116, 181, 60, 17);\n\t\tlbl_price.setText(\"委托价格:\");\n\t\t\n\t\tLabel lbl_num = new Label(shell, SWT.NONE);\n\t\tlbl_num.setBounds(116, 210, 60, 17);\n\t\tlbl_num.setText(\"委托数量:\");\n\t\t\n\t\tLabel lbl_date = new Label(shell, SWT.NONE);\n\t\tlbl_date.setBounds(116, 243, 61, 17);\n\t\tlbl_date.setText(\"日 期:\");\n\t\t\n\t\ttext_dateTime = new DateTime(shell, SWT.BORDER);\n\t\ttext_dateTime.setBounds(225, 237, 88, 24);\n\t\t\n\t\tlbl_notice = new Label(shell, SWT.BORDER);\n\t\tlbl_notice.setBounds(316, 333, 125, 17);\n\t\t\n\t\tif (information == null) {\n\n\t\t\tfinal Label lbl_search = new Label(shell, SWT.NONE);\n\t\t\tlbl_search.addMouseListener(new MouseAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t\t\tlbl_searchEvent();\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search.addMouseTrackListener(new MouseTrackAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEnter(MouseEvent e) {\n\t\t\t\t\tlbl_search.setBackground(Display.getCurrent()\n\t\t\t\t\t\t\t.getSystemColor(SWT.COLOR_GREEN));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExit(MouseEvent e) {\n\t\t\t\t\tlbl_search\n\t\t\t\t\t\t\t.setBackground(Display\n\t\t\t\t\t\t\t\t\t.getCurrent()\n\t\t\t\t\t\t\t\t\t.getSystemColor(\n\t\t\t\t\t\t\t\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search\n\t\t\t\t\t.setImage(SWTResourceManager\n\t\t\t\t\t\t\t.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\检查.png\"));\n\t\t\tlbl_search.setBounds(354, 91, 18, 18);\n\n\t\t\ttext_place = new Text(shell, SWT.BORDER);\n\t\t\ttext_place.setBounds(304, 88, 32, 23);\n\n\t\t} else {\n\t\t\ttrade_shortsell();// 显示文本框内容\n\t\t}\n\t\t\n\t}", "protected void createContents() {\n shell = new Shell();\n shell.setSize(1024, 650);\n shell.setText(\"GMToolsTD\");\n shell.setLayout(new GridLayout());\n\n\n /* Création du menu principal */\n Menu menuPrincipal = new Menu(shell, SWT.BAR);\n shell.setMenuBar(menuPrincipal);\n\n MenuItem mntmModule = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmModule.setText(\"Module\");\n\n Menu menuModule = new Menu(mntmModule);\n mntmModule.setMenu(menuModule);\n\n mntmSpoolUsage = new MenuItem(menuModule, SWT.NONE);\n mntmSpoolUsage.setText(\"Spool Usage\");\n\n mntmUser = new MenuItem(menuModule, SWT.NONE);\n mntmUser.setText(\"User Information\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmConfig = new MenuItem(menuModule, SWT.NONE);\n mntmConfig.setText(\"Configuration\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmExit = new MenuItem(menuModule, SWT.NONE);\n mntmExit.setText(\"Exit\");\n\n MenuItem mntmHelp = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmHelp.setText(\"Help\");\n\n Menu menuAbout = new Menu(mntmHelp);\n mntmHelp.setMenu(menuAbout);\n\n mntmAbout = new MenuItem(menuAbout, SWT.NONE);\n mntmAbout.setText(\"About\");\n\n\n /* Creation main screen elements */\n pageComposite = new Composite(shell, SWT.NONE);\n pageComposite.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n pageComposite.setLayoutData(gridData);\n\n\n grpConnexion = new Group(pageComposite, SWT.NONE );\n grpConnexion.setText(\"Connection\");\n grpConnexion.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.heightHint = 110;\n grpConnexion.setLayoutData(gridData);\n\n\n Label lblServer = new Label(grpConnexion, SWT.NONE);\n lblServer.setText(\"Server :\");\n\n textServer = new Text(grpConnexion, SWT.NONE);\n textServer.setLayoutData(new GridData(110,20));\n\n Label lblUsername = new Label(grpConnexion, SWT.NONE);\n lblUsername.setSize(65, 20);\n lblUsername.setText(\"Username :\");\n\n textUsername = new Text(grpConnexion,SWT.NONE);\n textUsername.setLayoutData(new GridData(110,20));\n\n Label lblPassword = new Label(grpConnexion, SWT.NONE);\n lblPassword.setSize(65, 20);\n lblPassword.setText(\"Password :\");\n\n textPassword = new Text(grpConnexion, SWT.PASSWORD);\n textPassword.setLayoutData(new GridData(110,20));\n\n btnConnect = new Button(grpConnexion, SWT.NONE);\n btnConnect.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER, false, false));\n btnConnect.setText(\"Connect\");\n\n btnDisconnect = new Button(grpConnexion, SWT.NONE);\n btnDisconnect.setEnabled(false);\n btnDisconnect.setText(\"Disconnect\");\n\n\n\n groupInfo = new Group(pageComposite, SWT.NONE);\n groupInfo.setText(\"Information\");\n groupInfo.setLayout(new GridLayout(1, false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.heightHint = 110;\n groupInfo.setLayoutData(gridData);\n\n textInformation = new Text(groupInfo, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n textInformation.setLayoutData(gridData);\n\n\n // renseignement des informations provenant de config\n textServer.setText(conf.getValueConf(conf.SERVER_TD));\n textUsername.setText(conf.getValueConf(conf.USERNAME_TD));\n textPassword.setText(\"\");\n\n\n mntmSpoolUsage.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n majAffichage(AFFICHE_SPOOL);\n }\n });\n\n\n mntmUser.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_USER);\n }\n });\n\n mntmConfig.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_CONFIG);\n }\n });\n\n mntmAbout.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n MessageBox messageBox = new MessageBox(shell, SWT.ICON_INFORMATION);\n messageBox.setText(\"About...\");\n messageBox.setMessage(\"Not implemented yet ...\");\n messageBox.open();\n }\n });\n\n mntmExit.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n // afficher un message box avec du blabla\n shell.close();\n\n }\n });\n\n btnConnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n // connexion Teradata\n btnConnect.setEnabled(false);\n entryServer = textServer.getText();\n entryUsername = textUsername.getText();\n entryPassword = textPassword.getText();\n\n new Thread(new Runnable() {\n public void run() {\n try {\n\n tdConnect = new TDConnexion(entryServer, entryUsername, entryPassword, conf);\n majInformation(MESSAGE_INFORMATION,nomModuleConnexion,\"Connexion OK\");\n connexionStatut = true;\n } catch ( SQLException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Connexion KO : \"+err.getMessage());\n connexionStatut = false;\n } catch (ClassNotFoundException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Error ClassNotFoundException : \"+err.getMessage());\n connexionStatut = false;\n }\n if (connexionStatut) {\n try {\n nbrAMP = tdConnect.requestNumberAMP();\n } catch (Exception err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Calculation of AMPs KO : \"+err.getMessage());\n connexionStatut = false;\n tdConnect.deconnexion();\n }\n }\n\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n\n if (connexionStatut) {\n activationON();\n\n textServer.setEnabled(false);\n textUsername.setEnabled(false);\n textPassword.setEnabled(false);\n\n btnConnect.setEnabled(false);\n btnDisconnect.setEnabled(true);\n } else {\n btnConnect.setEnabled(true);\n }\n }\n });\n }\n }).start();\n\n\n\n\n }\n });\n\n\n btnDisconnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n manageDisconnection();\n }\n });\n\n\n //creating secondary screen\n ecranUser = new EcranUser(this);\n ecranSpool = new EcranSpool(this);\n ecranConfig = new EcranConfig(this);\n\n\n // update of the information message (log)\n new Thread(new Runnable() {\n public void run() {\n try {\n while (true) {\n if (!listMessageInfo.isEmpty()) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n refreshInformation();\n }\n });\n }\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n //nothing to do\n }\n }\n } catch (Exception e) {\n //What to do when the while send an error ?\n }\n }\n }).start();\n\n }", "protected void createContents(Display display) {\n\t\tshell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);\n\t\tshell.setSize(539, 648);\n\t\tshell.setText(\"SiSi - Security-aware Event Log Generator\");\n\t\tshell.setImage(new Image(shell.getDisplay(), \"imgs/shell.png\"));\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmOpenFile = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenFile.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tFileDialog dialog = new FileDialog(shell, SWT.OPEN);\n\n\t\t\t\tString[] filterNames = new String[] { \"PNML\", \"All Files (*)\" };\n\t\t\t\tString[] filterExtensions = new String[] { \"*.pnml\", \"*\" };\n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user.dir\"));\n\n\t\t\t\tdialog.setFilterNames(filterNames);\n\t\t\t\tdialog.setFilterExtensions(filterExtensions);\n\n\t\t\t\tString path = dialog.open();\n\t\t\t\tif( path != null ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(path);\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load File.\", exception);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmOpenFile.setImage(new Image(shell.getDisplay(), \"imgs/open.png\"));\n\t\tmntmOpenFile.setText(\"Open File...\");\n\t\t\n\t\tMenuItem mntmOpenExample = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenExample.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(\"examples/kbv.pnml\");\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load Example.\", exception);\n\t\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmOpenExample.setImage(new Image(shell.getDisplay(), \"imgs/example.png\"));\n\t\tmntmOpenExample.setText(\"Open Example\");\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.SEPARATOR);\n\t\tmntmNewItem.setText(\"Separator1\");\n\t\t\n\t\tMenuItem mntmExit = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmExit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.getDisplay().dispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tmntmExit.setImage(new Image(shell.getDisplay(), \"imgs/exit.png\"));\n\t\tmntmExit.setText(\"Exit\");\n\t\t\n\t\tmainComposite = new ScrolledComposite(shell, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tmainComposite.setExpandHorizontal(true);\n\t\tmainComposite.setExpandVertical(true);\n\t\t\n\t\tactiveComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridLayout gl_activeComposite = new GridLayout(1, true);\n\t\tgl_activeComposite.marginWidth = 10;\n\t\tgl_activeComposite.marginHeight = 10;\n\t\tactiveComposite.setLayout(gl_activeComposite);\n\t\t\n\t\tLabel lblWelcomeToSisi = new Label(activeComposite, SWT.NONE);\n\t\tlblWelcomeToSisi.setFont(SWTResourceManager.getFont(\"Segoe UI\", 30, SWT.BOLD));\n\t\tGridData gd_lblWelcomeToSisi = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblWelcomeToSisi.verticalIndent = 50;\n\t\tlblWelcomeToSisi.setLayoutData(gd_lblWelcomeToSisi);\n\t\tlblWelcomeToSisi.setText(\"Welcome to SiSi!\");\n\t\t\n\t\tLabel lblSecurityawareEvent = new Label(activeComposite, SWT.NONE);\n\t\tlblSecurityawareEvent.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tlblSecurityawareEvent.setText(\"- A security-aware Event Log Generator -\");\n\t\t\n\t\tLabel lblToGetStarted = new Label(activeComposite, SWT.NONE);\n\t\tlblToGetStarted.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.ITALIC));\n\t\tGridData gd_lblToGetStarted = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblToGetStarted.verticalIndent = 150;\n\t\tlblToGetStarted.setLayoutData(gd_lblToGetStarted);\n\t\tlblToGetStarted.setText(\"To get started load a file or an example\");\n\t\t\n\t\tmainComposite.setContent(activeComposite);\n\t\tmainComposite.setMinSize(activeComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\t}", "void createMainContent() {\n appContent = new DashboardMain(this);\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() {\n\t\tshell = new Shell();\n\t\tshell.setModified(true);\n\t\tshell.setSize(512, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(null);\n\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.VERTICAL);\n\t\tlabel.setBounds(253, 26, 2, 225);\n\n\t\tcomboCarBrandBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_1.setText(\"Selected\");\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandBuy.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandBuy.setBounds(87, 33, 123, 23);\n\t\tcomboCarBrandBuy.setText(\"--select--\");\n\n\t\tLabel lblCarBrand = new Label(shell, SWT.NONE);\n\t\tlblCarBrand.setAlignment(SWT.RIGHT);\n\t\tlblCarBrand.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarBrand.setBounds(12, 38, 71, 15);\n\t\tlblCarBrand.setText(\"Car Brand :\");\n\n\t\ttextCarNameBuy = new Text(shell, SWT.BORDER);\n\t\ttextCarNameBuy.setBounds(87, 67, 123, 21);\n\n\t\tLabel lblCarName = new Label(shell, SWT.NONE);\n\t\tlblCarName.setAlignment(SWT.RIGHT);\n\t\tlblCarName.setText(\"Car Name :\");\n\t\tlblCarName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarName.setBounds(12, 70, 71, 15);\n\n\t\tcomboCarModelBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelBuy.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelBuy.setBounds(87, 99, 91, 23);\n\t\tcomboCarModelBuy.setText(\"--select--\");\n\n\t\tLabel lblModelYear = new Label(shell, SWT.NONE);\n\t\tlblModelYear.setAlignment(SWT.RIGHT);\n\t\tlblModelYear.setText(\"Model :\");\n\t\tlblModelYear.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblModelYear.setBounds(12, 105, 71, 15);\n\n\t\tButton buttonBuy = new Button(shell, SWT.NONE);\n\t\tbuttonBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carName = textCarNameBuy.getText();\n\t\t\t\tString carModel = comboCarModelBuy.getText();\n\n\t\t\t\tif(comboCarBrandBuy.getText().equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tmarutiMap.put(carName, carModel);\n\t\t\t\t}\n\n\t\t\t\tlabel_1.setText(\"Added to Inventory\");\n\t\t\t\tSystem.out.println(marutiMap);\n\t\t\t}\n\t\t});\n\t\tbuttonBuy.setBounds(87, 138, 63, 25);\n\t\tbuttonBuy.setText(\"BUY\");\n\n\t\tlabel_1 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_1.setBounds(73, 198, 137, 19);\n\n\t\tLabel lblStatus = new Label(shell, SWT.NONE);\n\t\tlblStatus.setBounds(22, 198, 45, 15);\n\t\tlblStatus.setText(\"Status :\");\n\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\n\t\tlabel_2.setText(\"Car Brand :\");\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_2.setAlignment(SWT.RIGHT);\n\t\tlabel_2.setBounds(280, 38, 71, 15);\n\n\t\tcomboCarBrandSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carBrand = comboCarBrandSell.getText();\n\t\t\t\tcomboCarNameSell.clearSelection();\n\t\t\t\t\n\t\t\t\tif(carBrand.equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tSet<String> keyList = marutiMap.keySet();\n\t\t\t\t\tint i=0;\n\t\t\t\t\tfor(String key : keyList){\n\t\t\t\t\t\tcarNames.add(key);\n\t\t\t\t\t\t//comboCarNameSell.setItem(i, key);\n\t\t\t\t\t\t//i++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tString[] strArray = (String[]) carNames.toArray(new String[0]);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcomboCarNameSell.setItems(strArray);\n\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandSell.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandSell.setBounds(355, 33, 123, 23);\n\t\tcomboCarBrandSell.setText(\"--select--\");\n\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\n\t\tlabel_3.setText(\"Car Name :\");\n\t\tlabel_3.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_3.setAlignment(SWT.RIGHT);\n\t\tlabel_3.setBounds(280, 70, 71, 15);\n\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\n\t\tlabel_4.setText(\"Model :\");\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_4.setAlignment(SWT.RIGHT);\n\t\tlabel_4.setBounds(280, 105, 71, 15);\n\n\t\tCombo comboCarModelSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelSell.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelSell.setBounds(355, 99, 91, 23);\n\t\tcomboCarModelSell.setText(\"--select--\");\n\n\t\tButton buttonSell = new Button(shell, SWT.NONE);\n\t\tbuttonSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_5.setText(\"Sold Successfully\");\n\t\t\t}\n\t\t});\n\t\tbuttonSell.setText(\"SELL\");\n\t\tbuttonSell.setBounds(355, 138, 63, 25);\n\n\t\tlabel_5 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_5.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_5.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_5.setBounds(341, 198, 137, 19);\n\n\t\tLabel label_6 = new Label(shell, SWT.NONE);\n\t\tlabel_6.setText(\"Status :\");\n\t\tlabel_6.setBounds(290, 198, 45, 15);\n\n\t\tcomboCarNameSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarNameSell.setItems(new String[] {});\n\t\tcomboCarNameSell.setBounds(355, 65, 123, 23);\n\t\tcomboCarNameSell.setText(\"--select--\");\n\n\t}", "public void createPartControl(Composite parent) {\n\n\t\tGridLayout gridLayout = new GridLayout();\n\t\tgridLayout.marginWidth = 0;\n\t\tgridLayout.marginHeight = 0;\n\t\tparent.setLayout(gridLayout);\n\n\t\t// create a ShashForm\n\t\tthis.sashForm = new SashForm(parent, SWT.VERTICAL);\n\t\tthis.sashForm.setLayout(new GridLayout(2, false));\n\n\t\t// create a table viewer\n\t\tcreateTableViewer(this.sashForm);\n\n\t\t// create a report form to go with the table viewer\n\t\tcreateReportForm(this.sashForm);\n\n\t\tthis.sashForm.setLayoutData(new GridData(GridData.FILL_BOTH));\n\n\t\t// layout the text field below the tree viewer\n\t\tGridData layoutData = new GridData();\n\t\tlayoutData.grabExcessHorizontalSpace = true;\n\t\tlayoutData.grabExcessVerticalSpace = true;\n\t\tlayoutData.horizontalAlignment = GridData.FILL;\n\t\tlayoutData.verticalAlignment = GridData.FILL;\n\n\t}", "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 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}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcontrolEClass = createEClass(CONTROL);\n\t\tcreateEReference(controlEClass, CONTROL__MIDI);\n\t\tcreateEAttribute(controlEClass, CONTROL__BACKGROUND);\n\t\tcreateEAttribute(controlEClass, CONTROL__CENTERED);\n\t\tcreateEAttribute(controlEClass, CONTROL__COLOR);\n\t\tcreateEAttribute(controlEClass, CONTROL__H);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED_X);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED_Y);\n\t\tcreateEAttribute(controlEClass, CONTROL__LOCAL_OFF);\n\t\tcreateEAttribute(controlEClass, CONTROL__NAME);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER_X);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER_Y);\n\t\tcreateEAttribute(controlEClass, CONTROL__OSC_CS);\n\t\tcreateEAttribute(controlEClass, CONTROL__OUTLINE);\n\t\tcreateEAttribute(controlEClass, CONTROL__RESPONSE);\n\t\tcreateEAttribute(controlEClass, CONTROL__SCALEF);\n\t\tcreateEAttribute(controlEClass, CONTROL__SCALET);\n\t\tcreateEAttribute(controlEClass, CONTROL__SECONDS);\n\t\tcreateEAttribute(controlEClass, CONTROL__SIZE);\n\t\tcreateEAttribute(controlEClass, CONTROL__TEXT);\n\t\tcreateEAttribute(controlEClass, CONTROL__TYPE);\n\t\tcreateEAttribute(controlEClass, CONTROL__W);\n\t\tcreateEAttribute(controlEClass, CONTROL__X);\n\t\tcreateEAttribute(controlEClass, CONTROL__Y);\n\n\t\tlayoutEClass = createEClass(LAYOUT);\n\t\tcreateEReference(layoutEClass, LAYOUT__TABPAGE);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__MODE);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__ORIENTATION);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__VERSION);\n\n\t\tmidiEClass = createEClass(MIDI);\n\t\tcreateEAttribute(midiEClass, MIDI__CHANNEL);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA1);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA2F);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA2T);\n\t\tcreateEAttribute(midiEClass, MIDI__TYPE);\n\t\tcreateEAttribute(midiEClass, MIDI__VAR);\n\n\t\ttabpageEClass = createEClass(TABPAGE);\n\t\tcreateEReference(tabpageEClass, TABPAGE__CONTROL);\n\t\tcreateEAttribute(tabpageEClass, TABPAGE__NAME);\n\n\t\ttopEClass = createEClass(TOP);\n\t\tcreateEReference(topEClass, TOP__LAYOUT);\n\t}", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tComposite container = new Composite(parent, SWT.NONE);\n\t\tcontainer.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tarchitectureCanvas = new ArchitectureCanvas(container,\n\t\t\t\tSWT.DOUBLE_BUFFERED);\n\n\t\tcreateActions();\n\t\tinitializeToolBar();\n\t\tinitializeMenu();\n\n\t\tCadmosUi.getInstance()\n\t\t\t\t.addListener(cadmosEditorSelectionChangedListener);\n\t}", "protected abstract Content newContent();", "protected Composite createContent(Composite parent) {\n\t\tComposite c = new Composite(parent, SWT.NONE);\n\t\tc.setLayout(new FillLayout());\n\t\treturn c;\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setImage(SWTResourceManager.getImage(mainFrame.class, \"/imgCompand/main/logo.png\"));\r\n\t\tshell.setSize(935, 650);\r\n\t\tshell.setMinimumSize(920, 650);\r\n\t\tcenter(shell);\r\n\t\tshell.setText(\"三合一\");\r\n\t\tshell.setLayout(new GridLayout(8, false));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setText(\"面单图片:\");\r\n\t\t\r\n\t\ttext_mdtp = new Text(shell, SWT.BORDER);\r\n\t\ttext_mdtp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存面单图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString mdtp=dd.open();\r\n\t\t\t\tif(mdtp!=null){\r\n\t\t\t\t\ttext_mdtp.setText(mdtp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton.widthHint = 95;\r\n\t\tbtnNewButton.setLayoutData(gd_btnNewButton);\r\n\t\tbtnNewButton.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel = new Label(shell, SWT.NONE);\r\n\t\tGridData gd_lblNewLabel = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblNewLabel.widthHint = 87;\r\n\t\tlblNewLabel.setLayoutData(gd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"身份证图片:\");\r\n\t\t\r\n\t\ttext_sfztp = new Text(shell, SWT.BORDER);\r\n\t\ttext_sfztp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_1 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存身份证图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString sfztp=dd.open();\r\n\t\t\t\tif(sfztp!=null){\r\n\t\t\t\t\ttext_sfztp.setText(sfztp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton_1.widthHint = 95;\r\n\t\tbtnNewButton_1.setLayoutData(gd_btnNewButton_1);\r\n\t\tbtnNewButton_1.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setText(\"小票图片:\");\r\n\t\t\r\n\t\ttext_xptp = new Text(shell, SWT.BORDER);\r\n\t\ttext_xptp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择保存小票图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString xptp=dd.open();\r\n\t\t\t\tif(xptp!=null){\r\n\t\t\t\t\ttext_xptp.setText(xptp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_button = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_button.widthHint = 95;\r\n\t\tbutton.setLayoutData(gd_button);\r\n\t\tbutton.setText(\"浏览\");\r\n\t\t\r\n\t\tlabel_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlblNewLabel_1.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_5 = new Label(shell, SWT.NONE);\r\n\t\tlabel_5.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlabel_5.setText(\"三合一导入模板下载,请点击........\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton_1 = new Button(shell, SWT.NONE);\r\n\t\tGridData gd_button_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_button_1.widthHint = 95;\r\n\t\tbutton_1.setLayoutData(gd_button_1);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\t\tdd.setText(\"请选择文件保存的位置\"); \r\n\t\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\t\tString saveFile=dd.open(); \r\n\t\t\t\t\tif(saveFile!=null){\r\n\t\t\t\t\t\tboolean flg = FileUtil.downloadLocal(saveFile, \"/template.xls\", \"三合一导入模板.xls\");\r\n\t\t\t\t\t\tif(flg){\r\n\t\t\t\t\t\t\tMessageDialog.openInformation(shell, \"系统提示\", \"模板下载成功!保存路径为:\"+saveFile+\"/三合一导入模板.xls\");\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tMessageDialog.openError(shell, \"系统提示\", \"模板下载失败!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t }catch(Exception ex){\r\n\t\t\t\t\t System.out.print(\"创建失败\");\r\n\t\t\t\t } \r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setText(\"导入模板\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setText(\"合成信息:\");\r\n\t\t\r\n\t\ttext = new Text(shell, SWT.BORDER);\r\n\t\ttext.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnexecl = new Button(shell, SWT.NONE);\r\n\t\tbtnexecl.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tFileDialog filedia = new FileDialog(shell, SWT.SINGLE);\r\n\t\t\t\tString filepath = filedia.open()+\"\";\r\n\t\t\t\ttext.setText(filepath.replace(\"null\",\"\"));\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnexecl = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnexecl.widthHint = 95;\r\n\t\tbtnexecl.setLayoutData(gd_btnexecl);\r\n\t\tbtnexecl.setText(\"导入execl\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setText(\"合成图片:\");\r\n\t\t\r\n\t\ttext_hctp = new Text(shell, SWT.BORDER);\r\n\t\ttext_hctp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_2 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择合成图片将要保存的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString hctp=dd.open();\r\n\t\t\t\tif(hctp!=null){\r\n\t\t\t\t\ttext_hctp.setText(hctp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_2 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnNewButton_2.widthHint = 95;\r\n\t\tbtnNewButton_2.setLayoutData(gd_btnNewButton_2);\r\n\t\tbtnNewButton_2.setText(\"保存位置\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_6 = new Label(shell, SWT.NONE);\r\n\t\tlabel_6.setText(\"进度:\");\r\n\t\t\r\n\t\tprogressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tGridData gd_progressBar = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_progressBar.widthHint = 524;\r\n\t\tprogressBar.setMinimum(0);\r\n\t\tprogressBar.setMaximum(100);\r\n\t\tprogressBar.setLayoutData(gd_progressBar);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtn_doCompImg = new Button(shell, SWT.NONE);\r\n\t\tbtn_doCompImg.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//导入信息\r\n\t\t\t\tdrxx = text.getText();\r\n\t\t\t\t//保存路径\r\n\t\t\t\thctp = text_hctp.getText();\r\n\t\t\t\t//面单图片路径\r\n\t\t\t\tmdtp = text_mdtp.getText();\r\n\t\t\t\t//身份证图片路径\r\n\t\t\t\tsfztp = text_sfztp.getText();\r\n\t\t\t\t//小票图片路径\r\n\t\t\t\txptp = text_xptp.getText();\r\n\t\t\t\t//清空信息框\r\n\t\t\t\ttext_info.setText(\"\");\r\n\t\t\t\tif(!drxx.equals(\"\")&&!hctp.equals(\"\")&&!mdtp.equals(\"\")&&!sfztp.equals(\"\")&&!xptp.equals(\"\")){\r\n\t\t\t\t\t(new IncresingOperator()).start();\r\n\t\t\t\t}else{\r\n\t\t\t\t\tMessageDialog.openWarning(shell, \"系统提示\",\"各路径选项不能为空!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btn_doCompImg = new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btn_doCompImg.widthHint = 95;\r\n\t\tbtn_doCompImg.setLayoutData(gd_btn_doCompImg);\r\n\t\tbtn_doCompImg.setText(\"立即合成\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\ttext_info = new Text(shell, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tGridData gd_text_info = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n\t\tgd_text_info.heightHint = 217;\r\n\t\ttext_info.setLayoutData(gd_text_info);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\r\n\t}", "@Override\r\n\tpublic void createPages() {\r\n\t\t// Creates the model from the editor input\r\n\t\t//\r\n\t\t\r\n\t\tcreateModel();\r\n\r\n\t\t// Only creates the other pages if there is something that can be edited\r\n\t\t//\r\n\t\t// if (!getEditingDomain().getResourceSet().getResources().isEmpty()) {\r\n\t\tif (editorModel != null) {\r\n\t\t\t// Create a page for the selection tree view.\r\n\t\t\t//\r\n\r\n\t\t\t/*\r\n\t\t\t * Tree tree = new Tree(getContainer(), SWT.MULTI); selectionViewer\r\n\t\t\t * = new TreeViewer(tree); setCurrentViewer(selectionViewer);\r\n\t\t\t * \r\n\t\t\t * selectionViewer.setContentProvider(new\r\n\t\t\t * AdapterFactoryContentProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setLabelProvider(new\r\n\t\t\t * AdapterFactoryLabelProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setInput(editingDomain.getResourceSet());\r\n\t\t\t * selectionViewer.setSelection(new\r\n\t\t\t * StructuredSelection(editingDomain\r\n\t\t\t * .getResourceSet().getResources().get(0)), true);\r\n\t\t\t * \r\n\t\t\t * new AdapterFactoryTreeEditor(selectionViewer.getTree(),\r\n\t\t\t * adapterFactory);\r\n\t\t\t * \r\n\t\t\t * createContextMenuFor(selectionViewer);\r\n\t\t\t */\r\n\t\t\tComposite parent = getContainer();\r\n\t\t\tformToolkit = new FormToolkit(parent.getDisplay());\r\n\t\t\tform = formToolkit.createForm(parent);\r\n//\t\t\tform.setText(\"SETTINGS - View and modify setting values in \"\r\n//\t\t\t\t\t+ editorModel.getName() + \".\");\r\n\t\t\tComposite client = form.getBody();\r\n\t\t\t// client.setBackground(Display.getCurrent().getSystemColor(\r\n\t\t\t// SWT.COLOR_WHITE));\r\n\t\t\tclient.setLayout(new FillLayout());\r\n\t\t\tfeatureViewer = new FeatureViewer(client);\r\n\r\n\t\t\tfeatureViewer.setContentProvider(new FeatureViewerContentProvider(\r\n\t\t\t\t\teditingDomain.getCommandStack(), this));\r\n\t\t\tfeatureViewer.setInput(editorModel);\r\n\t\t\tfeatureViewer.setLabelProvider(new FeatureViewerLabelProvider(CrmlBuilder.getResourceModelRoot()));\r\n\t\t\t// featureViewer.refresh();\r\n\r\n\t\t\tfeatureViewer.addSelectionChangedListener(new ISelectionChangedListener(){\r\n\t\t\t\t\r\n\t\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\t\tIStructuredSelection selection = (IStructuredSelection) event\r\n\t\t\t\t\t.getSelection();\r\n\r\n\t\t\t\t\tsetSelection(selection);\r\n\t\t\t\t\t\r\n\t\t\t\t/*\tISelection convertSelection = convertSelectionToMainModel(selection);\r\n\t\t\t\t\tSelectionChangedEvent newEvent = new SelectionChangedEvent(\r\n\t\t\t\t\t\t\tConfmlEditor.this, convertSelection);\r\n\t\t\t\t\tfireSelection(newEvent);*/\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tgetSite().setSelectionProvider(featureViewer);\r\n\t\t\t// create pop up menu actions\r\n\t\t\tresetToDefaults = new ResetToDefaultAction(featureViewer);\r\n\t\t\tmoveUpAction = new MoveUpAction(featureViewer,this);\r\n\t\t\tmoveDownAction = new MoveDownAction(featureViewer,this);\r\n\t\t\tduplicateAction = new DuplicateSequencesAction(featureViewer,this);\r\n\t\t\topenDataConfmlAction = new OpenDataConfmlAction(featureViewer);\r\n\t\t\topenConfmlAction = new OpenConfmlAction(featureViewer);\r\n\t\t\topenImplAction = new OpenImplementationAction(featureViewer);\r\n\t\t\t\r\n\t\t\tIWorkbenchWindow window = getSite().getWorkbenchWindow();\r\n\t\t\tresetToDefaults.init(window);\r\n\t\t\tmoveUpAction.init(window);\r\n\t\t\tmoveDownAction.init(window);\r\n\t\t\tduplicateAction.init(window);\r\n\t\t\topenDataConfmlAction.init(window);\r\n\t\t\topenConfmlAction.init(window);\r\n\t\t\topenImplAction.init(window);\r\n\t\t\tdisableActions();\r\n\t\t\t\r\n\t\t\t// create pop up menu with actions\r\n\t\t\tcontextMenuListener = contextMenuListener(form);\r\n\t\t\tmenuManager = new MenuManager();\r\n\t\t\tmenuManager.addMenuListener(contextMenuListener);\r\n\t\t\tmenuManager.setRemoveAllWhenShown(true);\r\n\t\t\tMenu menu = menuManager.createContextMenu(form);\r\n\t\t\tform.setMenu(menu);\r\n\t\t\t\r\n\t\t\tint pageIndex = addPage(form);\r\n\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));\r\n\r\n\t\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tsetActivePage(0);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// featureViewer.addDirtyButtonListener(new MouseListener() {\r\n\t\t//\r\n\t\t// public void mouseDoubleClick(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseDown(MouseEvent e) {\r\n\t\t// LeafGroup selectedGroup = getSelectedGroup();\r\n\t\t// if (selectedGroup != null\r\n\t\t// && !(selectedGroup instanceof SummaryLeafGroup)) {\r\n\t\t// UIGroup group = createDirtyForGroup(selectedGroup);\r\n\t\t// settingsViewer.setInput(group);\r\n\t\t// refreshAndHandleWidgetState();\r\n\t\t// // settingsViewer.refresh();\r\n\t\t// dirtySorting = true;\r\n\t\t// errorSorting = false;\r\n\t\t// notesSorting = false;\r\n\t\t// }\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseUp(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// });\r\n\r\n\t\t// Ensures that this editor will only display the page's tab\r\n\t\t// area if there are more than one page\r\n\t\t//\r\n\t\tgetContainer().addControlListener(new ControlAdapter() {\r\n\t\t\tboolean guard = false;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void controlResized(ControlEvent event) {\r\n\t\t\t\tif (!guard) {\r\n\t\t\t\t\tguard = true;\r\n\t\t\t\t\thideTabs();\r\n\t\t\t\t\tguard = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n//\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tupdateProblemIndication();\r\n//\t\t\t}\r\n//\t\t});\r\n\t\t\r\n\t\tupdateErrors();\r\n\t}", "private void addViews() {\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"带进度条的表\");\r\n\t\tshell.setLayout(new FillLayout());\r\n\r\n\t\tTable table = new Table(shell, SWT.BORDER);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setLinesVisible(true);\r\n\r\n//\t\t两列\r\n\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\tnew TableColumn(table, SWT.NONE);\r\n\t\t}\r\n\t\ttable.getColumn(0).setText(\"Task\");\r\n\t\ttable.getColumn(1).setText(\"Progress\");\r\n\r\n//\t\t四十行\r\n\t\tfor (int i = 0; i < 40; i++) {\r\n\t\t\tTableItem item = new TableItem(table, SWT.NONE);\r\n\t\t\titem.setText(\"Task \" + i);\r\n//\t\t\t行数为5的倍数时添加进度条\r\n\t\t\tif (i % 5 == 0) {\r\n\t\t\t\tProgressBar bar = new ProgressBar(table, SWT.NONE);\r\n\t\t\t\tbar.setSelection(i); // 进度条显示的百分比\r\n\t\t\t\tTableEditor editor = new TableEditor(table);\r\n\t\t\t\teditor.grabHorizontal = editor.grabVertical = true; // 宽度高度同表格\r\n\t\t\t\teditor.setEditor(bar, item, 1); // 在表格上方显示进度条\r\n\t\t\t}\r\n\t\t}\r\n\t\ttable.getColumn(0).pack();\r\n\t\ttable.getColumn(1).setWidth(128);\r\n\r\n\t\tshell.pack();\r\n\t}", "@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 createContents() throws SQLException {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM);\n\t\tshell.setImage(user.getIcondata().BaoduongIcon);\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tsetText(\"Tạo Công việc (Đợt Bảo dưỡng)\");\n\t\tshell.setSize(777, 480);\n\t\tnew FormTemplate().setCenterScreen(shell);\n\n\t\tFill_ItemData fi = new Fill_ItemData();\n\n\t\tSashForm sashForm = new SashForm(shell, SWT.NONE);\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));\n\n\t\tSashForm sashForm_3 = new SashForm(sashForm, SWT.VERTICAL);\n\n\t\tSashForm sashForm_2 = new SashForm(sashForm_3, SWT.NONE);\n\t\tComposite composite = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setText(\"Tên đợt Bảo dưỡng*:\");\n\n\t\ttext_Tendot_Baoduong = new Text(composite, SWT.BORDER);\n\t\ttext_Tendot_Baoduong.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\n\t\tLabel label_3 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_3 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_3.verticalIndent = 3;\n\t\tlabel_3.setLayoutData(gd_label_3);\n\t\tlabel_3.setText(\"Loại phương tiện:\");\n\n\t\tcombo_Loaiphuongtien = new Combo(composite, SWT.READ_ONLY);\n\t\tcombo_Loaiphuongtien.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\tFill_ItemData f = new Fill_ItemData();\n\t\t\t\t\tif ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Xemay()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Xemay());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t} else if ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Oto()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Oto());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcombo_Loaiphuongtien.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));\n\t\tfi.setComboBox_LOAIPHUONGTIEN_Phuongtien_Giaothong(combo_Loaiphuongtien, 0);\n\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_4 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_4.verticalIndent = 3;\n\t\tlabel_4.setLayoutData(gd_label_4);\n\t\tlabel_4.setText(\"Mô tả:\");\n\n\t\ttext_Mota = new Text(composite, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext_Mota.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tbtnNgunSaCha = new Button(composite, SWT.NONE);\n\t\tGridData gd_btnNgunSaCha = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNgunSaCha.widthHint = 85;\n\t\tbtnNgunSaCha.setLayoutData(gd_btnNgunSaCha);\n\t\tbtnNgunSaCha.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tChonNguonSuachua_Baoduong cnsb = new ChonNguonSuachua_Baoduong(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\tcnsb.open();\n\t\t\t\t\tnsb = cnsb.getResult();\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null) {\n\t\t\t\t\t\tfillNguonSuachuaBaoduong(nsb);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (nsb == null) {\n\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO | SWT.CLOSE);\n\t\t\t\t\t\tm.setText(\"Xóa dữ liệu cũ?\");\n\t\t\t\t\t\tm.setMessage(\"Bạn muốn xóa dữ liệu cũ?\");\n\t\t\t\t\t\tint rc = m.open();\n\t\t\t\t\t\tswitch (rc) {\n\t\t\t\t\t\tcase SWT.CANCEL:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.YES:\n\t\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(-1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.NO:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t}\n\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG(ViewAndEdit_MODE_dsb);\n\t\t\t\t\tfillNguonSuachuaBaoduong(ViewAndEdit_MODE_dsb);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNgunSaCha.setText(\"Liên hệ\");\n\t\tbtnNgunSaCha.setImage(user.getIcondata().PhoneIcon);\n\n\t\tComposite composite_1 = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblSXut = new Label(composite_1, SWT.NONE);\n\t\tlblSXut.setText(\"Số đề xuất: \");\n\n\t\ttext_Sodexuat = new Text(composite_1, SWT.NONE);\n\t\ttext_Sodexuat.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Sodexuat.setEditable(false);\n\t\ttext_Sodexuat.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyThng = new Label(composite_1, SWT.NONE);\n\t\tlblNgyThng.setText(\"Ngày tháng: \");\n\n\t\ttext_NgaythangVanban = new Text(composite_1, SWT.NONE);\n\t\ttext_NgaythangVanban.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_NgaythangVanban.setEditable(false);\n\t\ttext_NgaythangVanban.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblnV = new Label(composite_1, SWT.NONE);\n\t\tlblnV.setText(\"Đơn vị: \");\n\n\t\ttext_Donvi = new Text(composite_1, SWT.NONE);\n\t\ttext_Donvi.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Donvi.setEditable(false);\n\t\ttext_Donvi.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyXL = new Label(composite_1, SWT.NONE);\n\t\tlblNgyXL.setText(\"Ngày xử lý:\");\n\n\t\ttext_Ngaytiepnhan = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaytiepnhan.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaytiepnhan.setEditable(false);\n\t\ttext_Ngaytiepnhan.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyGiao = new Label(composite_1, SWT.NONE);\n\t\tlblNgyGiao.setText(\"Ngày giao:\");\n\n\t\ttext_Ngaygiao = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaygiao.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaygiao.setEditable(false);\n\t\ttext_Ngaygiao.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblTrchYu = new Label(composite_1, SWT.NONE);\n\t\tGridData gd_lblTrchYu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblTrchYu.verticalIndent = 3;\n\t\tlblTrchYu.setLayoutData(gd_lblTrchYu);\n\t\tlblTrchYu.setText(\"Ghi chú: \");\n\n\t\ttext_Trichyeu = new Text(composite_1, SWT.NONE);\n\t\ttext_Trichyeu.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Trichyeu.setEditable(false);\n\t\tGridData gd_text_Trichyeu = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n\t\tgd_text_Trichyeu.heightHint = 27;\n\t\ttext_Trichyeu.setLayoutData(gd_text_Trichyeu);\n\t\tnew Label(composite_1, SWT.NONE);\n\n\t\tbtnThemDexuat = new Button(composite_1, SWT.NONE);\n\t\tbtnThemDexuat.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tInsert_dx = null;\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null\n\t\t\t\t\t\t\t&& ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() > 0) {\n\t\t\t\t\t\tInsert_dx = controler.getControl_DEXUAT().get_DEXUAT(ViewAndEdit_MODE_dsb);\n\t\t\t\t\t}\n\t\t\t\t\tif (Insert_dx != null) {\n\t\t\t\t\t\tTAPHOSO ths = controler.getControl_TAPHOSO().get_TAP_HO_SO(Insert_dx.getMA_TAPHOSO());\n\t\t\t\t\t\tTaphoso_View thsv = new Taphoso_View(shell, SWT.DIALOG_TRIM, user, ths, false);\n\t\t\t\t\t\tthsv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tNhapDeXuat ndx = new NhapDeXuat(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\t\tndx.open();\n\t\t\t\t\t\tInsert_dx = ndx.result;\n\t\t\t\t\t\tif (Insert_dx == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tboolean ict = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(\n\t\t\t\t\t\t\t\t\t\tViewAndEdit_MODE_dsb, Ma_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tif (ict) {\n\t\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_WORKING);\n\t\t\t\t\t\t\tm.setText(\"Hoàn tất\");\n\t\t\t\t\t\t\tm.setMessage(\"Thêm Đề xuất Hoàn tất\");\n\t\t\t\t\t\t\tm.open();\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException | SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnThemDexuat.setImage(user.getIcondata().DexuatIcon);\n\t\tbtnThemDexuat.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, false, false, 1, 1));\n\t\tbtnThemDexuat.setText(\"Thêm Hồ sơ\");\n\t\tsashForm_2.setWeights(new int[] { 1000, 618 });\n\n\t\tSashForm sashForm_1 = new SashForm(sashForm_3, SWT.NONE);\n\t\ttree_PTTS = new Tree(sashForm_1, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);\n\t\ttree_PTTS.setLinesVisible(true);\n\t\ttree_PTTS.setHeaderVisible(true);\n\t\ttree_PTTS.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tTreeItem[] til = tree_PTTS.getSelection();\n\t\t\t\tif (til.length > 0) {\n\t\t\t\t\tRow_PTTSthamgia_Baoduong pttg = (Row_PTTSthamgia_Baoduong) til[0].getData();\n\t\t\t\t\tsetHinhthuc_Baoduong(pttg.getHtbd());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttree_PTTS.addListener(SWT.SetData, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tif (tree_PTTS.getItems().length > 0) {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tTreeColumn trclmnStt = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnStt.setWidth(50);\n\t\ttrclmnStt.setText(\"Stt\");\n\n\t\tTreeColumn trclmnTnMT = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnTnMT.setWidth(100);\n\t\ttrclmnTnMT.setText(\"Tên, mô tả\");\n\n\t\tTreeColumn trclmnHngSnXut = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnHngSnXut.setWidth(100);\n\t\ttrclmnHngSnXut.setText(\"Hãng sản xuất\");\n\n\t\tTreeColumn trclmnDngXe = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnDngXe.setWidth(100);\n\t\ttrclmnDngXe.setText(\"Dòng xe\");\n\n\t\tTreeColumn trclmnBinS = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBinS.setWidth(100);\n\t\ttrclmnBinS.setText(\"Biển số\");\n\n\t\tTreeColumn trclmnNgySDng = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnNgySDng.setWidth(100);\n\t\ttrclmnNgySDng.setText(\"Ngày sử dụng\");\n\n\t\tTreeColumn trclmnMPhngTin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnMPhngTin.setWidth(90);\n\t\ttrclmnMPhngTin.setText(\"Mã PTTS\");\n\n\t\tMenu menu = new Menu(tree_PTTS);\n\t\ttree_PTTS.setMenu(menu);\n\n\t\tMenuItem mntmThmPhngTin = new MenuItem(menu, SWT.NONE);\n\t\tmntmThmPhngTin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tThem_PTGT();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmThmPhngTin.setText(\"Thêm phương tiện tài sản\");\n\n\t\tMenuItem mntmXoa = new MenuItem(menu, SWT.NONE);\n\t\tmntmXoa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tdelete();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tmntmXoa.setText(\"Xóa\");\n\n\t\tTreeColumn trclmnThayNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayNht.setWidth(70);\n\t\ttrclmnThayNht.setText(\"Thay nhớt\");\n\n\t\tTreeColumn trclmnThayLcNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNht.setWidth(100);\n\t\ttrclmnThayLcNht.setText(\"Thay lọc nhớt\");\n\n\t\tTreeColumn trclmnThayLcGi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcGi.setWidth(100);\n\t\ttrclmnThayLcGi.setText(\"Thay lọc gió\");\n\n\t\tTreeColumn trclmnThayLcNhin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNhin.setWidth(100);\n\t\ttrclmnThayLcNhin.setText(\"Thay lọc nhiên liệu\");\n\n\t\tTreeColumn trclmnThayDuPhanh = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuPhanh.setWidth(100);\n\t\ttrclmnThayDuPhanh.setText(\"Thay Dầu phanh - ly hợp\");\n\n\t\tTreeColumn trclmnThayDuHp = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuHp.setWidth(100);\n\t\ttrclmnThayDuHp.setText(\"Thay Dầu hộp số\");\n\n\t\tTreeColumn trclmnThayDuVi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuVi.setWidth(100);\n\t\ttrclmnThayDuVi.setText(\"Thay Dầu vi sai\");\n\n\t\tTreeColumn trclmnLcGiGin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnLcGiGin.setWidth(100);\n\t\ttrclmnLcGiGin.setText(\"Lọc gió giàn lạnh\");\n\n\t\tTreeColumn trclmnThayDuTr = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuTr.setWidth(100);\n\t\ttrclmnThayDuTr.setText(\"Thay dầu trợ lực lái\");\n\n\t\tTreeColumn trclmnBoDngKhcs = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBoDngKhcs.setWidth(100);\n\t\ttrclmnBoDngKhcs.setText(\"Bảo dưỡng khác\");\n\n\t\tExpandBar expandBar = new ExpandBar(sashForm_1, SWT.V_SCROLL);\n\t\texpandBar.setForeground(SWTResourceManager.getColor(SWT.COLOR_LIST_FOREGROUND));\n\n\t\tExpandItem xpndtmLoiHnhBo = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setText(\"Loại hình bảo dưỡng\");\n\n\t\tComposite grpHnhThcBo = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setControl(grpHnhThcBo);\n\t\tgrpHnhThcBo.setLayout(new GridLayout(1, false));\n\n\t\tbtnDaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDaudongco.setText(\"Dầu động cơ\");\n\n\t\tbtnLocdaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocdaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocdaudongco.setText(\"Lọc dầu động cơ\");\n\n\t\tbtnLocgio = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgio.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgio.setText(\"Lọc gió\");\n\n\t\tbtnLocnhienlieu = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocnhienlieu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocnhienlieu.setText(\"Lọc nhiên liệu\");\n\n\t\tbtnDauphanh_lyhop = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauphanh_lyhop.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauphanh_lyhop.setText(\"Dầu phanh và dầu ly hợp\");\n\n\t\tbtnDauhopso = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauhopso.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauhopso.setText(\"Dầu hộp số\");\n\n\t\tbtnDauvisai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauvisai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauvisai.setText(\"Dầu vi sai\");\n\n\t\tbtnLocgiogianlanh = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgiogianlanh.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgiogianlanh.setText(\"Lọc gió giàn lạnh\");\n\n\t\tbtnDautroluclai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDautroluclai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDautroluclai.setText(\"Dầu trợ lực lái\");\n\n\t\tbtnBaoduongkhac = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnBaoduongkhac.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBaoduongkhac.setText(\"Bảo dưỡng khác\");\n\t\txpndtmLoiHnhBo.setHeight(xpndtmLoiHnhBo.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);\n\n\t\tExpandItem xpndtmLinH = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLinH.setText(\"Liên hệ\");\n\n\t\tComposite composite_2 = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLinH.setControl(composite_2);\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblTnLinH = new Label(composite_2, SWT.NONE);\n\t\tlblTnLinH.setText(\"Tên liên hệ: \");\n\n\t\ttext_Tenlienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Tenlienhe.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblGiiThiu = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblGiiThiu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblGiiThiu.verticalIndent = 3;\n\t\tlblGiiThiu.setLayoutData(gd_lblGiiThiu);\n\t\tlblGiiThiu.setText(\"Giới thiệu: \");\n\n\t\ttext_Gioithieu = new Text(composite_2, SWT.BORDER);\n\t\ttext_Gioithieu.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t\tLabel lblLinH = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblLinH = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblLinH.verticalIndent = 3;\n\t\tlblLinH.setLayoutData(gd_lblLinH);\n\t\tlblLinH.setText(\"Liên hệ: \");\n\n\t\ttext_Lienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Lienhe.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\txpndtmLinH.setHeight(120);\n\t\tsashForm_1.setWeights(new int[] { 543, 205 });\n\t\tsashForm_3.setWeights(new int[] { 170, 228 });\n\t\tsashForm.setWeights(new int[] { 1000 });\n\n\t\tbtnLuu = new Button(shell, SWT.NONE);\n\t\tbtnLuu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dataCreate != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTaoMoi_DotSuachua_Baoduong();\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate void TaoMoi_DotSuachua_Baoduong() throws SQLException {\n\t\t\t\tif (checkTextNotNULL()) {\n\t\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = getDOT_SUACHUA_BAODUONG();\n\t\t\t\t\tint key = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.InsertDOT_THUCHIEN_SUACHUA_BAODUONG(dsb, null, null);\n\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\tif (key >= 0) {\n\t\t\t\t\t\tif (nsb != null)\n\t\t\t\t\t\t\tdsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG().update_DOT_THUCHIEN_SUACHUA_BAODUONG(dsb);\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien > 0)\n\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(dsb,\n\t\t\t\t\t\t\t\t\t\t\tMa_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tTreeItem[] til = tree_PTTS.getItems();\n\t\t\t\t\t\tif (til.length > 0) {\n\t\t\t\t\t\t\tfor (TreeItem ti : til) {\n\t\t\t\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\t\t\t\tRow_PTTSthamgia_Baoduong rp = (Row_PTTSthamgia_Baoduong) ti.getData();\n\t\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG_TAISAN()\n\t\t\t\t\t\t\t\t\t\t.set_DOT_THUCHIEN_SUACHUA_TAISAN(dsb, rp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tshowMessage_Succes();\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tGiaoViec gv = new GiaoViec(user);\n\t\t\t\t\t\tgv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowMessage_Fail();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tshowMessage_FillText();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate DOT_THUCHIEN_SUACHUA_BAODUONG getDOT_SUACHUA_BAODUONG() {\n\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = new DOT_THUCHIEN_SUACHUA_BAODUONG();\n\t\t\t\tdsb.setTEN_DOT_THUCHIEN_SUACHUA_BAODUONG(text_Tendot_Baoduong.getText());\n\t\t\t\tdsb.setLOAI_PHUONG_TIEN(\n\t\t\t\t\t\tInteger.valueOf((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText())));\n\t\t\t\tdsb.setSUACHUA_BAODUONG(fi.getInt_Baoduong());\n\t\t\t\tdsb.setMO_TA(text_Mota.getText());\n\t\t\t\treturn dsb;\n\t\t\t}\n\n\t\t});\n\t\tGridData gd_btnLu = new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1);\n\t\tgd_btnLu.widthHint = 75;\n\t\tbtnLuu.setLayoutData(gd_btnLu);\n\t\tbtnLuu.setText(\"Xong\");\n\n\t\tbtnDong = new Button(shell, SWT.NONE);\n\t\tbtnDong.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if (Insert_dx != null)\n\t\t\t\t\t\t// controler.getControl_DEXUAT().delete_DEXUAT(Insert_dx);\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tGridData gd_btnDong = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDong.widthHint = 75;\n\t\tbtnDong.setLayoutData(gd_btnDong);\n\t\tbtnDong.setText(\"Đóng\");\n\t\tinit_loadMODE();\n\t\tinit_CreateMode();\n\t}", "private void createContents(final Shell shell) {\r\n GridData data;\r\n\r\n final int colCount = 5;\r\n\r\n shell.setLayout(new GridLayout(colCount, true));\r\n\r\n // \"refresh\" button\r\n Button refresh = new Button(shell, SWT.PUSH);\r\n refresh.setText(\"Refresh\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n refresh.setLayoutData(data);\r\n refresh.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n updateDeviceImage(shell);\r\n }\r\n });\r\n\r\n // \"rotate\" button\r\n Button rotate = new Button(shell, SWT.PUSH);\r\n rotate.setText(\"Rotate\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n rotate.setLayoutData(data);\r\n rotate.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n if (mRawImage != null) {\r\n mRawImage = mRawImage.getRotated();\r\n updateImageDisplay(shell);\r\n \r\n mRotateCount++;\r\n if (mRotateCount >= 4) mRotateCount = 0;\r\n }\r\n }\r\n });\r\n\r\n // \"done\" button\r\n Button done = new Button(shell, SWT.PUSH);\r\n done.setText(\"Done\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n done.setLayoutData(data);\r\n done.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n shell.close();\r\n }\r\n });\r\n\r\n // title/\"capturing\" label\r\n mBusyLabel = new Label(shell, SWT.NONE);\r\n mBusyLabel.setText(\"Preparing...\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);\r\n data.horizontalSpan = colCount;\r\n mBusyLabel.setLayoutData(data);\r\n\r\n // space for the image\r\n mImageLabel = new Label(shell, SWT.BORDER);\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.horizontalSpan = colCount;\r\n mImageLabel.setLayoutData(data);\r\n Display display = shell.getDisplay();\r\n mImageLabel.setImage(createPlaceHolderArt(\r\n display, 50, 50, display.getSystemColor(SWT.COLOR_BLUE)));\r\n TouchController tc = new TouchController(mDevice, mScaled);\r\n tc.setTouchListener(new TouchListener() {\r\n public void onClick() {\r\n try {\r\n Thread.sleep(1000);\r\n } catch (InterruptedException e) {\r\n }\r\n updateDeviceImage(shell);\r\n }\r\n });\r\n mImageLabel.addMouseListener(tc);\r\n mImageLabel.addMouseMoveListener(tc);\r\n\r\n\r\n shell.setDefaultButton(done);\r\n }", "private void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tshell.setSize(500, 400);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FormLayout());\r\n\t\t\r\n\t\tSERVER_COUNTRY locale = SERVER_COUNTRY.DE;\r\n\t\tString username = JOptionPane.showInputDialog(\"Username\");\r\n\t\tString password = JOptionPane.showInputDialog(\"Password\");\r\n\t\tBot bot = new Bot(username, password, locale);\r\n\t\t\r\n\t\tGroup grpActions = new Group(shell, SWT.NONE);\r\n\t\tgrpActions.setText(\"Actions\");\r\n\t\tgrpActions.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\r\n\t\tgrpActions.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setLayout(new GridLayout(5, false));\r\n\t\tFormData fd_grpActions = new FormData();\r\n\t\tfd_grpActions.left = new FormAttachment(0, 203);\r\n\t\tfd_grpActions.right = new FormAttachment(100, -10);\r\n\t\tfd_grpActions.top = new FormAttachment(0, 10);\r\n\t\tfd_grpActions.bottom = new FormAttachment(0, 152);\r\n\t\tgrpActions.setLayoutData(fd_grpActions);\r\n\t\t\r\n\t\tConsole = new Text(shell, SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tFormData fd_Console = new FormData();\r\n\t\tfd_Console.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tfd_Console.right = new FormAttachment(100, -10);\r\n\t\tConsole.setLayoutData(fd_Console);\r\n\r\n\t\t\r\n\t\tButton Feed = new Button(grpActions, SWT.CHECK);\r\n\t\tFeed.setSelection(true);\r\n\t\tFeed.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tfeed = !feed;\r\n\t\t\t\tConsole.append(\"\\nTest\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tFeed.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tFeed.setText(\"Feed\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Drink = new Button(grpActions, SWT.CHECK);\r\n\t\tDrink.setSelection(true);\r\n\t\tDrink.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tdrink = !drink;\r\n\t\t\t}\r\n\t\t});\r\n\t\tDrink.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tDrink.setText(\"Drink\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Stroke = new Button(grpActions, SWT.CHECK);\r\n\t\tStroke.setSelection(true);\r\n\t\tStroke.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tstroke = !stroke;\r\n\t\t\t}\r\n\t\t});\r\n\t\tStroke.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tStroke.setText(\"Stroke\");\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_0 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_0.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tlblNewLabel_0.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/feed.png\"));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_1 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/drink.png\"));\r\n\t\tlblNewLabel_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\t\r\n\t\tGroup grpBreeds = new Group(shell, SWT.NONE);\r\n\t\tgrpBreeds.setText(\"Breeds\");\r\n\t\tgrpBreeds.setLayout(new GridLayout(1, false));\r\n\t\t\r\n\t\tFormData fd_grpBreeds = new FormData();\r\n\t\tfd_grpBreeds.top = new FormAttachment(0, 10);\r\n\t\tfd_grpBreeds.bottom = new FormAttachment(100, -10);\r\n\t\tfd_grpBreeds.right = new FormAttachment(0, 180);\r\n\t\tfd_grpBreeds.left = new FormAttachment(0, 10);\r\n\t\tgrpBreeds.setLayoutData(fd_grpBreeds);\r\n\t\t\r\n\t\tButton Defaults = new Button(grpBreeds, SWT.RADIO);\r\n\t\tDefaults.setText(\"Defaults\");\r\n\t\t//END STATIC\r\n\t\t\r\n\t\tbot.account.api.requests.setTimeout(200);\r\n\t\tbot.logger.printlevel = 1;\t\r\n\t\t\r\n\t\tReturn<HashMap<Integer,Breed>> b = bot.getBreeds();\t\t\r\n\t\tif(!b.sucess) {\r\n\t\t\tConsole.append(\"\\nERROR!\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\tIterator<Breed> iterator = b.data.values().iterator();\r\n\t\tHashMap<String, java.awt.Button> buttons = new HashMap<String, Button>();\r\n\t\t\r\n\t\twhile(iterator.hasNext()) {\r\n\t\t\tBreed breed = iterator.next();\r\n\t\t\t\r\n\t\t\tString name = breed.name;\r\n\t\t\t\r\n\t\t\tButton btn = new Button(grpBreeds, SWT.RADIO);\r\n\t\t\tbtn.setText(name);\r\n\t\t\t\r\n\t\t\tbuttons.put(name, btn);\r\n\t\t\t\r\n\t\t\t//\tTODO - Für jeden Breed wird ein Button erstellt:\r\n\t\t\t//\tButton [HIER DER BREED NAME] = new Button(grpBreeds, SWT.RADIO); <-- Dass geht nicht so wirklich so\r\n\t\t\t//\tDefaults.setText(\"[BREED NAME]\");\r\n\t\t}\r\n\t\t\r\n\t\t// um ein button mit name <name> zu bekommen: Button whatever = buttons.get(<name>);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tButton btnStartBot = new Button(shell, SWT.NONE);\r\n\t\tfd_Console.top = new FormAttachment(0, 221);\r\n\t\tbtnStartBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.setText(\"Starting bot... \");\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t/*TODO\r\n\t\t\t\tBreed[] breeds = new Breed[b.data.size()];\r\n\t\t\t\t\r\n\t\t\t\tIterator<Breed> br = b.data.values().iterator();\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 0; i < b.data.size(); i++) {\r\n\t\t\t\t\tbreeds[i] = br.next();\r\n\t\t\t\t};\r\n\t\t\t\tBreed s = (Breed) JOptionPane.showInputDialog(null, \"Choose breed\", \"breed selector\", JOptionPane.PLAIN_MESSAGE, null, breeds, \"default\");\r\n\t\t\t\tEND TODO*/\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Breed breed, boolean drink, boolean stroke, boolean groom, boolean carrot, boolean mash, boolean suckle, boolean feed, boolean sleep, boolean centreMission, long timeout, Bot bot, Runnable onEnd\r\n\t\t\t\tReturn<BasicBreedTasksAsync> ret = bot.basicBreedTasks(0, drink, stroke, groom, carrot, mash, suckle, feed, sleep, mission, 500, new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"FINISHED!\", \"Bot\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tbot.logout();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tif(!ret.sucess) {\r\n\t\t\t\t\tConsole.append(\"ERROR\");\r\n\t\t\t\t\tSystem.exit(-1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tret.data.start();\r\n\t\t\t\t\r\n\t\t\t\t//TODO\r\n\t\t\t\twhile(ret.data.running()) {\r\n\t\t\t\t\tSleeper.sleep(5000);\r\n\t\t\t\t\tif(ret.data.getProgress() == 1)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tConsole.append(\"progress: \" + (ret.data.getProgress() * 100) + \"%\");\r\n\t\t\t\t\tConsole.append(\"ETA: \" + (ret.data.getEta() / 1000) + \"sec.\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStartBot = new FormData();\r\n\t\tfd_btnStartBot.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tbtnStartBot.setLayoutData(fd_btnStartBot);\r\n\t\tbtnStartBot.setText(\"Start Bot\");\r\n\t\t\r\n\t\tButton btnStopBot = new Button(shell, SWT.NONE);\r\n\t\tfd_btnStartBot.top = new FormAttachment(btnStopBot, 0, SWT.TOP);\r\n\t\tbtnStopBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.append(\"Stopping bot...\");\r\n\t\t\t\tbot.logout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStopBot = new FormData();\r\n\t\tfd_btnStopBot.right = new FormAttachment(grpActions, 0, SWT.RIGHT);\r\n\t\tbtnStopBot.setLayoutData(fd_btnStopBot);\r\n\t\tbtnStopBot.setText(\"Stop Bot\");\r\n\t\t\t\r\n\t\t\r\n\t\tProgressBar progressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tfd_Console.bottom = new FormAttachment(progressBar, -6);\r\n\t\tfd_btnStopBot.bottom = new FormAttachment(progressBar, -119);\r\n\t\t\r\n\t\tFormData fd_progressBar = new FormData();\r\n\t\tfd_progressBar.left = new FormAttachment(grpBreeds, 23);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_2 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_2.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/stroke.png\"));\r\n\t\tlblNewLabel_2.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton Groom = new Button(grpActions, SWT.CHECK);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tgroom = !groom;\r\n\t\t\t}\r\n\t\t});\r\n\t\tGroom.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tGroom.setText(\"Groom\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Treat = new Button(grpActions, SWT.CHECK);\r\n\t\tTreat.setSelection(true);\r\n\t\tTreat.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcarrot = !carrot;\r\n\t\t\t}\r\n\t\t});\r\n\t\tTreat.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tTreat.setText(\"Treat\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Mash = new Button(grpActions, SWT.CHECK);\r\n\t\tMash.setSelection(true);\r\n\t\tMash.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmash = !mash;\r\n\t\t\t}\r\n\t\t});\r\n\t\tMash.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tMash.setText(\"Mash\");\r\n\t\t\r\n\t\tLabel lblNewLabel_3 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_3.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/groom.png\"));\r\n\t\tlblNewLabel_3.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_4 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_4.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/carotte.png\"));\r\n\t\tlblNewLabel_4.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_5 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_5.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/mash.png\"));\r\n\t\tlblNewLabel_5.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton btnSleep = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnSleep.setSelection(true);\r\n\t\tbtnSleep.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tsleep = !sleep;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSleep.setText(\"Sleep\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton btnMission = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnMission.setSelection(true);\r\n\t\tbtnMission.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmission = !mission;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnMission.setText(\"Mission\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\r\n\t}" ]
[ "0.73335195", "0.6840024", "0.68376434", "0.6791247", "0.6565195", "0.65635043", "0.6548234", "0.64823693", "0.6479975", "0.64742506", "0.64499956", "0.64439386", "0.6440782", "0.64174914", "0.6348693", "0.6298088", "0.62598044", "0.62359047", "0.6225611", "0.6224184", "0.6204536", "0.6201202", "0.6193327", "0.617737", "0.6176661", "0.6165001", "0.61562645", "0.6128625", "0.6125014", "0.6112006", "0.6090695", "0.6074285", "0.60513973", "0.6044321", "0.60428655", "0.6038578", "0.6035112", "0.60275024", "0.6026189", "0.6024927", "0.6019273", "0.60170346", "0.6016818", "0.6016355", "0.60084736", "0.5991551", "0.5984341", "0.59787786", "0.5974247", "0.5969989", "0.59611297", "0.5958609", "0.5950286", "0.59469694", "0.59272933", "0.5924945", "0.5924196", "0.5919187", "0.59173614", "0.590546", "0.58903694", "0.5886245", "0.5885807", "0.5875267", "0.5872437", "0.5863239", "0.58396566", "0.57942903", "0.579387", "0.5793203", "0.5782374", "0.57804954", "0.5766149", "0.5750231", "0.5748263", "0.5744111", "0.5741439", "0.5738251", "0.573582", "0.57330453", "0.572877", "0.5725326", "0.5717745", "0.5700127", "0.5687127", "0.5685595", "0.568015", "0.56796664", "0.5676707", "0.56615984", "0.5657165", "0.56563824", "0.56546736", "0.56508505", "0.56460375", "0.56426185", "0.5635452", "0.5632927", "0.5621177", "0.56102705", "0.560446" ]
0.0
-1
equations of best fit quadratic taken from Excel(!)
@SuppressWarnings("boxing") private static Function<Double, Double> getLidimAngle(String name) { switch (name) { case "sift": return (x) -> 0.0155 * x * x - 0.1613 * x + 1.7228; case "decaf": return (x) -> 0.0467 * x * x - 0.4077 * x + 1.8161; case "mfAlex": return (x) -> 0.0235 * x * x - 0.2234 * x + 1.5008; case "gist": return (x) -> 0.0626 * x * x - 0.3921 * x + 1.6445; default: throw new RuntimeException("space: " + name + " doesn't have lidim function defined"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getBestSolutionEvaluation();", "public void computeEquation()\n {\n // Curve equation of type : y = ax^2 + bx + c\n // OR (x*x)a + (x)b + 1c = y\n // ex : 50 = 4a + 2b + c where y = 50 and x = 2 and z = 1\n double[][] matrice = {{Math.pow(A.getKey(),2),A.getKey(),1},\n {Math.pow(B.getKey(),2),B.getKey(),1},\n {Math.pow(C.getKey(),2),C.getKey(),1}};\n\n double deter = computeSarrus(matrice);\n\n double [][] matriceA = {{A.getValue(),A.getKey(),1},\n {B.getValue(),B.getKey(),1},\n {C.getValue(),C.getKey(),1}};\n\n double [][] matriceB = {{Math.pow(A.getKey(),2),A.getValue(),1},\n {Math.pow(B.getKey(),2),B.getValue(),1},\n {Math.pow(C.getKey(),2),C.getValue(),1}};\n\n double [][] matriceC = {{Math.pow(A.getKey(),2),A.getKey(),A.getValue()},\n {Math.pow(B.getKey(),2),B.getKey(),B.getValue()},\n {Math.pow(C.getKey(),2),C.getKey(),C.getValue()}};\n\n abc[0] = computeSarrus(matriceA) / deter;\n abc[1] = computeSarrus(matriceB) / deter;\n abc[2] = computeSarrus(matriceC) / deter;\n }", "public double getCoefficient();", "private static double FindR2(double[] _y, double[] _x)\n {\n double avg = FindMeanY(_y);\n double sum = 0;\n double yQuad = 0;\n\n // a = SolutionMatrix.get(1, 0);\n // b = SolutionMatrix.get(2, 0);\n // find average\n for(int i = 0; i < _y.length; i ++)\n {\n yQuad += Math.pow((_y[i] - avg), 2);\n }\n\n double Usefulnum1 = 0;\n double Usefulnum2 = 0;\n double Usefulnum3 = 0;\n\n double[] Equation = new double[d+1];\n\n // find equation\n for(int i = 0; i < SolutionMatrix.getColumnDimension(); i++)\n {\n //Usefulnum1 = SolutionMatrix.get((SolutionMatrix.getColumnDimension() - 1 - i), 0) * _x[i]; // a...z value\n for (int jj = d; jj > 0; jj--)\n {\n Usefulnum2 = SolutionMatrix.get(SolutionMatrix.getColumnDimension() - jj, 0) * _x[i];\n Usefulnum3 += Math.pow(_y[i] - Usefulnum2, 2);\n }\n }\n System.out.print(Usefulnum3);\n for(int i = 0; i < _y.length; i ++)\n {\n\n }\n\n return sum;\n }", "public static void solveQuadraticEquation() {\n }", "private static Vector calcRegressionCoefficients(Matrix xMat, Matrix xTx, Vector y){\n Matrix betaMatrix = Matrix.product(Matrix.product(xTx.inverse(),xMat.transpose()),y);\n return betaMatrix.columnVector(1);\n }", "void calcFittest(){\n System.out.println(\"Wall hugs\");\n System.out.println(this.wallHugs);\n\n System.out.println(\"Freedom points\");\n System.out.println(this.freedomPoints);\n\n System.out.println(\"Visited points\");\n System.out.println(this.vistedPoints);\n\n this.fitnessScore = freedomPoints - wallHugs - vistedPoints;\n System.out.println(\"Individual fit score: \" + fitnessScore);\n }", "private void EvalFitness(){\r\n _FitVal=0;\r\n for(int i=0; i<7;i++)\r\n for(int j=i+1;j<8;j++){\r\n if( _Data[i]==_Data[j]) _FitVal++;\r\n if(j-i==Math.abs(_Data[i]-_Data[j])) _FitVal++;\r\n }\r\n }", "double cekStop(double x[][], double v0[],double v[][],double w0[],double w[][], double t[]){\n double akumY=0;\n //~ itung z_in dan z\n for(int h=0; h<jumlah_data; h++){\n for(int j=0; j<unit_hidden; j++){\n //itung sigma xi vij\n double jum_xv=0;\n for(int i=0; i<unit_input; i++){\n double cc=x[h][i]*v[i][j];\n jum_xv=jum_xv+cc;\n //System.out.println(x[h][j]);\n }\n z_in[j]=v0[j]+jum_xv;\n //itung z\n z[j]=1/(1+(double)Math.exp(-z_in[j]));\n //System.out.println(\" dan z= \"+z[j]);\n }\n \n //~ itung y_in dan y (output)\n double cxc=0;\n for(int k=0; k<unit_output; k++){\n double jum_zw=0;\n for(int j=0; j<unit_hidden; j++){\n double cc=z[j]*w[j][k];\n jum_zw=jum_zw+cc;\n }\n y_in[k]=w0[k]+jum_zw;\n y[k]=1/(1+(double)Math.exp(-y_in[k]));\n akumY = akumY + Math.pow((t[h]-y[k]),2);\n //System.out.println(t[h]+\"-\"+y[k]+\"=\"+(t[k]-y[k]));\n }\n }\n double E = 0.5 * akumY;\n //System.out.println(E);\n return E;\n }", "public FitMultiExponential() {\r\n\r\n // nPoints data points, 5 coefficients, and multiexponential fitting\r\n super(5, 5);\r\n xSeries = new double[5];\r\n ySeries = new double[5];\r\n \r\n bounds = 2; // bounds = 0 means unconstrained\r\n // bounds = 1 means same lower and upper bounds for\r\n // all parameters\r\n // bounds = 2 means different lower and upper bounds\r\n // for all parameters\r\n bl = new double[5];\r\n bu = new double[5];\r\n \r\n bl[0] = -Double.MAX_VALUE;\r\n bu[0] = Double.MAX_VALUE;\r\n for (int k = 0; k < (5 - 1)/2; k++) {\r\n \tbl[2*k+1] = -Double.MAX_VALUE;\r\n \tbu[2*k+1] = Double.MAX_VALUE;\r\n \tbl[2*k+2] = -Double.MAX_VALUE;\r\n \tbu[2*k+2] = 0.0;\r\n }\r\n\r\n // The default is internalScaling = false\r\n // To make internalScaling = true and have the columns of the\r\n // Jacobian scaled to have unit length include the following line.\r\n // internalScaling = true;\r\n // Suppress diagnostic messages\r\n outputMes = false;\r\n maxIterations = 5000;\r\n testData();\r\n }", "public void fit(double[][] data) {\n double n = data.length;\n\n double sum1 = 0;\n double sum2 = 0;\n\n // gradient descent\n for (int i = 0; i < epochs; i++) {\n\n for (double[] d : data) {\n double x = d[0];\n double y = d[1];\n double yPredicted = sigmoid((m * x) + b);\n\n sum1 += x * (y - yPredicted);\n sum2 += y - yPredicted;\n }\n\n // calculate the derivative\n double dm = (-2/n) * sum1;\n double db = (-2/n) * sum2;\n\n // update m and b\n m = m - (learningRate * dm);\n b = b - (learningRate * db);\n }\n\n }", "private double calcB1() {\n double[] dataX = dsX.getDataX();\n double[] dataY = dsY.getDataY();\n double sumX = 0;\n double sumY = 0;\n double sumXY = 0;\n double sumXsq = 0;\n\n for (int i = 0; i < dataX.length; i++) {\n sumX += dataX[i];\n sumY += dataY[i];\n sumXY += dataX[i] * dataY[i];\n sumXsq += Math.pow(dataX[i], 2);\n }\n return (((dataX.length * sumXY) - (sumX * sumY)) / ((dataX.length * sumXsq) - (Math.pow(sumX, 2))));\n }", "public Polynomial(int n, double[] x, double[] y, double sigma) {\n\t int np1 = n + 1;\n\t // double[] parameters = new double[np1];\n\t // setParameters(parameters);\n\t double X[][] = new double[x.length][np1];\n\t for (int i = 0; i < x.length; i++) {\n\t\tdouble xi = x[i];\n\t\tdouble prod = 1.0;\n\t\tfor (int j = 0; j < np1; j++) {\n\t\t X[i][j] = prod;\n\t\t prod *= xi;\n\t\t}\n\t }\n\t double sigma2 = sigma*sigma;\n\t double[] tmp = new double[np1];\n\t double[][] H = new double[np1][np1];\n\t Adder.Kahan adder = new Adder.Kahan();\n\t Adder.Kahan.State state = adder.getState();\n\t for (int j = 0; j < np1; j++) {\n\t\tfor (int i = 0; i < x.length; i++) {\n\t\t tmp[j] += X[i][j]*y[i];\n\t\t}\n\t\t// tmp[j] /= sigma2;\n\t\tfor (int i = 0; i < np1; i++) {\n\t\t state.c = 0.0;\n\t\t state.total = 0.0;\n\t\t for (int k = 0; k < x.length; k++) {\n\t\t\tdouble term = (X[k][i]*X[k][j]);\n\t\t\tdouble yy = term - state.c;\n\t\t\tdouble t = state.total + yy;\n\t\t\tstate.c = (t - state.total) - yy;\n\t\t\tstate.total = t;\n\t\t }\n\t\t H[i][j] = state.total; /* / sigma2;*/\n\t\t}\n\t }\n\t /*\n\t TriangularDecomp decomp = new CholeskyDecomp(H, H);\n\t setDecomp(decomp);\n\t decomp.solve(parameters, tmp);\n\t */\n\t setDecomp(H);\n\t QRDecomp qr = new QRDecomp(X);\n\t setParameters(qr.solve(y));\n\t if (x.length == np1) {\n\t\tsetChiSquare(0.0);\n\t\tsetDegreesOfFreedom(0);\n\t\tsetReducedChiSquare(Double.POSITIVE_INFINITY);\n\t\tsetVariance(0.0);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < np1; i++) {\n\t\t for (int j = 0; j < np1; j++) {\n\t\t\tcv[i][j] = 0.0;\n\t\t }\n\t\t}\n\t\t*/\n\t } else {\n\t\tdouble chiSq = LeastSquaresFit.chiSquare(this, x, y, sigma);\n\t\tsetChiSquare(chiSq);\n\t\tsetDegreesOfFreedom(x.length-np1);\n\t\tsetReducedChiSquare(chiSq/(x.length-np1));\n\t\t// We didn't include the factor of sigma2 in the previous\n\t\t// matrices, and just fix up the value here, so as to\n\t\t// avoid some additional arithmetic while computing the\n\t\t// parameters.\n\t\tsetVariance(sigma2);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < np1; i++) {\n\t\t for (int j = 0; j < np1; j++) {\n\t\t\tcv[i][j] *= sigma2;\n\t\t }\n\t\t}\n\t\t*/\n\t }\n\t}", "public void fitToFunction(final double[] a, final double[] residuals, final double[][] covarMat) {\r\n int ctrl;\r\n int j, k;\r\n double ymod = 0;\r\n\r\n try {\r\n ctrl = ctrlMat[0];\r\n // Preferences.debug(\"ctrl = \" + ctrl + \" a[0] = \" + a[0] + \"\\n\", \r\n // Preferences.DEBUG_ALGORITHM);\r\n // for (k = 1; k < a.length; k++) {\r\n // Preferences.debug(\"a[k] = \" + a[k] + \"\\n\", Preferences.DEBUG_ALGORITHM);\r\n // }\r\n if ( (ctrl == -1) || (ctrl == 1)) {\r\n \r\n // evaluate the residuals[j] = ymod - yData[j]\r\n for (j = 0; j < nPts; j++) {\r\n \tymod = a[0];\r\n \tfor (k = 0; k < (a.length - 1)/2; k++) {\r\n \t ymod += (a[2*k+1] * Math.exp(a[2*k+2] * xSeries[j]));\r\n \t}\r\n residuals[j] = ymod - ySeries[j];\r\n //Preferences.debug(\"residuals[\"+ j + \"] = \" + residuals[j] + \"\\n\", Preferences.DEBUG_ALGORITHM);\r\n }\r\n } // if ((ctrl == -1) || (ctrl == 1))\r\n else if (ctrl == 2) {\r\n // Calculate the Jacobian analytically\r\n for (j = 0; j < nPts; j++) {\r\n \tcovarMat[j][0] = 1; // a0 partial derivative\r\n \tfor (k = 0; k < (a.length - 1)/2; k++) {\r\n \t covarMat[j][2*k+1] = Math.exp(a[2*k+2] * xSeries[j]); // a[2*k+1] partial derivative\r\n \t covarMat[j][2*k+2] = a[2*k+1] * xSeries[j] * Math.exp(a[2*k+2] * xSeries[j]); // a[2*k+2] partial derivative\r\n \t}\r\n }\r\n }\r\n // Calculate the Jacobian numerically\r\n // else if (ctrl == 2) {\r\n // ctrlMat[0] = 0;\r\n // }\r\n } catch (final Exception exc) {\r\n Preferences.debug(\"function error: \" + exc.getMessage() + \"\\n\", Preferences.DEBUG_ALGORITHM);\r\n }\r\n\r\n return;\r\n }", "public abstract ArrayList< Double > getObjectiveCoefs();", "double getSolutionCost();", "public boolean regress (ArrayList<Integer> x, ArrayList<Long> y) { \n \tclear();\n \t\n \t// If empty or in different dimension, infeasible\n if (x == null || y == null || x.size() != y.size()) {\n \tsucc = false;\n \treturn false;\n }\n int n = x.size();\n\n // first pass: read in data, compute xbar and ybar\n double sumx = 0.0, sumy = 0.0, sumx2 = 0.0;\n for (int i = 0; i < n; i++) {\n sumx += x.get(i);\n sumx2 += x.get(i) * x.get(i);\n sumy += y.get(i);\n }\n double xbar = sumx / n;\n double ybar = sumy / n;\n\n // second pass: compute summary statistics\n double xxbar = 0.0, yybar = 0.0, xybar = 0.0;\n for (int i = 0; i < n; i++) {\n xxbar += (x.get(i) - xbar) * (x.get(i) - xbar);\n yybar += (y.get(i) - ybar) * (y.get(i) - ybar);\n xybar += (x.get(i) - xbar) * (y.get(i) - ybar);\n }\n double beta1 = xybar / xxbar;\n double beta0 = ybar - beta1 * xbar;\n\n // print results\n System.out.println(\"y = \" + beta1 + \" * x + \" + beta0);\n coef0 = beta0;\n coef1 = beta1;\n\n // analyze results\n int df = n - 2;\n double rss = 0.0; // residual sum of squares\n double ssr = 0.0; // regression sum of squares\n for (int i = 0; i < n; i++) {\n double fit = beta1*x.get(i) + beta0;\n rss += (fit - y.get(i)) * (fit - y.get(i));\n ssr += (fit - ybar) * (fit - ybar);\n }\n double R2 = ssr / yybar;\n double svar = rss / df;\n double svar1 = svar / xxbar;\n double svar0 = svar/n + xbar*xbar*svar1;\n// r2 = R2; System.out.println(\"R^2 = \" + R2);\n// System.out.println(\"std error of beta_1 = \" + Math.sqrt(svar1));\n// System.out.println(\"std error of beta_0 = \" + Math.sqrt(svar0));\n// svar0 = svar * sumx2 / (n * xxbar);\n// System.out.println(\"std error of beta_0 = \" + Math.sqrt(svar0));\n//\n// ssto = yybar; System.out.println(\"SSTO = \" + yybar);\n// sse = rss; System.out.println(\"SSE = \" + rss);\n// ssr = ssr; System.out.println(\"SSR = \" + ssr);\n \n succ = true;\n return true;\n }", "public double sumXYs() {\n double $ = 0;\n for (int ¢ = 0; ¢ < yVals.size(); ++¢)\n $ += unbox(cantBeNull(xVals.get(¢))) * unbox(cantBeNull(yVals.get(¢)));\n return $;\n }\n\n // calculate the linear regression\n public LinearLine calcLinearRegression() {\n double $;\n final double n = xVals.size();\n final double a = (n * sumXYs() - sumXs() * sumYs()) / (n * sumXXs() - sumXs() * sumXs());\n $ = 1 / n * sumYs() - a / n * sumXs();\n return new LinearLine(a, $);\n }", "@Override\n\tpublic double valuta_figli() {\n\t\treturn simple_fitness();\n\t}", "public abstract double evaluer(SolutionPartielle s);", "public abstract GF2nElement solveQuadraticEquation()\n throws RuntimeException;", "public FitMultiExponential(int nPoints, int nCoefficients, float[] xData, float[] yData) {\r\n\r\n // nPoints data points, nCoefficients coefficients, and exponential fitting\r\n super(nPoints,nCoefficients);\r\n xSeries = new double[xData.length];\r\n ySeries = new double[yData.length];\r\n int i;\r\n for (i = 0; i < xData.length; i++) {\r\n \txSeries[i] = xData[i];\r\n }\r\n for (i = 0; i < yData.length; i++) {\r\n \tySeries[i] = yData[i];\r\n }\r\n \r\n bounds = 2; // bounds = 0 means unconstrained\r\n // bounds = 1 means same lower and upper bounds for\r\n // all parameters\r\n // bounds = 2 means different lower and upper bounds\r\n // for all parameters\r\n bl = new double[nCoefficients];\r\n bu = new double[nCoefficients];\r\n \r\n bl[0] = -Double.MAX_VALUE;\r\n bu[0] = Double.MAX_VALUE;\r\n for (int k = 0; k < (nCoefficients - 1)/2; k++) {\r\n \tbl[2*k+1] = -Double.MAX_VALUE;\r\n \tbu[2*k+1] = Double.MAX_VALUE;\r\n \tbl[2*k+2] = -Double.MAX_VALUE;\r\n \tbu[2*k+2] = 0.0;\r\n }\r\n\r\n // The default is internalScaling = false\r\n // To make internalScaling = true and have the columns of the\r\n // Jacobian scaled to have unit length include the following line.\r\n // internalScaling = true;\r\n // Suppress diagnostic messages\r\n maxIterations = 5000;\r\n outputMes = false;\r\n }", "public double eval(double x) {\n double result = 0;\n for (int i = coefs.length - 1; i >= 0; i--) {\n result = result * x + coefs[i];\n }\n return result;\n }", "public void doRegressionAnalysis()\r\n {\n n = Y.getRowDimension();\r\n p = X.getColumnDimension(); \r\n k = p - 1; // k is number of explanatory variables\r\n Resids = new Matrix(n, 1);\r\n StandResids = new Matrix(n, 1);\r\n StudResids = new Matrix(n, 1);\r\n Cooks_D = new Matrix(n, 1);\r\n R_Student = new Matrix(n, 1);\r\n\r\n // MVP, p73\r\n X_Prime = X.transpose();\r\n X_Prime_X = X_Prime.times(X);\r\n X_Prime_X_Inv = X_Prime_X.inverse(); \r\n HatMatrix = X.times(X_Prime_X_Inv.times(X_Prime)); \r\n BetaHats = X_Prime_X_Inv.times(X_Prime.times(Y)); \r\n YHats = HatMatrix.times(Y);\r\n BXY = (BetaHats.transpose()).times(X_Prime.times(Y));\r\n Y_Prime_Y = (Y.transpose()).times(Y); \r\n ssRegression = BXY.get(0,0) - sumY_Squared_Over_n;\r\n SSRes = Y_Prime_Y.minus(BXY);\r\n ssResiduals = SSRes.get(0,0);\r\n ssTotal = Y_Prime_Y.get(0,0) - sumY_Squared_Over_n;\r\n \r\n r2 = ssRegression / ssTotal;\r\n s = Math.sqrt(ssResiduals / (n - k - 1));\r\n adj_r2 = 1.0 - (ssResiduals / (n - k - 1)) / (ssTotal / (n - 1));\r\n \r\n dfReg = k;\r\n dfResid = n - k - 1;\r\n dfTotal = n - 1;\r\n msReg = ssRegression / (double)k;\r\n msResid = ssResiduals / (double)(n - k - 1);\r\n fStatistic = msReg / msResid;\r\n fDist = new FDistribution(k, n - k - 1);\r\n pValue_F = fDist.getRightTailArea(fStatistic);\r\n Resids = Y.minus(YHats);\r\n\r\n tempDouble_01 = 1.0 / Math.sqrt(msResid);\r\n\r\n StandResids = Resids.times(tempDouble_01); \r\n for (int jj = 0; jj < n; jj++)\r\n { \r\n tempDouble_02 = HatMatrix.get(jj, jj);\r\n StudResids.set(jj, 0, Resids.get(jj, 0) * tempDouble_01 / Math.sqrt(1.0 - tempDouble_02));\r\n tempDouble_03 = StudResids.get(jj, 0) * StudResids.get(jj, 0) / (double)p;\r\n tempDouble_04 = tempDouble_02 / (1.0 - tempDouble_02);\r\n Cooks_D.set(jj, 0, tempDouble_03 * tempDouble_04);\r\n \r\n // Student-R calculations from 4.12, 4.13, p135\r\n jjResid = Resids.get(jj, 0);\r\n double e_i_sq = jjResid * jjResid; \r\n double oneMinus_hii = 1.0 - HatMatrix.get(jj, jj);\r\n double s_i_sq = ((n - p)*msResid - e_i_sq/oneMinus_hii) / (n - p - 1);\r\n R_Student.set(jj, 0, jjResid / Math.sqrt(s_i_sq * oneMinus_hii)); \r\n }\r\n\r\n StErrCoef = new Matrix(k + 1, 1); // Explanatory variables + intercept \r\n TStat = new Matrix(k + 1, 1); \r\n PValue_T = new Matrix(k + 1, 1); \r\n tDist = new TDistribution (n - k - 1);\r\n\r\n for (int preds = 0; preds <= k; preds++)\r\n {\r\n StErrCoef.set(preds, 0, Math.sqrt(msResid * X_Prime_X_Inv.get(preds, preds)));\r\n TStat.set(preds, 0, BetaHats.get(preds, 0) / StErrCoef.get(preds, 0));\r\n PValue_T.set(preds, 0, 2.0 * tDist.getRightTailArea(Math.abs(TStat.get(preds, 0))));\r\n }\r\n }", "public double ObjectiveFunction(double[] variables) {\n double answer = 0.002;\n for(int i = 1; i <= 25; i++) {\n double interim = 0;\n for(int j = 1; j <= 2; j++) {\n interim = Math.pow((variables[0] - variables[1]), 6);\n }\n answer += (1 / (i + interim));\n }\n return answer;\n }", "@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }", "public static double getFitness(List<Double> xValues, List<Double> yValues, Tree tree){\n //tree.str();\n //System.out.println();\n //ystem.out.println();\n double fitness = 0;\n for (int i = 0; i < xValues.size(); i++){\n if (Double.isNaN(tree.getY(xValues.get(i)))) continue;\n double error = tree.getY(xValues.get(i)) - yValues.get(i);\n \n // System.out.println(error);\n fitness += (error * error) ;\n //System.out.println(fitness);\n \n \n }\n //System.out.println(fitness);\n \n return fitness / xValues.size();\n \n }", "public FitMultiExponential(int nPoints, int nCoefficients, double[] xData, double[] yData) {\r\n // nPoints data points, nCoefficients coefficients, and exponential fitting\r\n super(nPoints, nCoefficients);\r\n this.xSeries = xData;\r\n this.ySeries = yData;\r\n \r\n bounds = 2; // bounds = 0 means unconstrained\r\n // bounds = 1 means same lower and upper bounds for\r\n // all parameters\r\n // bounds = 2 means different lower and upper bounds\r\n // for all parameters\r\n bl = new double[nCoefficients];\r\n bu = new double[nCoefficients];\r\n \r\n bl[0] = -Double.MAX_VALUE;\r\n bu[0] = Double.MAX_VALUE;\r\n for (int k = 0; k < (nCoefficients - 1)/2; k++) {\r\n \tbl[2*k+1] = -Double.MAX_VALUE;\r\n \tbu[2*k+1] = Double.MAX_VALUE;\r\n \tbl[2*k+2] = -Double.MAX_VALUE;\r\n \tbu[2*k+2] = 0.0;\r\n }\r\n\r\n // The default is internalScaling = false\r\n // To make internalScaling = true and have the columns of the\r\n // Jacobian scaled to have unit length include the following line.\r\n // internalScaling = true;\r\n // Suppress diagnostic messages\r\n maxIterations = 5000;\r\n outputMes = false;\r\n }", "public double[] calcSolution() {\n\t\t\n\t// Call CostFunction object\n\t\tcostFunction.function(position);\n\t\t\n\t\treturn solution;\n\t\t\n\t}", "public Polynomial(int n, double[] x, double[] y) {\n\t int np1 = n + 1;\n\t // double[] parameters = new double[np1];\n\t // setParameters(parameters);\n\t double X[][] = new double[x.length][np1];\n\t for (int i = 0; i < x.length; i++) {\n\t\tdouble xi = x[i];\n\t\tdouble prod = 1.0;\n\t\tfor (int j = 0; j < np1; j++) {\n\t\t X[i][j] = prod;\n\t\t prod *= xi;\n\t\t}\n\t }\n\t double[] tmp = new double[np1];\n\t double[][] H = new double[np1][np1];\n\t Adder.Kahan adder = new Adder.Kahan();\n\t Adder.Kahan.State state = adder.getState();\n\t for (int j = 0; j < np1; j++) {\n\t\tfor (int i = 0; i < x.length; i++) {\n\t\t tmp[j] += X[i][j]*y[i];\n\t\t}\n\t\tfor (int i = 0; i < np1; i++) {\n\t\t state.c = 0.0;\n\t\t state.total = 0.0;\n\t\t for (int k = 0; k < x.length; k++) {\n\t\t\tdouble yy = (X[k][i]*X[k][j]) - state.c;\n\t\t\tdouble t = state.total + yy;\n\t\t\tstate.c = (t - state.total) - yy;\n\t\t\tstate.total = t;\n\t\t }\n\t\t H[i][j] = state.total;\n\t\t}\n\t }\n\n\t /*\n\t TriangularDecomp decomp = new CholeskyDecomp(H, H);\n\t setDecomp(decomp);\n\t decomp.solve(parameters, tmp);\n\t */\n\t setDecomp(H);\n\t QRDecomp qr = new QRDecomp(X);\n\t setParameters(qr.solve(y));\n\t if (x.length == np1) {\n\t\tsetChiSquare(0.0);\n\t\tsetDegreesOfFreedom(0);\n\t\tsetReducedChiSquare(Double.POSITIVE_INFINITY);\n\t\tsetVariance(0.0);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < np1; i++) {\n\t\t for (int j = 0; j < np1; j++) {\n\t\t\tcv[i][j] = 0.0;\n\t\t }\n\t\t}\n\t\t*/\n\t } else {\n\t\tdouble sumsq = LeastSquaresFit.sumOfSquares(this, x, y);\n\t\tdouble variance = sumsq / (x.length - np1);\n\t\t// Chi-square is sumsq divided by the variance because\n\t\t// the sigmas all have the same value, but that just\n\t\t// gives x.length - np1. This happens because we don't have\n\t\t// an independent estimate of the variance, so we are\n\t\t// implicitly assuming we have the right fit.\n\t\tsetChiSquare(x.length - np1);\n\t\tsetDegreesOfFreedom(x.length - np1);\n\t\t// reducedChiSquare = ChiSquare divided by the degrees \n\t\t// of freedom.\n\t\tsetReducedChiSquare(1.0);\n\t\t// the H matrix used sigma=1, so we should have divided it by\n\t\t// the variance, which we didn't know. The covariance is the\n\t\t// inverse of H, so we should multiply it by the variance to\n\t\t// get the right value.\n\t\tsetVariance(variance);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < np1; i++) {\n\t\t for (int j = 0; j < np1; j++) {\n\t\t\tcv[i][j] *= variance;\n\t\t }\n\t\t}\n\t\t*/\n\t }\n\t}", "public void calcularFitness() {\n double fit = 0;\r\n for (int x=0; x < this.genotipo.length;x++){\r\n if (x!=this.genotipo.length-1){\r\n fit+=distancias[this.genotipo[x]][this.genotipo[x+1]];\r\n }else{\r\n fit+=distancias[this.genotipo[x]][this.genotipo[0]];\r\n }\r\n }\r\n this.fitness = fit;\r\n }", "public int objective() {\n\t\tint value = 0;\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tvalue += v[i] * x[i];\n\t\treturn value;\n\t}", "List<BigDecimal> computeSol();", "public double evaluate(double x) {\r\n //this.x = x;\r\n //return y;\r\n //this evaluates each function given x according to the term's degree\r\n //and coefficient.\r\n //method goes through each array of each type of term in order to compute\r\n // a sum of all terms.\r\n double y = 0;\r\n for(int i = 0; i < cindex; i++){\r\n y += co[i]*Math.pow(x, degree[i]); \r\n }\r\n for(int i = 0; i < sinindex; i++){\r\n y += sinc[i]*Math.sin(sind[i]*x);\r\n }\r\n for(int i = 0; i < cosindex; i++){\r\n y += cosc[i]*Math.cos(cosd[i]*x);\r\n }\r\n for(int i = 0; i < tanindex; i++){\r\n y += tanc[i]*Math.tan(tand[i]*x);\r\n }\r\n return y; \r\n\t}", "@Override\n public double evaluate(float x) {\n\n int polynomial[] = getPolynomialCoefficientArray();\n double result = 0;\n for (int i = 0; i < polynomial.length; i++) {\n result += polynomial[i] * Math.pow(x, i);\n }\n return result;\n }", "public void linear_regression(double w_sum, DMatrixRMaj a, DMatrixRMaj b, DMatrixRMaj x_wsum, DMatrixRMaj y_wsum,\n DMatrixRMaj xy_wsum, DMatrixRMaj xx_wsum, DMatrixRMaj ret, int ret_y, int ret_x) {\n\n\n // 0,0 item\n m1.set(0,0,w_sum);\n\n // 0,1; 1,0 item\n elementMult(a,x_wsum,lin_reg_buf_b_1);\n //elementSum(lin_reg_buf_b_1);\n m1.set(0,1, elementSum(lin_reg_buf_b_1) );\n m1.set( 1,0, elementSum(lin_reg_buf_b_1) );\n\n // 1,1 item\n\n transpose(a,lin_reg_buf_1_b);\n mult(a,lin_reg_buf_1_b,lin_reg_buf_b_b);\n elementMult(lin_reg_buf_b_b,xx_wsum);\n m1.set(1,1,elementSum(lin_reg_buf_b_b) );\n\n // Step2 - calculate m2 matrix\n\n // 0,0 item\n elementMult(b,y_wsum,lin_reg_buf_b_1);\n m2.set(0,0,elementSum(lin_reg_buf_b_1));\n\n // 1,0 item\n transpose(b,lin_reg_buf_1_b);\n mult(a,lin_reg_buf_1_b,lin_reg_buf_b_b);\n elementMult(lin_reg_buf_b_b,xy_wsum);\n m2.set( 1,0, elementSum(lin_reg_buf_b_b) );\n\n // Step 3 - calculate b and intercept\n\n invert(m1);\n\n DMatrixRMaj ret2 = new DMatrixRMaj(2,1);\n //DMatrixRMaj ret3 = new DMatrixRMaj()\n mult(m1,m2,ret2);\n\n // Insert numbers into provided return position\n transpose(ret2);\n insert(ret2,ret,ret_y,ret_x);\n }", "public NonLinear(double[] x, double[] y, RealValuedFunctionVA rf,\n\t\t\t Config config, double[] guess)\n\t{\n\t this.rf = rf;\n\n\t int n = rf.minArgLength() - 1;\n\t extendedParameters = new double[n+1];\n\t double[] ourGuess = new double[n];\n\t if (guess != null) {\n\t\tif (guess.length < ourGuess.length) {\n\t\t throw new IllegalArgumentException\n\t\t\t(errorMsg(\"gTooShort\", guess.length, ourGuess.length));\n\n\t\t}\n\t\tSystem.arraycopy(guess, 0, ourGuess, 0, ourGuess.length);\n\t }\n\t setParameters(ourGuess);\n\n\t if (config == null) config = defaultConfig;\n\n\t // y before x is the LMA convention.\n\t double sumsq = LMA.findMin(rf, LMA.Mode.LEAST_SQUARES,\n\t\t\t\t ourGuess, config.lambda, config.nu,\n\t\t\t\t config.limit,\n\t\t\t\t config.iterationLimit, y, x);\n\t System.arraycopy(ourGuess, 0, extendedParameters, 1, n);\n\n\t double[][] J = new double[x.length][];\n\t double[][] H = new double[n][n];\n\t for (int i = 0; i < x.length; i++) {\n\t\textendedParameters[0] = x[i];\n\t\tJ[i] = rf.jacobian(1,extendedParameters);\n\t }\n\t Adder.Kahan adder = new Adder.Kahan();\n\t Adder.Kahan.State state = adder.getState();\n\t for (int i = 0; i < n; i++) {\n\t\tfor (int j = 0; j < n; j++) {\n\t\t adder.reset();\n\t\t for (int k = 0; k < x.length; k++) {\n\t\t\tdouble term = J[k][i]*J[k][j];\n\t\t\tdouble yy = term - state.c;\n\t\t\tdouble t = state.total + yy;\n\t\t\tstate.c = (t - state.total) - yy;\n\t\t\tstate.total = t;\n\t\t }\n\t\t H[i][j] = state.total;\n\t\t}\n\t }\n\t decomp = new CholeskyDecomp(H, H);\n\t if (x.length == n) {\n\t\tsetChiSquare(0.0);\n\t\tsetDegreesOfFreedom(0);\n\t\tsetReducedChiSquare(Double.POSITIVE_INFINITY);\n\t\tsetVariance(0.0);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t for (int j = 0; j < n; j++) {\n\t\t\tcv[i][j] = 0.0;\n\t\t }\n\t\t}\n\t\t*/\n\t } else {\n\t\tsumsq = LeastSquaresFit.sumOfSquares(this, x, y);\n\t\tdouble variance = sumsq / (x.length - n);\n\t\t// Chi-square is sumsq divided by the variance because\n\t\t// the sigmas all have the same value, but that just\n\t\t// gives x.length - n. This happens because we don't have\n\t\t// an independent estimate of the variance, so we are\n\t\t// implicitly assuming we have the right fit.\n\t\tsetChiSquare(x.length - n);\n\t\tsetDegreesOfFreedom(x.length - n);\n\t\t// reducedChiSquare = ChiSquare divided by the degrees\n\t\t// of freedom.\n\t\tsetReducedChiSquare(1.0);\n\t\t// the H matrix used sigma=1, so we should have divided it by\n\t\t// the variance, which we didn't know. The covariance is the\n\t\t// inverse of H, so we should multiply it by the variance to\n\t\t// get the right value.\n\t\tsetVariance(variance);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t for (int j = 0; j < n; j++) {\n\t\t\tcv[i][j] *= variance;\n\t\t }\n\t\t}\n\t\t*/\n\t }\n\t}", "void fit(DataSet dataSet);", "public abstract double calcular();", "private static double getQ( int k, int df )\n {\n final double[][] TAB = {\n { 1, 17.969, 26.976, 32.819, 37.082, 40.408, 43.119, 45.397, 47.357, 49.071 },\n { 2, 6.085, 8.331, 9.798, 10.881, 11.734, 12.435, 13.027, 13.539, 13.988 },\n { 3, 4.501, 5.910, 6.825, 7.502, 8.037, 8.478, 8.852, 9.177, 9.462 },\n { 4, 3.926, 5.040, 5.757, 6.287, 6.706, 7.053, 7.347, 7.602, 7.826 },\n { 5, 3.635, 4.602, 5.218, 5.673, 6.033, 6.330, 6.582, 6.801, 6.995 },\n { 6, 3.460, 4.339, 4.896, 5.305, 5.628, 5.895, 6.122, 6.319, 6.493 },\n { 7, 3.344, 4.165, 4.681, 5.060, 5.359, 5.606, 5.815, 5.997, 6.158 },\n { 8, 3.261, 4.041, 4.529, 4.886, 5.167, 5.399, 5.596, 5.767, 5.918 },\n { 9, 3.199, 3.948, 4.415, 4.755, 5.024, 5.244, 5.432, 5.595, 5.738 },\n { 10, 3.151, 3.877, 4.327, 4.654, 4.912, 5.124, 5.304, 5.460, 5.598 },\n { 11, 3.113, 3.820, 4.256, 4.574, 4.823, 5.028, 5.202, 5.353, 5.486 },\n { 12, 3.081, 3.773, 4.199, 4.508, 4.750, 4.950, 5.119, 5.265, 5.395 },\n { 13, 3.055, 3.734, 4.151, 4.453, 4.690, 4.884, 5.049, 5.192, 5.318 },\n { 14, 3.033, 3.701, 4.111, 4.407, 4.639, 4.829, 4.990, 5.130, 5.253 },\n { 15, 3.014, 3.673, 4.076, 4.367, 4.595, 4.782, 4.940, 5.077, 5.198 },\n { 16, 2.998, 3.649, 4.046, 4.333, 4.557, 4.741, 4.896, 5.031, 5.150 },\n { 17, 2.984, 3.628, 4.020, 4.303, 4.524, 4.705, 4.858, 4.991, 5.108 },\n { 18, 2.971, 3.609, 3.997, 4.276, 4.494, 4.673, 4.824, 4.955, 5.071 },\n { 19, 2.960, 3.593, 3.977, 4.253, 4.468, 4.645, 4.794, 4.924, 5.037 },\n { 20, 2.950, 3.578, 3.958, 4.232, 4.445, 4.620, 4.768, 4.895, 5.008 },\n { 21, 2.941, 3.565, 3.942, 4.213, 4.424, 4.597, 4.743, 4.870, 4.981 },\n { 22, 2.933, 3.553, 3.927, 4.196, 4.405, 4.577, 4.722, 4.847, 4.957 },\n { 23, 2.926, 3.542, 3.914, 4.180, 4.388, 4.558, 4.702, 4.826, 4.935 },\n { 24, 2.919, 3.532, 3.901, 4.166, 4.373, 4.541, 4.684, 4.807, 4.915 },\n { 25, 2.913, 3.523, 3.890, 4.153, 4.358, 4.526, 4.667, 4.789, 4.897 },\n { 26, 2.907, 3.514, 3.880, 4.141, 4.345, 4.511, 4.652, 4.773, 4.880 },\n { 27, 2.902, 3.506, 3.870, 4.130, 4.333, 4.498, 4.638, 4.758, 4.864 },\n { 28, 2.897, 3.499, 3.861, 4.120, 4.322, 4.486, 4.625, 4.745, 4.850 },\n { 29, 2.892, 3.493, 3.853, 4.111, 4.311, 4.475, 4.613, 4.732, 4.837 },\n { 30, 2.888, 3.486, 3.845, 4.102, 4.301, 4.464, 4.601, 4.720, 4.824 },\n { 31, 2.884, 3.481, 3.838, 4.094, 4.292, 4.454, 4.591, 4.709, 4.812 },\n { 32, 2.881, 3.475, 3.832, 4.086, 4.284, 4.445, 4.581, 4.698, 4.802 },\n { 33, 2.877, 3.470, 3.825, 4.079, 4.276, 4.436, 4.572, 4.689, 4.791 },\n { 34, 2.874, 3.465, 3.820, 4.072, 4.268, 4.428, 4.563, 4.680, 4.782 },\n { 35, 2.871, 3.461, 3.814, 4.066, 4.261, 4.421, 4.555, 4.671, 4.773 },\n { 36, 2.868, 3.457, 3.809, 4.060, 4.255, 4.414, 4.547, 4.663, 4.764 },\n { 37, 2.865, 3.453, 3.804, 4.054, 4.249, 4.407, 4.540, 4.655, 4.756 },\n { 38, 2.863, 3.449, 3.799, 4.049, 4.243, 4.400, 4.533, 4.648, 4.749 },\n { 39, 2.861, 3.445, 3.795, 4.044, 4.237, 4.394, 4.527, 4.641, 4.741 },\n { 40, 2.858, 3.442, 3.791, 4.039, 4.232, 4.388, 4.521, 4.634, 4.735 },\n { 48, 2.843, 3.420, 3.764, 4.008, 4.197, 4.351, 4.481, 4.592, 4.690 },\n { 60, 2.829, 3.399, 3.737, 3.977, 4.163, 4.314, 4.441, 4.550, 4.646 },\n { 80, 2.814, 3.377, 3.711, 3.947, 4.129, 4.277, 4.402, 4.509, 4.603 },\n { 120, 2.800, 3.356, 3.685, 3.917, 4.096, 4.241, 4.363, 4.468, 4.560 },\n { 240, 2.786, 3.335, 3.659, 3.887, 4.063, 4.205, 4.324, 4.427, 4.517 },\n { 999, 2.772, 3.314, 3.633, 3.858, 4.030, 4.170, 4.286, 4.387, 4.474 }\n };\n\n if ( k < 2 || k > 10 )\n {\n return -1.0; // not supported\n }\n\n int j = k - 1; // index for correct column (e.g., k = 3 is column 2)\n\n // find pertinent row in table\n int i = 0;\n while ( i < TAB.length && df > TAB[i][0] )\n {\n ++i;\n }\n\n // don't allow i to go past end of table\n if ( i == TAB.length )\n {\n --i;\n }\n\n return TAB[i][j];\n }", "public double getBestScore();", "public Double evaluateQBF() {\n\n\t\tDouble aux = (double) 0, sum = (double) 0;\n\t\tDouble vecAux[] = new Double[size];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (variables[i] > 0.5)\n\t\t\t{\n\t\t\t\tfor (int j = 0; j < size; j++) {\n\t\t\t\t\taux += variables[j] * A[i][j];\n\t\t\t\t}\n\n\t\t\t\tvecAux[i] = aux;\n\t\t\t\tsum += aux * variables[i];\n\t\t\t\taux = (double) 0;\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < prohibited_triples.length; i++) {\n\t\t\tif (variables[prohibited_triples[i][0]] > 0.5 && variables[prohibited_triples[i][1]] > 0.5 && variables[prohibited_triples[i][2]] > 0.5)\n\t\t\t\tsum -= 1e5;\n\t\t}\n\n\t\treturn sum;\n\t}", "public float squared(){\r\n\t\treturn this.dottedWith( this );\r\n\t}", "private void findSmallestCost() {\n int best = 0;\n fx = funFitness[0];\n for (int i = 1; i < population; i++) {\n if (funFitness[i] < fx) {\n fx = funFitness[i];\n best = i;\n }\n }\n //System.arraycopy(currentPopulation[best], 0, bestSolution, 0, dimension);\n copy(bestSolution, currentPopulation[best]);\n }", "private double solution() {\n final double h = (getTextToDouble(textX1) - getTextToDouble(textX0)) / ( 2*getTextToDouble(textN)) / 3;\n double[][] mass = xInitialization();\n double answer, evenSum = 0, oddSum = 0;\n for (int i = 0; i < 2; i++) {\n for (double element : mass[i]) {\n if (i == 0)\n oddSum += getValue(element);\n else\n evenSum += getValue(element);\n }\n }\n answer = h * (getValue(getTextToDouble(textX0)) + 4 * oddSum + 2 * evenSum + getValue(getTextToDouble(textX1)));\n return answer;\n }", "public NonLinear(double[] x, double[] y, double sigma,\n\t\t\t RealValuedFunctionVA rf,\n\t\t\t Config config,\n\t\t\t double[] guess)\n\t{\n\t this.rf = rf;\n\n\t int n = rf.minArgLength() - 1;\n\t extendedParameters = new double[n+1];\n\t double[] ourGuess = new double[n];\n\t setParameters(ourGuess);\n\n\t if (config == null) config = defaultConfig;\n\n\t if (guess != null) {\n\t\tif (guess.length < ourGuess.length) {\n\t\t throw new IllegalArgumentException\n\t\t\t(errorMsg(\"gTooShort\", guess.length, ourGuess.length));\n\n\t\t}\n\t\tSystem.arraycopy(guess, 0, ourGuess, 0, ourGuess.length);\n\t }\n\n\t // y before x is the LMA convention.\n\t double sumsq = LMA.findMin(rf, LMA.Mode.LEAST_SQUARES,\n\t\t\t\t ourGuess, config.lambda, config.nu,\n\t\t\t\t config.limit,\n\t\t\t\t config.iterationLimit, y, x);\n\t System.arraycopy(ourGuess, 0, extendedParameters, 1, n);\n\n\t double[][] J = new double[x.length][];\n\t double[][] H = new double[n][n];\n\t for (int i = 0; i < x.length; i++) {\n\t\textendedParameters[0] = x[i];\n\t\tJ[i] = rf.jacobian(1,extendedParameters);\n\t }\n\t Adder.Kahan adder = new Adder.Kahan();\n\t Adder.Kahan.State state = adder.getState();\n\t for (int i = 0; i < n; i++) {\n\t\tfor (int j = 0; j < n; j++) {\n\t\t adder.reset();\n\t\t for (int k = 0; k < x.length; k++) {\n\t\t\tdouble term = J[k][i]*J[k][j];\n\t\t\tdouble yy = term - state.c;\n\t\t\tdouble t = state.total + yy;\n\t\t\tstate.c = (t - state.total) - yy;\n\t\t\tstate.total = t;\n\t\t }\n\t\t H[i][j] = state.total;\n\t\t}\n\t }\n\t decomp = new CholeskyDecomp(H, H);\n\t if (x.length == n) {\n\t\tsetChiSquare(0.0);\n\t\tsetDegreesOfFreedom(0);\n\t\tsetReducedChiSquare(Double.POSITIVE_INFINITY);\n\t\tsetVariance(0.0);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t for (int j = 0; j < n; j++) {\n\t\t\tcv[i][j] = 0.0;\n\t\t }\n\t\t}\n\t\t*/\n\t } else {\n\t\tdouble sigma2 = sigma*sigma;\n\t\tdouble chiSq = LeastSquaresFit.chiSquare(this, x, y, sigma);\n\t\tsetChiSquare(chiSq);\n\t\tsetDegreesOfFreedom(x.length - n);\n\t\tsetReducedChiSquare(chiSq/(x.length-n));\n\t\t// We didn't include the factor of sigma2 in the previous\n\t\t// matrices, and just fix up the value here, so as to\n\t\t// avoid some additional arithmetic while computing the\n\t\t// parameters.\n\t\tsetVariance(sigma2);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t for (int j = 0; j < n; j++) {\n\t\t\tcv[i][j] *= sigma2;\n\t\t }\n\t\t}\n\t\t*/\n\t }\n\t}", "private Hashtable solve() {\n Hashtable<Integer, Double> solution = new Hashtable<>(); //maps variable (column) to its value\n double det = system.determinant();\n if (det == 0) {\n System.err.println(\"LinearSystem Solve Failed: determinant of matrix is 0\");\n return null;\n } else {\n for (int c = 0; c < system.N; c++) {\n double detC = colVectorIntoMatrix(c).determinant();\n solution.put(c, detC/det);\n }\n return solution;\n }\n }", "public double [] biseccion ( ) {\n Scanner leer = new Scanner(System.in); \r\n int cantCoeficientes ;\r\n System.out.print(\"Cuantos coeficientes quiere ingresar ? : \");\r\n cantCoeficientes = leer.nextInt(); \r\n \r\n double[]coeficientes =new double [cantCoeficientes];\r\n \r\n for (int i = 0; i < coeficientes.length ; i++){ \r\n System.out.print(\"Digite el numero a ingresar \\n\");\r\n coeficientes[i] =leer.nextDouble();\r\n }\r\n \r\n System.out.println(\"Coeficientes de la funcion polinomica\"); \r\n for (int j = 0; j < coeficientes.length ; j++){ \r\n System.out.print(coeficientes[j]+\" \");\r\n \r\n }\r\n \r\n double[]coeficientesA =new double [cantCoeficientes];\r\n for (int k = 0; k < coeficientesA.length ; k++){ \r\n coeficientesA[k] =coeficientes[k];\r\n }\r\n \r\n double[]coeficientesB =new double [cantCoeficientes];\r\n for (int l = 0; l < coeficientesA.length ; l++){ \r\n coeficientesB[l] =coeficientes[l];\r\n }\r\n \r\n////************* OPERACION DE LA FUNCION POLINOMICA PARA SACAR LA BISECCION***********************//// \r\n \r\n int veces = 0 ;\r\n int nveces ;\r\n System.out.println(\"cuantas veces necesita ver la biseccion?\");\r\n nveces = leer.nextInt();\r\n double fA = a ;\r\n double fB = b ;\r\n \r\n double pA = cantCoeficientes;\r\n double pB = cantCoeficientes;\r\n \r\n while ( nveces != veces ) {\r\n \r\n double acumA = 0; \r\n \r\n for ( int n = 0; n <= fA ; n++ ){\r\n acumA = coeficientesA[n] * Math.pow(a,pA)+acumA;\r\n pA--;\r\n }\r\n\r\n System.out.print( \" \\n Extremo derecho n \"+veces+\" : \" + acumA + \"\\n\" );\r\n\r\n\r\n double acumB = 0; \r\n for ( int n = 0; n <= fB ; n++ ){\r\n acumB = coeficientesA[n] * Math.pow(a,pB)+acumB;\r\n pB--;\r\n }\r\n\r\n System.out.print( \" \\n Extremo izquierdo n \"+veces+\" : \" + acumB +\"\\n\");\r\n\r\n double c ;\r\n\r\n c = (acumA+acumB)/2;\r\n System.out.print( \" \\n Punto medio n \"+veces+\" : \" + c + \"\\n\");\r\n \r\n\r\n if( acumA > 0 && c > 0 ) {\r\n\r\n b = c ;\r\n\r\n }\r\n else {\r\n a = c ;\r\n }\r\n\r\n veces++;\r\n \r\n }\r\n return coeficientes; \r\n }", "public abstract double solve(int[][] matrix, double[] profitTable, int[] teamTable);", "public static void main(String[] args) {\n\t\tdouble[] x = new double[SIZE];\r\n\t\tdouble[] y = new double[SIZE];\r\n\t\tdouble[] a = new double[SIZE];\r\n\t\tdouble[] b = new double[SIZE];\r\n\t\tdouble[] c = new double[SIZE];\r\n\t\tdouble[] d = new double[SIZE];\r\n\t\tdouble[] ksi = new double[SIZE];\r\n\t\tdouble[] eta = new double[SIZE];\r\n\t\tdouble hPow2 = Math.pow(h, 2);\r\n\t\tdouble alpha0 = -1.95, alpha1 = 2.0;\r\n\t\tdouble A1 = 0.0, B1 = -6.02;\r\n\t\tdouble beta0 = -1.2, beta1 = 1.0;\r\n\t\tksi[1] = -(alpha1/alpha0);\r\n\t\teta[1] = -(A1/alpha0);\r\n\t\tfor(int k = 1; k < SIZE; k++){\r\n\t\t\ta[k] = 1.0;\r\n\t\t\tx[k] = A + k*h;\r\n\t\t\tb[k] = 2 + hPow2*(x[k]+1);\r\n\t\t\tc[k] = 1.0;\r\n\t\t\td[k] = hPow2*(Math.pow(x[k],5)+Math.pow(x[k],3)-6*x[k]);\r\n\t\t\tif(k!=SIZE-1){\r\n\t\t\t\tksi[k+1] = (c[k])/(b[k]-ksi[k]*c[k]);\r\n\t\t\t\teta[k+1] = (a[k]*eta[k]-d[k])/(b[k]-ksi[k]*c[k]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tint n = SIZE - 1;\r\n\t\ty[n] = (B1-beta0*eta[n])/(beta1+beta0*ksi[n]);\r\n\t\tfor(int k = n-1; k > 0; k--){\r\n\t\t\ty[k] = ksi[k+1]*y[k+1] + eta[k+1];\r\n\t\t\tSystem.out.print(\"ksi: \" + ksi[k] + \" eta: \" + eta[k] + \" y: \"+ y[k]);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public NonLinear(double[] x, double[] y, double[] sigma,\n\t\t\t RealValuedFunctionVA rf,\n\t\t\t Config config, double[] guess)\n\t{\n\t this.rf = rf;\n\n\t int n = rf.minArgLength() - 1;\n\t extendedParameters = new double[n+1];\n\t double[] ourGuess = new double[n];\n\t setParameters(ourGuess);\n\n\t if (config == null) config = defaultConfig;\n\n\t if (guess != null) {\n\t\tif (guess.length < ourGuess.length) {\n\t\t throw new IllegalArgumentException\n\t\t\t(errorMsg(\"gTooShort\", guess.length, ourGuess.length));\n\n\t\t}\n\t\tSystem.arraycopy(guess, 0, ourGuess, 0, ourGuess.length);\n\t }\n\n\t // y before x is the LMA convention.\n\t double sumsq = LMA.findMin(rf, LMA.Mode.WEIGHTED_LEAST_SQUARES,\n\t\t\t\t ourGuess, config.lambda, config.nu,\n\t\t\t\t config.limit,\n\t\t\t\t config.iterationLimit, y, sigma, x);\n\t System.arraycopy(ourGuess, 0, extendedParameters, 1, n);\n\n\t double[][] J = new double[x.length][];\n\t double[][] H = new double[n][n];\n\t for (int i = 0; i < x.length; i++) {\n\t\textendedParameters[0] = x[i];\n\t\tJ[i] = rf.jacobian(1,extendedParameters);\n\t }\n\t Adder.Kahan adder = new Adder.Kahan();\n\t Adder.Kahan.State state = adder.getState();\n\t for (int i = 0; i < n; i++) {\n\t\tfor (int j = 0; j < n; j++) {\n\t\t adder.reset();\n\t\t for (int k = 0; k < x.length; k++) {\n\t\t\tdouble sk = sigma[k];\n\t\t\tdouble term = J[k][i]*J[k][j] / (sk*sk);\n\t\t\tdouble yy = term - state.c;\n\t\t\tdouble t = state.total + yy;\n\t\t\tstate.c = (t - state.total) - yy;\n\t\t\tstate.total = t;\n\t\t }\n\t\t H[i][j] = state.total;\n\t\t}\n\t }\n\t decomp = new CholeskyDecomp(H, H);\n\t if (x.length == n) {\n\t\tsetChiSquare(0.0);\n\t\tsetDegreesOfFreedom(0);\n\t\tsetReducedChiSquare(Double.POSITIVE_INFINITY);\n\t\tsetVariance(0.0);\n\t } else {\n\t\tdouble chiSq = LeastSquaresFit.chiSquare(this, x, y, sigma);\n\t\tsetChiSquare(chiSq);\n\t\tsetDegreesOfFreedom(x.length - n);\n\t\tsetReducedChiSquare(chiSq/(x.length-n));\n\t }\n\t}", "private double getRegressionSumSquares(double slope) {\n return slope * slope * sumXX;\n }", "private static void setPlane(){\n // your code goes there\n LinearRegression linG;\n linG = new LinearRegression(2,2000);\n\n for(double i = 0; i < 1000; i+=1)\n {\n double[] pt1, pt2;\n pt1 = new double[2];\n pt2 = new double[2];\n\n pt1[0] = i;\n pt2[0] = 2.0*i;\n\n pt1[1] = 2.0*i;\n pt2[1] = i;\n\n linG.addSample(pt1,5.0*i);\n linG.addSample(pt2,4.0*i);\n }\n \n\n System.out.println(\"Current hypothesis :\" + linG.currentHypothesis());\n System.out.println(\"Current cost :\" + linG.currentCost());\n\n for(int i = 1; i <= 10; i++)\n {\n linG.gradientDescent(0.000000003,1000);\n\n System.out.println(\"Current hypothesis :\" + linG.currentHypothesis());\n System.out.println(\"Current cost :\" + linG.currentCost());\n }\n\t}", "public double[] coeff();", "public static double chiSquare(LeastSquaresFit fit, double[] x,\n\t\t\t\t double[] y, double sigma)\n {\n\tdouble sigma2 = sigma*sigma;\n\tAdder.Kahan adder = new Adder.Kahan();\n\tAdder.Kahan.State state = adder.getState();\n\tint m = x.length;\n\tfor (int i = 0; i < m; i++) {\n\t double cy = fit.valueAt(x[i]);\n\t double term = y[i] - fit.valueAt(x[i]);\n\t if (sigma == 0.0) {\n\t\tdouble max1 = Math.abs(cy);\n\t\tdouble max2 = Math.abs(y[i]);\n\t\tdouble max = (max1 > max2)? max1: max2;\n\t\t// if term is zero to within floating-point accuracy limits,\n\t\t// assume an exact fit and make the term 0; otherwise\n\t\t// we get infinity due to division by zero.\n\t\tif (Math.abs(term)/max > 1.e-10) {\n\t\t return Double.POSITIVE_INFINITY;\n\t\t} else {\n\t\t term = 0.0;\n\t\t}\n\t } else {\n\t\tterm *= term;\n\t\tterm /= sigma2;\n\t }\n\t double yy = term - state.c;\n\t double t = state.total + yy;\n\t state.c = (t - state.total) - yy;\n\t state.total = t;\n\t}\n\treturn state.total;\n }", "public abstract OptimisationSolution getBestSolution();", "public Polynomial(int n, double[] x, double[] y, double[] sigma) {\n\t int np1 = n + 1;\n\t // double[] parameters = new double[np1];\n\t // setParameters(parameters);\n\t double X[][] = new double[x.length][np1];\n\t for (int i = 0; i < x.length; i++) {\n\t\tdouble xi = x[i];\n\t\tdouble prod = 1.0;\n\t\tfor (int j = 0; j < np1; j++) {\n\t\t X[i][j] = prod;\n\t\t prod *= xi;\n\t\t}\n\t }\n\t double[] tmp = new double[np1];\n\t double[] tmp2 = new double[y.length];\n\t double[][] H = new double[np1][np1];\n\t Adder.Kahan adder = new Adder.Kahan();\n\t Adder.Kahan.State state = adder.getState();\n\t for (int j = 0; j < np1; j++) {\n\t\tfor (int i = 0; i < x.length; i++) {\n\t\t double si = sigma[i];\n\t\t tmp[j] += X[i][j]*y[i] / (si*si);\n\t\t}\n\t\t// tmp[j] /= sigma2;\n\t\tfor (int i = 0; i < np1; i++) {\n\t\t state.c = 0.0;\n\t\t state.total = 0.0;\n\t\t for (int k = 0; k < x.length; k++) {\n\t\t\tdouble sk = sigma[k];\n\t\t\tdouble term = (X[k][i]*X[k][j]) / (sk*sk);\n\t\t\tdouble yy = term - state.c;\n\t\t\tdouble t = state.total + yy;\n\t\t\tstate.c = (t - state.total) - yy;\n\t\t\tstate.total = t;\n\t\t }\n\t\t H[i][j] = state.total; /* / sigma2;*/\n\t\t}\n\t }\n\t for (int i = 0; i < x.length; i++) {\n\t\tdouble si = sigma[i];\n\t\ttmp2[i] = y[i]/si;\n\t\tfor (int j = 0; j < np1; j++) {\n\t\t X[i][j] /= sigma[i];\n\t\t}\n\t }\n\n\t /*\n\t TriangularDecomp decomp = new CholeskyDecomp(H, H);\n\t setDecomp(decomp);\n\t decomp.solve(parameters, tmp);\n\t */\n\t setDecomp(H);\n\t QRDecomp qr = new QRDecomp(X);\n\t setParameters(qr.solve(tmp2));\n\n\t if (x.length == np1) {\n\t\tsetChiSquare(0.0);\n\t\tsetDegreesOfFreedom(0);\n\t\tsetReducedChiSquare(Double.POSITIVE_INFINITY);\n\t\tsetVariance(0.0);\n\t\t/*\n\t\tdouble[][] cv = getCovarianceArray();\n\t\tfor (int i = 0; i < np1; i++) {\n\t\t for (int j = 0; j < np1; j++) {\n\t\t\tcv[i][j] = 0.0;\n\t\t }\n\t\t}\n\t\t*/\n\t } else {\n\t\tdouble chiSq = LeastSquaresFit.chiSquare(this, x, y, sigma);\n\t\tsetChiSquare(chiSq);\n\t\tsetDegreesOfFreedom(x.length-np1);\n\t\tsetReducedChiSquare(chiSq/(x.length-np1));\n\t }\n\t}", "public double getMagnitud(){\n return Math.sqrt(x*x+y*y);\n }", "public static double sumOfSquares(LeastSquaresFit fit, double[] x,\n\t\t\t\t double[] y)\n {\n\tAdder.Kahan adder = new Adder.Kahan();\n\tAdder.Kahan.State state = adder.getState();\n\tint m = x.length;\n\tfor (int i = 0; i < m; i++) {\n\t double term = y[i] - fit.valueAt(x[i]);\n\t term *= term;\n\t double yy = term - state.c;\n\t double t = state.total + yy;\n\t state.c = (t - state.total) - yy;\n\t state.total = t;\n\t}\n\treturn state.total;\n }", "public double eval(double x) {\n double y;\n y = this.a * Math.pow(x, 3) + this.b * Math.pow(x, 2) + this.c * x + this.d;\n return y;\n }", "public void solucion() {\r\n System.out.println(\"Intervalo : [\" + a + \", \" + b + \"]\");\r\n System.out.println(\"Error : \" + porce);\r\n System.out.println(\"decimales : \"+ deci);\r\n System.out.println(\"Iteraciones : \" + iteraciones);\r\n System.out\r\n .println(\"------------------------------------------------ \\n\");\r\n \r\n double c = 0;\r\n double fa = 0;\r\n double fb = 0;\r\n double fc = 0;\r\n int iteracion = 1;\r\n \r\n do {\r\n // Aqui esta la magia\r\n c = (a + b) / 2; \r\n System.out.println(\"Iteracion (\" + iteracion + \") : \" + c);\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n fc = funcion(c);\r\n if (fa * fc == 0) {\r\n if (fa == 0) {\r\n JOptionPane.showMessageDialog(null, \"Felicidades la raíz es: \"+a);\r\n System.out.println(a);\r\n System.exit(0);\r\n } else {\r\n JOptionPane.showMessageDialog(null, \"Felicidades la raíz es: \"+c);\r\n System.out.println(c);\r\n System.exit(0);\r\n }}\r\n \r\n if (fc * fa < 0) {\r\n b = c;\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n c = (a+b) / 2;\r\n \r\n x=c;\r\n fc = funcion(c);\r\n } else {\r\n a = c;\r\n fa = funcion(a);\r\n fb = funcion(b);\r\n c = (a+b) / 2;\r\n \r\n x=c;\r\n fc = funcion(c);\r\n }\r\n iteracion++;\r\n // Itera mientras se cumpla la cantidad de iteraciones establecidas\r\n // y la funcion se mantenga dentro del margen de error\r\n \r\n er = Math.abs(((c - x) / c)* 100);\r\n BigDecimal bd = new BigDecimal(aux1);\r\n bd = bd.setScale(deci, RoundingMode.HALF_UP);\r\n BigDecimal bdpm = new BigDecimal(pm);\r\n bdpm = bdpm.setScale(deci, RoundingMode.HALF_UP);\r\n cont++;\r\n fc=c ;\r\n JOptionPane.showMessageDialog(null, \"conteos: \" + cont + \" Pm: \" + bd.doubleValue() + \" Funcion: \" + bdpm.doubleValue() + \" Error: \" + er +\"%\"+ \"\\n\");\r\n } while (er <=porce);\r\n \r\n \r\n }", "protected final double fr(double x, double rc, double re) {return rc*(K*K)/Math.pow(x, re);}", "public static void main(String[] args) {\n double[] vArr = {5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75};\n double[] tempArr = {-40, -30, -20, -10, 0, 10, 20, 30, 40, 50};\n //1. utwórz tablice 2-wymiarowa\n //2. potrzebuje: typprzechowanej wartosci i rozmiar, czyli\n //typ: double\n //rozm w kierunku temp.: -40, -30, -20, ... 50 -> 10 elementow\n //rozm w kierunku v: 5, 10, 15, 20, 25, -> 15 elelmentow\n double[][] resultMatrix = new double[vArr.length][tempArr.length];\n\n //3. rM(1, 3) = f(10, -10) = -7,5;\n //Odczytac wartosc v i temp do obliczen i podstawic do wzoru - wynik umiescic w odp miejscu tab rM\n for (int v = 0; v < vArr.length; v++){\n for (int t = 0; t < tempArr.length; t++){\n resultMatrix[v][t] = 35.74 + 0.6215 * tempArr[t] + (0.4275 * tempArr[t] - 35.75) * Math.pow(vArr[v], 0.16);\n }\n }\n\n //mam juz uzupelniona cala tab wartosci - wyswietlic\n for (int v = 0; v < vArr.length; v++){\n for (int t = 0; t < tempArr.length; t++){\n System.out.println(String.format(\"f(%d, %d) = %f\", (int) vArr[v], (int) tempArr[t], resultMatrix[v][t]));\n }\n }\n System.out.println(\"Tabela wartosci: \");\n for (int v = 0; v < vArr.length; v++) {\n for (int t = 0; t < tempArr.length; t++){\n System.out.println(resultMatrix[v][t] + \"\\t\");\n }\n System.out.println();\n }\n System.out.println(\"Podaj v: <5, 10, 15... 75>\");\n //5 -> vArr[0]\n //75 -> vArr[14]\n //userInput/5 - 1\n Scanner sc = new Scanner(System.in);\n int userInput = sc.nextInt();\n int vIdx = userInput / 5 - 1;\n System.out.println(\"Podaj temp: <-40, -30... 50>\");\n userInput = sc.nextByte();\n int tempIdx = (userInput + 40) / 10;\n\n System.out.println(String.format(\"f(%d, %d) = %f\", (int) vArr[vIdx], (int) tempArr[tempIdx], resultMatrix[vIdx][tempIdx]));\n }", "private void linbcg( int n, double b[], double x[], int itol, double tol, int itmax,\n double sa[], int ija[] ) {\n // FIXME check itol and those numbers that start from 1 in here\n double ak, akden, bk, bkden = 0, bknum, bnrm = 0, dxnrm, xnrm, zm1nrm, znrm = 0;\n\n double[] p = new double[n];\n double[] pp = new double[n];\n double[] r = new double[n];\n double[] rr = new double[n];\n double[] z = new double[n];\n double[] zz = new double[n];\n\n int iter = 0;\n double err = 0;\n atimes(n, x, r, false, sa, ija);\n for( int j = 0; j < n; j++ ) {\n r[j] = b[j] - r[j];\n rr[j] = r[j];\n }\n if (itol == 1) {\n bnrm = snrm(n, b, itol);\n asolve(n, r, z, sa);\n } else if (itol == 2) {\n asolve(n, b, z, sa);\n bnrm = snrm(n, z, itol);\n asolve(n, r, z, sa);\n } else if (itol == 3 || itol == 4) {\n asolve(n, b, z, sa);\n bnrm = snrm(n, z, itol);\n asolve(n, r, z, sa);\n znrm = snrm(n, z, itol);\n } else\n System.out.println(\"illegal itol in linbcg\"); //$NON-NLS-1$\n\n while( iter <= itmax ) {\n ++iter;\n asolve(n, rr, zz, sa);\n bknum = 0.0;\n for( int j = 0; j < n; j++ )\n bknum += z[j] * rr[j];\n if (iter == 1) {\n for( int j = 0; j < n; j++ ) {\n p[j] = z[j];\n pp[j] = zz[j];\n }\n } else {\n bk = bknum / bkden;\n for( int j = 0; j < n; j++ ) {\n p[j] = bk * p[j] + z[j];\n pp[j] = bk * pp[j] + zz[j];\n }\n }\n bkden = bknum;\n atimes(n, p, z, false, sa, ija);\n akden = 0.0;\n for( int j = 0; j < n; j++ )\n akden += z[j] * pp[j];\n ak = bknum / akden;\n atimes(n, pp, zz, true, sa, ija);\n for( int j = 0; j < n; j++ ) {\n x[j] += ak * p[j];\n r[j] -= ak * z[j];\n rr[j] -= ak * zz[j];\n }\n asolve(n, r, z, sa);\n if (itol == 1)\n err = snrm(n, r, itol) / bnrm;\n else if (itol == 2)\n err = snrm(n, z, itol) / bnrm;\n else if (itol == 3 || itol == 4) {\n zm1nrm = znrm;\n znrm = snrm(n, z, itol);\n if (Math.abs(zm1nrm - znrm) > EPS * znrm) {\n dxnrm = Math.abs(ak) * snrm(n, p, itol);\n err = znrm / Math.abs(zm1nrm - znrm) * dxnrm;\n } else {\n err = znrm / bnrm;\n continue;\n }\n xnrm = snrm(n, x, itol);\n if (err <= 0.5 * xnrm)\n err /= xnrm;\n else {\n err = znrm / bnrm;\n continue;\n }\n }\n if (err <= tol)\n break;\n }\n }", "@Test\r\n public void test() {\r\n String[][] equations = { { \"a\", \"b\" }, { \"b\", \"c\" } },\r\n queries = { { \"a\", \"c\" }, { \"b\", \"a\" }, { \"a\", \"e\" }, { \"a\", \"a\" }, { \"x\", \"x\" } };\r\n double[] values = { 2.0, 3.0 };\r\n assertArrayEquals(new double[] { 6.0, 0.5, -1.0, 1.0, -1.0 }, calcEquation(equations, values, queries),\r\n Double.MIN_NORMAL);\r\n }", "public int linearEstimateForSize()\n {\n int ret = 1;\n if (parameterisedDimensions != null)\n for (int i = 0; i < parameterisedDimensions.length; i++)\n ret *= linearEstimateForSize(parameterisedDimensions[i]);\n if (simpleDimensions != null)\n for (int i = 0; i < simpleDimensions.length; i++)\n ret *= linearEstimateForSize(simpleDimensions[i]);\n return ret;\n }", "public static String[] MatrixSolve(Matrix M){\n String[] retArray = new String[M.kol];\n for (int i=1; i<M.kol; i++) {\n retArray[i] = Character.toString((char) (i + 96));\n }\n for (int i=M.bar; i>=1; i--) {\n if (!M.IsRowCoefZero(i)) {\n if (M.OnlyLeadingOne(i)) {\n //Hanya ada leading one pada baris ke-i\n retArray[M.PosLeadingElmt(i)] = Double.toString(M.Elmt(i,M.kol));\n }else{\n //Ada elemen non-0 setelah leading one pada baris ke-i\n double resDouble = M.Elmt(i,M.kol);\n String resString = \"\";\n for (int j=M.PosLeadingElmt(i)+1; j<M.kol; j++) {\n if (M.Elmt(i,j) != 0) {\n //Kondisi elemen M ke i,j bukan 0\n try {\n //Jika hasil ke-x merupakan bilangan, maka jumlahkan dengan elemen hasil\n if (retArray[j].contains(\"d\")) {\n throw new NumberFormatException(\"contains d\");\n }\n resDouble += (-1)*M.Elmt(i,j)*Double.valueOf(retArray[j]);\n } catch(NumberFormatException e) {\n //Jika hasil ke-x bukan bilangan, sambungkan koefisien dengan parameter yang sesuai\n resString += ConCoefParam((-1)*M.Elmt(i,j),retArray[j]);\n }\n }\n }\n //Gabungkan bilangan hasil dengan parameter\n if (resDouble != 0) {\n retArray[M.PosLeadingElmt(i)] = String.format(\"%.3f\",resDouble) + resString;\n }else if (resDouble == 0 && resString == \"\"){\n retArray[M.PosLeadingElmt(i)] = String.format(\"%.3f\",resDouble);\n }else{\n retArray[M.PosLeadingElmt(i)] = resString;\n }\n\n if (retArray[M.PosLeadingElmt(i)].startsWith(\"+\")){\n retArray[M.PosLeadingElmt(i)] = retArray[M.PosLeadingElmt(i)].substring(1);\n }\n }\n }\n }\n return retArray;\n}", "private double bound(int iter, Solution next) {\n return Math.exp((-1.0 * (next.getValue() - bestSol.getValue())) / denominator(iter));\n }", "@Test\n public void testApproximation() {\n int N = 100;\n Mesh mesh = new Mesh(equation.t0, equation.tN, N);\n Noise noise = new Noise(mesh, 10);\n\n // We will use SDG method to approximate with a polynomial degree of p = 4.\n int p = 4;\n SDG sdg = new SDG();\n ApproxGlobal approxGlobal = sdg.Solve(equation, noise, mesh, p);\n\n // For every element, we check that the approximation at the endpoint is within 10e-10\n // of the analytical solution.\n for(int i = 0; i < approxGlobal.localApproximations.length; i++){\n ApproxLocal local = approxGlobal.localApproximations[i];\n\n double totalNoise = noise.sumUntil(i);\n double t = mesh.elements[i].upperEndpoint;\n\n double expected = this.equation.exactSolution(t, totalNoise);\n double actual = local.terminal();\n\n assertEquals(expected, actual, 10e-10);\n }\n }", "public double getRSquared() {\n if (numPoints < 1) {\n return Double.NaN;\n }\n double sumZ = 0.0;\n for (int x = 0; x < xData.length; x++) {\n for (int y = 0; y < yData.length; y++) {\n sumZ += zData[x + xData.length * y];\n }\n }\n double mean = sumZ / numPoints;\n double sumMeanDiffSqr = 0.0;\n for (int x = 0; x < xData.length; x++) {\n for (int y = 0; y < yData.length; y++) {\n sumMeanDiffSqr += Math.pow(zData[x + xData.length * y] - mean, 2);\n }\n }\n double rSquared = 0.0;\n if (sumMeanDiffSqr > 0.0) {\n double srs = getSumResidualsSqr();\n rSquared = 1.0 - srs / sumMeanDiffSqr;\n }\n return rSquared;\n }", "public static double chiSquare(LeastSquaresFit fit,\n\t\t\t\t double[] x, double[] y, double[] sigma)\n {\n\tAdder.Kahan adder = new Adder.Kahan();\n\tAdder.Kahan.State state = adder.getState();\n\tint m = x.length;\n\tfor (int i = 0; i < m; i++) {\n\t double cy = fit.valueAt(x[i]);\n\t double term = y[i] - cy;\n\t if (sigma[i] == 0.0) {\n\t\tdouble max1 = Math.abs(cy);\n\t\tdouble max2 = Math.abs(y[i]);\n\t\tdouble max = (max1 > max2)? max1: max2;\n\t\t// if term is zero to within floating-point accuracy limits,\n\t\t// assume an exact fit and make the term 0; otherwise\n\t\t// we get infinity due to division by zero.\n\t\tif (Math.abs(term)/max > 1.e-10) {\n\t\t return Double.POSITIVE_INFINITY;\n\t\t} else {\n\t\t term = 0.0;\n\t\t}\n\t } else {\n\t\tterm *= term;\n\t\tterm /= sigma[i]*sigma[i];\n\t }\n\t double yy = term - state.c;\n\t double t = state.total + yy;\n\t state.c = (t - state.total) - yy;\n\t state.total = t;\n\t}\n\treturn state.total;\n }", "private double getSol(){\n return this.sol;\n }", "public double[] getFitParameters() {\r\n\t\treturn a;\r\n\t}", "public abstract double getConstraintFitness();", "public double[] calculatefitnessvalue(String str) {\t\n\t\tint a = Integer.parseInt(str.substring(0, 5), 2); \n\t\tint b = Integer.parseInt(str.substring(6, 11), 2);\n\t\tint c = Integer.parseInt(str.substring(12, 17), 2);\n\t\tint d = Integer.parseInt(str.substring(18, 23), 2);\n\t\tint e = Integer.parseInt(str.substring(24, 29), 2);\n\t\tint f = Integer.parseInt(str.substring(30, 35), 2);\n\t\tint g = Integer.parseInt(str.substring(36, 41), 2);\n\t\tint h = Integer.parseInt(str.substring(42, 47), 2);\n\t\tint i = Integer.parseInt(str.substring(48, 53), 2);\n\t\tint j = Integer.parseInt(str.substring(54, 59), 2);\n\n\t\tdouble x1 = a * (6.0 - 0) / (Math.pow(2, 6) - 1); //gene of x\n\t\tdouble x2 = b * (6.0 - 0) / (Math.pow(2, 6) - 1); //gene of y\n\t\tdouble x3 = c * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x4 = d * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x5 = e * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x6 = f * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x7 = g * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x8 = h * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x9 = i * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x10 = j * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\t\n\t\t//the Objective function\n\t\tdouble fitness = 3 - Math.sin(2 * x1) * Math.sin(2 * x1) \n\t\t\t\t+ Math.sin(2 * x2) * Math.sin(2 * x2)\n\t\t\t\t- Math.sin(2 * x3) * Math.sin(2 * x3)\n\t\t\t\t+ Math.sin(2 * x4) * Math.sin(2 * x4)\n\t\t\t\t- Math.sin(2 * x5) * Math.sin(2 * x5)\n\t\t\t\t+ Math.sin(2 * x6) * Math.sin(2 * x6)\n\t\t\t\t- Math.sin(2 * x7) * Math.sin(2 * x7)\n\t\t\t\t+ Math.sin(2 * x8) * Math.sin(2 * x8)\n\t\t\t\t- Math.sin(2 * x9) * Math.sin(2 * x9)\n\t\t\t\t+ Math.sin(2 * x10) * Math.sin(2 * x10);\n\t\t\n\t\tdouble[] returns = { x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, fitness };\n\t\treturn returns;\n\t}", "public ArrayList<Double> getHighestFitnesses() { return highFitnesses; }", "@Override\n\tpublic FTrend execute(Problem problem, int maxEvaluations) throws Exception\n\t{\n\t\tFTrend FT = new FTrend(); // Create a fitness trend instance\n\t\tint problemDimension = problem.getDimension(); // Store the dimensionality of the problem domain\n\t\tdouble[][] bounds = problem.getBounds(); // Store the bounds of each variable in the problem domain\n\t\t\n\t\tdouble[] best = new double[problemDimension]; // Initialise the best known solution variable\n\t\tdouble fBest = Double.NaN; // Initialise the fitness value, i.e. \"f(x)\", of the best solution known\n\t\tint k = 0; // Initialise the incremental counter variable\n\t\t\n\t\t// Self-Adaptive Differential Evolution (jDE - jitterDE) variables\n\t\tint populationSize \t \t\t\t= getParameter(\"p0\").intValue(); // Initialise the population size \n\t\t//double scalingFactor \t\t\t= getParameter(\"p1\").doubleValue(); // Initialise the scaling factor of the mutation operator\n\t\t//double crossoverRate \t\t\t= getParameter(\"p2\").doubleValue(); // Initialise the crossover rate of the binomial crossover operator\n\t\tdouble scalingFactorLowerBound \t= getParameter(\"p3\").doubleValue(); // Initialise the upper bound value of the scaling factor of the mutation operator\n\t\tdouble scalingFactorUpperBound \t= getParameter(\"p4\").doubleValue(); // Initialise the lower bound value of the scaling factor of the mutation operator\n\t\tdouble tauOne \t\t\t\t\t= getParameter(\"p5\").doubleValue(); // Initialise the first random probability controlling the scaling factor of the mutation operator\n\t\tdouble tauTwo \t\t\t\t\t= getParameter(\"p6\").doubleValue(); // Initialise the second random probability controlling the binomial crossover rate of the crossover operator\n\t\t\n\t\tdouble[] scalingFactor = new double[populationSize]; // Initialise the scaling factor of the mutation operator\n\t\tdouble[] crossoverRate = new double[populationSize]; // Initialise the crossover rate of the binomial crossover operator\n\t\t\n\t\tdouble[][] population = new double[populationSize][problemDimension]; // Initialise the population of individuals (solutions) variable\n\t\tdouble[] solutionFitness = new double[populationSize]; // Initialise the fitness of a solution (individual) variable\n\t\t\n\t\t// Short Distance Exploration (SDE) variables\n\t\tdouble alpha \t\t\t\t= getParameter(\"p7\"); // Initialise the alpha cut value of the length of the problems decision space\n\t\tdouble proceduralIterations = getParameter(\"p8\").intValue(); // Initialise the procedural iteration budget variable\n\t\t\n\t\tdouble fShort = fBest; // Initialise the fitness value, i.e. \"f(x)\", of the trial solution\n\t\tdouble[] xShort = best; // Initialise the trial solution variable\n\t\tdouble[] exploratoryRadius = new double[problemDimension]; // Initialise the exploratory radius variable for the Short Distance Exploration (S) algorithm\n\t\t\n\t\t// Evaluate initial population of individuals\n\t\tfor (int i = 0; i < populationSize; i++) // For the size of the population of individuals (solutions), do the following\n\t\t{\n\t\t\tdouble[] initialSolution = generateRandomSolution(bounds, problemDimension); // Generate the initial solution (guess)\n\t\t\t\n\t\t\tfor (int j = 0; j < problemDimension; j++) // For the dimensionality of the problem, do the following\n\t\t\t{\n\t\t\t\tpopulation[i][j] = initialSolution[j]; // Initialise the iterated solution (individual) that comprises the population, to the initial solution randomly generated \n\t\t\t}\n\t\t\t\n\t\t\tsolutionFitness[i] = problem.f(population[i]); // Calculate and store the fitness (value) of the iterated solution (individual)\n\t\t\tk++; // Increment the counter to near the computational budget\t\t\n\n\t\t\tif (i == 0 || solutionFitness[i] < fBest) // If the solution generated is the first solution in the population or the fitness of the solution is better than the fitness of the best known solution, do the following\n\t\t\t{\n\t\t\t\tfBest = solutionFitness[i]; // Store the iterated solutions (individuals) fitness (value) as the best known solution\n\t\t\t\t//FT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\n\t\t\t\tfor (int j = 0; j < problemDimension; j++) // For the dimensionality of the problem, do the following\n\t\t\t\t{\n\t\t\t\t\tbest[j] = population[i][j]; // Update the best solution to the points comprising the iterated solution (individual) in the population\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (i == 0 || k % 100 == 0) // If the iterated individual in the population is first individual in the population or the current iteration is divisible by '100' and has no remainder, do the following\n\t\t\t{\n\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Main loop\n\t\twhile (k < maxEvaluations) // While the computational budget has not been met, do the following\n\t\t{\n\t\t\tdouble[][] nextGeneration = new double[populationSize][problemDimension]; // Reinitialise the next generation of individuals representing the population variable\n\t\t\t\n\t\t\tfor (int j = 0; j < populationSize && k < maxEvaluations; j++) // For the size of the population of individuals (solutions) and whilst within the computational budget, do the following\n\t\t\t{\n\t\t\t\tint fitnessTrendPopulated = 0; // Initialise the fitness trend populated variable\n\t\t\t\t\n\t\t\t\tdouble[] mutantIndividual \t = new double[problemDimension]; // Reinitialise the mutated individuals variable\n\t\t\t\tdouble[] crossoverIndividual = new double[problemDimension]; // Reinitialise the offspring variable\n\t\t\t\tdouble[] populationIndividual = new double[problemDimension]; // Reinitialise the individual (solution) comprising the population variable \n\t\t\t\t\n\t\t\t\tdouble currentFitness \t= Double.NaN; // Reinitialise the fitness of the current solution (individual)\n\t\t\t\tdouble crossoverFitness = Double.NaN; // Reinitialise the fitness of the offspring solution (individual)\n\t\t\t\t\n\t\t\t\tfor (int l = 0; l < problemDimension; l++) // For the dimensionality of the problem, do the following\n\t\t\t\t{\n\t\t\t\t\tpopulationIndividual[l] = population[j][l]; // Initialise the individual (solution) in the population to the iterated individual in the population\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentFitness = solutionFitness[j]; // Set the current fitness (value) to the fitness of the current individual (solution)\n\t\t\t\n\t\t\t\t// Update the scaling factor (F)\n\t\t\t\tif (RandUtils.random() < tauOne) // If the randomly generated number is smaller than the probability of controlling the scaling factor of the mutation operator, do the following\n\t\t\t\t{\n\t\t\t\t\tscalingFactor[j] = scalingFactorLowerBound + RandUtils.random() * scalingFactorUpperBound; // Resample the scaling factor for the iterated individual of the population\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// DE/rand/1 mutation operator\n\t\t\t\tmutantIndividual = originalMutation(population, scalingFactor[j], problemDimension); // Function call, mutate the population of individuals to obtain a new mutated individual\n\t\t\t\t//mutantIndividual = toro(mutantIndividual, bounds); // Correct the mutated individual (solution) that may exist out of the bounds of the search space (problem domain)\n\t\t\t\t\n\t\t\t\t// Update the crossover rate (CR)\n\t\t\t\tif (RandUtils.random() < tauTwo) // If the randomly generated number is smaller than the probability of controlling the crossover rate of the binomial crossover operator, do the following\n\t\t\t\t{\n\t\t \tcrossoverRate[j] = RandUtils.random(); // Resample the crossover rate for the iterated individual of the population\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Binomial crossover operator\n\t\t\t\tcrossoverIndividual = binomialCrossover(populationIndividual, mutantIndividual, crossoverRate[j], problemDimension); // Function call, crossover the current individual and the mutated individual, binomially (recombination)\n\t\t\t\tcrossoverIndividual = toro(crossoverIndividual, bounds); // Correct the offspring individual (solution) that may exist out of the bounds of the search space (problem domain)\n\t\t\t\t\n\t\t\t\tcrossoverFitness = problem.f(crossoverIndividual); // Calculate and store the fitness (value) of the offspring solution (individual)\n\t\t\t\tk++; // Increment the counter to near the computational budget\n\t\t\t\t\n\t\t\t\t// Replace the original individual in the population\n\t\t\t\tif (crossoverFitness < currentFitness) // If the offspring individual is fitter than the original individual in the population, do the following\n\t\t\t\t{\n\t\t\t\t\tfor (int l = 0; l < problemDimension; l++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t{\n\t\t\t\t\t\t// Survivor selection (1-to-1 spawning)\n\t\t\t\t\t\tnextGeneration[j][l] = crossoverIndividual[l]; // Replace the original individual (solution) in the population with the offspring individual (solution)\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\tsolutionFitness[j] = crossoverFitness; // Update the fitness of the individual (solution) to the fitness of the offspring individual (solution)\n\t\t\t\t\t\n\t\t\t\t\t// Update the best known solution\n\t\t\t\t\tif (crossoverFitness < fBest) // If the offspring individual (solution) is fitter than the best known individual (solution), do the following\n\t\t\t\t\t{\n\t\t\t\t\t\tfBest = crossoverFitness; // Update the fitness (value) of the best known solution to the fitness (value) of the offspring individual (solution)\n\t\t\t\t\t\t//FT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int l = 0; l < problemDimension; l++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tbest[l] = crossoverIndividual[l]; // Update the best known individual (solution) to the offspring individual (solution)\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Reset exploratory radius\n\t\t\t\t\t\tfor (int i = 0; i < problemDimension; i++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\texploratoryRadius[i] = alpha * (bounds[i][1] - bounds[i][0]); // Calculate and the exploratory radius for each variable in the problem domain\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Main loop\n\t\t\t\t\t\tfor (int l = 0; l < proceduralIterations && k < maxEvaluations; l++) // For the size of the procedural iteration budget and whilst within the computational budget, do the following\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboolean improved = false; // Initialise the improved variable (reinitialise every iteration)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i = 0; i < problemDimension && k < maxEvaluations; i++) // For the dimensionality of the problem and whilst within the computational budget, do the following\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\txShort[i] = best[i] - exploratoryRadius[i]; // Perturb the currently iterated variable in the problem domain, negatively, along the corresponding axis (exclusively) \n\t\t\t\t\t\t\t\txShort = toro(xShort, bounds); // Correct the trial solution that may exist out of the bounds of the search space (problem domain)\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfShort = problem.f(xShort); // Calculate the new fitness value of the trial solution\n\t\t\t\t\t\t\t\tk++; // Increment the counter to near the computational budget\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (fShort <= fBest) // If the trial solution is an improvement or equivalent to the best known solution, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tbest[i] = xShort[i]; // Update the best known solution to the current trial solution (one variable perturbed at each iteration)\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfBest = fShort; // Store the fitness value of the improved trial solution\n\t\t\t\t\t\t\t\t\t//FT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\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\timproved = true; // The trial solution is an improvement or equivalent to the best known solution\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (k < maxEvaluations) // Else if the trial solution is not an improvement to the best solution found and its within the computational budget, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\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\txShort[i] = best[i] + (exploratoryRadius[i] / 2); // Perturb the currently iterated variable in the problem domain, positively (half-step), along the corresponding axis (exclusively) \n\t\t\t\t\t\t\t\t\txShort = toro(xShort, bounds); // Correct the trial solution that may exist out of the bounds of the search space (problem domain)\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfShort = problem.f(xShort); // Calculate the new fitness value of the trial solution\n\t\t\t\t\t\t\t\t\tk++; // Increment the counter to near the computational budget\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (fShort <= fBest) // If the trial solution is an improvement or equivalent to the best known solution, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tbest[i] = xShort[i]; // Update the best known solution to the current trial solution (one variable perturbed at each iteration)\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tfBest = fShort; // Store the fitness value of the improved trial solution\n\t\t\t\t\t\t\t\t\t\t//FT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\timproved = true; // The trial solution is an improvement or equivalent to the best known solution\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse // Else if the trial solution is not an improvement to the best solution found, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\txShort[i] = best[i]; // Return to the original point after the perturbations, as an improvement could not be recognised\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\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\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\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (improved == false) // If the current best solution has never improved from the initial best solution, do the following\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfor (int i = 0; i < exploratoryRadius.length; i++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\texploratoryRadius[i] = exploratoryRadius[i] / 2; // Store the exploratory radius for each variable in the problem domain to itself, halved (closer search from initial solution in case the initial guess is the optimum)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse // Else if the current best solution has improved from the initial best solution, do the following\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfor (int i = 0; i < problemDimension; i++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tnextGeneration[j][i] = best[i]; // Replace the original individual (solution) in the population with the best known solution (individual)\n\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\tsolutionFitness[j] = fBest; // Update the fitness of the individual (solution) to the fitness of the best known solution (individual)\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\telse // Else if the offspring individual is not fitter than the original individual in the population, do the following\n\t\t\t\t{\n\t\t\t\t\tfor (int l = 0; l < problemDimension; l++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t{\n\t\t\t\t\t\tnextGeneration[j][l] = populationIndividual[l]; // Restore the design variables (genes) of the original individual (solution) as the updated individual (solution)\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\tsolutionFitness[j] = currentFitness; // Restore the fitness (value) of the solution to the fitness (value) of the iterated individual (solution)\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t{\n\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Survivor selection (1-to-1 spawning)\n\t\t\tpopulation = nextGeneration; // Update the current population of individuals to the next generation of fitter individuals\n\t\t}\n\t\t\n\t\tfinalBest = best; // Store the final iteration of the best known solution\n\t\tFT.add(k, fBest); // Add the final iteration of the best known solution to the fitness trend (saved to a .txt file)\n\n\t\treturn FT; // Return the fitness trend\n\t}", "double Q(DoubleMatrix1D pt1, DoubleMatrix1D pt2, DoubleMatrix1D scale){\n DoubleMatrix1D diff = pt2.copy().assign(pt1,Functions.minus);\n\n //ok now we just need a standard normal probability\n //total probability is product of single-variable probabiliies\n double prob = 1;\n for(int dof=0; dof<numDOFs; dof++){\n double v = diff.get(dof)/scale.get(dof);\n prob *= Math.exp(-v*v/2);//standard normal probability, unnormalized\n }\n \n return prob;\n }", "@Test\n public void shouldEvaluateWorkProperlyCase3() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.5, 1.5})) ;\n\n assertEquals((1.5 - 0.75) * (1.5 - 0.25) + (0.75 - 0.5) * (1.5 - 0.5) + (0.5 - 0.25) * (1.5 - 0.75), result, 0.0001) ;\n }", "static interface FittingFunction {\r\n\r\n /**\r\n * Returns the value of the function for the given array of parameter\r\n * values.\r\n */\r\n double evaluate(double[] argument);\r\n\r\n /**\r\n * Returns the number of parameters.\r\n */\r\n int getNumParameters();\r\n }", "public void calculaMatrizCostes() {\n int i, j;\n double xd, yd;\n costes = new int[n][n];\n for (i = 0; i < n; i++) {\n for (j = 0; j < n; j++) {\n xd = vx[i] - vx[j];\n yd = vy[i] - vy[j];\n costes[i][j] = (int) Math.round(Math.sqrt((xd * xd) + (yd * yd)));\n }\n }\n }", "public void calculate(List<Double> x){\n\n for(int j=1;j<=m;j++){\n th[1][j] = wdotF(-1,j,x,1);\n }\n for(int i=2;i<=n;i++){\n for(int l=1;l<=m;l++){\n double max = Double.MIN_VALUE;\n for(int j=1;j<=m;j++){\n double value = th[i-1][j]+ wdotF(j,l,x,i);\n if(value> max){\n max = value;\n path[i][l] = j;\n }\n }\n th[i][l] = max;\n }\n }\n double maxValue = Double.MIN_VALUE;\n int pathValue = 0;\n List<Integer> goodPath = new ArrayList<>();\n for(int j=1;j<=m;j++){\n double value = th[n][j];\n if(value> maxValue){\n maxValue = value;\n pathValue = j;\n }\n }\n goodPath.add(pathValue);\n for(int i=n-1;i>0;i--){\n int value = path[i+1][pathValue];\n pathValue = value;\n goodPath.add(0,pathValue);\n }\n System.out.print(\"path is :\");\n for(Integer path : goodPath){\n System.out.print(path+\" \");\n }\n }", "public double getRegressionSumSquares() {\n return getRegressionSumSquares(getSlope());\n }", "public static void solve(String question)\n\t{\n\t\t\n\t\tint add_function = 0;\n\t\tint sub_function = 0;\n\t\t\n\t\tString string_alpha = find_a(question); //finds the value of first input including x\n\t\tString string_beta = find_b(question); //finds the value of second input including x\n\t\t\n\t\tint var_alpha = find_a_num(question); //finds value as integer not including x, of first function\n\t\tint var_beta = find_b_num(question); //finds value as integer not including x, of second function\n\t\t\n\t\tSystem.out.println((find_par(2,question) + find_par(3,question)));\n\t\t\n\t\tString function_1 = function_1(question); //finds just the trig operator of the first function only used to check what type of equation\n\t\tString function_2 = function_2(question); //finds just the trig operator of the second function\n\t\t\n\t\t//check to make sure question is valid if not will start over\n\t\tif (!((function_1.equalsIgnoreCase(\"sin\") && function_1.equalsIgnoreCase(\"cos\") && function_1.equalsIgnoreCase(\"tan\")) || (function_2.equalsIgnoreCase(\"sin\") || function_2.equalsIgnoreCase(\"cos\") || function_2.equalsIgnoreCase(\"tan\"))))\n\t\t{\n\t\t\terror();\n\t\t}\n\t\t\n\t\t//checking to see what equation to use\n\t\t\n\t\tif (function_1.equalsIgnoreCase(\"sin\") && function_2.equalsIgnoreCase(\"sin\"))\n\t\t{\n\t\t\t\n\t\t\tsin_sin(string_alpha,string_beta,var_alpha,var_beta);\n\t\t\t/*System.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"-\" + string_beta + \")) - (cos(\" + string_alpha + \"+\" + string_beta +\"))]\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_beta2 + \") - cos(\" + string_alpha2 + \")]\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_beta2 + \") - (1/2)cos(\" + string_alpha2 + \")\");\n\t\t\t\n\t\t\tfinished();*/\n\t\t\t\n\t\t}\n\t\t\n\t\tif (function_1.equalsIgnoreCase(\"sin\") && function_2.equalsIgnoreCase(\"cos\"))\n\t\t{\n\t\t\tSystem.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"+\" + string_beta + \")) - (cos(\" + string_alpha + \"-\" + string_beta +\"))]\\t\\tenter values into equation\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_alpha2 + \") + cos(\" + string_beta2 + \")]\\t\\tsimplify values\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_alpha2 + \") + (1/2)cos(\" + string_beta2 + \") t\\tdistribute 1/2\");\n\t\t\t\n\t\t\tfinished();\n\t\t\t\n\t\t}\n\t\t//not done\n\t\tif (function_1.equalsIgnoreCase(\"cos\") && function_2.equalsIgnoreCase(\"cos\"))\n\t\t{\n\t\t\tSystem.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"+\" + string_beta + \")) - (cos(\" + string_alpha + \"-\" + string_beta +\"))]\\t\\tenter values into equation\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_alpha2 + \") + cos(\" + string_beta2 + \")]\\t\\tsimplify values\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_alpha2 + \") + (1/2)cos(\" + string_beta2 + \") t\\tdistribute 1/2\");\n\t\t\t\n\t\t\tfinished();\n\t\t\t\n\t\t}\n\t\t\n\t\t////////////\n\t\t//System.out.println(function_1 + \" \" + function_2);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//find_b(question);\n\t}", "private double getRecEnergy(){\n\t\tdebugMatrix = new double[CELL_SIDE_COUNT][CELL_SIDE_COUNT];\n\t\tconvolutedMatrix = new Complex[CELL_SIDE_COUNT][CELL_SIDE_COUNT];\n\t\t//initiliaze the whole convolutedMatrix array to zero\n\t\tfor(int x = 0; x < CELL_SIDE_COUNT; x++)\n\t\t{\n\t\t\tfor(int y = 0; y < CELL_SIDE_COUNT; y++)\n\t\t\t{\n\t\t\t\tconvolutedMatrix[x][y] = Complex.zero;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Pg. 180 Lee[05]\n\t\tint indexTop = CELL_SIDE_COUNT * CELL_SIDE_COUNT;\n\t\t//Eq 19 Lee[05]\n\t\t//Also Eq 3.9 Essman[95]\n\t\tdouble sum = 0;\n\t\tint indtop = CELL_SIDE_COUNT * CELL_SIDE_COUNT;\n\t\tint midPoint = CELL_SIDE_COUNT / 2;\n\t\tif (midPoint << 1 < CELL_SIDE_COUNT) {\n\t\t\t++midPoint;\n\t\t}\n\t\t\n\t\tfor (int ind = 1; ind <= (indtop - 1); ++ind) {\n\t\t\t\n\t\t\tint y = ind / CELL_SIDE_COUNT + 1;\n\t\t\tint x = ind - (y - 1) * CELL_SIDE_COUNT + 1;\n\t\t\tint mXPrime = x - 1;\n\t\t\tif (x > midPoint) {\n\t\t\t\tmXPrime = x - 1 - CELL_SIDE_COUNT;\n\t\t\t}\n\t\t\tint mYPrime = y - 1;\n\t\t\tif (y > midPoint) {\n\t\t\t\tmYPrime = y - 1 - CELL_SIDE_COUNT;\n\t\t\t}\n\t\t\tdouble m = mXPrime * 1.0 + mYPrime * 1.0; //Was inverseMeshWidth - theory is reciprocal lattice vectors are for the entire cell U rather than one cell\n\t\t\tdouble mSquared = squared(mXPrime * 1.0) + squared(mYPrime * 1.0);\n\t\t\t\n\t\t\tdouble V = 1; //working in the unit mesh\n\t\t\tdouble bterm = M.bspmod[x]*M.bspmod[y];\n\t\t\tdouble eterm = Math.exp(-squared(Math.PI/ewaldCoefficient)*mSquared) / (bterm * Math.PI * V * mSquared);\n\t\t\t//Section 3.2.8 Lee[05]\n\t\t\tdouble inverseQPart = (squared(inverseFTQComplex[x-1][y-1].re())+squared(inverseFTQComplex[x-1][y-1].im())); //Lee[05]\n\t\t\tdouble thisContribution = eterm * inverseQPart;\n\t\t\tconvolutedMatrix[x-1][y-1] = inverseFTQComplex[x-1][y-1].scale(eterm); //Save this for the force calculation\n\t\t\tsum += thisContribution; //from the argument that F(Q(M))*F(Q(-M))=F-1(Q)^2\n\t\t}\n\t\treturn 0.5*sum;\n\t}", "private double calcB0() {\n double[] dataX = dsX.getDataX();\n double[] dataY = dsY.getDataY();\n double sumX = 0;\n double sumY = 0;\n for (int i = 0; i < dataX.length; i++) {\n sumX += dataX[i];\n sumY += dataY[i];\n }\n return (sumY - (this.B1 * sumX)) / dataX.length;\n }", "private boolean feasible() {\n\t\tint weight = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tassert x[i] == 0 || x[i] == 1;\n\t\t\tweight += w[i] * x[i];\n\t\t}\n\t\treturn weight <= k;\n\t}", "public abstract double[] solveDual(int[][] matrix, double[] profitTable, int[] teamTable);", "public double evaluate(int[] O) {\n\n\t\t// Forward Recursion with Scaling\n\n\t\tint T = O.length;\n\t\tdouble[] c = allocateVector(T);\n\t\tdouble[] alpha_hat_t = allocateVector(N);\n\t\tdouble[] alpha_hat_t_plus_1 = allocateVector(N);\n\t\tdouble[] temp_alpha = null;\n\t\tdouble log_likelihood = 0;\n\n\t\tfor (int t = 0; t < T; t++) {\n\t\t\tif (t == 0) {\n\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\talpha_hat_t[i] = pi[i] * B[i][O[0]];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tclearVector(alpha_hat_t_plus_1);\n\t\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\talpha_hat_t_plus_1[j] += alpha_hat_t[i] * A[i][j] * B[j][O[t]];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp_alpha = alpha_hat_t;\n\t\t\t\talpha_hat_t = alpha_hat_t_plus_1;\n\t\t\t\talpha_hat_t_plus_1 = temp_alpha;\n\t\t\t}\n\t\t\tc[t] = 1.0 / sum(alpha_hat_t);\n\t\t\ttimesAssign(alpha_hat_t, c[t]);\n\t\t\tlog_likelihood -= Math.log(c[t]);\n\t\t}\n\n\t\treturn Math.exp(log_likelihood);\n\t}", "protected void virtual_n_squared() {\n\t\tint ns_i, ns_j, di, edge;\n\t\tint[] num_inters = new int[2];\n\t\t// NOTE: These were long-double, which is not accessible in java.\n\t\t// These may not have been doing anything on a given platform anyway.\n\t\tdouble eonn,ijsepsqrd, ije6, ije12, newe6, newe12;\n\t\tdouble denn, nnprb, ijlatsepsqrd, dl[] = new double[3], dp[] = new double[3], gstot;\n\t\tdouble truncEtot, fullEtot, dennOLD;\n\t\t// ANJ End of long-doubles.\n\t\tdouble max_circ_trunc2;\n\t\tdouble ijunscaledsepsqrd, unscaled_boxsqrd = 0.0;\n\t\t\n\t\t// Using a spherical truncation as big as the cell:\n\t\t// It implements a _fixed_length_ cut-off, and so the unscaled cell is used later:\n\t\tmax_circ_trunc2 = Math.pow((double)lsize[0][2]*0.5*(Math.sqrt(2.0/3.0)),2.0);\n\t\t\n\t\t// count the number of interactions included:\n\t\tnum_inters[0] = 0;\n\t\tnum_inters[1] = 0;\n\t\t\n\t\tnewe6 = 0.0; newe12 = 0.0; gstot = 0.0;\n\t\ttruncEtot = 0.0; fullEtot = 0.0;\n\t\tfor( ns_i = 0; ns_i < n; ns_i++ ) {\n\t\t\tfor( ns_j = ns_i; ns_j < n; ns_j++ ) {\n\t\t\t\tif( ns_i != ns_j) {\n\t\t\t\t\t\n\t\t\t\t\t// Calc relative lattice position:\n\t\t\t\t\tdl[0] = latt[c_lat][ns_j].x - latt[c_lat][ns_i].x;\n\t\t\t\t\tdl[1] = latt[c_lat][ns_j].y - latt[c_lat][ns_i].y;\n\t\t\t\t\tdl[2] = latt[c_lat][ns_j].z - latt[c_lat][ns_i].z;\n\t\t\t\t\t\n\t\t\t\t\t// Calc relative particle position:\n\t\t\t\t\tdp[0]=(latt[c_lat][ns_j].x+disp[ns_j].x)-(latt[c_lat][ns_i].x+disp[ns_i].x);\n\t\t\t\t\tdp[1]=(latt[c_lat][ns_j].y+disp[ns_j].y)-(latt[c_lat][ns_i].y+disp[ns_i].y);\n\t\t\t\t\tdp[2]=(latt[c_lat][ns_j].z+disp[ns_j].z)-(latt[c_lat][ns_i].z+disp[ns_i].z);\n\t\t\t\t\t\n\t\t\t\t\t// Shift particle to nearest image of the LATTICE SITE!\n\t\t\t\t\t// ...while also building up the square of the latt and particle displmt.\n\t\t\t\t\tijsepsqrd = 0.0; ijlatsepsqrd = 0.0;\n\t\t\t\t\tijunscaledsepsqrd = 0.0;\n\t\t\t\t\tedge = 0;\n\t\t\t\t\tfor( di = 0; di < 3; di++ ) {\n\t\t\t\t\t\tif( dl[di] < -0.5-NN_INC_TOL ) {\n\t\t\t\t\t\t\tdl[di] += 1.0;\n\t\t\t\t\t\t\tdp[di] += 1.0;\n\t\t\t\t\t\t} else if( dl[di] > 0.5-NN_INC_TOL ) {\n\t\t\t\t\t\t\tdl[di] -= 1.0;\n\t\t\t\t\t\t\tdp[di] -= 1.0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tijsepsqrd += dp[di]*dp[di]*box2[c_lat][di];\n\t\t\t\t\t\tijlatsepsqrd += dl[di]*dl[di]*box2[c_lat][di];\n\t\t\t\t\t\tif( di == 0 ) unscaled_boxsqrd = init_boxes[c_lat].x*init_boxes[c_lat].x;\n\t\t\t\t\t\tif( di == 1 ) unscaled_boxsqrd = init_boxes[c_lat].y*init_boxes[c_lat].y;\n\t\t\t\t\t\tif( di == 2 ) unscaled_boxsqrd = init_boxes[c_lat].z*init_boxes[c_lat].z;\n\t\t\t\t\t\tijunscaledsepsqrd += dl[di]*dl[di]*unscaled_boxsqrd;\n\t\t\t\t\t\tif( Math.abs(Math.abs(dl[di])-0.5) < NN_INC_TOL ) {\n\t\t\t\t\t\t\tedge = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif( edge == 0 ) {\n\t\t\t\t\t\t// particle-particle interaction:\n\t\t\t\t\t\tije6 = ij_inter_pow(ijsepsqrd,3.0); ije12 = ij_inter_pow(ijsepsqrd,6.0);\n\t\t\t\t\t\tnewe6 += ije6; newe12 += ije12;\n\t\t\t\t\t\t//System.out.printf(\"ES %i %i %g %g %g %g\\n\",ns_i,ns_j,sqrt(ijsepsqrd),ije6,ije12,lj_eta*(ije12-ije6));\n\t\t\t\t\t\tif( ijunscaledsepsqrd < max_circ_trunc2 ) {\n\t\t\t\t\t\t\tfullEtot += lj_eta*(ije12 - ije6);\n\t\t\t\t\t\t\tnum_inters[0]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif( ijunscaledsepsqrd < max_dr2 ) {\n\t\t\t\t\t\t\ttruncEtot += lj_eta*(ije12 - ije6);\n\t\t\t\t\t\t\tnum_inters[1]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// site-site interaction:\n\t\t\t\t\t\tijsepsqrd = ijlatsepsqrd;\n\t\t\t\t\t\tije6 = ij_inter_pow(ijsepsqrd,3.0); ije12 = ij_inter_pow(ijsepsqrd,6.0);\n\t\t\t\t\t\t//System.out.printf(\"GS %i %i %g %g %g %g\\n\",ns_i,ns_j,sqrt(ijsepsqrd),ije6,ije12,lj_eta*(ije12-ije6));\n\t\t\t\t\t\tnewe6 -= ije6; newe12 -= ije12;\n\t\t\t\t\t\tif( ijunscaledsepsqrd < max_circ_trunc2 ) fullEtot -= lj_eta*(ije12 - ije6);\n\t\t\t\t\t\tif( ijunscaledsepsqrd < max_dr2 ) truncEtot -= lj_eta*(ije12 - ije6);\n\t\t\t\t\t\t\n\t\t\t\t\t\tgstot += 4.0*(ije12-ije6);\n\t\t\t\t\t\t//System.out.printf(\"TOT %i,%i %e %e %e\\n\",ns_i,ns_j,newe6,newe12,newe12-newe6);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\teonn = lj_eta*(newe12 - newe6) + EN_SHIFT;\n//\t\tdennOLD = (eonn - calc_e_from_scratch(c_lat) );\n\t\tdennOLD = (eonn - truncEtot);\n\t\tdenn = fullEtot - truncEtot;\n\t\tnnprb = Math.exp(-denn);\n\t\tSystem.out.println(\" NN2 \"+dennOLD+\" \"+denn+\" \"+nnprb+\" \"+truncEtot+\" \"+fullEtot);\n\t\tif( !init_nncalc ) {\n\t\t\tSystem.out.println(\" NNTEST \"+Math.sqrt(max_circ_trunc2)+\" \"+ \n\t\t\t\t\t2.0*num_inters[0]/216.0+\" \"+ 2.0*num_inters[1]/216.0);\n\t\t\tinit_nncalc = true;\n\t\t}\n\t\treturn;\n\t}", "public double calculatePrice(Model model)\n\t{\n\t\t//sum each of the price components price value\n\t\tString finalprice = \"\";\n\t\tdouble pc_price = -1, lower_limit = -1, upper_limit = -1, function_price = -1,finalvalue=0;\n\t\tfor(PriceComponent pc : this.priceComponents)\n\t\t{\n\t\t\tpc_price = -1; lower_limit = -1; upper_limit = -1;function_price = -1;\n\t\t\t//get the variables and define their value\n\t\t\tif(pc.getPriceFunction() != null)\n\t\t\t{\n\t\t\t\tif (pc.getPriceFunction().getSPARQLFunction() != null) {\n\t\t\t\t\tcom.hp.hpl.jena.query.Query q = ARQFactory.get().createQuery(pc.getPriceFunction().getSPARQLFunction());\n\t\t\t\t\tQueryExecution qexecc = ARQFactory.get().createQueryExecution(q, model);\t\n\t\t\t\t\t\n\t\t\t\t\tResultSet rsc = qexecc.execSelect();\n//\t\t\t\t\tSystem.out.println(q.toString());\n\t\t\t\t\tfunction_price = rsc.nextSolution().getLiteral(\"result\").getDouble();// final result is store in the ?result variable of the query\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pc.getComponentCap() != null) {\n\t\t\t\tupper_limit = pc.getComponentCap().getValue();\n\t\t\t}\n\n\t\t\tif (pc.getComponentFloor() != null) {\n\t\t\t\tlower_limit =pc.getComponentFloor().getValue();\n\t\t\t}\n\n\t\t\tif (pc.getPrice() != null) {\n\t\t\t\tpc_price = pc.getPrice().getValue();\n\t\t\t}\n\t\t\t\n\t\t\tif(function_price >=0)\n\t\t\t{\n\t\t\t\tif(function_price > upper_limit && upper_limit >= 0)\n\t\t\t\t\tfunction_price = upper_limit;\n\t\t\t\telse if(function_price < lower_limit && lower_limit >=0)\n\t\t\t\t\tfunction_price = lower_limit;\n\t\t\t}\n\t\t\t\n\t\t\tif(pc_price >= 0)\n\t\t\t{\n\t\t\t\tif(pc_price > upper_limit && upper_limit >=0)\n\t\t\t\t\tpc_price = upper_limit;\n\t\t\t\telse if(pc_price < lower_limit && lower_limit >= 0)\n\t\t\t\t\tpc_price = lower_limit;\n\t\t\t}\n\t\t\t\n\t\t\tif(pc.getPrice() != null && pc.getPriceFunction() != null)\n\t\t\t\tSystem.out.println(\"Dynamic and static price? offer->\"+this.name+\",pc->\"+pc.getName() + \"price ->\"+pc_price);//throw expection?\n\t\t\t\n\t\t\t\n\t\t\tif(pc.isDeduction())\n\t\t\t{\n\t\t\t\tif(function_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" - \" +function_price;\n\t\t\t\t\tfinalvalue-=function_price;\n\t\t\t\t}\n\t\t\t\tif(pc_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" - \" +pc_price;\n\t\t\t\t\tfinalvalue-=pc_price;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(function_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" + \" +function_price;\n\t\t\t\t\tfinalvalue+=function_price;\n\t\t\t\t}\n\t\t\t\tif(pc_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" + \" +pc_price;\n\t\t\t\t\tfinalvalue+=pc_price;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//conditions to verify that the final price is inside the interval defined by the lower and upper limit, in case these exist\n\t\tif(this.getPriceCap() != null)\n\t\t{\n\t\t\tif(this.getPriceCap().getValue() >= 0 && finalvalue < this.getPriceCap().getValue())\n\t\t\t\tfinalvalue = this.getPriceCap().getValue();\n\t\t}\n\t\tif(this.getPriceFloor() != null)\n\t\t{\n\t\t\tif(this.getPriceFloor().getValue() >= 0 && finalvalue > this.getPriceFloor().getValue())\n\t\t\t\tfinalvalue = this.getPriceFloor().getValue();\n\t\t}\n\t\t\t\t\n\t\treturn finalvalue;\n\t}", "private static double [][] exe_helper (double [] rf) throws Exception {\r\n\t\r\n\t\tint p1 = rf.length; // [nf,p1]=size(rf);\r\n\t\tint p0 = p1-1;\r\n\t\tdouble [] rr = null;\r\n\t\tdouble [] ar = null;\r\n\t\t\r\n\t\tif (p0!=0)\r\n\t\t{\r\n\t\t\tdouble [] a = new double [] {rf[1]}; //a = rf(:,2); // array eith a single elemtne, at the moment\r\n\r\n\t\t\t// rr=[ones(nf,1) -a zeros(nf,p0-1)];\r\n\t\t\trr = new double[p0+1];\r\n\t\t\tArrays.fill(rr, 0.0);\r\n\t\t\trr[0] = 1;\r\n\t\t\trr[1] = -a[0];\r\n\r\n\t\t\t// e = (a.^2-1);\r\n\t\t\tdouble e = a[0]*a[0]-1;\r\n\r\n\t\t\tfor (int n = 2; n<=p0; n++) // for n = 2:p0\r\n\t\t\t{\r\n\t\t\t\tdouble k = rf[n]; // k=rf(:,n+1); // It s a column vector\r\n\r\n\t\t\t\t// rr(:,n+1) =k.*e - sum(rr(:,n:-1:2).*a,2);\r\n\t\t\t\trr[n] = k*e - MyMath.sum(MyMath.arrayTimes(MyMath.select(rr, n-1, 1, -1), a));\r\n\r\n\t\t\t\t// a = [a+k(:,ones(1,n-1)).*a(:,n-1:-1:1) k];\r\n\t\t\t\tdouble [] aa = new double[a.length +1];\r\n\t\t\t\tfor (int i=0; i<a.length; i++)\r\n\t\t\t\t\taa[i] = a[i] + k*a[n-2-i];\r\n\t\t\t\taa[aa.length-1] = k;\r\n\t\t\t\ta = aa;\r\n\r\n\t\t\t\t// e = e.*(1-k.^2);\r\n\t\t\t\te *= (1-k*k);\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\t// ar = [ones(nf,1) a];\r\n\t\t\tar = new double [1+a.length];\r\n\t\t\tar[0] = 1;\r\n\t\t\tSystem.arraycopy(a, 0, ar, 1, a.length);\r\n\t\t\t\r\n\t\t\tdouble r0 = 1.0/MyMath.sum(MyMath.arrayTimes(rr, ar)); // r0=sum(rr.*ar,2).^(-1);\r\n\t\t\t\r\n\t\t\tMyMath.timesSelf(rr, r0); // rr=rr.*r0(:,ones(1,p1));\r\n\t\t\t\r\n\t\t\t// if nargin>1 && ~isempty(p)\r\n\t\t\t// if p<p0\r\n\t\t\t// rr(:,p+2:p1)=[];\r\n\t\t\t// else\r\n\t\t\t//\r\n\t\t\t// rr=[rr zeros(nf,p-p0)];\r\n\t\t\t// af=-ar(:,p1:-1:2);\r\n\t\t\t// for i=p0+1:p\r\n\t\t\t// rr(:,i+1)=sum(af.*rr(:,i-p0+1:i),2);\r\n\t\t\t// end\r\n\t\t\t// end\r\n\t\t\t// end\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\trr = new double [] {1.0}; // rr=ones(nf,1);\r\n\t\t\tar = new double [] {1.0}; // ar=rr;\r\n\t\t}\r\n\r\n\t\treturn new double [][] {rr, ar};\r\n\t}", "public double getSol() {\n this.tanSolve();\n return this.x;\n }", "public static double computePolynomial(double x) {\r\n return (3.0 - x) * (3.0 - x) + 4.0 * (7.0 + x) - 9.0;\r\n }", "@Override\n\t\tpublic void afectarPorPantano(double coeficiente) {\n\t\t}", "public static void model1() {\n try {\n IloCplex cplex = new IloCplex();\n \n //variables\n IloNumVar x = cplex.numVar(0, Double.MAX_VALUE, \"x\"); //x >= 0\n IloNumVar y = cplex.numVar(0, Double.MAX_VALUE, \"y\"); //y >= 0\n \n //expressions\n IloLinearNumExpr objective = cplex.linearNumExpr();\n objective.addTerm(0.12, x);\n objective.addTerm(0.15, y);\n \n //define objective\n cplex.addMinimize(objective);\n \n //define constraints\n cplex.addGe(cplex.sum(cplex.prod(60, x), cplex.prod(60, y)), 300);\n cplex.addGe(cplex.sum(cplex.prod(12, x), cplex.prod(6, y)), 36);\n cplex.addGe(cplex.sum(cplex.prod(10, x), cplex.prod(30, y)), 90);\n \n //solve\n if (cplex.solve()) {\n System.out.println(\"Obj = \" + cplex.getObjValue());\n System.out.println(\"Obj = \" + cplex.getValue(objective));\n System.out.println(\"x = \" + cplex.getValue(x));\n System.out.println(\"y = \" + cplex.getValue(y));\n } else {\n System.out.println(\"Solution not found.\");\n }\n } catch (IloException ex) {\n ex.printStackTrace();\n }\n }", "private Line linearRegression(ArrayList<Point> points) {\n double sumx = 0.0, sumz = 0.0, sumx2 = 0.0;\n\n for (int i = 0; i < points.size(); i++) {\n Point curPoint = points.get(i);\n sumx += curPoint.x;\n sumz += curPoint.z;\n sumx2 += curPoint.x*curPoint.x;\n }\n\n double xbar = sumx/((double) points.size());\n double zbar = sumz/((double) points.size());\n\n double xxbar = 0.0, xzbar = 0.0;\n\n for (int i = 0; i < points.size(); i++) {\n Point curPoint = points.get(i);\n xxbar += (curPoint.x - xbar) * (curPoint.x - xbar);\n xzbar += (curPoint.x - xbar) * (curPoint.z - zbar);\n }\n\n double slope = xzbar / xxbar;\n double intercept = zbar - slope * xbar;\n\n return new Line(slope, intercept);\n }", "public static long optimalPolynomial(int x, int n)\r\n\t{\r\n\t\tlong result = 0;\r\n\t\tfor (int j = 1; j <= n; j++)\r\n\t\t{\r\n\t\t\tlong current = u(j);\r\n\r\n\t\t\t// perform the multiplications first to avoid any issues with\r\n\t\t\t// rounding.\r\n\t\t\tfor (int k = 1; k <= n; k++)\r\n\t\t\t{\r\n\t\t\t\tif (j == k)\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tcurrent *= (x - k);\r\n\t\t\t}\r\n\t\t\tfor (int k = 1; k <= n; k++)\r\n\t\t\t{\r\n\t\t\t\tif (j == k)\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tcurrent /= (j - k);\r\n\t\t\t}\r\n\t\t\tresult += current;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "public CubicFunction(double[] xx, double[] yy) {\n\n super(xx, yy);\n\n if (xx != null && yy != null && xx.length == yy.length && xx.length > 1) {\n\n final int n = xx.length;\n double[] d = new double[n - 1];\n double[] m = new double[n];\n\n /* Compute slopes of secant lines between successive points. */\n for (int i = 0; i < n - 1; i++) {\n double h = xx[i + 1] - xx[i];\n if (h == 0f) {\n /** For readability only: x[i + 1] and x[i] are never equal */\n }\n d[i] = (yy[i + 1] - yy[i]) / h;\n }\n\n /* Initialize the tangents as the average of the secants. */\n m[0] = d[0];\n for (int i = 1; i < n - 1; i++) {\n m[i] = (d[i - 1] + d[i]) * 0.5f;\n }\n m[n - 1] = d[n - 2];\n\n /* Update the tangents */\n for (int i = 0; i < n - 1; i++) {\n if (d[i] == 0f) { // successive Y values are equal\n m[i] = 0f;\n m[i + 1] = 0f;\n } else {\n double a = m[i] / d[i];\n double b = m[i + 1] / d[i];\n\n double h = Math.hypot(a, b);\n if (h > 9f) {\n double t = 3f / h;\n m[i] = t * a * d[i];\n m[i + 1] = t * b * d[i];\n }\n }\n }\n\n this.mm = m;\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\tint N= Integer.parseInt(st.nextToken());\n\t\tint T= Integer.parseInt(st.nextToken());\n\t\t\n\t\t//for each N, three possible problem sets (P, A, G)\n\t\t//and P (prep time: min), V (value)\n\t\t//P <= A <= G\n\t\t\n\t\t//given limit T\n\t\t//find max profit\n\t\tint[][] v = new int[N+1][3+1];\n\t\tint[][] w = new int[N+1][3+1];\n\t\t\n\t\t//one \n\t\t\n\t\tfor (int i = 1; i <= N; i++) {\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\tfor (int j = 1; j <= 3; j++) {\n\t\t\t\tw[i][j] = Integer.parseInt(st.nextToken());\n\t\t\t\tv[i][j] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t}\n//\t\tfor (int i = 1; i <= N; i++) {\n//\t\t\tfor (int j = 1; j <= 3; j++) {\n//\t\t\t\tSystem.out.println(w[i][j] + \" \"+ v[i][j]);\n//\t\t\t}\n//\t\t}\n\t\tint[][] dp = new int[2][T+1];\n\t\t//where k looks at the kth row of the values/weight array\n\t\tfor (int k = 1; k <= N; k++) {\n\t\t\tfor (int x = 0; x <= T; x++) {\n\t\t\t\t//going through each weight and value\n\t\t\t\tboolean ran = false;\n\t\t\t\tfor (int a = 1; a <= 3; a++) {\t\t\t\t\t\n\t\t\t\t\tif (w[k][a] > x) {\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\tran = true;\n\t\t\t\t\t\tdp[1][x] = Math.max(Math.max(dp[0][x],dp[0][x-w[k][a]] + v[k][a]),dp[1][x]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!ran) {\n\t\t\t\t\tdp[1][x] = dp[0][x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tdp[0] = dp[1].clone();\n//\t\t\tfor (int[] row: dp) {\n//\t\t\t\tfor (int m: row) {\n//\t\t\t\t\tSystem.out.print(m + \" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n\t\t}\n\t\t\n//\t\tfor (int[] row: dp) {\n//\t\t\tfor (int m: row) {\n//\t\t\t\tSystem.out.print(m + \" \");\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\t\tSystem.out.println(dp[1][T]);\n\t}", "double calculateSomaAndAxon(List<Double> weights, ActivationFunction activationFunction);" ]
[ "0.6468381", "0.64081734", "0.61720073", "0.60664195", "0.5974654", "0.5724911", "0.5696165", "0.5662845", "0.56615657", "0.56452274", "0.56017584", "0.55965304", "0.55788714", "0.5574238", "0.55522794", "0.55213976", "0.55124885", "0.5511449", "0.5511262", "0.54905194", "0.5485805", "0.5464332", "0.5455401", "0.5454124", "0.54486877", "0.54363304", "0.54096997", "0.54096675", "0.5405445", "0.5392143", "0.53893226", "0.5389301", "0.5389223", "0.5380846", "0.5368156", "0.5363175", "0.53258955", "0.5324779", "0.5318597", "0.5306984", "0.5304248", "0.52921164", "0.5283046", "0.5265073", "0.52568454", "0.52377003", "0.5228538", "0.5221185", "0.5216037", "0.5215553", "0.5200311", "0.5185029", "0.5184118", "0.51763916", "0.51746285", "0.5173248", "0.5167201", "0.5148343", "0.51464707", "0.5135496", "0.5125128", "0.51164097", "0.51045465", "0.5100395", "0.5096468", "0.5087575", "0.50798154", "0.50779504", "0.5076438", "0.50760406", "0.5075483", "0.50676906", "0.5067135", "0.50604874", "0.5049303", "0.5043212", "0.5040537", "0.5039916", "0.5039723", "0.5036218", "0.5034359", "0.50332975", "0.5031439", "0.503017", "0.50297666", "0.5028885", "0.50242454", "0.5018018", "0.50175345", "0.50135624", "0.49860683", "0.49805298", "0.49728778", "0.49725962", "0.49708351", "0.4969171", "0.49689165", "0.4960384", "0.49561015", "0.49546286", "0.49527046" ]
0.0
-1
Created by wangshizhan on 16/10/22.
public interface APIConstant { interface URL{ String BAIDU_WEATHER_URL = "http://api.map.baidu.com/telematics/v3/weather?location=杭州&output=json&ak=FkPhtMBK0HTIQNh7gG4cNUttSTyr0nzo"; String BAIDU_WEATHER_BASE_URL = "http://api.map.baidu.com/"; String AK = "FkPhtMBK0HTIQNh7gG4cNUttSTyr0nzo"; String OUTPUT = "json"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\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}", "@Override\n\tpublic void anular() {\n\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 gravarBd() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "private void init() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\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}", "@Override\n public void init() {\n }", "@Override\n\tpublic void nghe() {\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}", "public final void mo51373a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo38117a() {\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\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\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}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo4359a() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void init() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private void init() {\n\n\n\n }", "@Override\r\n\tpublic void init() {}", "private void kk12() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\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 }", "private void strin() {\n\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void init() {\n\n super.init();\n\n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo6081a() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}" ]
[ "0.6279571", "0.62293994", "0.6134828", "0.61125314", "0.60974604", "0.60438573", "0.60438573", "0.59961134", "0.5993034", "0.5991026", "0.59526616", "0.5931812", "0.5931812", "0.5931812", "0.5931812", "0.5931812", "0.59286034", "0.5903477", "0.58899397", "0.5888625", "0.5864308", "0.5863887", "0.5860849", "0.58542734", "0.58516806", "0.58512884", "0.5849264", "0.58463454", "0.58336675", "0.5833318", "0.5833318", "0.5831786", "0.5831786", "0.58311087", "0.5828925", "0.58287257", "0.58287257", "0.58287257", "0.58229566", "0.5817446", "0.5817261", "0.5814345", "0.5809692", "0.5809692", "0.5806188", "0.5806188", "0.5806188", "0.5804524", "0.58042485", "0.58042485", "0.58042485", "0.5789056", "0.5786122", "0.57822627", "0.57544345", "0.5747392", "0.5747392", "0.5747392", "0.5747392", "0.5747392", "0.5747392", "0.5744249", "0.5742402", "0.5733531", "0.5726001", "0.5724645", "0.57165366", "0.57123244", "0.5696608", "0.5682559", "0.56803966", "0.5679415", "0.56759924", "0.56758666", "0.56727284", "0.56727284", "0.56727284", "0.56727284", "0.56727284", "0.56727284", "0.56727284", "0.56635034", "0.5646971", "0.5645455", "0.56409836", "0.56269604", "0.562165", "0.5612116", "0.5608602", "0.5599397", "0.55973035", "0.55942005", "0.55942005", "0.5586103", "0.55707777", "0.55651265", "0.55651265", "0.55611587", "0.5559557", "0.5556793", "0.5552131" ]
0.0
-1
TODO Autogenerated method stub
@Override protected String getVariableClassName() { return "variable"; }
{ "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
conjunto de numeros del 1 al 5
public static void main(String[] args) throws Exception { String patronA = "[0-5]"; // conjunto de letras de "a" a "c" String patronB = "[a-c]"; // conjunto de todas las letras minusculas String patronC = "[a-z]"; // conjunto de numeros String patronD = "[0-9]"; // ejemplo con tipo de dato string String textoAlfanumerico = "0123aaaa"; System.out.println("Texto alfanumerico:" + textoAlfanumerico); String replace1 = textoAlfanumerico.replaceAll(patronA, "X"); System.out.println("Reemplazo de numeros con X: " + replace1); String replace2 = textoAlfanumerico.replaceAll(patronB, "X"); System.out.println("Reemplazo de letras con X: " + replace2); //[0-5][a-c]; //String patronComplejo = patronA + patronB; //[a-c]*[0-5]* //String patronComplejo = patronA + "*" + patronB + "*"; //"[a-z]+" // + = una coincidencia // * = ninguna o muchas //String patronComplejo = "(" + patronA + patronC + ")+"; String patronComplejo = "(" + patronC + ")+"; String texto = "hola, aacc este bbcc es mi 55222aaa texto 2663aaaa blah blah"; System.out.println("patron complejo:" + patronComplejo); System.out.println(texto); Pattern pattern = Pattern.compile(patronComplejo); Matcher matcher = pattern.matcher(texto); // buscar ocurrencias while (matcher.find()) { System.out.println("Encontrado:" + matcher.group()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void number_invsert(){\n for(int i=7; i > 0 ; i--){\n for(int j =1;j<=i;j++){\n System.out.print(j);\n }\n System.out.println();\n } \n }", "public void multiplesOfFive()\n {\n int index = 10;\n int max = 95;\n\n while (index <= 95) {\n System.out.println(index);\n index += 5;\n }\n }", "public void oneToTwoFiftyFive() {\n for (int i = 1; i<=255; i++) {\n System.out.print(i + \"\\n\");\n }\n }", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"1..........Numeros del 1 al 15\");\r\n\t\tSystem.out.println(\"2..........Numeros del 20 al 2\");\r\n\t\tSystem.out.println(\"3..........Tabla del 5\");\r\n\t\tSystem.out.println(\"4..........Multiplos de 6 rango 1-100\");\r\n\t\tSystem.out.println(\"5..........Multiplos de 3 y 7 entre rango introducido\");\r\n\t\tSystem.out.println(\"6..........Rectángulo\");\r\n\t\tSystem.out.println(\"7..........Rectángulo hueco\");\r\n\t\tSystem.out.println(\"8..........Muestra los divisores\");\r\n\t\tSystem.out.println(\"9..........¿Es primo?\");\r\n\t\tSystem.out.println(\"10.........¿Cuantos primos hay entre dos numeros?\");\r\n\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tint opcion = scan.nextInt();\r\n\r\n\t\tswitch (opcion) {\r\n\t\tcase 1:\r\n\t\t\tfor (int i = 1; i <= 15; i++) {\r\n\t\t\t\tSystem.out.println(i);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 2:\r\n\t\t\tfor (int i = 20; i >= 2; i -= 2) {\r\n\t\t\t\tSystem.out.println(i);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 3:\r\n\t\t\tfor (int i = 1; i <= 10; i++) {\r\n\t\t\t\tint prod;\r\n\t\t\t\tprod = 5 * i;\r\n\t\t\t\tSystem.out.println(\"5 * \" + i + \" = \" + prod);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 4:\r\n\t\t\tfor (int i = 0; i <= 100; i++) {\r\n\t\t\t\tif (i % 6 == 0) {\r\n\t\t\t\t\tSystem.out.println(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 5:\r\n\t\t\tSystem.out.println(\"introduce un numero\");\r\n\t\t\tint usub = scan.nextInt();\r\n\t\t\tfor (int i = 1; i <= usub; i++) {\r\n\t\t\t\tif (i % 3 == 0 && i % 7 == 0) {\r\n\t\t\t\t\tSystem.out.println(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 6:\r\n\t\t\tSystem.out.println(\"escribe un numero\");\r\n\t\t\tint usubo = scan.nextInt();\r\n\t\t\tSystem.out.println(\"escribe otro numero\");\r\n\t\t\tint usuboc = scan.nextInt();\r\n\t\t\tfor (int i = 1; i <= usubo; i++) {\r\n\t\t\t\tfor (int j = 1; j <= usuboc; j++) {\r\n\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 7:\r\n\t\t\tSystem.out.println(\"escribe un numero\");\r\n\t\t\tint usubb = scan.nextInt();\r\n\t\t\tfor (int a = 1; a <= usubb; a++) {\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t\tint usu = usubb - 2;\r\n\t\t\tfor (int i = 1; i <= usu; i++) {\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\tfor (int j = 1; j <= usu; j++) {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\t\tfor (int b = 1; b <= usubb; b++) {\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t\tbreak;\r\n\r\n\t\tcase 8:\r\n\t\t\tSystem.out.println(\"introduce un numero\");\r\n\t\t\tint max = scan.nextInt();\r\n\t\t\tfor (int i = 1; i <= max; i++) {\r\n\t\t\t\tif (max % i == 0) {\r\n\t\t\t\t\tSystem.out.println(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 9:\r\n\t\t\tint cont = 0;\r\n\t\t\tSystem.out.println(\"introduce un numero\");\r\n\t\t\tint prim = scan.nextInt();\r\n\t\t\tfor (int i = 1; i <= prim; i++) {\r\n\t\t\t\tif (prim % i == 0) {\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (cont <= 2) {\r\n\t\t\t\tSystem.out.println(\"es primo\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"no es primo\");\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase 10:\r\n\r\n\t\t\tint inicio = scan.nextInt();\r\n\t\t\tint fin = scan.nextInt();\r\n\t\t\tint contb = 0;\r\n\t\t\tif (inicio == 1 || fin == 1) {\r\n\t\t\t\tSystem.out.println(\"Staaaaaph, el 1 da error!!\");\r\n\t\t\t} else {\r\n\t\t\t\tfor (int x = inicio; x <= fin; x++) {\r\n\t\t\t\t\tif (esPrimo(x)) {\r\n\t\t\t\t\t\tcontb++;\r\n\t\t\t\t\t\tSystem.out.print(x + \" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.print(\"en total hay \" + contb + \" numeros primos entre \" + inicio + \" y \" + fin);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase 11:\r\n\t\t\t\r\n\t System.out.println( \"Empezamos...\" );\r\n\t for (int i=1 ; i<=20 ; i++ ) {\r\n\t System.out.println( \"Comenzada la vuelta\" );\r\n\t System.out.println( i );\r\n\t if (i==15) \r\n\t continue;\r\n\t System.out.println( \"Terminada esta vuelta\" );\r\n\t }\r\n\t System.out.println( \"Terminado\" );\r\n\t break;\r\n\t\tcase 12:\r\n\t\t\t\r\n\t System.out.println( \"Empezamos...\" );\r\n\t for (int i=1 ; i<=20 ; i++ ) {\r\n\t System.out.println( \"Comenzada la vuelta\" );\r\n\t System.out.println( i );\r\n\t if (i==11) \r\n\t break;\r\n\t System.out.println( \"Terminada esta vuelta\" );\r\n\t }\r\n\t System.out.println( \"Terminado\" );\r\n\t break;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"------------------------\");\n\t\tSystem.out.println(\" 5의 배수 출력 프로그램 v1.0\");\n\t\tSystem.out.println(\"------------------------\");\n\t\tfor (int n = 1;n < 99; n++) {\n\t\t\tif ((n + 1) % 5 == 0) {\n\t\t\t\tSystem.out.print((n+1) + \", \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(100);\n\t}", "public void mostrarTareasNumeradas(){\n int numeroPosicion = 1;\n for (String tarea : tareas){\n System.out.println(numeroPosicion + \". \" + tarea);\n numeroPosicion = numeroPosicion + 1;\n }\n }", "public static void main(String[] args) {\n\t\tint num=5;\r\n\t\tint c=num*2-1;//5\r\n\t\tfor(int j=0 ; j< c ; j++){//j: 0, 1, 2,3 4\r\n\t\t\t\r\n\t\t\tif(j<num) {///j: 0, 1, 2\r\n\t\t\t\t// 1 ,2,3 : 0+1, 1+1, 2+1\r\n\t\t\t\tfor(int i=0; i<j+1 ; i++) {\r\n\t\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t\t}\r\n\t\t\t}else {//j: 3,4\r\n\t\t\t\t//2,1 : 5-3, 5-4\r\n\t\t\t\tfor(int i=0; i<c-j ; i++) {\r\n\t\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\nScanner Sc= new Scanner(System.in);\nSystem.out.printf(\"Nhap vao so N = \");\nint N = Sc.nextInt();\nint S=0,i;\nfor (i=1;i<=N;i++)\n S=S+(10*i+i);\nSystem.out.printf(\"\\n%d\",S);\n\n\t}", "private static void addAllMultiplesOfFive()\n\t{\n\t\tfor (int i = 0; i <= MAX_NUMBER; i += 5)\n\t\t{\n\t\t\tboolean isDivisibleByThree = i % 3 == 0;\n\t\t\tif (!isDivisibleByThree)\n\t\t\t{\n\t\t\t\tanswerSum += i;\n\t\t\t}\n\t\t}\n\t}", "private static int trailzerofun(int num) {\n\t\tint count=0;\n\t\tif(num<0)\n\t\t\treturn -1;\n\t\tfor(int i=5;num/i>=1;i*=5)\n\t\t{\n\t\t\tcount+=num/i;\n\t\t}\n\t\treturn count;\n\t}", "public String getNormalizedN(int i) {\n\tint nb = getNb(i);\n\tif (nb == 1) return \"1\";\n\tint maxN = getMaxNb();\n\tif (maxN <= 5) return Integer.toString(nb);\n\tmaxN--;\n\tnb--;\n\tif (maxN < 21) {\n\t\tif (4*nb <= maxN) return \"1\";\n\t\tif (3*nb <= maxN) return \"2\";\n\t\tif (2*nb <= maxN) return \"3\";\n\t\tif (3*nb <= 2*maxN) return \"4\";\n\t\treturn \"5\";\n\t} else if (maxN < 100) {\n\t\tif (10*nb <= maxN) return \"1\";\n\t\tif (5*nb <= maxN) return \"2\";\n\t\tif (4*nb <= maxN) return \"3\";\n\t\tif (3*nb <= maxN) return \"4\";\n\t\tif (2*nb <= 1*maxN) return \"5\";\n\t\tif (3*nb <= 2*maxN) return \"6\";\n\t\treturn \"7\";\n\t} else {\n\t\tif (20*nb <= maxN) return \"1\";\n\t\tif (10*nb <= maxN) return \"2\";\n\t\tif (5*nb <= maxN) return \"3\";\n\t\tif (4*nb <= maxN) return \"4\";\n\t\tif (3*nb <= 1*maxN) return \"5\";\n\t\tif (2*nb <= 1*maxN) return \"6\";\n\t\treturn \"7\";\n\t}\n}", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int[] numbers = new int [5];\n\n for (int i = 0; i < 5; i ++) {\n System.out.print(i+1 + \". \");\n numbers[i]=input.nextInt();\n }\n for(int num : numbers){\n int rootNumber = num / num;\n System.out.println(rootNumber + \"\\t\");\n }\n }", "private static List<Integer> nextInt() {\n\t\tRandom rnd = new Random();\n\t\tList<Integer> l = new ArrayList<Integer>();\n\t\tfor (;;) {\n\t\t\tfinal int r = rnd.nextInt(5);\n\t\t\tif (!l.contains(r)) {\n\t\t\t\tl.add(r);\n\t\t\t}\n\t\t\tif (l.size() == 5)\n\t\t\t\treturn l;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tRandom random = new Random();\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n//\t\tSystem.out.print(n);\n\t\tint[] lotto = new int[6];\n\t\tString str = \"[\";\n\t\t\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tfor(int j=0; j<6; j++) {\n\t\t\t\tlotto[i] = random.nextInt(45)+1;\n\t\t\t\tif (j == 5) {\n\t\t\t\t\tstr += String.valueOf(lotto[i])+\"\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tstr += String.valueOf(lotto[i])+\", \";\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr += \"]\";\n\t\t\t\n\t\t\tSystem.out.println((i+1) + \"번째 : \" + str);\n\t\t\tstr = \"[\";\n\t\t}\n\t}", "private void printRandomNumbers() {\n\t\tdouble convAmt = (double)numberAmt/5;\n\t\tint amtCeiling = (int)Math.ceil(convAmt);\n\t\tint index = 0;\n\t\t\n\t\tfor(int i = 0; i < amtCeiling; i++) {\n\t\t\tfor(int j = 0; j < 5; j++) {\n\t\t\t\tSystem.out.print(\"\\t\" + randomNumbers.get(index));\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void qtadeDeNumeros(){\n for(int i = 0; i < 9; i++){\n qtadePorNum.add(i, new Pair(i+1, numeroDeElementos(i+1)));\n }\n }", "public static void main(String[] args) {\n\t\tint first;\n\t\tint second;\n\t\tfor (first=0; first <=5; first++) {\n\t\t\tfor (second=0; second<=5;second++) {\n\t\t\t\tSystem.out.printf(\"%d%d\\t\",first,second);//is there any kind of methode u can represent with 00\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}", "public static void pattern6(int input){\n\t\tint counter=1;\n\t\tfor(int i=1;i<=input;i++){\n\t\t\tfor(int j=counter;j<=(i*(i+1)/2);j++){\n\t\t\t\tSystem.out.print(counter++ + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static int[] generateSuperLottoNumbers() \n\t{\n\t\t// create an array that allocates only 6 integer slots.\n\t\tint[] ticketNumbers = new int[6];\n\t\t\n\t\t//generateSuperLottoNumbers() as an argument [1 pts]\n\t\t// Hint: numbers[i] = (int) (10 * Math.random()) + 1; // will assign your array element to a random number from 1 to 10\n\t\t// The first 5 numbers must be from the range 1 to 47 [1 pt]\n\t\t//we want to run the iteration 5 times so we use for loop knowing how many iterations are needed.\n\t\tfor (int i = 0; i < 5; i++) \n\t\t{\n\t\t\tticketNumbers[i] = (int) (47 * Math.random()) + 1; // random method in the Math class will only give number between 0 and 1 not including 1 (0-.99) \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// so we add plus 1 to avoid the error we have to account for 0 and 47.\n\t\t}\n\t\t\n\t\t// The 6th number (the MEGA) must be from 1 to 27. [1 pt]\n\t\tticketNumbers[5] = (int) (27 * Math.random()) + 1;\n\n\t\treturn ticketNumbers;\n\t}", "public void Series() {\n\t\tint n=8,i=1,k=2,count=0;\n\t\tSystem.out.print(n+\" \");\n\t\twhile (count<5) {\n\t\t\tn=n*i;//12\n\t\t\tn=n-k;//9\n\t\t\tSystem.out.print(n+\" \");//9\n\t\t\ti++;\n\t\t\tk++;\n\t\t\tcount++;\n\t\t}\n\t\t/*System.out.println(n);//8\n\t\tn=n*1;//8\n\t\tn=n-2;//6\n\t\t\n\t\tSystem.out.println(n);//6\n\t\tn=n*2;//12\n\t\tn=n-3;//9\n\t\tSystem.out.println(n);//9\n\t\tn=n*3;//27\n\t\tn=n-4;//23\n\t\tSystem.out.println(n);\n\t\tn=n*4;//12\n\t\tn=n-5;*/\n\t\t\n\t\t/*System.out.println(n);\n\t\tn=n*5;//12\n\t\tn=n-6;\n\t\tSystem.out.println(n);*/\n\t\t\n\t}", "public static void main(String[] args) {\n\n for( int x = 1 ; x <= 5 ; x++){\n System.out.print(x + \" \");\n }\n System.out.println();\n\n for( int x = 1 ; x <= 5 ; x++){\n System.out.print(x + \" \");\n }\n System.out.println();\n\n for( int x = 1 ; x <= 5 ; x++){\n System.out.print(x + \" \");\n }\n System.out.println();\n\n\n\n // count from 1 to 5\n // repeat this 3 times\n\n for( int i = 1 ; i <= 3 ; i++){// nested loop, write inside loop first , then\n // outside loop ,then put entire inside loop into outside loop\n System.out.println(\"ITERATION : \" +i);\n\n for( int x = 1 ; x <= 5 ; x++){ // this is inside loop print 1-5\n System.out.print(x + \" \");\n }\n System.out.println();\n }\n // count from 1 to 10-->> print only odd numbers\n // repeat this 4 times\n\n }", "private static void eval5(){\n for(int i = 0; i < 46; i++){\n for(int j = i + 1; j < 47; j++){\n for(int k = j + 1; k < 48; k++){\n for(int l = k + 1; l < 49; l++){\n for(int m = l + 1; m < 50; m++){\n Evaluator.evaluate(i, j, k, l, m);\n }\n }\n }\n }\n }\n }", "public static void pattern7(int input){\n\t\tfor(int i=1;i<=input;i++){\n\t\t\tfor(int j=1;j<=i;j++){\n\t\t\t\tSystem.out.print(j+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void generaNumeros() {\n\n\n int number =0;\n int numeroSeleccionado=gameMemoriaUno.getNumberaleatorio();\n //se agrega numero a las lista de numeros\n\n if(numeroSeleccionado == -1){\n llamaResultado(super.getActividad(), tFinal, tInicio, Num3_5_1Activity.class,gameMemoriaUno.getNumeros(),gameMemoriaUno.getAciertosTotales(),gameMemoriaUno.getFallosTotales(),gameMemoriaUno.getNumEcxluidosList(),gameMemoriaUno.getNumeroPregunta());\n\n }else {\n\n\n gameMemoriaUno.addNumerosSet(numeroSeleccionado);\n for (int i = 1; i < 6; i++) {\n //obtiene numeros del costalito menos el numero seleccionado\n number = gameMemoriaUno.getNumeroArreglo();\n //agrego numeros\n gameMemoriaUno.addNumerosSet(number);\n }\n\n Iterator<Integer> iter = gameMemoriaUno.getNumerosSet().iterator();\n\n int contadorNumeros=0;\n while (iter.hasNext()) {\n int valor=iter.next().intValue();\n lista.add(valor);\n if(gameMemoriaUno.getDificultad()==contadorNumeros){\n gameMemoriaUno.setNumerosElejidos(new int[valor]);\n }\n\n contadorNumeros+=1;\n }\n Collections.shuffle(lista, new Random());\n Collections.shuffle(lista, new Random());\n\n\n\n }\n\n\n }", "private static void jieCheng(int number){\n int result = 1;\n for (int i = 1; i < number; i++) {\n result = result * (i+1);\n }\n System.out.println(result);\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<Integer> list = new ArrayList<>();\n\t\tint n =5;\n\t\tfor (int i = 0; i <= n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tlist.add(a);\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i <list.size(); i++) {\n\t\t\tSystem.out.print(list.get(i)+\" \");\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = list.size()-1; i >=0; i--) {\n\t\t\tSystem.out.print(list.get(i)+\" \");\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(\"E__F___L\");\n\t\tfor(int val : list) {\n\t\t\tSystem.out.print(val+\" \");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tint somme=0;\n\t\tSystem.out.println(\"veuillez saisir une valeur\");\n\t\tScanner scanner = new Scanner(System.in) ;\n\n\t\t\tint nb = scanner.nextInt() ;\n\t\t\t\n\t\t\tfor (int i = 1; i <=nb; i++) {\n\t\t\t\tsomme=somme+i;\n\t\t\t}\n\t\t\tSystem.out.println(somme);\n\t}", "public static void pattern9(int input){\n\t\tfor(int i= 1;i <= input;i++){\n\t\t\tfor(int j=i;j<=input;j++){\n\t\t\t\tSystem.out.print(j+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t int m= 9, n= 1,x=0 ;\n\t\t \n\t\t while (m>n) {\n\t\t\t m--;\n\t\t\t n+=2;\n\t\t\t x+=m+n;\n\t\t\t \n\t\t\t \n\t\t\t \n\t\t\t \n\t\t }\n\t\t System.out.println(x);\n\t\t \n\t\t \n\t\t \n\t\t // a) 11\n\t \t// b) 13\n //c) 23\n //d) 36\n //e) 50\n\t\t\n\n\t}", "public static void main(String[] args) {\n\tScanner sc = new Scanner(System.in);\n\tSystem.out.println(\"Enter Any Number\");\n\tint n= sc.nextInt();\n\tsc.close();\n\t//to print table upto 10\n\tfor(int i=1;i<=10;i++) {\n\t\t//5*1=5\n\t\tSystem.out.println(n+\"*\"+i+\"=\"+(n*i));\n\t\t\n\t}\n}", "static int multiplesOf3And5(int n) {\n int response = 0;\n for (int i = 0; i < n; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n response += i;\n }\n }\n return response;\n }", "public static void main(String[] args) {\n List<Integer> res = sequentialDigits(744, 1928);\n }", "public int[] numbers();", "public static void main(String[] args) {\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tdouble dRND = Math.random();\n\t\t\tdouble dRND1 = dRND * 100; // 0부터 99까지\n\t\t\tdRND1 = dRND * 50; // 0부터 49.xx까지\n\t\t\tdRND1 = dRND * 30; // 0부터 29.xx까지\n\t\t\tint intRND = (int) dRND1; // 0부터 29까지\n\t\t\tintRND += 1; // 1부터 30까지\n\t\t\tintRND += 20; // 21부터 50까지\n\n\t\t\tint intStars = (int) (dRND * (10 - 5 + 1)) + 5; // 5부터 10까지\n\n\t\t\tintStars = (int) (dRND * (100 - 50 + 1)) + 50; // 50부터 100까지 숫자 만들어내기\n\t\t\tSystem.out.println(intStars);\n\n\t\t}\n\t}", "public static int getSumFrom1toX(int num ){\n int sum = 0;\n for (int x=1; x<=num; x++){\n sum+= x;\n }\n return sum;\n }", "public static void main(String[] args) {\n\t\tint num=5;\r\n\t\tint factNum = 1;\r\n\t\tfor (int i = 1; i <= num; i++) {\r\n\t\t\tfactNum=factNum*i;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(factNum);\r\n\t}", "public static void pattern10(int input){\n\t\tfor(int i= input;i >0;i--){\n\t\t\tfor(int j=i;j<=input;j++){\n\t\t\t\tSystem.out.print(j+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint n= 545;\r\n\t\tint sum=0;\r\n\t\twhile(n>0)\r\n\t\t{\r\n\t\t\tint reminder = n%10; // 5\r\n\t\t\tsum = sum+reminder;\r\n\t\t\tn= n/10;\r\n\t\t}\r\n\t\tSystem.out.println(\"sum of given numbers \" + sum);\r\n\r\n\t}", "public static void main(String[] args) {\n for (int i = 1; i <= 5; i++) {\n for (int j = 1; j <= 5; j++) {\n System.out.println(i + \" \" + j);\n }\n\n /*\n * I J\n * 1 1\n * 1 2\n * 1 3\n * 1 4\n * 1 5\n * 2 1\n * 2 2\n * 2 3\n * 2 4\n * 2 5\n * 3 1\n * --------\n * 5 1\n * 5 2\n * 5 3\n * 5 4\n * 5 5\n *\n *\n * */\n /*\n for(int i=1;i<=5;i++){\n }\n for i = 1\n ---------\n * i=1 , i = i+1 = 1 + 1 = 2\n * i=2 , = 2 + 1 = 3\n * i=3 , = 3 + 1 = 4\n * i=4,\n * */\n\n /*\n\n for i = 2\n ---------\n * i=2 , i = i+1 = 2 + 1 = 3\n * i=3 , = 3 + 1 = 4\n * i=4,\n * */\n /*int l;\n for ( l= 1;l <=10; l++){\n System.out.println(l);\n }*/\n\n /*int l =0;\n for ( ;; l++){\n System.out.println(l);\n }\n*/\n }\n }", "public static void sumNum() {\n\t\tint result = 0;\n\t\tfor(int i = 1; i<=112; i = i + 3) {\n\t\t\tresult = result + i;\t\n\t\t}\n\tSystem.out.println(\"Sum = \" + result);\n\t}", "private static void printNumber(){\r\n\t\tfor(int i = 1;i <= 10; i++)\r\n\t\t\tSystem.out.println(i);\r\n\t}", "@Override\r\n\tpublic int multiNums(int n1, int n2) {\n\t\treturn 0;\r\n\t}", "private static void imprimirNumeros(int... numeros) {\n for (int i = 0; i < numeros.length; i++) {\n System.out.println(\"elemento: \" + numeros[i]);\n }\n }", "public String getNumbers(){\n StringBuilder htmlNumbers = new StringBuilder(\"<h2>\");\n for (int i = 1; i<=10; i++){\n htmlNumbers.append(String.valueOf(i) + \".<br>\");\n }\n htmlNumbers.append(\"</h2>\");\n return htmlNumbers.toString();\n }", "private static int getChange(int n) {\n \t\n int count =0, tempCount = 0;\n while(n!=0){\n \t\n \tif(n >= 10){\n \t\ttempCount = n/10;\n \t\tn = n % 10;\n \t\tcount = count + tempCount;\n \t\tif(n==0)\n \t\t\tbreak;\n \t}\n \tif( n >= 5 && n < 10){\n \t\ttempCount = n/5;\n \t\tn = n % 5;\n \t\tcount = count + tempCount;\n \t\tif(n == 0)\n \t\t\tbreak;\n \t}\n \tif(n >= 1 && n < 5){\n \t\tcount = count + n;\n break;\n \t}\n }\n return count;\n }", "public void startNumberMethod(int startNumber) {\n for (int i = startNumber; i <= 100; i++) {\n System.out.println(i);\n }\n }", "public static void main(String[] args) {\n\n System.out.println(\"Multiplacation table of 1 \");\n for (int base = 1; base <=12 ; base++) {\n\n // System.out.println(\"1 x 1 = \" + 1 * 1);\n System.out.println(\"1 x \" + base + \" = \" + 1 * base);\n }\n\n System.out.println(\"Multiplacation table of 2 \");\n for (int base = 1; base <=12 ; base++) {\n\n System.out.println(\"2 x \" + base + \" = \" + 2 * base);\n }\n\n\n System.out.println(\"Multiplacation table of 3 \");\n for (int base = 1; base <=12 ; base++) {\n\n System.out.println(\"3 x \" + base + \" = \" + 3 * base);\n }\n System.out.println(\"--------\");\n\n /*\n *plain english logic\n * write a code to generate multiplication table of 1 number\n *\n */\n\n\n\n\n\n\n\n\n // this loop is for iterating from 1 to 10 get multiplaction table\n for (int timeTable = 1; timeTable <=10 ; timeTable++) {\n // i want to know which number i want to get the multiplacation table\n System.out.println(\"Multiplacation table of \" + timeTable);\n // this loop will genareate multiplication table for one number\n for (int base = 1; base <=12 ; base++) {\n System.out.println( timeTable +\" x \" + base + \" = \" + timeTable * base);\n }\n\n\n\n }\n\n\n\n\n\n\n }", "public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n\t\tint n = new.nextInt();\n\t\tint v1=1,v2=0,v3=0;\n\t\tfor(int a=n;a>=1;a--){\n\t\t\tv3=v2+v1;\n\t\t\tSystem.out.print(v3+\"\\t\");\n\t\t\tv1=v2;\n\t\t\tv2=v3;\n\t\t}\n\t}", "public void fillNumbers() {\n this.numbers = new String[8];\n this.numbers[0] = \"seven\";\n this.numbers[1] = \"eight\";\n this.numbers[2] = \"nine\";\n this.numbers[3] = \"ten\";\n this.numbers[4] = \"jack\";\n this.numbers[5] = \"queen\";\n this.numbers[6] = \"king\";\n this.numbers[7] = \"ass\";\n }", "public static void main(String[] args) {\n\t\t final int NUMERO=1;\n\t\t\n\t\tfor(int i=1;i<=10;i++) {\n\t\t\tSystem.out.println(NUMERO+\"x\"+i+\"=\"+NUMERO*i);\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t// create an array of 5th powers\n\t\tint[] fifthPowers = new int[10];\n\t\tfor (int i=0; i<10; i++) {\n\t\t\tfifthPowers[i] = i*i*i*i*i;\n\t\t}\n\t\t\n\t\tArrayList<Integer> winners = new ArrayList<Integer>();\n\t\tint sumOfPowers, number, total = 0;\n\t\t\n\t\tfor (int i=0; i<10; i++) {\n\t\t\tfor (int j=0; j<10; j++) {\n\t\t\t\tfor (int k=0; k<10; k++) {\n\t\t\t\t\tfor (int l=0; l<10; l++) {\n\t\t\t\t\t\tfor (int m=0; m<10; m++) {\n\t\t\t\t\t\t\tfor (int n=0; n<10; n++) {\n\t\t\t\t\t\t\t\tsumOfPowers = fifthPowers[i] + fifthPowers[j] + fifthPowers[k] + fifthPowers[l] + fifthPowers[m] + fifthPowers[n];\n\t\t\t\t\t\t\t\tnumber = (100000*i) + (10000*j) + (1000*k) + (100*l) + (10*m) + n;\n\t\t\t\t\t\t\t\tif (sumOfPowers == number) {\n\t\t\t\t\t\t\t\t\tif ((number != 0) && (number != 1)) {\n\t\t\t\t\t\t\t\t\t\twinners.add(number);\n\t\t\t\t\t\t\t\t\t\ttotal += number;\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}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Integer i : winners)\n\t\t\tSystem.out.println(i);\n\t\t\n\t\tSystem.out.println(\"The total is \" + total);\n\t}", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint len=in.nextInt();\n\t\tint a1=0;\n\t\tint a2=0;\n\t\tint a3=0;\n\t\tdouble a4=0;\n\t\tint a5=0;\n\t\tint count=0;\n\t\tint count2=0;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tint num=in.nextInt();\n\t\t\tint ca=num%5;\n\t\t\tswitch (ca) {\n\t\t\tcase 0:\n\t\t\t\tif (num%2==0) a1+=num;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tif (count%2==0) a2+=num;\n\t\t\t\telse a2-=num;\n\t\t\t\tcount++;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\ta3++;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tcount2++;\n\t\t\t\ta4+=num;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tif(num>a5) a5=num;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tin.close();\n\t\tSystem.out.print(a1==0?\"N\":a1);\n\t\tSystem.out.print(\" \"+String.valueOf(count==0?\"N\":a2));\n\t\tSystem.out.print(\" \"+String.valueOf(a3==0?\"N\":a3));\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.print(a4==0?\"N\":String.format(\"%.1f\", a4/count2));\n\t\tSystem.out.print(\" \"+String.valueOf(a5==0?\"N\":a5));\n\t}", "public static void main(String[] args) {\n\t\tint N = 234;\n\t\tint times=N%10;\n\t\tN/=10;\n\t\tint temp=N/10,sum=0;\n\t\twhile(times>0)\n\t\t{\n\t\t\tint rem=N%10;\n\t\t\tsum=temp+rem;\n\t\t\ttemp=sum;\n\t\t\ttimes--;\n\t\t}\n\t\tSystem.out.println(temp);\n\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint [] vetorA = new int [10];\n\t\t\n\t\tint i = 0;\n\t\t\n\t\tfor (i=0; i<vetorA.length; i++) {\n\t\t\tSystem.out.println(\"Digite um valor da posição \" + i);\n\t\t\tvetorA[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tint soma = 0;\n\t\tSystem.out.print(\"Os multiplos de 5 são: \");\n\t\tfor(i = 0; i< vetorA.length; i++) {\n\t\t\tif (vetorA[i] % 5 == 0) {\n\t\t\t\tsoma += vetorA[i];\n\t\t\t\t\n\t\t\t\tSystem.out.print(vetorA[i] + \" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"A soma é \" + soma);\n\t\t\n\t}", "private void initialiseNumbers() {\r\n double choice = Math.random();\r\n sourceNumbers = new int[6];\r\n if(choice<0.8) {\r\n //one big number, 5 small.\r\n sourceNumbers[0] = (Integer) bigPool.remove(0);\r\n for( int i=1; i<6; i++) {\r\n sourceNumbers[i] = (Integer) smallPool.remove(0);\r\n }\r\n } else {\r\n //two big numbers, 5 small\r\n sourceNumbers[0] = (Integer) bigPool.remove(0);\r\n sourceNumbers[1] = (Integer) bigPool.remove(0);\r\n for( int i=2; i<6; i++) {\r\n sourceNumbers[i] = (Integer) smallPool.remove(0);\r\n }\r\n }\r\n\r\n //for target all numbers from 101 to 999 are equally likely\r\n targetNumber = 101 + (int) (899 * Math.random());\r\n }", "public static void main(String[] args) {\n\n int a = 3, n = 4;\n\n int calculPutere = 1;\n\n for(int i = 0; i < n; i++){\n\n calculPutere *= a;\n }\n\n System.out.println(a+ \" la puterea \" + n + \" = \" + calculPutere);\n\n\n\n }", "int main()\n{\n int n;\n cin >>n;\n int m = 11;\n for(int i=0; i<n; i++){\n cout << m*m << \" \";\n m += 4;\n }\n}", "public void setNumber(int n) {\n if(n<0){\n throw new ArithmeticException(\"Negative Score is not allowed\");\n }else{\n int shift = 0;\n while (n > 0) {\n int d = n / 10;\n int k = n - d * 10;\n n = d;\n background.add(new Digit(k, 30, 360 - shift, 25));\n shift += 30;\n }\n }\n }", "public static void main(String[] args) {\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\r\n\t\tint num = sc.nextInt();\r\n\t\tint snum[] = new int[4];\r\n\t\tint count = 0;\r\n\t\tint k1 = 0;\r\n\t\tint k2 = 0;\r\n\r\n\t\twhile (num != 6174) { // 반복\r\n\r\n\t\t\tcount++;\r\n\r\n\t\t\tsnum[0] = num / 1000; // 1000의자리수\r\n\t\t\tsnum[1] = (num - (snum[0] * 1000)) / 100; // 100의 자리수\r\n\t\t\tsnum[2] = (num - ((snum[0] * 1000) + (snum[1] * 100))) / 10; // 10의자리수\r\n\t\t\tsnum[3] = num % 10; // 1의자리수\r\n\r\n\t\t\tint temp;\r\n\t\t\tfor (int i = 0; i < snum.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < snum.length; j++) {\r\n\t\t\t\t\ttemp = snum[i];\r\n\t\t\t\t\tif (snum[i] >= snum[j]) { // 큰수부터 정렬\r\n\t\t\t\t\t\tsnum[i] = snum[j];\r\n\t\t\t\t\t\tsnum[j] = temp;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tk1 = Integer.parseInt(Integer.toString(snum[0]) + snum[1] + snum[2] + snum[3]); // 큰\r\n\t\t\tk2 = Integer.parseInt(Integer.toString(snum[3]) + snum[2] + snum[1] + snum[0]); // 작은\r\n\r\n\t\t\tnum = k1 - k2; // 뺀\r\n\r\n\t\t}\r\n\t\tSystem.out.println(count);\r\n\t}", "private void setNumbers() {\n\t\tint w = worldWidth;\n\t\tint h = worldHeight;\n\t\tfor (int x = 0; x <= w - 1; x++) {\n\t\t\tfor (int y = 0; y <= h - 1; y++) {\n\t\t\t\tint numbers = 0;\n\n\t\t\t\tint right = x + 1;\n\t\t\t\tint left = x - 1;\n\t\t\t\tint up = y - 1;\n\t\t\t\tint down = y + 1;\n\n\t\t\t\tif (left < 0) {\n\t\t\t\t\tleft = 0;\n\t\t\t\t}\n\t\t\t\tif (up < 0) {\n\t\t\t\t\tup = 0;\n\t\t\t\t}\n\t\t\t\tif (down >= h) {\n\t\t\t\t\tdown = h - 1;\n\t\t\t\t}\n\t\t\t\tif (right >= w) {\n\t\t\t\t\tright = w - 1;\n\t\t\t\t}\n\n\t\t\t\tfor (int m = left; m <= right; m++) {\n\t\t\t\t\tfor (int n = up; n <= down; n++) {\n\t\t\t\t\t\tif (!(m == x && n == y)) {\n\t\t\t\t\t\t\tif (tileArr[m][n].hasBomb()) {\n\t\t\t\t\t\t\t\tnumbers++;\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\ttileArr[x][y].setNeighbors(numbers);\n\t\t\t}\n\n\t\t}\n\n\t}", "private static int[] enterNumbers() {\n\t\tint[] numbers = new int[2];\n\t\tSystem.out.print(\"Geben Sie die erste Zahl ein: \");\n\t\tnumbers[0] = readInt();\n\t\tSystem.out.print(\"Geben Sie die zweite Zahl ein: \");\n\t\tnumbers[1] = readInt();\n\t\treturn numbers;\n\t}", "protected static ArrayList<String> GenNumber() {\n\n ArrayList<String> initialList = new ArrayList<>();\n\n initialList.add(\"1\"); //Add element\n initialList.add(\"2\");\n initialList.add(\"3\");\n initialList.add(\"4\");\n initialList.add(\"5\");\n initialList.add(\"6\");\n initialList.add(\"7\");\n initialList.add(\"8\");\n initialList.add(\"9\");\n\n Collections.shuffle(initialList); //Random the position\n\n return initialList;\n }", "public static void main(String[] args) {\n int N = 100, i, j, min;\n System.out.println(\"Value of N: \" + N);\n\n for (i = 1; i <= N; i++)\n {\n for (j = 1; j <= N; j++)\n {\n min = i < j ? i : j;\n System.out.print(N - min + 1);\n }\n System.out.println();\n\n\n\n\n }\n}", "public static void main(String[] args) {\n\t\tint[] num = {1,1,5};\r\n\t\tnextPermutation(num);\r\n\t\tfor(int n : num)\r\n\t\t\tSystem.out.print(n + \" \");\r\n\t}", "public static void main(String[] args) {\n\t\tint[] digits = {9,9,9,8};\n\t\tint[] array = plusOne(digits);\n\t\tfor(int i=0;i<array.length;i++){\n\t\t\tSystem.out.print(array[i]);\n\t\t}\n\t}", "public static void main(String[] args) {\n\r\n\t\tint input1=123,input2=456,input3=345,input4=5043;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString in1 = Integer.toString(input1);\r\n\t\tString in2 = Integer.toString(input2);\r\n\t\tString in3 = Integer.toString(input3);\r\n\t\tString in4 = Integer.toString(input4);\r\n\t\t\r\n\t\t\r\n\t\tStringBuilder obj = new StringBuilder();\r\n\r\n\t\tobj.append(in1);\r\n\t\tobj.append(in2);\r\n\t\tobj.append(in3);\r\n\t\tobj.append(in4);\r\n\r\n\t\tString str = obj.toString();\t\r\n\t\tchar ch[] = str.toCharArray();\r\nint count[] = new int[10];\r\n\r\n\t\tfor(int i = 0 ;i < ch.length;i++)\r\n\t\t{\r\n\t\t\tcount[ Character.getNumericValue(ch[i]) ]++;\r\n\r\n\t\t}\r\n\r\n\tint max= 0,value=0;\r\n\r\n\tfor(int i = 0 ; i < count.length;i++)\r\n\t{\r\n\t\tif( max <= count[i])\r\n\t\t\t\t{max = count[i];\r\n\t\t\t\tvalue = i;\t\r\n\t\t\t\t}\r\n\t}\r\n\r\n\t\t\r\n\t\tSystem.out.println(Arrays.toString(count ));\r\n\t\tSystem.out.println(max);\r\n\t\tSystem.out.println(value);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tsum += in.nextInt();\n\t\tn++;\n\t\t\n\t\tint res = 0;\n\t\tfor(int i = 1; i <= 5; i++)\n\t\t\tif((sum+i)%n != 1)\n\t\t\t\tres++;\n\t\tSystem.out.println(res);\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint numero = 2;\n\t\t\n\t\tfor (int i=1; i <= 10; i++) {\n\t\t\tSystem.out.println(numero + \"*\" + i +\"=\" + numero * i);\n\t\t}\n\t}", "public static String labelIntegerList(List<Integer> nums) {\t\t\n\t\tList<String> strs = nums.stream()\n\t\t\t\t\t\t\t\t.map(i -> i % 2 == 0 ? \"e\" + i : \"o\" + i)\n\t\t\t\t \t\t\t .collect(toList());\n\t\treturn String.join(\",\", strs);\t\t\n\t}", "public static void main(String[] args) {\n\t\tint[] numeros= new int[10];\r\n\t\t\r\n\t\tnumeros[0]=1;\r\n\t\tnumeros[1]=7;\r\n\t\tnumeros[2]=-8;\r\n\t\tnumeros[3]=5;\r\n\t\tnumeros[4]=4;\r\n\t\tnumeros[5]=-6;\r\n\t\tnumeros[6]=4;\r\n\t\tnumeros[7]=0;\r\n\t\tnumeros[8]=8;\r\n\t\tnumeros[9]=0;\r\n\t\t\r\n\t\tSystem.out.println(numeros.length);\r\n\t\t\r\n\t\tint ceros =0;\r\n\t\tint positivos = 0;\r\n\t\tint negaitvo = 0;\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tRandom dice = new Random();\n\t\tint number = 0;\n\t\tfor (int i = 0; i <= 10; i++) {\n\t\t\tnumber = 1 + dice.nextInt(6);\n\t\t}\n\t\tSystem.out.println(number);\n\t}", "void setRandomNumbersUp() {\n\t\tInteger[] numbers = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};\n\t\tInteger[] numbers2 = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};\n\t\tList<Integer> numsList = Arrays.asList(numbers);\n\t\tCollections.shuffle(numsList);\n\t\tList<Integer> numsList2 = Arrays.asList(numbers2);\n\t\tCollections.shuffle(numsList2);\n\t\tList<Integer> combinedList = Stream.of(numsList, numsList2).flatMap(Collection::stream).collect(Collectors.toList());\n\t\t\n\t\t\n\t\tint counter = 0;\n\t\tfor (Node node : SquaresBoard.getChildren()) {\n\t\t\n\t\t\tif (node instanceof Label) {\n\t\t\t\t((Label) node).setText(combinedList.get(counter).toString());\n\t\t\t}\n\t\t\tcounter++;\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"Brojevi od 100 do 1000 djeljivi i sa 5 i sa 6 su:\");\r\n\t\t\r\n\t\tint brojac=0;\r\n\t\t//provjera brojeva koju su djeljivi i sa 5 i sa 6 i njihov ispis 10 po redu\r\n\t\tfor(int i=100; i<=1000; i++){\r\n\t\t\tif (is6(i) && (is5(i))){\r\n\t\t\t\tSystem.out.print(i+ \" \");\r\n\t\t\t\tbrojac++;\r\n\t\t\t\t\r\n\t\t\t\tif(brojac%10==0){\r\n\t\t\t\t\tSystem.out.println();\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}", "public void speedRange5()\n\t{\n\t\trange = (gen.nextInt(upper5 - lower5)+1) + lower5;\n\t\tspeedBalloonY5 = range;\n\t}", "private void addRangeIntegers() {\r\n ent_2_i.put(\"< 0\", -1); ent_2_i.put(\"== 0\", 0); ent_2_i.put(\"== 1\", 1); ent_2_i.put(\"< 10\", 10);\r\n ent_2_i.put(\"< 100\", 100); ent_2_i.put(\"< 1K\", 1000); ent_2_i.put(\"< 10K\", 10000); ent_2_i.put(\"< 100K\", 100000);\r\n ent_2_i.put(\"> 100K\", 1000000);\r\n }", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint[] arr = new int[5];\n\t\tint a = 0;\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tarr[i] = in.nextInt();\n\t\t\ta += arr[i] * arr[i];\n\t\t}\n\n\t\ta = a % 10;\n\t\tSystem.out.println(a);\n\t}", "public static void main003(String[] args) {\n\t\t/*\n\t\t * numberStart++ tra ve gia tri cua numberStart, sau đo tang number lan mot đon vi\n\t\t * numberStart-- tra ve gia tri cua numberStart, sau đo giam number xuong mot đon vi\n\t\t * ++numberStart tang numberStart len mot don vi, sau đo tra ve gia tri cua numberStart\n\t\t * --numberStart giam numberStart xuong mot don vi, sau đo tra ve gia tri cua numberStart\n\t\t */\n\t\tint numberStart\t= 20;\n\t\tint numberEnd\t= 0;\n\t\t\n//\t\tnumberEnd\t\t= ++numberStart;\n\t\tnumberEnd\t\t= --numberStart;\n\t\tSystem.out.println(\"Number Start = \" + numberStart);\n\t\tSystem.out.println(\"Number End = \" + numberEnd);\n\t}", "private void randomizeNum() {\n randomNums.clear();\n for (int i = 0; i < 4; i++) {\n Integer rndNum = rnd.nextInt(10);\n randomNums.add(rndNum);\n }\n }", "public static void main(String[] args){\n\n for(int n = 2; n < 102; n+=2)System.out.printf(\"%d\\n\",n);\n \n \n }", "public static void main(String[] args) {\n\t\tScanner keyboard = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Nhap vao n = \");\r\n\t\tint n = keyboard.nextInt();\r\n\t\tint s = 0 ; // khoi tao bien tong s\r\n\t\tint test = 1; //khoi tao mo bien test va gan test = 1\r\n\t\tfor (int i=1; i<=n; i++) {\r\n\t\ttest = test * i;\r\n\t\ts = s + test ; // sau moi lan tang i thi tong s se bang s + (test*i)\r\n\t}\r\n\tSystem.out.println(\"S (\"+n+\") = \"+s+\"\"); //xuat ra man hinh ket qua\r\n}", "public static void main (String [] args) throws IOException {\n\t\tScanner s = new Scanner(new FileReader(\"fact4.in\"));\n\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"fact4.out\")));\n\t\tint n = s.nextInt();\n\t\tint numzeroes = n/5 + n/25 + n/125 + n/625 + n/3125;\n\t\tint result = 1;\n\t\tint counter1 =0;\n\t\twhile(n>0){\n\t\t\tif(n%5 ==0){\n\t\t\t\tint temp = n;\n\t\t\t\twhile(temp%5 ==0){\n\t\t\t\t\ttemp /=5;\n\t\t\t\t}\n\t\t\t\tresult = (result*temp)%10;\n\t\t\t}\n\t\t\telse if(n%2==0 && counter1 < numzeroes){\n\t\t\t\tresult = (result*(n/2))%10;\n\t\t\t\tcounter1++;\n\t\t\t}else{\n\t\t\t\tresult = (result*n)%10;\n\t\t\t}\n\t\t\tn--;\n\t\t}\n\t\tout.println(result);\n\t\tout.close(); \n\t}", "public static void main(String[] args) {\n int count = 0;\r\n \r\n for (int num = 100; num <= 500; num++) {\r\n // Find all numbers from 100 to 500 divisible by 5 or 7 but not both.\r\n if ((num % 5 == 0 && num % 7 != 0) || (num % 5 != 0 && num % 7 == 0)) {\r\n count += 1;\r\n // Print 10 numbers on each line.\r\n if (count % 10 == 0) {\r\n System.out.println(num);\r\n }\r\n else {\r\n System.out.print(num + \" \");\r\n }\r\n }\r\n }\r\n }", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int k = in.nextInt();\n ArrayList<Integer> list = new ArrayList<>();\n for(int arr_i=0; arr_i < n; arr_i++){\n int integer = in.nextInt();\n list.add(new Integer(integer));\n }\n in.close();\n\n\n\n if(k == 1){\n System.out.println(k);\n return;\n }\n\n for(int i = 0;i < list.size();i ++){\n int x = list.get(i) % k;\n list.set(i, x);\n }\n\n int[] kx = new int[k];\n for(int i = 0;i < k;i ++){\n kx[i] = 0;\n }\n for(int i = 0;i < list.size();i ++){\n int x = list.get(i);\n kx[x] ++;\n }\n\n\n int num = 0;\n int A = 0;\n if(k % 2 == 0){\n A = k / 2 - 1;\n }else{\n A = k / 2;\n }\n if(kx[0] != 0){\n num += 2;\n }\n for(int i = 1; i <= A;i ++){\n if(kx[i] >= kx[k - i]){\n num += kx[i];\n }else {\n\n num += kx[k - i];\n }\n\n }\n System.out.println(num);\n }", "public void mostrarTareasNumeradas()\n {\n int numeroPosicion = 1;\n for (String tarea : tareas){\n if (tarea.substring(0,1).equals(\"$\")) {\n System.out.println(numeroPosicion + \". [X] \" + tarea.substring(1, tarea.length())); \n }\n else {\n System.out.println(numeroPosicion + \". [ ] \" + tarea); \n }\n\n numeroPosicion = numeroPosicion + 1;\n }\n }", "public static void main(String[] args) {\n StringBuilder numbers = new StringBuilder();\n for (int i = 1; i < 5; i++) {\n numbers.append(i);\n }\n System.out.println(numbers.toString());\n }", "private static void printSquareNumbers() {\r\n\r\n\t\tBigInteger number = new BigInteger(Long.MAX_VALUE + \"\");\r\n\t\tBigInteger finish = number.add(new BigInteger(\"10\"));\r\n\r\n\t\tfor (number = new BigInteger(Long.MAX_VALUE + \"\"); number.compareTo(finish) <= 0; number = number\r\n\t\t\t\t.add(new BigInteger(\"1\"))) {\r\n\t\t\tSystem.out.println(number.multiply(number));\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\r\n\t\tint numRows = 15;\r\n\t\tfor(List<Integer> list : generate(numRows)){\r\n\t\t\tfor( Integer i : list ){\r\n\t\t\t\tSystem.out.print(i + \" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public static void Number(){\n for(int c=1000;c<=1000000;c++)\n {\n VampireNumber(c);\n }\n }", "public static void main(String[] args) {\n\t\tfor (int i = 1; i < 101; i++) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program\");\n\t\tfor (int i = 100; i > 0; i--) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 2; i < 101; i = i + 2) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 1; i < 100; i = i + 2) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 501; i++) {\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tSystem.out.println(i + \" is even.\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(i + \" is odd.\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 778; i = i + 7) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 2006; i < 2019; i++) {\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 3; i++) {\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tSystem.out.println(i + \" \" + \" \" + j);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 9; i += 3) {//rows \n\t\t\tfor (int j = 1; j < 4; j++) {//how many \n\t\t\t\tSystem.out.print(j + i);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 100; i += 10) {\n\t\t\tfor (int j = 1; j <11; j++) {\n\t\t\t\tSystem.out.print(j + i+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\nfor (int i = 1; i < 7; i++) {\n\tfor (int j = 0; j < i; j++) {\n\t\tSystem.out.print(\"* \");\n\t}\n\tSystem.out.println();\n}\t\n\n\t\n\t\n\t\n\t}", "include <stdio.h>\nint main() {\n int n;\n\tscanf(\"%d\", &n);\n int num=1;\n\tfor(int i = 1; i <= n; i++){\n\t for(int space = 1; space <= n - i; space++){\n\t printf(\" \");\n\t }\n\t for(int j = 1; j <= i; j++){\n\t printf(\"%d \",num);\n num++;\n\t }\n\t printf(\"\\n\");\n\t}\n\treturn 0;\n}", "public static void main(String[] args) {\n\n\t\tint i,n,a;\n\t\t n=3;\n\t a=n;\n\t Integer[] Factoriel = new Integer[n];\n\t\t\n\t\t\n \n if (n!=0)\n {for (i=1;i<a;i++)\n n=n*i;\n \t Factoriel [i-1]=n;\n \t System.out.println(Factoriel[i-1]);\n \n }\n else\n n=1;\n System.out.println(n);\n \n\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(\"enter a number\");\n\t\t\t\tScanner scn = new Scanner(System.in);\n\t\t\t\tint n = scn.nextInt();\n\t\t\t\tint c = 1;\n\t\t\t\tint t = 1;\n\t\t\t\tint b =0;\n\t\t\t\tint a = 1;\n\t\t\t\tfor(int i =1;i<=n;i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int j =1;j<=i;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(b+\"\\t\");\n\t\t\t\t\t\t//System.out.println(b);\n\t\t\t\t\t\tt = a + b;\n\t\t\t\t\t\tb = a;\n\t\t\t\t\t\ta = t;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t}", "public static void main(String[] args) {\n\n Random gerador = new Random();\n int[] numeros = new int[10];\n int soma = 0;\n\n for (int i = 0; i < numeros.length; i++) {\n numeros[i] = gerador.nextInt(9) + 1;\n soma += numeros[i];\n System.out.println(\"Elemento numero: \" + (i + 1) + \": \" + numeros[i]);\n }\n System.out.println(\"A soma dos elementos do array �: \" + soma);\n }", "public static int RepetidorFor(int numero){\n\t\tint suma=0;\n\t\tint resultado=0;\n\t\tfor(int i=1;i<numero;i++){\n\t\t\tresultado=(numero%i);\n\t\t\tif(resultado==0){\n\t\t\t\tsuma=suma+i;\n\t\t\t}\n\t\t}\n\t\treturn suma;\n\t}", "public static void main(String[] args) {\n\t\tfor(int i = 1, j = i + 10; i < 5; i++, j = i * 2) \r\n\t\t{\r\n System.out.println(\"i= \" + i + \" j= \" + j);\r\n\t\t}\r\n\t\tfor(int i=0, j=i+99; i<101; i++, j=i/2 ) {\r\n\t\t\tSystem.out.println(\"i= \" +i + \" j= \"+j);\r\n\t}\r\n\t\t\r\n\t\tint n=0;\r\n\t\twhile(n<10)\r\n\t\t{ System.out.println(n);\r\n\t\tn++;\r\n\t\t}\r\n\t\t\r\n//\t int a = 1;\r\n//\t int b = 2;\r\n//\t int c = 3;\r\n//\t \r\n//\t a += 5;\r\n//\t b *= 4;\r\n//\t c += a * b;\r\n//\t c %= 6;\r\n//\t System.out.println(\"a = \" + a);\r\n//\t System.out.println(\"b = \" + b);\r\n//\t System.out.println(\"c = \" + c);\r\n\r\n\r\n\t}", "public static void main(String[] args) {\n\n\t\tSystem.out.println(\"Enter Number\");\n\n\t\tint n=new Scanner(System.in).nextInt();\n\t\tint length=Integer.toString(n).length();\n\t\tint [] array=new int[length];\n\n\t\tfor(int i=0;i<length;i++)\n\t\t{\n\t\t\tarray[length-i-1]=n%10;\n\t\t\tn=n/10;\n\t\t}\n\n\t\tint arrayLength=array.length;\n\n\t\tfor(int i=0;i<arrayLength;i++)\n\t\t{\n\t\t\tSystem.out.print(array[i]+\", \");\n\t\t}\n\n\n\t}", "public static void printNumbers() {\n\t\tSystem.out.println(56);\n\t\tSystem.out.println(0b11); // 3 binary\n\t\tSystem.out.println(017); // 15 octal\n\t\tSystem.out.println(0x1F); //31 hexadecimal\n\t}", "void runTime1() {\n\t\tint[]numList= {45,78,99};\n\t\tSystem.out.println(numList[5]);\n\t}", "public static void main(String[] args) {\n\t\tint value = 1;\n\t\t int count = 7;\n\t\t\tint curr = 0;\n\t\t\t int prev = 0;\n\t\t\tint num = 0;\n\t\twhile (value <= count)\n\t\t{\n\t\t\tnum = curr + prev;\n\t\t\tSystem.out.print(num);\t\n\t\t\t\tvalue++;\n\t\t\t\tif (value == 2)\n\t\t\t\t{\n\t\t\t\t\tprev = num;\n\t\t\t\t\tcurr = 1;\n\t\t\t\t}\n\t\t\t\t\t\tprev = curr;\n\t\t\t\t\t\tcurr = num;\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\n\t}", "private void setNumeros(Set<Integer> numeros) {\n\t\tthis.numeros = new Vector<Integer>(numeros);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint no1=0,no2=1,no3;\r\n\t\tfor(int i=0;i<=6;i++)\r\n\t\t{\r\n\t\t\tno3=no1+no2;\r\n\t\t\tno1=no2;\r\n\t\t\tno2=no3;\r\n\t\t\t\r\n\t\t\tSystem.out.println(no3);\r\n\t\t}\r\n\r\n\t}" ]
[ "0.60667914", "0.6045841", "0.59643984", "0.5898287", "0.5881355", "0.5880048", "0.58231276", "0.5819108", "0.5807283", "0.57845086", "0.5782039", "0.57741857", "0.575201", "0.5708366", "0.56692225", "0.56687754", "0.5662382", "0.5660058", "0.56528205", "0.5638152", "0.5635326", "0.563221", "0.5630568", "0.56143", "0.5602696", "0.55823845", "0.55700505", "0.55530435", "0.55430734", "0.55389434", "0.55314004", "0.5527835", "0.55221045", "0.5510493", "0.5508449", "0.550814", "0.55064434", "0.5500257", "0.5496897", "0.5477372", "0.547307", "0.5462407", "0.5461812", "0.5455045", "0.5449926", "0.54434055", "0.54392874", "0.54298353", "0.5429224", "0.54253805", "0.5417608", "0.541658", "0.5413761", "0.54128027", "0.5411393", "0.5403918", "0.5399802", "0.5399291", "0.53746915", "0.5370694", "0.5370332", "0.5367187", "0.5365778", "0.53634894", "0.5363383", "0.53633", "0.5363186", "0.5359371", "0.5358135", "0.5357846", "0.5356862", "0.5346787", "0.53424937", "0.5342222", "0.5340686", "0.5338744", "0.53386736", "0.53386015", "0.5337796", "0.53314894", "0.53262043", "0.53249216", "0.53242904", "0.53209305", "0.5316797", "0.53140616", "0.53069437", "0.5301968", "0.5300569", "0.52999866", "0.5298284", "0.5291547", "0.5285694", "0.5283336", "0.5281467", "0.5275225", "0.5274682", "0.52732235", "0.52713764", "0.52698654", "0.5265286" ]
0.0
-1
/ basic tout les model on les meme fonction
public String getError() { return error; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "M getModel();", "Model getModel();", "Model getModel();", "Model getModel();", "ModelData getModel();", "public interface ModelJeu {\n \n /**\n * indique le contenu de la case de coordonnees (i,j)\n * @param i le numero de la ligne\n * @param j le numero de la colonne\n * @return le contenu de la case de coordonnees (i,j)\n */\n String get(int i, int j);\n \n /**\n * indique le nombre de colonnes du modele\n * @return le nombre de colonnes du modele\n */\n int nbColonnes();\n \n /**\n * indique le nombre de lignes du modele\n * @return le nombre de lignes du modele\n */\n int nbLignes();\n \n /**\n * renvoie une liste de tous les joueurs du modele\n * @return la liste de tous les joueurs du modele\n */\n ArrayList<Player> getAllPlayer();\n}", "public Modello() {\r\n super();\r\n initComponents();\r\n setModalita(APPEND_QUERY);\r\n setFrameTable(tabModello);\r\n setNomeTabella(\"vmodello\");\r\n tMarcaDescrizione.setEnabled(false);\r\n }", "private void actualizeazaModel() {\n model.clear();\n listaContacte.forEach((o) -> {\n model.addElement(o);\n });\n }", "public AbstrJoueurModel retourneAbstrJoueurModel(){ return ajm;}", "public abstract M getModel();", "String getModelA();", "@Override\r\n\tpublic void setModel() {\n\t}", "String getModelB();", "public void leseViewAusModel() {\r\n Model model = Model.getInstanz();\r\n\r\n ATab aktuellerTab = model.getRoot();\r\n\r\n while (aktuellerTab.getNext() != null) {\r\n ArrayList<ATab> next = aktuellerTab.getNext();\r\n\r\n for (int j = 0; j < next.size(); j++) {\r\n if (next.get(j) instanceof Inhalt) {\r\n\r\n Inhalt tmpNext = (Inhalt) next.get(j);\r\n\r\n setInhalt(tmpNext.getName(), tmpNext.getInhalt());\r\n }\r\n }\r\n\r\n for (int j = 0; j < next.size(); j++) {\r\n\r\n if (next.get(j) instanceof Tab || next.get(j) instanceof Inhalt) {\r\n aktuellerTab = next.get(j);\r\n }\r\n }\r\n }\r\n }", "public TabellaModel() {\r\n lista = new Lista();\r\n elenco = new Vector<Persona>();\r\n elenco =lista.getElenco();\r\n values = new String[elenco.size()][3];\r\n Iterator<Persona> iterator = elenco.iterator();\r\n while (iterator.hasNext()) {\r\n\t\t\tfor (int i = 0; i < elenco.size(); i++) {\r\n\t\t\t\tpersona = new Persona();\r\n\t\t\t\tpersona = (Persona) iterator.next();\r\n\t\t\t\tvalues[i][0] = persona.getNome();\r\n\t\t\t\tvalues[i][1] = persona.getCognome();\r\n\t\t\t\tvalues[i][2] = persona.getTelefono();\t\r\n\t\t\t}\r\n\t\t}\r\n setDataVector(values, columnNames);\t\r\n }", "private void initializeModel() {\n\t\t\n\t}", "DataModel getDataModel ();", "@Override\n\t\tpublic void setModel(int model) {\n\t\t\t\n\t\t}", "A getModel();", "private void cargarModelo() {\n dlmLibros = new DefaultListModel<>();\n listaLibros.setModel(dlmLibros);\n }", "@Override\n\tpublic String getModel() {\n\t\treturn \"cool model\";\n\t}", "void onModelChange();", "java.lang.String getModel();", "public void crearModelo() {\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE tipo='agricultor' AND personalexterno.idMunicipio=municipios.idMunicipio\");\n tbl.alinearHeaderTable(AgendarA.tblAgricultor, headerColumnas);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n }", "@Override\n protected void initModel() {\n bannerModel = new BannerModel();\n// homeSousuoModel = new Home\n\n// bannerModel = new BannerModel();\n// homeSousuoModel = new HomeSousuoModel();\n// izxListModelBack = new\n }", "public void cargarModelo() {\n\t}", "public void startModel() {\n\t\tpaginaImperatori = WikiImperatoriRomaniPagina.getInstance();\n\t}", "public void buildModel(){\r\n\t\t\r\n\t\tsuper.buildModel();\r\n\t\t\r\n\t}", "public Object getModel();", "public void setModello(Modello m) {\r\n\t\t//PRECONDIZIONE\r\n\t\tassert m!=null : \"Chiamato setModello con m null\";\r\n\t\tmod = m;\r\n\t}", "public ListaComuniModel() {\n\t\tsuper();\n\t}", "@Override\n public void modelView(Model m) {\n Aluno a = (Aluno) m;\n this.jCurso.setSelectedItem(a.getCurso());\n this.jAno.setSelectedItem(a.getAno());;\n this.jNome.setText(a.getNome());\n this.jIdade.setText(a.getIdade());\n }", "public Controlador(Vista view, Modelo model){\r\n \r\n //Se igualan las propiedades\r\n this.view = view;\r\n this.model = model;\r\n this.view.btnGuardar.addActionListener(this);\r\n \r\n //se iguala el modelo de la tabla\r\n table = new DefaultTableModel();\r\n view.tablaResultado.setModel(table);\r\n \r\n //nombre para la columna de la tabla\r\n table.addColumn(\"Listado\"); \r\n \r\n }", "NCModel getModel();", "protected void prepareModel() {\n model();\n }", "LabInner innerModel();", "public Model getModel () { return _model; }", "public void llenarModelo(DefaultTableModel model) {\r\n int tamanioArticulos = this.obtenerTamanioLista();\r\n for (int i = model.getRowCount(); i < tamanioArticulos; i++) {\r\n Object rowData[] = {i, listaProductosCarrito[i].getNombre(), listaProductosCarrito[i].getValor()};\r\n model.addRow(rowData);\r\n }\r\n }", "private void cargaDatosBasicos(Model model) {\r\n\t\t\tLong t1 = System.currentTimeMillis();\r\n\t\t\tAccionesMGCBusquedaForm form = null;\r\n\t\t\tLinkedHashMap<String, String> dias = UtilFechas.getDias();\r\n\t\t\tLinkedHashMap<String, String> meses = UtilFechas.getMeses();\r\n\t\t\tLinkedHashMap<String, String> anios = UtilFechas.getAnios();\r\n\t\t\tmodel.addAttribute(\"dias\", dias);\r\n\t\t\tmodel.addAttribute(\"meses\", meses);\r\n\t\t\tmodel.addAttribute(\"anios\", anios);\r\n\t\t\tif (!model.containsAttribute(\"formulario\")) {\r\n\t\t\t\tform = new AccionesMGCBusquedaForm();\r\n\t\t\t\tmodel.addAttribute(\"formulario\", form);\r\n\t\t\t} else {\r\n\t\t\t\tform = (AccionesMGCBusquedaForm) model.asMap().get(\"formulario\");\r\n\t\t\t}\r\n\t/* Se ajusta para mercado TTV \r\n\t\ttry {\r\n\t\t\t\tint tipoMercado = form.getTipoMercado() == IAcciones.TIPO_MERCADO_REPOS ? IMercadoDao.REPOS\r\n\t\t\t\t\t\t: IMercadoDao.ACCIONES;\r\n\t\t\t\tGregorianCalendar cal = new GregorianCalendar();\r\n\t\t\t\tif (StringUtils.isNotEmpty(fechaConsulta)\r\n\t\t\t\t\t\t&& !fechaConsulta.equals(sdf.format(new Date()))) {\r\n\t\t\t\t\tcal.setTime(sdf.parse(fechaConsulta));\r\n\t\t\t\t}\r\n\t\t\t\tString mensajeHorario = this.mercadoDao.mercadoAbierto(cal,\r\n\t\t\t\t\t\ttipoMercado, true);\r\n\t\t\t\tmodel.addAttribute(\"horarioAcciones\", mensajeHorario);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlog.error(\"Error al cargar mensajeHorario\", e);\r\n\t\t\t}\r\n\t*/\r\n\t\t\ttry {\r\n\t\t\t\tint tipoMercado = IAccionesMGC.TIPO_MERCADO_REPOS_MGC; \r\n//\t\t\t\t? IMercadoDao.REPOS : IMercadoDao.ACCIONES ;\r\n\t\t\t\tGregorianCalendar cal = new GregorianCalendar();\r\n\t\t\t\tif (StringUtils.isNotEmpty(fechaConsulta)\r\n\t\t\t\t\t\t&& !fechaConsulta.equals(sdf.format(new Date()))) {\r\n\t\t\t\t\tcal.setTime(sdf.parse(fechaConsulta));\r\n\t\t\t\t}\r\n\t\t\t\tString mensajeHorario = this.mercadoDao.mercadoAbierto(cal,\r\n\t\t\t\t\t\ttipoMercado, true);\r\n\t\t\t\tmodel.addAttribute(\"horarioAcciones\", mensajeHorario);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlog.error(\"Error al cargar mensajeHorario\", e);\r\n\t\t\t}\r\n\t//*\r\n\t\t\t\r\n\t\t\tLong t2 = System.currentTimeMillis();\r\n\t\t\tLong t = (t2 - t1) / 1000;\r\n\t\t\tlog\r\n\t\t\t\t\t.info(\"El tiempo en el método cargaDatosBasicos de ResumenAccionesMGCPortlet es =\"\r\n\t\t\t\t\t\t\t+ t);\r\n\t\t}", "public String getModel();", "public interface IModelTamanho {\r\n\t\r\n\tpublic void setCodigo(String cCodigo);\r\n\tpublic void setDescricao(String cDescricao);\r\n\tpublic void setPeso(double nPeso);\r\n\tpublic void setAltura(double nAltura);\r\n\tpublic void setLargura (double nLargura);\r\n\tpublic void setComprimento (double nComprimento);\r\n\tpublic String getCodigo();\r\n\tpublic String getDescricao();\r\n\tpublic double getPeso();\r\n\tpublic double getAltura();\r\n\tpublic double getLargura();\r\n\tpublic double getComprimento();\r\n\tpublic String toString();\r\n\t\r\n}", "public Modello getModello() {\r\n\t\treturn mod;\r\n\t}", "public TestFrame() {\n\n final String[] columnNames = {\"Nombre\",\n \"Apellido\",\n \"webeo\",\n \"Años de Practica\",\n \"Soltero(a)\"};\n final Object[][] data = {\n\n {\"Lhucas\", \"Huml\",\n \"Patinar\", new Integer(3), new Boolean(true)},\n {\"Kathya\", \"Walrath\",\n \"Escalar\", new Integer(2), new Boolean(false)},\n {\"Marcus\", \"Andrews\",\n \"Correr\", new Integer(7), new Boolean(true)},\n {\"Angela\", \"Lalth\",\n \"Nadar\", new Integer(4), new Boolean(false)}\n };\n\n Vector dataV1 = new Vector();\n dataV1.add(\"XXXX\");\n dataV1.add(\"YYYY\");\n dataV1.add(\"JJJJ\");\n\n Vector dataV2 = new Vector();\n dataV2.add(\"XX2XX\");\n dataV2.add(\"Y2YYY\");\n dataV2.add(\"J2JJJ\");\n\n List dataF = new ArrayList();\n dataF.add(dataV1);\n dataF.add(dataV2);\n\n /*Vector dataC = new Vector();\n dataC.add(\"1\");\n dataC.add(\"2\");\n dataC.add(\"J23JJJ\");\n\n //model = new ModeloDatosTabla(data, true);\n model = new TableModel_1_1(dataC, dataF);\n model2 = new TableModel(columnNames, data, false);\n*/\n\n\n\n initComponents();\n\n\n }", "public void buildModel() {\n }", "public MVCModelo()\n\t{\n\t\ttablaChaining=new HashSeparateChaining<String, TravelTime>(20000000);\n\t\ttablaLineal = new TablaHashLineal<String, TravelTime>(20000000);\n\t}", "Build_Model() {\n\n }", "void setModel(Model m);", "public interface VistaListadeproductosModel extends TemplateModel {\n // Add setters and getters for template properties here.\n }", "@Override\n\t\tpublic int getModel() {\n\t\t\treturn 0;\n\t\t}", "void set(Model model);", "public void run( Model modelo, View vista){ // el controlador sirve para comunicarse con las interfaces\r\n \r\n //llama al metodo getGreeting del objeto modelo\r\n \r\n String saludo = modelo.getGreeting(); // con este metodo obtengo el saludo que tengo en la clase model implementation\r\n \r\n //llama al metodo showGreeting del objeton View para mostrar el saludo que recibe del metodo showGreeting de ModelImplementation\r\n \r\n vista.showGreeting(saludo); \r\n \r\n }", "private Model getThisModel(String name, Model model) {\n\t\t\t\n\t\t\t Model modret=ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\t\t\t String text=dbs.getModel(name);\n\t\t\t\t\n\t\t\t\t//System.out.println(\"TEXT\"+text+\"TEXT!!!\");\n\t\t\t\t if(text==null){\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t\treturn modret;\n\t\t\t\t }\n\t\t\t\t else{\n\t\t\t\t\t //read model \n\t\t\t\t\t InputStream input = new ByteArrayInputStream(text.getBytes());\n\t \n\t\t\t\t\t modret.read(input, null,\"RDF/JSON\");\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t }\n\t\t\t\t return modret;\n\t \n\t\t }", "private List<Model> getModel() {\n \r\n DataBaseTestAdapter1 mDbHelper = new DataBaseTestAdapter1(this); \r\n\t \tmDbHelper.createDatabase(); \r\n\t \tmDbHelper.open(); \r\n\t \t \r\n \t \tpure = (Pure?\"T\":\"F\");\r\n\r\n \t \tString sql =\"SELECT Code FROM \"+major+\" WHERE (Pure='All' OR Pure='\" + pure + \"') ORDER BY Year,Code\"; \r\n\t \tCursor testdata = mDbHelper.getTestData(sql); \r\n\t \tString code = DataBaseUtility1.GetColumnValue(testdata, \"Code\");\r\n\t \tlist.add(new Model(code));\r\n\t \twhile (testdata.moveToNext()){\r\n\t \t\t \r\n\t \tcode = DataBaseUtility1.GetColumnValue(testdata, \"Code\");\r\n\t \tModel temp = new Model(code);\r\n\t \t\r\n\t \tif ((code.equals(\"CommonCore1\") && SA) ||\t\t\t//name conversion\r\n\t \t\t\t(code.equals(\"CommonCore2\") && S_T) ||\r\n\t \t\t\t(code.equals(\"CommonCore3\") && A_H) ||\r\n\t \t\t\t(code.equals(\"CommonCore4\") && Free) ||\r\n\t \t\t\t(code.equals(\"SBM\") && SBM) ||\r\n\t \t\t\t(code.equals(\"ENGG\") && ENGG) ||\r\n\t \t\t\t(code.equals(\"FreeElective\") && FreeE) ||\r\n\t \t\t\t(code.equals(\"COMPElective1\") && compx1) ||\r\n\t \t\t\t((code.equals(\"COMPElective1\")|| code.equals(\"COMPElective2\")) && compx2) ||\r\n\t \t\t\t((code.equals(\"COMPElective1\")|| code.equals(\"COMPElective2\") || code.equals(\"COMPElective3\")) && compx3) ||\r\n\t \t\t\t((code.equals(\"COMPElective1\")|| code.equals(\"COMPElective2\") || code.equals(\"COMPElective3\") || code.equals(\"COMPElective4\")) && compx4) ||\r\n\t \t\t\t((code.equals(\"COMPElective1\")|| code.equals(\"COMPElective2\") || code.equals(\"COMPElective3\") || code.equals(\"COMPElective4\") || code.equals(\"COMPElective5\")) && compx5) ||\r\n\t \t\t\t(code.equals(\"COMP/ELEC/MATH1\") && CEMx1) ||\r\n\t \t\t\t((code.equals(\"COMP/ELEC/MATH1\") || code.equals(\"COMP/ELEC/MATH2\")) && CEMx2) \r\n\t \t\t\t\t\t\t\t){\r\n\t \t\t\r\n\t \t\ttemp.setSelected(true);\r\n\t \t}\r\n\t \r\n\t \tlist.add(temp);\r\n \t}\r\n\r\n\t\ttestdata.close();\r\n \tmDbHelper.close();\r\n\r\n return list;\r\n }", "@objid (\"0fc4a30a-9083-11e1-81e9-001ec947ccaf\")\npublic interface IModel {\n @objid (\"158ef48a-aed6-4746-a113-8d9f740481b4\")\n public static final IMObjectFilter ISVALID = new IMObjectFilter() {\n\t\t@Override\n\t\tpublic boolean accept(MObject obj) {\n\t\t\treturn obj != null && obj.isValid();\n\t\t}\n\t};\n\n @objid (\"899f8ec3-25d4-4441-b499-c889c4e125a7\")\n public static final IMObjectFilter NOSHELL = new IMObjectFilter() {\n\t\t@Override\n\t\tpublic boolean accept(MObject obj) {\n\t\t\treturn obj != null && ! obj.isShell();\n\t\t}\n\t};\n\n @objid (\"f85615e6-6ad2-4a7a-9784-cf8d466faa65\")\n public static final IMObjectFilter NODELETED = new IMObjectFilter() {\n\t\t@Override\n\t\tpublic boolean accept(MObject obj) { \n\t\t\treturn obj != null && ! obj.isDeleted();\n\t\t}\n\t};\n\n /**\n * Find elements by a metaclass an an attribute value.\n * @param cls the metaclass.\n * @param att the attribute to search\n * @param val the attribute value\n * @return the found elements.\n */\n @objid (\"17c23aa0-9083-11e1-81e9-001ec947ccaf\")\n Collection<? extends MObject> findByAtt(MClass cls, final String att, Object val, IMObjectFilter filter);\n\n /**\n * Get all elements of a given class and the class descendants.\n * @param cls a metaclass.\n * @return all elements of this class.\n */\n @objid (\"17c23aa1-9083-11e1-81e9-001ec947ccaf\")\n Collection<? extends MObject> findByClass(MClass cls, IMObjectFilter filter);\n\n /**\n * Find an element from its MClass and its identifier.\n * @param cls a metaclass\n * @param siteIdentifier an UUID\n * @return the found element or <code>null</code>.\n */\n @objid (\"17c23aa2-9083-11e1-81e9-001ec947ccaf\")\n MObject findById(MClass cls, final UUID siteIdentifier, IMObjectFilter filter);\n\n /**\n * Find an element from a reference.\n * @param ref an element reference\n * @return the found element or <code>null</code>.\n * @throws org.modelio.vcore.session.UnknownMetaclassException if the referenced metaclass does not exist.\n */\n @objid (\"10a41285-16e7-11e2-b24b-001ec947ccaf\")\n MObject findByRef(MRef ref, IMObjectFilter filter) throws UnknownMetaclassException;\n\n /**\n * Get the generic factory.\n * @return the generic factory.\n */\n @objid (\"0078ca26-5a20-10c8-842f-001ec947cd2a\")\n GenericFactory getGenericFactory();\n\n @objid (\"00955b82-61a5-10c8-842f-001ec947cd2a\")\n Collection<? extends MObject> findByClass(MClass cls);\n\n @objid (\"0096d304-61a5-10c8-842f-001ec947cd2a\")\n Collection<? extends MObject> findByAtt(MClass cls, final String att, Object val);\n\n @objid (\"009711de-61a5-10c8-842f-001ec947cd2a\")\n MObject findById(MClass cls, final UUID siteIdentifier);\n\n @objid (\"33fb2113-b8a3-4b3b-95ed-3481c65d2881\")\n MObject findByRef(MRef ref) throws UnknownMetaclassException;\n\n @objid (\"261fe5dc-cfbf-40ee-886d-fc3c529c0e47\")\n <T extends MObject> Collection<T> findByClass(Class<T> metaclass, IMObjectFilter filter);\n\n @objid (\"e46abe41-187e-4d12-b565-c9e92df02519\")\n <T extends MObject> Collection<T> findByAtt(Class<T> metaclass, final String att, Object val, IMObjectFilter filter);\n\n @objid (\"83ef71a2-04ef-4e59-bf55-2bffe3069024\")\n <T extends MObject> T findById(Class<T> metaclass, final UUID siteIdentifier, IMObjectFilter filter);\n\n @objid (\"610f2f86-624b-469c-9c0c-6bf78147fba1\")\n <T extends MObject> Collection<T> findByClass(Class<T> metaclass);\n\n @objid (\"1540131b-bdd6-466c-a417-9e0efd220dda\")\n <T extends MObject> Collection<T> findByAtt(Class<T> metaclass, final String att, Object val);\n\n @objid (\"1b63d157-9858-4691-8636-7c625e97c65e\")\n <T extends MObject> T findById(Class<T> metaclass, final UUID siteIdentifier);\n\n}", "public void modelShow() {\n\t\tSystem.out.println(\"秀衣服\");\n\t}", "public interface VistaListacomprasnoclienteModel extends TemplateModel {\n // Add setters and getters for template properties here.\n }", "private DefaultTableModel createModel() {\n List list = getDefaultInitialData();//obtenemos toda la lista a mostrar\n Vector data = new Vector();//vector tabla\n if (list != null) {\n for (Object o : list) {\n Vector columnas = new Vector();//columnas para llenar la tabla\n //lenar el vector columna\n Object object = null;\n for (Object x : title) {\n try {\n object = o.getClass().getMethod(\"get\" + convertir(x.toString()), new Class[]{}).invoke(o);\n columnas.add(object);\n } catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {\n Logger.getLogger(JCAbstractXTable.class.getName()).log(Level.SEVERE, null, e);\n }\n }\n data.add(columnas);\n }\n }\n return new DefaultTableModel(data, nameColumn());\n }", "public void saveModel() {\n\t}", "public void LlenarPagos(){\n datos=new DefaultTableModel();\n LlenarModelo();\n this.TablaPagos.setModel(datos);\n }", "public void saveModel() {\n\n }", "void setModel(Model model);", "private static List loadModel() {\r\n List items = new ArrayList();\r\n items.add(new Model(1, \"One\"));\r\n items.add(new Model(2, \"Two\"));\r\n items.add(new Model(3, \"Three\"));\r\n items.add(new Model(4, \"Four\"));\r\n items.add(new Model(5, \"Five\"));\r\n items.add(new Model(6, \"Six\"));\r\n items.add(new Model(7, \"Seven\"));\r\n items.add(new Model(8, \"Eight\"));\r\n items.add(new Model(9, \"Nine\"));\r\n items.add(new Model(10, \"Ten\"));\r\n items.add(new Model(11, \"Eleven\"));\r\n items.add(new Model(12, \"Twelve\"));\r\n items.add(new Model(13, \"Thirteen\"));\r\n items.add(new Model(14, \"Fourteen\"));\r\n items.add(new Model(15, \"Fiveteen\"));\r\n items.add(new Model(16, \"Sixteen\"));\r\n items.add(new Model(17, \"Seventeen\"));\r\n items.add(new Model(18, \"Eighteen\"));\r\n items.add(new Model(19, \"Nineteen\"));\r\n items.add(new Model(20, \"Twenty\"));\r\n\r\n return items;\r\n }", "public interface VistaDetallemensajeModel extends TemplateModel {\n // Add setters and getters for template properties here.\n }", "@SideOnly(Side.CLIENT)\n public static void initModels() {\n }", "private void srediTabelu() {\n ModelTabeleStavka mts = new ModelTabeleStavka();\n mts.setLista(n.getLista());\n tblStavka.setModel(mts);\n }", "public ClienteModel getModelo() {\r\n return modelo;\r\n }", "public void entregarVehiculo(Modelo modeloAAdjudicar) {\n\t\t\n\t}", "@Override\r\n public void setModel(String model) {\n }", "public void datos_elegidos(){\n\n\n }", "private void setupTitanoboaModelXLarge() {\n\t\t/*\n\t\t * This is less nasty than the last version, but I still don't like it. The problem is there's no good way to\n\t\t * dynamically generate the part after R.id. - there's a findViewByName but its efficiency apparently sucks.\n\t\t * Most of the improvement from the last version is from having made the model automatically set up its modules\n\t\t * which in turn set up their vertebrae, and from eliminating the actuator objects.\n\t\t */\n\n\t\ttitanoboaModel = new TitanoboaModel();\n\n\t\tModule module1 = titanoboaModel.getModules().get(0);\n\n\t\tmodule1.setBatteryLevelView((TextView) findViewById(R.id.m1_battery_level));\n\t\tmodule1.setMotorSpeedView((TextView) findViewById(R.id.m1_motor_speed));\n module1.setPressureSensorView((TextView) findViewById(R.id.m1_pressure));\n\n List<List<TextView>> module1VertebraeViews = new ArrayList<List<TextView>>();\n\n List<TextView> module1Vertebra0Views = new ArrayList<TextView>(); \n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_h_setpoint_angle));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_h_current_angle));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_h_sensor_calibration_high));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_h_sensor_calibration_low));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_v_setpoint_angle));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_v_current_angle));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_v_sensor_calibration_high));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra0Views);\n\n List<TextView> module1Vertebra1Views = new ArrayList<TextView>();\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_h_setpoint_angle));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_h_current_angle));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_h_sensor_calibration_high));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_h_sensor_calibration_low));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_v_setpoint_angle));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_v_current_angle));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_v_sensor_calibration_high));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra1Views);\n\n List<TextView> module1Vertebra2Views = new ArrayList<TextView>();\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_h_setpoint_angle));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_h_current_angle));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_h_sensor_calibration_high));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_h_sensor_calibration_low));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_v_setpoint_angle));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_v_current_angle));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_v_sensor_calibration_high));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra2Views);\n\n List<TextView> module1Vertebra3Views = new ArrayList<TextView>();\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_h_setpoint_angle));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_h_current_angle));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_h_sensor_calibration_high));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_h_sensor_calibration_low));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_v_setpoint_angle));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_v_current_angle));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_v_sensor_calibration_high));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra3Views);\n\n List<TextView> module1Vertebra4Views = new ArrayList<TextView>();\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_h_setpoint_angle));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_h_current_angle));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_h_sensor_calibration_high));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_h_sensor_calibration_low));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_v_setpoint_angle));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_v_current_angle));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_v_sensor_calibration_high));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra4Views);\n\n module1.setVertebraeViews(module1VertebraeViews);\n\n Module module2 = titanoboaModel.getModules().get(1);\n\n module2.setBatteryLevelView((TextView) findViewById(R.id.m2_battery_level));\n module2.setMotorSpeedView((TextView) findViewById(R.id.m2_motor_speed));\n module2.setPressureSensorView((TextView) findViewById(R.id.m2_pressure));\n\n List<List<TextView>> module2VertebraeViews = new ArrayList<List<TextView>>();\n\n List<TextView> module2Vertebra0Views = new ArrayList<TextView>();\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_h_setpoint_angle));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_h_current_angle));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_h_sensor_calibration_high));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_h_sensor_calibration_low));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_v_setpoint_angle));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_v_current_angle));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_v_sensor_calibration_high));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra0Views);\n\n List<TextView> module2Vertebra1Views = new ArrayList<TextView>();\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_h_setpoint_angle));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_h_current_angle));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_h_sensor_calibration_high));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_h_sensor_calibration_low));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_v_setpoint_angle));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_v_current_angle));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_v_sensor_calibration_high));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra1Views);\n\n List<TextView> module2Vertebra2Views = new ArrayList<TextView>();\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_h_setpoint_angle));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_h_current_angle));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_h_sensor_calibration_high));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_h_sensor_calibration_low));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_v_setpoint_angle));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_v_current_angle));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_v_sensor_calibration_high));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra2Views);\n\n List<TextView> module2Vertebra3Views = new ArrayList<TextView>();\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_h_setpoint_angle));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_h_current_angle));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_h_sensor_calibration_high));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_h_sensor_calibration_low));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_v_setpoint_angle));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_v_current_angle));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_v_sensor_calibration_high));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra3Views);\n\n List<TextView> module2Vertebra4Views = new ArrayList<TextView>();\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_h_setpoint_angle));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_h_current_angle));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_h_sensor_calibration_high));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_h_sensor_calibration_low));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_v_setpoint_angle));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_v_current_angle));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_v_sensor_calibration_high));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra4Views);\n\n module2.setVertebraeViews(module2VertebraeViews);\n\n Module module3 = titanoboaModel.getModules().get(2);\n\n module3.setBatteryLevelView((TextView) findViewById(R.id.m3_battery_level));\n module3.setMotorSpeedView((TextView) findViewById(R.id.m3_motor_speed));\n module3.setPressureSensorView((TextView) findViewById(R.id.m3_pressure));\n\n List<List<TextView>> module3VertebraeViews = new ArrayList<List<TextView>>();\n\n List<TextView> module3Vertebra0Views = new ArrayList<TextView>();\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_h_setpoint_angle));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_h_current_angle));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_h_sensor_calibration_high));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_h_sensor_calibration_low));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_v_setpoint_angle));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_v_current_angle));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_v_sensor_calibration_high));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra0Views);\n\n List<TextView> module3Vertebra1Views = new ArrayList<TextView>();\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_h_setpoint_angle));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_h_current_angle));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_h_sensor_calibration_high));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_h_sensor_calibration_low));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_v_setpoint_angle));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_v_current_angle));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_v_sensor_calibration_high));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra1Views);\n\n List<TextView> module3Vertebra2Views = new ArrayList<TextView>();\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_h_setpoint_angle));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_h_current_angle));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_h_sensor_calibration_high));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_h_sensor_calibration_low));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_v_setpoint_angle));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_v_current_angle));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_v_sensor_calibration_high));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra2Views);\n\n List<TextView> module3Vertebra3Views = new ArrayList<TextView>();\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_h_setpoint_angle));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_h_current_angle));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_h_sensor_calibration_high));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_h_sensor_calibration_low));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_v_setpoint_angle));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_v_current_angle));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_v_sensor_calibration_high));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra3Views);\n\n List<TextView> module3Vertebra4Views = new ArrayList<TextView>();\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_h_setpoint_angle));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_h_current_angle));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_h_sensor_calibration_high));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_h_sensor_calibration_low));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_v_setpoint_angle));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_v_current_angle));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_v_sensor_calibration_high));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra4Views);\n\n module3.setVertebraeViews(module3VertebraeViews);\n\n Module module4 = titanoboaModel.getModules().get(3);\n\n module4.setBatteryLevelView((TextView) findViewById(R.id.m4_battery_level));\n module4.setMotorSpeedView((TextView) findViewById(R.id.m4_motor_speed));\n module4.setPressureSensorView((TextView) findViewById(R.id.m4_pressure));\n\n List<List<TextView>> module4VertebraeViews = new ArrayList<List<TextView>>();\n\n List<TextView> module4Vertebra0Views = new ArrayList<TextView>();\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_h_setpoint_angle));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_h_current_angle));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_h_sensor_calibration_high));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_h_sensor_calibration_low));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_v_setpoint_angle));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_v_current_angle));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_v_sensor_calibration_high));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra0Views);\n\n List<TextView> module4Vertebra1Views = new ArrayList<TextView>();\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_h_setpoint_angle));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_h_current_angle));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_h_sensor_calibration_high));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_h_sensor_calibration_low));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_v_setpoint_angle));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_v_current_angle));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_v_sensor_calibration_high));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra1Views);\n\n List<TextView> module4Vertebra2Views = new ArrayList<TextView>();\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_h_setpoint_angle));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_h_current_angle));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_h_sensor_calibration_high));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_h_sensor_calibration_low));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_v_setpoint_angle));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_v_current_angle));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_v_sensor_calibration_high));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra2Views);\n\n List<TextView> module4Vertebra3Views = new ArrayList<TextView>();\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_h_setpoint_angle));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_h_current_angle));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_h_sensor_calibration_high));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_h_sensor_calibration_low));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_v_setpoint_angle));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_v_current_angle));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_v_sensor_calibration_high));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra3Views);\n\n List<TextView> module4Vertebra4Views = new ArrayList<TextView>();\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_h_setpoint_angle));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_h_current_angle));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_h_sensor_calibration_high));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_h_sensor_calibration_low));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_v_setpoint_angle));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_v_current_angle));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_v_sensor_calibration_high));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra4Views);\n\n module4.setVertebraeViews(module4VertebraeViews);\n\t}", "protected E getModel ()\n\t{\n\t\treturn model;\n\t}", "public void setModel(Model m){\r\n model = m;\r\n }", "private void setupModel() {\n\n //Chooses which model gets prepared\n switch (id) {\n case 2:\n singlePackage = new Node();\n activeNode = singlePackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_solo)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 3:\n multiPackage = new Node();\n activeNode = multiPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_multi_new)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 4:\n wagonPackage = new Node();\n activeNode = wagonPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_car_new)\n .build().thenAccept(a -> activeRenderable = a)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n default:\n mailbox = new Node();\n activeNode = mailbox;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.mailbox)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n }\n }", "interface PresenterToModel extends Model<ModelToPresenter> {\n\n\n\n\n String getNameLabel();\n\n\n String getPhotoLabel();\n\n\n String getLabelRadio0();\n\n\n String getLabelRadio1();\n\n\n String getLabelRadio2();\n\n\n String getLabelRadio3();\n\n\n String getButtonAddlabel();\n\n\n String getToastNotifyingAdded();\n\n\n void insertEvent(String Categoryname, String image);\n\n String getImageByIdSelected(int id);\n\n\n String getImage(int i);\n }", "private static Set<TipoLinkPartita> initModel() {\n\n Set<TipoLinkPartita> partite = new HashSet<TipoLinkPartita>();\n\n Squadra verdi = new Squadra(\"Verdi\");\n Squadra rossi = new Squadra(\"Rossi\");\n Squadra gialli = new Squadra(\"Gialli\");\n Squadra blu = new Squadra(\"Blu\");\n\n try {\n\n TipoLinkPartita p = new TipoLinkPartita(verdi, 2, rossi, 0);\n verdi.inserisciLinkPartita(p);\n partite.add(p);\n\n p = new TipoLinkPartita(verdi, 3, blu, 1);\n verdi.inserisciLinkPartita(p);\n partite.add(p);\n\n p = new TipoLinkPartita(blu, 2, rossi, 0);\n blu.inserisciLinkPartita(p);\n partite.add(p);\n\n p = new TipoLinkPartita(gialli, 1, rossi, 3);\n rossi.inserisciLinkPartita(p);\n partite.add(p);\n\n } catch (EccezionePrecondizioni e) {\n e.printStackTrace();\n }\n\n // Crea ed aggiunge giocatori alle squadre\n // eta' casuale tra 1970 e 1980\n // (Math.random() resituisce un double casuale tra 0.0 e 1.0)\n for (int i = 0; i < 20; i++) {\n\n Giocatore g = new Giocatore(\"verde-\" + i, 1970 + (int) (10 * Math.random()));\n verdi.insericiLinkGioca(g);\n\n g = new Giocatore(\"rosso-\" + i, 1970 + (int) (10 * Math.random()));\n rossi.insericiLinkGioca(g);\n\n g = new Giocatore(\"giallo-\" + i, 1970 + (int) (10 * Math.random()));\n gialli.insericiLinkGioca(g);\n\n g = new Giocatore(\"blu-\" + i, 1970 + (int) (10 * Math.random()));\n blu.insericiLinkGioca(g);\n }\n\n return partite;\n }", "@Override\n public void Update(Model model) {\n\n }", "public CadastrarMarcasModelos() {\n initComponents();\n }", "public interface Model {\n /** {@code Predicate} that always evaluate to true */\n Predicate<ReadOnlyPerson> PREDICATE_SHOW_ALL_PERSONS = unused -> true;\n Predicate<ReadOnlyEvent> PREDICATE_SHOW_ALL_EVENTS = unused -> true;\n\n\n //@@author low5545\n /** Adds extra data to the existing model */\n void addData(ReadOnlyAddressBook newData);\n //@@author\n\n /** Clears existing backing model and replaces with the provided new data. */\n void resetData(ReadOnlyAddressBook newData);\n\n /** Returns the AddressBook */\n ReadOnlyAddressBook getAddressBook();\n\n //=========== Model support for property component =============================================================\n\n //@@author yunpengn\n /** Adds a new customize property */\n void addProperty(String shortName, String fullName, String message, String regex)\n throws DuplicatePropertyException, PatternSyntaxException;\n //@@author\n\n //=========== Model support for contact component =============================================================\n\n /** Adds the given person */\n void addPerson(ReadOnlyPerson person) throws DuplicatePersonException;\n\n /** Replaces the given person {@code target} with {@code editedPerson} */\n void updatePerson(ReadOnlyPerson target, ReadOnlyPerson editedPerson)\n throws DuplicatePersonException, PersonNotFoundException;\n\n /** Deletes the given person. */\n void deletePerson(ReadOnlyPerson target) throws PersonNotFoundException;\n\n /** Adds or updates the avatar of the selected person. */\n void setPersonAvatar(ReadOnlyPerson target, Avatar avatar);\n\n //@@author dennaloh\n /** Gets URL for google maps. */\n String getGMapUrl(ReadOnlyPerson target);\n\n /** Gets URL to search on facebook. */\n String getFbUrl (ReadOnlyPerson target);\n\n /** Opens URL in default browser. */\n void openUrl (String url);\n //@@author\n\n //=========== Model support for tag component =============================================================\n\n /** Removes the specific tag (from all persons with that tag) */\n void removeTag(Tag tags) throws DuplicatePersonException, PersonNotFoundException;\n\n /** Checks whether there exists a tag (with the same tagName) */\n boolean hasTag(Tag tag);\n\n //@@author yunpengn\n /** Changes the color of an existing tag (through TagColorManager) */\n void setTagColor(Tag tag, String color);\n\n //@@author\n\n\n\n //@@author junyango\n //=========== Model support for activity component =============================================================\n\n /** Adds an event */\n void addEvent(ReadOnlyEvent event) throws DuplicateEventException;\n\n /** Updates the given event */\n void updateEvent(ReadOnlyEvent target, ReadOnlyEvent editedEvent)\n throws DuplicateEventException, EventNotFoundException;\n /** Deletes the given event */\n void deleteEvent(ReadOnlyEvent target) throws EventNotFoundException;\n\n\n\n //@@author\n\n //@@author\n\n //=========== Filtered Person/Activity List support =============================================================\n\n /** Returns an unmodifiable view of the filtered person list */\n ObservableList<ReadOnlyPerson> getFilteredPersonList();\n\n /** Returns an unmodifiable view of the filtered event list */\n ObservableList<ReadOnlyEvent> getFilteredEventList();\n\n /** Updates the filter of the filtered person list to filter by the given {@code predicate}. */\n void updateFilteredPersonList(Predicate<ReadOnlyPerson> predicate);\n\n /** Updates the filter of the filtered event list to filter by the given {@code predicate}. */\n void updateFilteredEventsList(Predicate<ReadOnlyEvent> predicate);\n\n}", "public Model getModel(){\r\n return model;\r\n }", "private Model(){}", "public void oppdaterJliste()\n {\n bModel.clear();\n\n Iterator<Boligsoker> iterator = register.getBoligsokere().iterator();\n\n while(iterator.hasNext())\n bModel.addElement(iterator.next());\n }", "public interface iModel {\n\n public void add(Object value);\n public Object get(int index);\n\n}", "TypedModel getModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Modelo(Marca marca) {\n\t\tsetMarca(marca);\n\t}", "public void setModel(String model)\n {\n this.model = model;\n }", "@Override\r\n\tpublic String getModel() {\n\t\treturn \"Activa\";\r\n\t}", "public AbstractJMFXModel(M model) {\n\t\tthis.model = model;\n\t}", "@Override\n public void update(java.util.Observable updatedModel, Object parametros) {\n if (parametros != Consulta_Proveedor_Modelo.ae_bulto_modelo) {\n return;\n }\n \n Bulto actual = model.getA_modelo_b_c().obtener_bultos_C_Modelo().obtener_fila_a(numero_fila);\n if (actual != null) {\n this.jTextFieldCodigo.setText(actual.obtener_codigo());\n this.jTextFieldMaterial.setText(actual.obtener_material().obtener_t_material().obtener_nombre());\n this.jTextFieldPeso.setText(String.valueOf(actual.obtener_peso()));\n }\n }", "void listarDadosNaTelaLivro(ArrayList<Livro> lista,DefaultTableModel model ) throws Exception {\n \n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[7];\n Livro aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = \"\"+editora.recuperar(aux.getIdEditora());\n linha[2] = \"\"+autor.recuperar(aux.getIdAutor());\n linha[3] = \"\"+areaDeConhecimento.recuperar(aux.getIdAreaDeConhecimento());\n linha[4] = aux.getTituloDoLivro();\n linha[5] = \"\"+aux.getIsbn();\n model.addRow(linha);\n }\n }", "private void generateModel() {\n // Initialize a new model object\n mCm = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n mCm[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n }", "public GestorDeConseptos() {\n initComponents();\n service=new InformeService(); \n m=new ConseptoTableModel();\n this.jTable1.setModel(m);\n cuentas=new Vector<ConseptoEnCuenta>();\n }", "public interface IModel {\n}", "public void trenneVerbindung();", "public Logic(Model m){\r\n model = m;\r\n }" ]
[ "0.675341", "0.6660544", "0.6660544", "0.6660544", "0.66338944", "0.659313", "0.65468496", "0.65394974", "0.65136373", "0.6455161", "0.64064395", "0.63898313", "0.63811344", "0.63727665", "0.6316364", "0.62912965", "0.6272981", "0.6268767", "0.626063", "0.6256278", "0.6218962", "0.6207394", "0.61822414", "0.6177897", "0.616882", "0.6162319", "0.6156932", "0.6155353", "0.61540234", "0.61437744", "0.6132523", "0.61081105", "0.61007625", "0.60638136", "0.6062373", "0.60501385", "0.60487056", "0.60462946", "0.6022135", "0.60182554", "0.59902126", "0.5977945", "0.5977339", "0.5961386", "0.5960474", "0.59565055", "0.5953721", "0.5935107", "0.5933993", "0.5931528", "0.59308136", "0.593056", "0.59225154", "0.59173834", "0.59035003", "0.59", "0.5899981", "0.588724", "0.58799285", "0.5877261", "0.58703077", "0.5858608", "0.5855709", "0.5842338", "0.5835642", "0.58334816", "0.5828838", "0.58277917", "0.581618", "0.58124053", "0.57939214", "0.57857907", "0.5783543", "0.57814604", "0.5775752", "0.577151", "0.5758126", "0.5757787", "0.5756101", "0.57551354", "0.5742039", "0.57350624", "0.5735022", "0.57336426", "0.57336426", "0.57336426", "0.57336426", "0.57336426", "0.57336426", "0.57336426", "0.57230145", "0.57197297", "0.5707477", "0.57057106", "0.5703908", "0.5702239", "0.5696242", "0.56905633", "0.5690222", "0.56867194", "0.56827295" ]
0.0
-1
public static final String URL_API = "
public getAllProfileTask(Context c_, View rootView_) { context = c_; rootView = rootView_; CustomListViewValuesArr = new ArrayList<User>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getApiUrl() {\n return API_URL;\n }", "java.lang.String getApiUrl();", "public String getApiUrl();", "private static String composeApiUrl(String string){\r\n\t\treturn API_BASE + API_VERSION + string;\r\n\t}", "private static String getBaseUrl()\r\n {\r\n return \"https://rapidapi.io/connect\";\r\n }", "public interface APIConstant {\n\n interface URL{\n String BAIDU_WEATHER_URL = \"http://api.map.baidu.com/telematics/v3/weather?location=杭州&output=json&ak=FkPhtMBK0HTIQNh7gG4cNUttSTyr0nzo\";\n\n String BAIDU_WEATHER_BASE_URL = \"http://api.map.baidu.com/\";\n String AK = \"FkPhtMBK0HTIQNh7gG4cNUttSTyr0nzo\";\n String OUTPUT = \"json\";\n\n }\n\n}", "public interface Constants {\n String API_ENDPOINT = \"http://dcb86d07.ngrok.io\";\n}", "public interface API {\n\n// String BASE_URL = \"http://logicalsofttech.com/helpmewaka/api/\";\n// String BASE_URL_IMG_CON = \"https://logicalsofttech.com/helpmewaka/upload/contractor/profile/\";\n// String BASE_URL_IMG_CUST = \"https://logicalsofttech.com/helpmewaka/upload/customer/\";\n// String BASE_URL_DOWNLOAD_IMG_CUST = \"https://logicalsofttech.com/helpmewaka/upload/jobs/customer/\";\n// String BASE_URL_DOWNLOAD_IMG_CONTRACTOR = \"https://logicalsofttech.com/helpmewaka/upload/jobs/contractor/\";\n// String BASE_URL_IMEGES = \"https://www.helpmewaka.com/images/\";\n\n String BASE_URL = \"https://helpmewaka.com/api/\";\n String BASE_URL_IMG_CON = \"https://www.helpmewaka.com/upload/contractor/profile/\";\n String BASE_URL_IMG_CUST = \"https://www.helpmewaka.com/upload/customer/\";\n String BASE_URL_DOWNLOAD_IMG_CUST = \"https://www.helpmewaka.com/upload/jobs/customer/\";\n String BASE_URL_DOWNLOAD_IMG_CONTRACTOR = \"https://www.helpmewaka.com/upload/jobs/contractor/\";\n String BASE_URL_IMEGES = \"https://www.helpmewaka.com/images/\";\n\n}", "public interface API {\n\n String ZHIHU_DAILY_BEFORE = \"http://news.at.zhihu.com/api/4/news/before/\";\n String ZHIHU_DAILY_OFFLINE_NEWS = \"http://news-at.zhihu.com/api/4/news/\";\n String SEARCH = \"http://zhihudailypurify.herokuapp.com/search/\";\n\n}", "public interface HttpConstants {\n\n String BASE_URL = \"http://apis.tudou.com/\";\n String REQUEST_HTTP_URL = \"classification/v1/startPage\";\n}", "public interface Api {\n String APP_DOMAIN = \"https://devapi.90sbid.com\";\n String RequestSuccess = \"0\";\n}", "public interface Constants {\n String API_LINK_TEXT = \"API_LINK\";\n String USER_ID = \"user_id\";\n String MAPS_KEY = \"AIzaSyBgktirlOODUO9zWD-808D7zycmP7smp-Y\";\n String NEWS_API = \"https://newsapi.org/v1/articles?source=national-geographic&sortBy=top&apiKey=79a22c366b984f11b09d11fb9476d33b\";\n}", "public interface Url {\n String BASE_URL = \"http://v3.wufazhuce.com:8000/api/\";\n\n //获取最新 idlist(返回的字段用于下个接口获取某一天的onelist,一共10个返回值,也就是10天的数据)\n String ID_LIST = \"onelist/idlist/\";\n //获取某天的 onelist\n String ONE_LIST = \"onelist/\";\n\n //阅读列表\n String READ_LIST = \"channel/reading/more/0\";\n //音乐列表\n String MUSIC_LIST = \"channel/music/more/0\";\n //影视列表\n String MOVIE_LIST = \"channel/movie/more/0\";\n\n //阅读相关详情\n String READ_DETAIL = \"essay/\";\n //阅读详情(问答)\n String READ_QUESTION = \"question/itemId\";\n //音乐详情\n String MUSIC_DETAIL = \"music/detail/\";\n //影视详情\n String MOVIE_DETAIL = \"movie/itemId/story/1/0\";\n //影视详情(图片和视频)\n String MOVIE_DETAIL_PIC = \"movie/detail/itemId\";\n\n //阅读评论\n String READ_COMMENT = \"comment/praiseandtime/essay/\";\n //音乐评论\n String MUSIC_COMMENT = \"comment/praiseandtime/music/\";\n //影视评论\n String MOVIE_COMMENT = \"comment/praiseandtime/movie/itemId/0\";\n\n //http://v3.wufazhuce.com:8000/api/praise/add?channel=update&source_id=9598&source=summary&version=4.0.7&\n //uuid=ffffffff-a90e-706a-63f7-ccf973aae5ee&platform=android\n\n // 点赞\n String MUSIC_PRAISE = \"praise/add\";\n}", "public interface IServiceApi {\n public static final String VERSION = \"v1/\";\n public static final String BASE = \"/api/\"+VERSION;\n \n}", "public interface Api {\n\n String APP_DOMAIN = \"https://api.github.com\";\n\n String RequestSuccess = \"0\";\n}", "public java.lang.String getApiUrl() {\n java.lang.Object ref = apiUrl_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n apiUrl_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public interface API {\n\n// String BASE_URL = \"https://www.apiopen.top/\";\n String BASE_URL = \"http://gc.ditu.aliyun.com/\";\n\n\n @GET\n Observable<Response<ResponseBody>> doGet(@Url String Url);\n\n @FormUrlEncoded\n @POST\n Observable<Response<ResponseBody>> doPost(@Url String Url, @FieldMap HashMap<String, String> map);\n\n @Streaming\n @GET\n Observable<Response<ResponseBody>> doDownload(@Url String Url);\n}", "public interface URLs\r\n{\r\n String BASIC_URL = \"http://api.timetable.asia/\";\r\n\r\n String KEY = \"221b368d7f5f597867f525971f28ff75\";\r\n\r\n String COMPANY_URL = \"operator.json\";\r\n String LANGUAGE_URL = \"lang.json\";\r\n String VEHICLE_URL = \"fleet.json\";\r\n String ROUTE_URL = \"route.json\";\r\n String TRIP_URL = \"trip.json\";\r\n String COMMIT_URL = \"commit.json\";\r\n String CURRENT_STATIONS_URL = \"station.json\";\r\n public static final String LANGPACK_URL = \"langpack.json\";\r\n}", "public java.lang.String getApiUrl() {\n java.lang.Object ref = apiUrl_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n apiUrl_ = s;\n }\n return s;\n }\n }", "public interface ManagerApiConstants {\n\n String USER_API_VERSION = \"/v1\";\n String USER_API_APPLICATION_NAME = \"SERVICE-MANAGER\";\n String USER_API_URL_PREFIX = \"http://\" + USER_API_APPLICATION_NAME + \"/\" + USER_API_VERSION;\n}", "public interface ConstantsKey {\n// Values\n String TEXT_FONT_STYLE_NAME=\"WorkSans_Regular.ttf\";\n// Urls\n String BASE_URL=\"http://test.code-apex.com/codeapex_project/index.php/api/user/\";\n String BASEURL =\"baseurl\" ;\n// Keys\n}", "public interface Constants {\n\n public String API_KEY = \"AIzaSyAQLJMre7uZkM_VQMmpfC79rhxhUOEKFOs\";\n\n public String BASE_URL = \"https://maps.googleapis.com/maps/api/\";\n}", "public interface Api {\n\n// root url after add multiple servlets\n\n String BASE_URL = \"https://simplifiedcoding.net/demos/\";\n\n @GET(\"marvel\")\n Call<List<Modelclass>> getmodelclass();\n\n\n\n}", "public interface Constants {\n String LIEPIN_HOST =\"https://h.liepin.com\";\n String SEARCH_URL =\"https://h.liepin.com/cvsearch/soResume/\";\n //String WORK_EXPERIENCE_URL =\"https://h.liepin.com/resume/showresumedetail/showresumeworkexps/\";\n String WORK_EXPERIENCE_URL =\"https://h.liepin.com/resume/showresumedetail/showworkexps/\";\n String ANCHOR_TAG =\"<div class=\\\"resume-work\\\" id=\\\"workexp_anchor\\\">\";\n String GET_METHOD =\"GET\";\n String POST_METHOD =\"POST\";\n}", "private static URL buildMovieDbUrl(String apiMethod)\n {\n Uri builtUri = Uri.parse(API_BASE).buildUpon().appendEncodedPath(apiMethod)\n .appendQueryParameter(\"api_key\", API_KEY).build();\n URL url = null;\n try {\n url = new URL(builtUri.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n return url;\n }", "public interface Const {\n String SERVER_NAME = \"http://xxx.kenit.net/\";\n String SERVER_PATH = \"http://xxx.kenit.net/androidpart/\";\n String GET_PRODUCT_FILE = \"getproduct.php\";\n}", "private static String apiUrl(String sessionID, boolean xmlOrJson) {\n\t\tString url;\n\t\ttry {\n\t\t\turl = pmaUrl(sessionID);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tif (PMA.logger != null) {\n\t\t\t\tStringWriter sw = new StringWriter();\n\t\t\t\te.printStackTrace(new PrintWriter(sw));\n\t\t\t\tPMA.logger.severe(sw.toString());\n\t\t\t}\n\t\t\turl = null;\n\t\t}\n\t\tif (url == null) {\n\t\t\t// sort of a hopeless situation; there is no URL to refer to\n\t\t\treturn null;\n\t\t}\n\t\t// remember, _pma_url is guaranteed to return a URL that ends with \"/\"\n\t\tif (xmlOrJson) {\n\t\t\treturn PMA.join(url, \"api/xml/\");\n\t\t} else {\n\t\t\treturn PMA.join(url, \"api/json/\");\n\t\t}\n\t}", "public interface HttpApi {\n /**\n * 使用YiXinApp.isDebug来标记是测试还是正式的\n * {@link BaseApplication}\n *\n */\n /*使用同一的开关来标识测试还是正式\n * :左侧为测试网\n * :右侧为正式网\n * */\n String unionPayMode = BaseApplication.isDebug ? \"01\" : \"00\";\n String ROOT_HOST_NAME = BaseApplication.isDebug ? \"http://210.14.72.52\" : \"http://firstaid.skyhospital.net\";\n String URL_BASE = BaseApplication.isDebug ? \"/firstaid/1.0/\" : \"/firstaid/1.0/\";\n String URL_WEB = BaseApplication.isDebug ? \"/shopweb/index.php/\" : \"/shopweb/index.php/\";\n\n /**\n * 用户登录\n */\n String lOGIN_URL = ROOT_HOST_NAME + URL_BASE + \"login.php\";\n\n}", "private Api() {\n // Implement a method to build your retrofit\n buildRetrofit(BASE_URL);\n }", "public interface Constants {\n public static final String APP_KEY = \"2870170017\";\n public static final String APP_SECRET =\"a1ba9b85a74e3e15b2d6f80106ea42f1\";\n public static final String REDIRECT_URL = \"https://api.weibo.com/oauth2/default.html\";\n public static final String SCOPE =null;\n}", "API createAPI();", "public void setStepikApiUrl(String apiURL){\n this.STEPIK_API_URL = apiURL;\n setupAPI();\n }", "public String getUrl()\n\t\t{\n\t\t\treturn \"https://developer.zohoapis.eu\";\n\t\t}", "public interface RestAPI {\n String API_PROTOCOL = \"https://\";\n\n String API_URL = \".fusion-universal.com\";\n\n String API_SEARCH_COMPANY = \"/api/v1/company.json\";\n\n\n Observable<CompanyEntity> companySearch(final String companyName);\n}", "private ApiUrlCreator() {\n }", "private static String useAPI(String urlString) throws IOException {\n String inline = \"\";\n URL url = new URL(urlString);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.connect();\n\n int responsecode = conn.getResponseCode();\n if(responsecode == 200) {\n Scanner sc = new Scanner(url.openStream());\n while(sc.hasNext()) {\n inline += sc.nextLine();\n }\n sc.close();\n conn.disconnect();\n return inline;\n }\n conn.disconnect();\n return \"[]\";\n }", "private void buildBS60Url() {\n url = \"http://q.lizone.net/index/index/BSline/res/60/label/\" + dataItem.label;//API 2.0\n }", "public interface WeatherCurrentServiceAPI {\n /*@GET(\"data/2.5/weather?lat=52&lon=25&APPID=8e401c96e74d2f0c07da113eb27d51d0\")\n Call<WeatherCurentData>getWeatherResponse();*/\n\n @GET\n Call<WeatherCurentData> getWeatherResponse(\n @Url String url\n );\n\n}", "public interface Constant {\n //api 说明\n //\n String API= \"/api\";\n\n String AJAXLOGIN =\"ajaxLogin\";\n\n String SAVE = \"register\";\n\n String FORGOT = \"forgot\";\n\n String SUCCESS = \"操作成功\";\n\n String FAIL = \"操作失败\";\n\n //说明\n String LOGIN_SUCCESS = \"登陆成功\";\n\n String PARMS_ERROR = \"参数错误\";\n\n String LOGIN_ERROR= \"账号或密码错误\";\n\n String SAVE_SUCCESS= \"保存成功\";\n\n String SAVE_ERROR= \"保存失败\";\n\n String GET_SUCCESS = \"获取详情成功\";\n\n String GET_ERROR = \"获取详情失败\";\n\n String REGISTER_SUCCESS= \"注册成功\";\n\n String REGISTER_ERROR= \"注册失败\";\n\n}", "public String getAPIName() {\r\n return apiName;\r\n }", "public interface AutoTrackApiPath {\n //调试接口 发送view id+全量数据\n String POINT_DEBUG = \"/dasdk/xxxxxxxx/ctr.do\";\n //下拉埋点配置接口\n String PULL_POINT_CONFIGS = \"/dasdk/xxxxxxx/dacfg.do\";\n //调试nlog接口路径\n String OFFLINE_NLOG_PATH = \"/xxxxxx/logsSdk.do\";\n //线上nlog发送路径\n String ONLINE_NLOG_PATH = \"/logsSdk.do\";\n\n}", "public interface ApiInterface {\n String HOST = \"http://fanyi.youdao.com/\";\n String IMG_HOST = \"http://www.bing.com/\";\n\n @GET(\"openapi.do\")\n Observable<Translation> getTranslation(@Query(\"keyfrom\") String keyfrom,\n @Query(\"key\") String key,\n @Query(\"type\") String type,\n @Query(\"doctype\") String doctype,\n @Query(\"version\") String version,\n @Query(\"q\") String q);\n\n @GET(\"HPImageArchive.aspx\")\n Observable<BackImg> getBackgroundImg(@Query(\"format\") String format,\n @Query(\"idx\") int idx,\n @Query(\"n\") int n);\n\n\n\n}", "com.google.protobuf.ByteString\n getApiUrlBytes();", "private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n url.append(getProtocol());\n url.append(getHost());\n url.append(getPort());\n url.append(getVersion());\n url.append(getService());\n Log.d(TAG, \"url_base: \" + url.toString());\n return url.toString();\n }", "public API() {}", "public String getApiBase() {\n\t\treturn apiBase;\n\t}", "public interface BaseURL {\n\n //INFOQ网址[目前全为移动端]\n String INFOQ_PATH = \"http://www.infoq.com/cn/\";\n\n //CSDN网址\n String CSDN_PATH = \"http://geek.csdn.net/\";\n\n //CSDN ajax请求算法\n String GEEK_CSDN_PATH = \"http://geek.csdn.net/service/news/\";\n\n String ITEYE_PATH_SHORT = \"http://www.iteye.com\";\n\n //ITEYE网址\n String ITEYE_PATH = ITEYE_PATH_SHORT + \"/\";\n\n //泡在网上的日子[移动版块]\n String JCC_PATH = \"http://www.jcodecraeer.com/\";\n\n //开源中国 [使用ajax请求]\n String OS_CHINA_PATH = \"https://www.oschina.net/\";\n\n //开源中国 [使用ajax请求]\n String OS_CHINA_PATH_AJAX = \"https://www.oschina.net/action/ajax/\";\n\n //CSDN搜索区\n String SEARCH_CSDN = \"http://so.csdn.net/so/search/\";\n\n //OSCHINA搜索区\n String SEARCH_OSCHINA = \"https://www.oschina.net/\";\n\n //INFOQ搜索区\n String SEARCH_INFOQ = \"http://www.infoq.com/\";\n\n\n /**\n * 获取CSDN文章链接\n *\n * @return\n * @\n */\n @GET(\"get_category_news_list\")\n Observable<String> getCSDNArticle(@Query(\"category_id\") String category_id,\n @Query(\"jsonpcallback\") String jsonpcallback,\n @Query(\"username\") String username,\n @Query(\"from\") String from,\n @Query(\"size\") String size,\n @Query(\"type\") String type,\n @Query(\"_\") String other);\n\n /**\n * ITeye文章链接\n *\n * @param page\n * @return\n */\n @GET(\"{type}\")\n Observable<String> getITEyeArticle(@Path(\"type\") String path, @Query(\"page\") int page);\n\n /**\n * ITEye 专栏笔记 位于blog之下\n *\n * @param path\n * @return\n */\n @GET(\"{path}\")\n Observable<String> getITEyeSubject(@Path(\"path\") String path);\n\n\n /**\n * Info文章链接\n *\n * @param id\n * @return\n */\n @GET(\"{type}/articles/{id}\")\n Observable<String> getInfoQArticle(@Path(\"type\") String type, @Path(\"id\") int id);\n\n /**\n * 泡在网上的日子 链接\n *\n * @param tid\n * @param pageNo\n * @return\n */\n @GET(\"plus/list.php\")\n Observable<String> getJccArticle(@Query(\"tid\") int tid, @Query(\"PageNo\") int pageNo);\n\n /**\n * OSChina 链接 ?type=0&p=5#catalogs\n *\n * @return\n */\n @GET(\"get_more_recommend_blog\")\n Observable<String> getOSChinaArticle(@Query(\"classification\") String classification, @Query(\"p\") int p);\n\n /**\n * 获取网页详细内容\n *\n * @return\n */\n @GET(\"{path}\")\n Observable<String> getWebContent(@Path(\"path\") String path);\n\n //http://so.csdn.net/so/search/s.do?q=Android&t=blog&o=&s=&l=null\n @GET(\"s.do\")\n Observable<String> searchCSDNContent(@Query(\"q\") String keyWords,\n @Query(\"t\") String type,\n @Query(\"o\") String o,\n @Query(\"s\") String s,\n @Query(\"l\") String l);\n\n //https://www.oschina.net/search?scope=blog&q=Android&fromerr=Nigvshhe\n @GET(\"search\")\n Observable<String> searchOSChinaContent(@Query(\"q\") String keyWords,\n @Query(\"scope\") String type,\n @Query(\"fromerr\") String formerr);\n\n\n //http://www.iteye.com/search?query=Android&type=blog\n @GET(\"search\")\n Observable<String> searchItEyeContent(@Query(\"query\") String keyWords,\n @Query(\"type\") String type);\n\n\n //http://www.jcodecraeer.com/plus/search.php?kwtype=0&q=Java\n @GET(\"plus/search.php\")\n Observable<String> searchJCCContent(@Query(\"keyword\") String keyWord,\n @Query(\"searchtype\") String searchType,\n @Query(\"orderby\") String orderby,\n @Query(\"kwtype\") String type,\n @Query(\"pagesize\") String pagesize,\n @Query(\"typeid\") String typeid,\n @Query(\"pageNo\") String pageNo);\n\n //http://www.infoq.com/cn/search.action?queryString=java&page=1&searchOrder=&sst=o9OURhPD52ER0BUp\n //sst 在infoQ中为搜索验证时使用 不对的话 将会有HTTP 404 异常\n //o9OURhPD52ER0BUp\n @GET(\"search.action\")\n Observable<String> searchInfoQContent(@Query(\"queryString\") String keyWords,\n @Query(\"page\") int page,\n @Query(\"searchOrder\") String order,\n @Query(\"sst\") String sst);\n\n //获取INFOQ的sst用于搜索\n @GET(\"mobile\")\n Observable<String> searchInfoQSST();\n\n //文件下载\n @GET(\"{photoPath}\")\n Observable<ResponseBody> downloadFile(@Path(value = \"photoPath\") String photoPath);\n\n\n}", "public interface MainConst extends NetUrl_Const {\n\t/**\n\t * 当为true时为商业模式,此时异常不抛出,日志不打印。关闭所有开发痕迹。\n\t */\n\tpublic final static boolean DEVS_BUSINESS_MODEL = false;\n\n\t/**\n\t * true时打印日志。<br/>\n\t * false不打印日志。\n\t */\n\tpublic final static boolean DEVS_PRINT_LOG = true;\n\t/**\n\t * true时抛出异常\n\t */\n\tpublic final static boolean DEVS_THROW_ALL_EXCEPTION = true;\n\n\t/**\n\t * app_token\n\t */\n\tpublic final static String APP_APP_TOKEN = \"readyGo1408.app_token@bj-china\";\n\t/**\n\t * MD5加密盐\n\t */\n\tpublic final static String APP_MD5_TOKEN = \"readyGo1408.md5@bj-china\";\n\t/**\n\t * 硬件平台,安卓平台\n\t */\n\tpublic final static String APP_PLATFORM = \"2\";\n}", "public interface Config {\n\n String API_KEY = \"api_key\";\n String POPULAR = \"popular\";\n String TOP_RATED = \"top_rated\";\n String BASE_URL = \"http://api.themoviedb.org/3/movie/\";\n String IMAGE_BASE_URL = \"http://image.tmdb.org/t/p/w185\";\n\n String ID = \"id\";\n String TRAILER_VIDEOS = \"{id}/videos\";\n String MOVIE_REVIEWS = \"{id}/reviews\";\n String SORT_API = \"{sort}\";\n}", "public void setURL() {\n\t\tURL = Constant.HOST_KALTURA+\"/api_v3/?service=\"+Constant.SERVICE_KALTURA_LOGIN+\"&action=\"\n\t\t\t\t\t\t+Constant.ACTION_KALTURA_LOGIN+\"&loginId=\"+Constant.USER_KALTURA+\"&password=\"+Constant.PASSWORD_KALTURA+\"&format=\"+Constant.FORMAT_KALTURA;\n\t}", "public String getApiBaseUrl() {\n return this.apiBaseUrl;\n }", "public interface Endpoint {\n public static final String REDDIT_BASE_URL = \"http://www.reddit.com\";\n\n //public Object call(String subreddit);\n\n}", "public static String UrlToHit(){\n\t\treturn BaseURL;\n\t}", "private String methodUrl(String method) {\n return apiUrl + token + \"/\" + method;\n }", "public String getBaseUrl() {\n return preferences.getString(PREFERENCES_BACKEND_BASE_URL, \"http://naamataulu-backend.herokuapp.com/api/v1/\");\n }", "public interface WeatherApi {\n String API_KEY = \"1b0c10e2a4612bc6595754792eb47224\";\n\n @GET(\"forecast?appid=\" + API_KEY)\n Call<WeatherResponse> getWeatherData(@Query(\"q\") String q);\n}", "public interface API {\r\n\r\n // String SERVER_URL = \"http://192.168.11.150:8080\";\r\n// String SERVER_URL = \"http://10.0.2.2:8080/\";\r\n String SERVER_URL = \"http://societyfocus.com/\";\r\n String API_PATH_PATTERN = \"service/\";\r\n\r\n interface ILoginHeaderParams {\r\n String SOCIETY = \"X-Society\";\r\n String USERNAME = \"X-Username\";\r\n String PASSWORD = \"X-Password\";\r\n String DEVICE_ID = \"X-DeviceID\";\r\n String DEVICE_IDOld = \"X-DeviceIDOld\";\r\n String ACCESS_TOKEN = \"X-AccessToken\";\r\n }\r\n\r\n interface IPostLoginHeaderParams {\r\n String AUTH_TOKEN = \"X-Auth-Token\";\r\n\r\n }\r\n\r\n interface IAssetParams {\r\n String ID = \"id\";\r\n }\r\n\r\n interface IEventParams {\r\n String MONTH = \"month\";\r\n String YEAR = \"year\";\r\n }\r\n\r\n @GET(API_PATH_PATTERN + \"social/fblogin\")\r\n public Call<LoginResponse>\r\n fblogin(@Header(ILoginHeaderParams.DEVICE_ID) String deviceID,\r\n @Header(ILoginHeaderParams.DEVICE_IDOld) String deviceIDOld,\r\n @Query(\"accesstoken\") String FBToken);\r\n\r\n @GET\r\n public Call<GraphPhotoResponse> graphcall(@Url String url);\r\n\r\n @POST(API_PATH_PATTERN + \"access/login\")\r\n public Call<LoginResponse>\r\n login(@Header(ILoginHeaderParams.SOCIETY) String society,\r\n @Header(ILoginHeaderParams.USERNAME) String username,\r\n @Header(ILoginHeaderParams.PASSWORD) String password,\r\n @Header(ILoginHeaderParams.DEVICE_ID) String deviceID,\r\n @Header(ILoginHeaderParams.DEVICE_IDOld) String deviceIDOld);\r\n\r\n @POST(API_PATH_PATTERN + \"upload/image/base64\")\r\n public Call<UploadImageResponse> uploadimage(@Body UploadImage uploadImage);\r\n\r\n @GET(API_PATH_PATTERN + \"v1/comment/add/complaint_{Complaint_ID}/{MESSAGE}\")\r\n public Call<AddCommentResponse> getAddComment(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken,\r\n @Path(\"Complaint_ID\") String complaintID, @Path(\"MESSAGE\") String message);\r\n\r\n @GET(API_PATH_PATTERN + \"user/getalluser\")\r\n public Call<MembersResponse> getAllUsers(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken);\r\n\r\n @GET(API_PATH_PATTERN + \"society/asset/getall\")\r\n public Call<AssetsResponse> getAllSocietyAssets(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken);\r\n\r\n @GET(API_PATH_PATTERN + \"society/panel\")\r\n public Call<PanelResponse> getSocietyPanel(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken);\r\n\r\n @GET(API_PATH_PATTERN + \"society\")\r\n public Call<SocietyListResponse> getSocietyList();\r\n\r\n @POST(API_PATH_PATTERN + \"v1/complaint/save\")\r\n public Call<ComplaintResponse> saveComplaint(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken, @Body Complaint complaint);\r\n\r\n @GET(API_PATH_PATTERN + \"v1/complaint/getusercomplaint\")\r\n public Call<ComplaintListResponse> getUserComplaints(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken);\r\n\r\n @GET(API_PATH_PATTERN + \"v1/complaint/get/{id}\")\r\n public Call<ComplaintCommentResponse> getComplaintDetails(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken, @Path(\"id\") String complaintID);\r\n\r\n @POST(API_PATH_PATTERN + \"user/modifymyuser\")\r\n public Call<UserResponse> modifyUser(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken, @Body User user);\r\n\r\n @GET(API_PATH_PATTERN + \"user/modify/oldpass/{oldpassword}/newpass/{newpassword}/email/{email}\")\r\n public Call<BaseResponse> modifyPassword(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken, @Path(\"oldpassword\") String oldpassword, @Path(\"newpassword\") String newpassword, @Path(\"email\") String email);\r\n\r\n @POST(API_PATH_PATTERN + \"society/asset/book\")\r\n public Call<BookAssetResponse> saveAssetBooking(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken, @Body BookAsset bookAsset);\r\n\r\n @POST(API_PATH_PATTERN + \"society/asset/getassetbyuser\")\r\n public Call<AssetbookingByUserResponse> getAssetBooking(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken);\r\n\r\n @GET(API_PATH_PATTERN + \"vehicle/getvehilcebynumber/{vehiclenumber}\")\r\n public Call<CarSearchResponse> searchVehicleNumber(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken, @Path(\"vehiclenumber\") int vehiclenumber);\r\n\r\n @GET(API_PATH_PATTERN + \"society/noticeboard/getall\")\r\n public Call<NoticeBoardResponse> getAllNotices(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken);\r\n\r\n @POST(API_PATH_PATTERN + \"society/noticeboard/add\")\r\n public Call<AddNewNoticeResponse> addNewNotice(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken, @Body AddNewNotice newNotice);\r\n}", "public String getAPIKey()\r\n {\r\n return APIKey;\r\n }", "String getApiName();", "public interface Api {\n\n// String BASE_URL_REMOTE = \"http://192.168.0.11/videoworld/v1/\"; //远程服务器的\n\n String BASE_URL_REMOTE = \"http://www.luocaca.cn/VideoWorld/v1/\"; //远程服务器的\n// String BASE_URL_REMOTE = \"http://115.159.196.175/VideoWorld/v1/\"; //远程服务器的\n\n// String BASE_URL = \"http://v.juhe.cn/weather/\";\n\n\n @GET(\"citys\")\n Observable<AllCity> getAllCity(@Query(\"key\") String key);\n\n\n /**\n * http://localhost:8089/hello/book/add?name=大傻1&book_id=222&number=222&detail=详细信息\n *\n * @param book_id\n * @param number\n * @param detail\n * @param name\n * @return\n */\n\n @GET(\"book/add\")\n Observable<ApiResult> requestAdd(@Query(\"book_id\") String book_id,\n @Query(\"number\") String number,\n @Query(\"detail\") String detail,\n @Query(\"name\") String name,\n @Query(\"url\") String url\n );\n\n\n @GET(\"book/allbook\")\n Observable<ApiResult<List<Book>>> requestBookList();\n\n @GET(\"book/del/{bookId}\")\n Observable<ApiResult> requestDelete(@Path(\"bookId\") String bookId);\n\n @GET\n Observable<ObjectResponse> requestGetMovies(@Url String baseUrl, @Query(\"url\") String url);\n\n @GET\n Observable<ObjectResponse> requestAddMovies(@Url String baseUrl, @Query(\"url\") String url, @Query(\"list\") String list);\n\n //http://api.nlkmlk.com:81/love/user/1711111\n @GET\n Observable<Result> requestVip(@Url String baseUrl );\n\n\n}", "public static String getDongtuServerUrl() {\n return BaseAppServerUrl.videoUrl + \"?service=\";\n }", "public api() {}", "private ApiInfo apiInfo()\r\n\t {\r\n\t ApiInfo apiInfo = new ApiInfo(\r\n\t \"My Project's REST API\",\r\n\t \"This is a description of your API.\",\r\n\t \"version-1\",\r\n\t \"API TOS\",\r\n\t \"[email protected]\",\r\n\t \"API License\",\r\n\t \"API License URL\"\r\n\t );\r\n\t return apiInfo;\r\n\t }", "public interface WebRequestConstants extends ServerConstant {\n\n String CONSTANT_APP_UPDATE = \"APP_UPDATE\";\n\n String HEADER_KEY_DEVICE_TYPE = \"devicetype\";\n String HEADER_KEY_DEVICE_INFO = \"deviceinfo\";\n String HEADER_KEY_APP_INFO = \"appinfo\";\n String HEADER_KEY_IN_PLAY = \"inplay\";\n String DEVICE_TYPE_ANDROID = \"A\";\n\n String Loginauthcontroller = BASE + \"Loginauthcontroller/\";\n String Apicontroller = BASE + \"Apicontroller/\";\n String Apiusercontroller = BASE + \"Apiusercontroller/\";\n String Apiadmincontroller = BASE + \"Apiadmincontroller/\";\n String Apimobilecontroller = BASE + \"Apimobilecontroller/\";\n String Betentrycntr = BASE + \"Betentrycntr/\";\n String Geteventcntr = BASE + \"Geteventcntr/\";\n String Createdealercontroller = BASE + \"Createdealercontroller/\";\n String Chipscntrl = BASE + \"Chipscntrl/\";\n\n\n String URL_CHECK_APP_VERSION = Apimobilecontroller + \"chkAppVersion\";\n String URL_APK_DOWNLOAD = BASE + \"uploads/apk/%s\";\n\n String URL_LOAD_CAPTCHA = Loginauthcontroller + \"loadCaptcha\";\n int ID_LOAD_CAPTCHA = 1;\n\n String URL_LOGIN = Loginauthcontroller + \"chkLoginMobileUser\";\n int ID_LOGIN = 2;\n\n String URL_LOGIN_CHECK = Loginauthcontroller + \"is_logged_in_check\";\n int ID_LOGIN_CHECK = 3;\n\n String URL_USER_MATCH_LIST = Apiusercontroller + \"getUserFavouriteMatchLst/%s\";\n int ID_USER_MATCH_LIST = 4;\n\n String URL_ODDS_BY_MARKET_IDS = \"http://demo.com/get_odds_by_market_ids.php?market_id=%s\"; // change here http://demo.com/ in your url\n int ID_ODDS_BY_MARKET_IDS = 5;\n\n\n String URL_MARKET_LISTING = Apicontroller + \"getMarketListing/%s\";//matchid\n int ID_MARKET_LISTING = 6;\n\n String URL_CHANGE_PASSWORD = Createdealercontroller + \"changePassword\";\n int ID_CHANGE_PASSWORD = 7;\n\n String URL_MARKET_WIN_LOSS = Apicontroller + \"market_win_loss\";\n int ID_MARKET_WIN_LOSS = 8;\n\n String URL_GET_MATCH_BETFAIR_SESSION = \"http://demo.com/get_match_betfair_session.php?market_id=%s\"; // change here http://demo.com/ in your url\n int ID_MATCH_BETFAIR_SESSION = 9;\n\n String URL_GET_MATCH_INDIAN_SESSION = Apicontroller + \"matchLstIndianSession/%s/%s\"; //matchId marketId\n int ID_MATCH_INDIAN_SESSION = 10;\n\n String URL_GET_MATCH_ADMIN_SESSION = Apicontroller + \"matchLstAdminSession/%s/%s\"; //matchId marketId\n int ID_MATCH_ADMIN_SESSION = 11;\n\n String URL_DISPLAY_MSG_HEADER = Betentrycntr + \"DisplayMsgOnHeader\";\n int ID_DISPLAY_MSG_HEADER = 12;\n\n String URL_BALANCE = Chipscntrl + \"getChipDataById/%s\";// userId\n int ID_BALANCE = 13;\n\n String URL_GET_MATCH_SCORE = \"http://demo.com/api/match-center/stats/%s/%s\";// sport_id, match_id // change here http://demo.com/ in your url\n String URL_GET_MATCH_SCORE2 = Geteventcntr + \"GetScoreApi/%s\";// match_id\n int ID_GET_MATCH_SCORE = 14;\n\n String URL_GET_BET_DATA = Betentrycntr + \"GatBetData/%s/%s/%s/%s\";// :match_id\n int ID_GET_BET_DATA = 15;\n\n String URL_PLAY_STORE_APP_VERSION = BASE + \"get_playstore_app_version/%s\";\n\n String URL_ONE_PAGE_REPORT = Apiadmincontroller + \"one_page_report\";\n int ID_ONE_PAGE_REPORT = 16;\n\n String URL_CHIP_LEGER = Betentrycntr + \"Chip_leger/%s/%s/%s/%s/%s\";//user_id, user_type, type, from_date, to_date\n int ID_CHIP_LEGER = 17;\n\n String URL_PROFIT_LOSS_BY_MATCH = Betentrycntr + \"profitLossByMatchId\";\n String KEY_PROFIT_LOSS_BY_MATCH = \"profitLossByMatchId\";\n int ID_PROFIT_LOSS_BY_MATCH = 18;\n\n String URL_BET_HISTORY_PL = Betentrycntr + \"BetHistoryPL/%s/%s/%s/%s\";//user_id/matchId/page_no/fancyId\n int ID_URL_BET_HISTORY_PL = 19;\n\n String URL_GET_SERIES_LIST = Geteventcntr + \"getSeriesLst/%s\";// match type\n int ID_GET_SERIES_LIST = 20;\n\n String URL_MATCH_BY_SPORT_ID = Geteventcntr + \"getInPlayMatchBySportId/%s/%s\";// sport_id/user_id\n int ID_MATCH_BY_SPORT_ID = 21;\n\n String URL_GET_STAKE_SETTING = Apiusercontroller + \"get_stake_setting\";\n int ID_GET_STAKE_SETTING = 22;\n\n String URL_ONE_CLICK_STAKE_SETTING = Apiusercontroller + \"one_click_stake_setting\";\n String KEY_ONE_CLICK_STAKE_SETTING = \"one_click_stake_setting\";\n int ID_ONE_CLICK_STAKE_SETTING = 23;\n\n String URL_STAKE_SETTING = Apiusercontroller + \"stake_setting\";\n String KEY_STAKE_SETTING = \"stake_setting\";\n int ID_STAKE_SETTING = 24;\n\n String URL_SERIES_WITH_MATCH_DATA = Geteventcntr + \"getSeriesWithMatchData/%s/%s/%s\";// sport_id/seriesId/user_id\n int ID_SERIES_WITH_MATCH_DATA = 25;\n String KEY_SERIES_WITH_MATCH_DATA = \"getSeriesWithMatchData\";\n\n String URL_SAVE_MULTIPLE_BETS = Apiusercontroller + \"save_multiple_bets\";\n int ID_SAVE_MULTIPLE_BETS = 26;\n\n String URL_MATCH_AUTOCOMPLETE = Apiusercontroller + \"match_autocomplete\";\n int ID_MATCH_AUTOCOMPLETE = 27;\n\n String URL_FAVOURITE_MATCH = Apiusercontroller + \"getFavouriteMatchLst/%s\";\n int ID_FAVOURITE_MATCH = 28;\n\n String URL_FAVOURITE = Apiusercontroller + \"favourite\";\n String KEY_MATCHDETAIL = \"match_detail\";\n String KEY_FAVOURITE = \"favourite\";\n int ID_FAVOURITE = 29;\n\n String URL_UNFAVOURITE = Apiusercontroller + \"unfavourite\";\n String KEY_UNFAVOURITE = \"unfavourite\";\n int ID_UNFAVOURITE = 30;\n\n String URL_CONFIRM_BET = Apiusercontroller + \"confirm_bet\";\n int ID_CONFIRM_BET = 31;\n\n String URL_DELETE_BETTING = Betentrycntr + \"deleteGetbetting/%s/%s\";//MstCode, UserId\n String KEY_DELETE = \"delete\";\n int ID_DELETE_BETTING = 32;\n\n String URL_GET_SELECTION_NAME = \"http://demo.com/get_selectionname_by_market_ids.php?market_sel_id=%s\";//marketid-selectionid,marketid-selectionid // change here http://demo.com/ in your url\n int ID_GET_SELECTION_NAME = 33;\n\n\n String TV1 = BASE+\"tvnew/tv1.html\";;\n String TV2 = BASE+\"tvnew/tv2.html\";\n\n}", "public static URL getUrlForDemoMode()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/connected_account_services/demo\";\r\n return str2url( strUrl );\r\n }", "public interface APIService {\n\n String baseUrl = \"http://api.zhuishushenqi.com\";\n\n /**\n */\n// @FormUrlEncoded\n// @POST(\"/cats/lv2/statistics/\")\n// Flowable<GetListRsp> login(@Field(\"username\") String username,\n// @Field(\"password\") String password);\n\n /**\n * GetListRsp\n */\n @GET(\"/cats/lv2/statistics/\")\n Observable<GetListRsp> login(@QueryMap Map<String, String> params);\n}", "public String getUrl()\n\t\t{\n\t\t\treturn \"https://sandbox.zohoapis.eu\";\n\t\t}", "private String urlBuilder(){\n String timelineURL = \"curgas/timeline.json\";\n final RequestBuilder.UrlBuilder url = new RequestBuilder.UrlBuilder();\n url.setUrl(timelineURL);\n url.appendUrlQuery(\"apikey\", Constants.API_KEY);\n url.appendUrlQuery(\"sort\", SORT_TYPE);\n url.appendUrlQuery(\"jumlah\",TOTAL_POSTS);\n url.appendUrlQuery(\"page\",Integer.toString(PAGE_LOADED));\n\n String buildURL = url.build();\n\n return buildURL;\n }", "public static void setAPIkey(String key) {\n\t\tkey1 = key;\r\n\r\n\r\n\t}", "public String getAPISetting(){\n if(!apiSetting.equals(\"true\")){\n apiSetting = \"false\";\n }\n return apiSetting;\n }", "public interface RestConstants {\n\n /**\n * Base for rest api requests\n */\n String BASE = \"/api\";\n\n /**\n * end-point for calculating an area\n */\n String CALCULATE_AREA = \"/area\";\n /**\n * end-point for calculating a volume\n */\n String CALCULATE_VOLUME = \"/volume\";\n /**\n * end-point for calculating a light to area ratio\n */\n String CALCULATE_LIGHT_TO_AREA = \"/light-area\";\n /**\n * end-point for calculating an energy to volume ratio\n */\n String CALCULATE_ENERGY_TO_VOLUME = \"/energy-volume\";\n /**\n * end-point for finding rooms above provided norm\n */\n String GET_ROOMS_ABOVE_ROOM = \"/norm-check\";\n /**\n * end-point for calculating penalty for rooms above norm\n */\n String CALCULATE_PENALTY = \"/penalty\";\n}", "private URL buildPm10URL() {\n URL url = null;\n try {\n String urlString = OBSERVATORY_URL\n + API_KEY\n + String.format(VARIABLE_QUERY_FORMAT, PM10_VARIABLE);\n url = new URL(urlString);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n return url;\n }", "public interface API {\n\n String API_URL = \"https://letsgodubki-dtd.appspot.com/_ah/api/dubkiapi/v1\";//TODO //\n\n @GET(\"/itemscount\")\n public Observable<ArrayDorm> getItemsCount();\n\n}", "public interface AppConstant {\n\n String BASE_URL = \"https://www.wanandroid.com\";\n\n\n String WEB_SITE_LOGIN = \"user/login\";\n String WEB_SITE_REGISTER = \"user/register\";\n String WEB_SITE_COLLECTIONS = \"lg/collect\";\n String WEB_SITE_UNCOLLECTIONS = \"lg/uncollect\";\n String WEB_SITE_ARTICLE = \"article\";\n\n\n public interface LoginParamsKey {\n String SET_COOKIE_KEY = \"set-cookie\";\n String SET_COOKIE_NAME = \"Cookie\";\n String USER_NAME = \"username\";\n String PASSWORD = \"password\";\n String REPASSWORD = \"repassword\";\n }\n}", "public interface Api {\n /**{\"response\": {\"zbsVer\": 0, \"hostId\": \"001207C40173\", \"room\": [{\"type\": \"\\u603b\\u7ecf\\u7406\", \"roomId\": \"322\", \"name\": \"\\u603b\\u7ecf\\u7406\"}, {\"roomId\": \"350\", \"type\": \"\\u4e3b\\u5367\", \"name\": \"\\u4e3b\\u5367\"}, {\"type\": \"\\u53a8\\u623f\", \"roomId\": \"366\", \"name\": \"\\u5475\\u5475\"}, {\"roomId\": \"381\", \"type\": \"\\u53a8\\u623f\", \"name\": \"\\u53a8\\u623f\"}, {\"roomId\": \"382\", \"type\": \"\\u9910\\u5385\", \"name\": \"\\u9910\\u5385\"}], \"softver\": 104, \"timestamp\": 1501838857, \"zbhVer\": 0, \"lastbackup\": 1499826785, \"pandId\": 101, \"firmver\": 217, \"numbers\": \"15905214137,15252089063,18912345678,15263985632,15152208332\", \"channelNo\": \"f\", \"registerHost\": false, \"name\": \"40173\"}, \"ret\": 0, \"md5\": \"a92c08fdf3a4b4f9aef04b3ce102df32\"}\n\n * 云端接口\n */\n String wrapper_request = \"/wrapper/request\";\n //\n// CloudInterface.h\n// ihome\n//\n// Created by on 3/13/15.\n// Copyright (c) 2015 Co.ltd. All rights reserved.\n\n //测试\n String urlCloud = \"/https://api2.boericloud.com\";\n //正式\n// String urlCloud = \"/https://api.boericloud.com\";\n\n String urlResetMobile = \"/auth/resetMobile\"; //重置手机号码\n String urlNegotiate = \"/auth/negotiate\";\n String urlRegister = \"/auth/register\"; //注册\n String urlSignin = \"/auth/login\"; //登录\n String urlSignOff = \"/auth/logout\"; //登出\n\n String urlResetCloudPassword = \"/auth/resetCloudpassword\"; //重置密码\n String urlSmsVerify = \"/auth/sms_verify\"; //短信验证\n String urlResetPWD = \"/auth/reset_password\"; //忘记密码\n String urlMobileVerify = \"/auth/mobile_verify\"; //验证手机号\n\n String urlUserUpdate = \"/user/update\";\n String urlUserUpdateToken = \"/user/update_token\";\n\n String urlUserPermissions = \"/user/host_permissions\"; //查询用户权限\n String urlUserUpdateExtend = \"/user/update_extend\"; //更新铃声和震动\n String urlUserShowExtend = \"/user/show_extend\"; //获取铃声和震动\n\n String urlHostBind = \"/host/bind\";\n String urlHostShow = \"/host/show\";\n\n String urlHostverifyadminpassword = \"/host/verifyadminpassword\";\n String urlHostSwitch = \"/host/switch\";\n\n String urlWrapperRequest = \"/wrapper/request\";//透传接口,一键备份\n String urlHostRestoreproperty = \"/host/restoreproperty\";//透传接口,一键还原\n\n String urlHostUpgrade = \"/upgrade/latest\";\n String urlHostUpgradeSoftware = \"/host/software_upgrade\";\n\n String urlSystemMessageShow = \"/systemMessage/show\"; //请求某天某类型的系统消息\n\n String urlWarningShow = \"/alarm/show1\"; //请求某天某类型的历史告警\n String urlAlarmDelete = \"/alarm/delete1\";//删除单条或多条历史告警\n String urlAlarmBatchDelete = \"/alarm/batch_delete\";//删除某天某类型的所有告警\n\n String urlSystemMessageDelete = \"/systemMessage/remove\";//删除某天某类型的系统消息\n String urlSystemBatchDelete = \"/systemMessage/batch_delete\";//删除某天某类型的所有系统消息\n\n String urlAlarmRead = \"/alarm/confirm_read\";//确认某条系统告警\n String urlSystemMessageRead = \"/systemMessage/confirmRead\";//确认某条系统消息\n\n String urlAddBlackList = \"/user/add_black_list\";//加入黑名单\n String urlRemoveBlackList = \"/user/remove_black_list\";//移除黑名单\n String urlQueryBlackList = \"/user/query_in_black_list\";//查询用户是否在黑名单内\n\n /*****************************/\n//主机直连 -> 设备相关\n String urlQueryWiseMediaList = \"/device/queryWiseMediaList\";//查询华尔斯背景音乐的歌曲列表\n String urlDeviceScan = \"/device/scan\";//扫描设备\n String urlDeviceLink = \"/device/link\";//关联设备->(新增)\n String urlDeviceQuerylink = \"/device/querylink\";//查询关联设备->(新增)\n String urlDeviceCmd = \"/device/cmd\";//控制设备\n String urlDeviceRemove = \"/device/remove\";//删除设备\n String urlDeviceDismiss = \"/device/dismiss\";//解绑设备\n String urlDeviceUpdateProp = \"/device/updateprop\";//更新设备属性\n String urlDevicesProperties = \"/devices/properties\";//查询设备属性\n String urlDeviceStatus = \"/device/status\";//查询设备状态\n String urlDeviceQueryOneProp = \"/device/queryOneProp\";//查询某一设备的属性->(新增)\n String urlDeviceConfigHgc = \"/device/configHgc\";//配置中控->(新增)\n String urlDeviceDeleteHgcConfig = \"/device/deleteHgcConfig\";//删除中控配置->(新增)\n String urlDeviceQueryHgcConfig = \"/device/queryHgcConfig\";//查询中控配置->(新增)\n String urlDeviceQueryMeterAddr = \"/device/queryMeterAddr\";//查询水电表的地址->(新增)\n String urlDeviceModifyMeterName = \"/device/modifyMeterName\";//修改水电表的名称->(新增)\n String urlDeviceQueryAllDevices = \"/device/queryAllDevices\";//查询所有设备的属性和状态->(新增)\n String urlDeviceSetFloorHeatingTimeTask = \"/device/setFloorHeatingTimeTask\";//设置地暖的定时任务->(新增)\n String urlDeviceSwitchFloorHeatingTimeTask = \"/device/switchFloorHeatingTimeTask\";//开启或者关闭地暖的定时任务->(新增)\n\n //主机直连 -> 主机相关\n String urlHostShowProperty = \"/host/showproperty\";//查询主机信息\n String urlHostModifyProperty = \"/host/modifyproperty\";//修改主机信息\n String urlHostQueryglobaldata = \"/host/queryglobaldata\";//查询全局信息->(新增)\n String urlHostModifyHostName = \"/host/modifyHostName\";//修改主机名称->(新增)\n\n //主机直连 -> 联动模式相关\n String urlPlanShow = \"/plan/show\";//查询指定的联动预案或模式\n String urlPlanUpdate = \"/plan/update\";//更新联动预案或模式\n String urlPlanQueryGlobalModes = \"/plan/queryGlobalModes\";//查询全局模式->(新增)\n String urlPlanModifyModeName = \"/plan/modifyModeName\";//修改模式名称->(新增)\n String urlPlanSetTimeTask = \"/plan/setTimeTask\";//设置模式定时\n String urlPlanTimeTaskSwitch = \"/plan/switchTimeTask\";//开启或关闭模式定时\n String urlPlanAllModes = \"/plan/allModes\";//查询当前主机下所有模式\n\n //主机直连 -> 房间区域相关\n String urlRoomsRemove = \"/room/remove\";//删除房间\n String urlRoomsUpdate = \"/room/update\";//更新房间\n String urlRoomsShow = \"/room/show\";//查询房间\n String urlAreaRemove = \"/room/removearea\";//删除区域\n String urlAreaUpdate = \"/room/updatearea\";//更新区域\n String urlAreaShow = \"/room/showarea\";//查询区域\n String urlRoomsUpdateMode = \"/room/updatemode\";//更新房间模式\n String urlRoomsShowMode = \"/room/showmode\";//查询房间模式\n String urlRoomsActiveMode = \"/room/activemode\";//激活房间模式\n\n//主机直连 -> 告警相关\n\n\n //主机直连 -> 用户相关\n String urlUserLogin = \"/user/login\";//直连登录->(新增)\n String urlUserAuthorizedLogin = \"/user/authorizedLogin\";//授权后的直连登陆(已在云端登陆)->(新增)\n String urlUserLogout = \"/user/logout\";//退出登录->(新增)\n String urlUserSaveUserInfo = \"/user/saveUserInfo\";//直连登录->(新增)\n /*****************************/\n\n String urlReportBloodsugar = \"/health/report_bloodsugar\";//上报血糖值\n String urlDeleteBloodsugar = \"/health/delete_bloodsugar\";//删除血糖值\n String urlUpdateBloodsugar = \"/health/update_bloodsugar\";//修改血糖值\n\n String urlReportBloodPressure = \"/health/report_bloodpressure\";//上报血压值\n String urlDeleteBloodPressure = \"/health/delete_bloodpressure\";//删除血压值\n\n String urlReportBodyWeight = \"/health/report_bodyweight\";//上报体重值\n String urlDeleteBodyWeight = \"/health/delete_bodyweight\";//删除体重值\n\n String urlReportUrine = \"/health/report_urine\"; //上报尿检值\n String urlDeleteUrine = \"/health/delete_urine\";//删除某一条尿检记录\n\n String urlDownHealthCache = \"/data/health_down\";//下载缓存数据\n String urlUploadHealthCache = \"/data/health_upload\";//上传缓存数据\n String urlUploadBloodPressureCache = \"/data/health_upload_blood_pressure\";//上传血压缓存数据\n String urlUploadBloodGlucoseCache = \"/data/health_upload_blood_glucose\";//上传血糖缓存数据\n String urlUploadBodyWeightCache = \"/data/health_upload_body_weight\";//上传体重缓存数据\n String urlUploadUrineCache = \"/data/health_upload_urine\";//上传尿检缓存数据\n\n String urlQueryElec = \"/energy/query_elec\"; //查询电能数据\n String urlQuerySocket = \"/energy/query_socket\"; //查询插座数据\n String urlQueryWater = \"/energy/query_water\"; //查询水表数据\n String urlQueryGas = \"/energy/query_gas\"; //查询气表数据\n\n\n String urlHostShow1 = \"/host/show1\"; //家庭管理中的主机属性\n\n String urlUserInfo = \"/user/userInfo\"; //查找用户信息\n String urlShowInviteCode = \"/user/show_invitecode\"; //查看邀请码\n String urlInvitationConvert = \"/integral/exchange_integral\"; //兑换邀请码\n String urlFamilyAddUser = \"/family/add_user\"; //增加家庭成员\n String urlFamilyTransPermission = \"/family/admin_permission_transfer\"; //转让管理员权限\n String urlFamilyUpdateAlias = \"/family/update_alias\"; //更新主机别名或用户别名\n String urlFamilyDeleteUser = \"/family/delete_user\"; //主机删除用户\n String urlFamilyDeleteHost = \"/family/delete_host\"; //管理员删除主机\n String urlFamilyUserIsAdmin = \"/family/user_isAdmin\"; //当前用户是否为管理员\n String urlFamilyUpdatePermissaion = \"/family/update_permission\"; //更新用户权限\n String urlFamilyUpdateShare = \"/family/update_share\"; //家庭分享健康数据\n String urlFamilyHostAdmin = \"/family/host_admin\"; //查询主机管理员\n\n String urlApplyUserApply = \"/apply/user_apply\"; //主机用户申请\n\n String urlApplyUserApplyV1 = \"/apply/user_apply_v1\"; //主机用户申请接口V1(将判断和推送放在后台)\n String urlApplyUserShow = \"/apply/user_show\"; //查询主机用户申请\n String urlApplyUserDelete = \"/apply/user_delete\"; //删除用户申请\n String urlApplyUserUpdateStatus = \"/apply/user_update_state\"; //更新用户状态\n\n String urlApplyUserUpdateStatusV1 = \"/apply/update_status_v1\"; //更新用户申请状态(将当前状态发送给后台进行筛选)\n String urlApplyUserHost = \"/apply/host_show\"; //查询主机下申请用户\n String urlApplyUserApplyIsExists = \"/apply/user_applyuserid_exist\"; //判断当前用户是否已经申请过\n String urlApplyUserReapply = \"/family/user_reapply\"; //用户重新申请\n String urlApplyQueryUserApplyOrAdnimReject = \"/apply/query_user_apply_reject\"; //查询用户申请或管理员拒绝记录\n\n String urlQueryUserApplyOrShare = \"/apply/query_user_apply_share\"; //查询用户是否有未处理申请或分享\n\n String urlNotificationPush = \"/notification/notification_push\"; //推送通知\n\n String notification_updateMsg = \"/notification_updateMsg\"; //报警通知\n String notification_updateScence = \"/notification_updateScence\"; //场景更新\n String notification_startHomeTimer = \"/notification_startHomeTimer\"; //开启主页轮询\n String notification_stopHomeTimer = \"/notification_stopHomeTimer\"; //关闭主页轮询\n String notification_startDeviceTimer = \"/notification_startDeviceTimer\"; //开启设备轮询\n String notification_stopDeviceTimer = \"/notification_stopDeviceTimer\"; //关闭设备轮询\n String notification_changeHost = \"/notification_changeHost\"; //切换主机\n String notification_updateCity = \"/notification_updateCity\"; //更新城市信息\n String notification_updateFamilyMembers = \"/notification_updateFamilyMembers\"; //更新家庭成员信息\n String notification_removeHomeNotifications = \"/notification_removeHomeNotifications\"; //移除所有通知\n String notification_familyRefresh = \"/notification_familyRefresh\"; //家庭成员刷新\n\n String urlShareUser = \"/share/user_share\"; //查询家庭的接口\n String urlQueryHealth = \"/health/query_health\"; //查询选定日期区间健康数据接口\n String urlQueryRecentHealth = \"/health/query_recent_health\"; //查询最近的健康数据分享接口\n\n String urlQueryRecentNotification = \"/notification/query_recent_notification\"; //查询最近的通知消息\n\n String urlFeedback = \"/feedback/feedback_push\"; //客户端的意见反馈\n\n String urlHostGuard = \"/host/guard\";//门禁对讲接听推送请求\n\n\n String urlStartScanBatch = \"/device/startScanBatch\";//开始批量添加\n String urlStopScanBatch = \"/device/stopScanBatch\";//停止批量添加\n\n String urlQueryDeviceBatch = \"/device/queryDeviceBatch\";//查询设备\n String urlSaveDeviceBatch = \"/device/saveDeviceBatch\";//保存\n\n String urlCommonDevice = \"/device/commondevice\";//设置、取消常用设备\n\n String urlHostShowOnline = \"/host/showonline\"; // 主机是否在线\n String urlgetMsgSettings = \"/settings/find_message_settings_by_mobile\";//获取消息设置\n String urlsetMsgSettings = \"/settings/save_message_settings\";//设置消息设置\n String urlsetPushMsg = \"/notification/notification_push\";//消息推送\n\n String urlQueryAirFilter = \"/energy/query_airFilter\";// 查询 历史记录\n String urlQueryTableWaterFilter = \"/energy/query_tableWaterFilter\";//\n String urlQueryFloorWaterFilter = \"/energy/query_floorWaterFilter\";//\n\n\n}", "public interface RequestURLs {\n String DEFAULT_URL = \"http://aperturedev.co.kr:21002/petcommunity/\";\n\n /*\n 매칭 서비스 관련\n */\n String GET_PET_TYPES = DEFAULT_URL + \"services/get-pettypes.php\"; // 강아지 종을 가져온다.\n String REGIST_MATCH_PET = DEFAULT_URL + \"matching/regist-new-pet.php\"; // 팻 등록 실시\n String MATCHING_OTHER_PET = DEFAULT_URL + \"matching/matching.php\"; // 매칭할 팻을 하나 가져옵니다.\n\n /*\n 사용자 정보 관련\n */\n String GET_USER_INFO = DEFAULT_URL + \"users/get-info.php\"; // UUID -> 사용자 정보\n String REGIST_SERVICE = DEFAULT_URL + \"users/signup.php\"; // 회원가입을 실시한다.\n String IS_REGIST_SERVICE = DEFAULT_URL + \"/users/is-registed.php\"; // 회원가입 되어 있는지 확인한다.\n String LOGIN_SERVICE = DEFAULT_URL + \"users/signin.php\"; // 로그인 처리한다.\n\n\n\n\n}", "@Api(1.2)\n @NonNull\n public String url() {\n return mRequest.buildOkRequest().url().toString();\n }", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "private ApiInfo apiInfo() {\n Contact contact = new Contact(\"Hanchuanjun\", \"\", \"[email protected]\");\n ApiInfo apiInfo = new ApiInfo(\n \"GEHC SmartX SSO-OAuth模块api\",\n \"GEHC SmartX SSO-OAuth模块服务api\",\n \"v0.0.1\",\n \"初始化版本\",\n contact,\n \"\",\n \"\");\n return apiInfo;\n }", "public com.google.protobuf.ByteString\n getApiUrlBytes() {\n java.lang.Object ref = apiUrl_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n apiUrl_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String getRequestURL();", "public interface Api {\n String URL_PROD_BASE = \"http://defcon33.ddns.net/\";\n String URL_PROD_TEST = \"http://bcreaderapp.com/\";\n\n @FormUrlEncoded\n @POST(\"/FoodSavr/public/register\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<RegisterResponse> register(@Field(\"name\") String name,\n @Field(\"email\") String email,\n @Field(\"password\") String password);\n\n @FormUrlEncoded\n @POST(\"/FoodSavr/public/login\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<RegisterResponse> login(@Field(\"email\") String email,\n @Field(\"password\") String password);\n\n @POST(\"/FoodSavr/public/logout\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<AddFridgeItemResponse> logout();\n\n @FormUrlEncoded\n @POST(\"/FoodSavr/public/user/sendToken\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<BaseResponse> sendRefreshToken(@Field(\"token\") String token);\n\n @FormUrlEncoded\n @POST(\"/FoodSavr/public/user/addFridgeItems\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<AddFridgeItemResponse> addFridgeItem(@Field(\"barcode\") String barcode,\n @Field(\"quantity\") Integer quantity,\n @Field(\"useBy\") Long useBy);\n\n @FormUrlEncoded\n @POST(\"/FoodSavr/public/products/updateInfo\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<BaseResponse> updateItemInfo(@Field(\"barcode\") String barcode,\n @Field(\"manufacturer\") String manufacturer,\n @Field(\"name\") String name);\n\n @GET(\"/FoodSavr/public/login\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<RegisterResponse> testLogin();\n\n @GET(\"/FoodSavr/public/user/getFridgeItems\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<ProductsResponse> getFridgeItems();\n\n @GET(\"/FoodSavr/public/user/getDonatedItems\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<ProductsResponse> getDonatedItems();\n\n @FormUrlEncoded\n @POST(\"/FoodSavr/public/user/donateItems\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<BaseResponse> donateItems(@Field(\"id\") Integer productId, @Field(\"quantity\") Integer quantity);\n\n @GET(\"/FoodSavr/public/getRecipes\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Call<List<RecipeItem>> getRecipes();\n\n /*@POST(\"/user/login\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Observable<LoginResponse> login(@Body LoginBody body);\n\n @POST(\"/user/logout\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Observable<ApiResponse> logout();\n\n @GET(\"/get/cardslist\")\n @Headers({\"Cache-Control: no-store, no-cache\", \"User-Agent: android\"})\n Observable<GenericResponse> getCardsList();*/\n}", "public interface SkateParks_API {\n String BASE_URL = \"http://danielburkedev.com/isa\";\n\n @GET(\"/isa_skateparksdb.php\")\n void getSkateParks( Callback<Skateparks_Model> cb);\n\n\n\n\n\n}", "private void StringRequest_POST() {\n\t\tString POST = \"http://api.juheapi.com/japi/toh?\";\n\t\trequest = new StringRequest(Method.POST, POST, new Listener<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}, new ErrorListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0.toString(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}){@Override\n\t\tprotected Map<String, String> getParams() throws AuthFailureError {\n\t\t\tHashMap< String , String> map = new HashMap<String,String>();\n\t\t\tmap.put(\"key\", \"7bc8ff86168092de65576a6166bfc47b\");\n\t\t\tmap.put(\"v\", \"1.0\");\n\t\t\tmap.put(\"month\", \"11\");\n\t\t\tmap.put(\"day\", \"1\");\n\t\t\treturn map;\n\t\t}};\n\t\trequest.addMarker(\"StringRequest_GET\");\n\t\tMyApplication.getHttpRequestQueue().add(request);\n\t}", "public static String getApiKey() {\n String sep = \"-\";\n String a = BuildConfig.GUARD_A;\n String b = BuildConfig.GUARD_B;\n String c = BuildConfig.GUARD_C;\n String d = BuildConfig.GUARD_D;\n String e = BuildConfig.GUARD_E;\n return b+sep+a+sep+d+sep+c+sep+e;\n }", "public static String requestURL(String url) {\n return \"\";\n }", "public Builder setApiUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n apiUrl_ = value;\n onChanged();\n return this;\n }", "public String getUrl(){\n \treturn url;\n }", "@DebugLog\npublic interface ApiService {\n final static String APPSETTINGS = \"/application_settings.json\";\n final static String MOVIES = \"/in_theaters.json\";\n\n // APPLICATION SETTINGS\n @Headers(\"Cache-Control: no-cache\")\n @GET(APPSETTINGS)\n void getApplicationSettings(Callback<ApplicationSettings> cb);\n\n // IN THEATERS\n @GET(MOVIES)\n void getMovies(@Query(\"apikey\") String key, @Query(\"page\") int page, @Query(\"page_limit\") int page_limit, Callback<Movies> cb);\n}", "private void buildTimeChartUrl() {\n url = \"http://q.lizone.net/index/index/fenshi/label/\" + dataItem.label + \"/\";//api 2.0\n }", "public interface Constants {\n final public static String TAG = \"[PracticalTest02Var03]\";\n\n final public static boolean DEBUG = true;\n\n final public static String WEB_SERVICE_ADDRESS = \"http://services.aonaware.com/DictService/DictService.asmx/Define\";\n\n final public static String EMPTY_STRING = \"\";\n\n final public static String QUERY_ATTRIBUTE = \"word\";\n\n final public static String SCRIPT_TAG = \"WordDefinition\";\n final public static String SEARCH_KEY = \"wui.api_data =\\n\";\n\n final public static String CURRENT_OBSERVATION = \"current_observation\";\n}", "private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }", "private ApiInfo apiInfo() {\n\t\treturn new ApiInfo(\"Langton ant app\", \"rest api for langton ant app\", version, null,\n\t\t\t\tnew Contact(\"leclerc\", \"N/A\", \"[email protected]\"), null, null, Collections.EMPTY_LIST);\n\t}", "public interface Constants {\n\n String IMAGE_DOWNLOAD_LINK = \"http://appsculture.com/vocab/images/\";\n\n}", "public String getAPIkey() {\n\t\treturn key1;\r\n\t}", "public com.google.protobuf.ByteString\n getApiUrlBytes() {\n java.lang.Object ref = apiUrl_;\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 apiUrl_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public interface ApiInterface {\n @GET(\"http://wthrcdn.etouch.cn/weather_mini\") //get temp,temp up,temp down and type\n Call<EtouchWeatherResponse> getWeatherByCity(@Query(\"city\") String city);\n\n// @GET(\"http://wthrcdn.etouch.cn/weather_mini\")\n// Call<EtouchWeatherResponse> getWeatherByCityKey(@Query(\"citykey\") String citykey);\n\n @GET(\"http://api.help.bj.cn/apis/weather/\")//get windspeed and humidity\n Call<HelpWeatherResponse> getWeather(@Query(\"id\") String city);\n\n\n\n}", "private URLHelper() {\n\n }", "public interface INewsApi {\n static final String INEW_BASE_URL = \"http://c.3g.163.com/\";\n\n /**\n * 获取专题\n * eg: http://c.3g.163.com/nc/special/S1451880983492.html\n * @param specialId 专题Id\n * @return\n */\n @Headers(AVOID_HTTP403_FORBIDDEN)\n @GET(\"nc/special/{specialId}.html\")\n Call<ResponseBody> getSpecial(@Path(\"specialId\") String specialId);\n}", "boolean hasApiUrl();", "private WAPIHelper() { }" ]
[ "0.75841", "0.7567844", "0.7496984", "0.7481505", "0.73125136", "0.72545326", "0.71676695", "0.7103784", "0.70774716", "0.70022905", "0.6943831", "0.69252074", "0.68600065", "0.67649984", "0.66798276", "0.6651088", "0.66397166", "0.6606169", "0.66035074", "0.659823", "0.65862095", "0.6560344", "0.6405344", "0.63628006", "0.6349192", "0.63280904", "0.6322222", "0.6321763", "0.6296356", "0.6284174", "0.62803656", "0.62790334", "0.6260368", "0.6252278", "0.6211091", "0.619343", "0.6163118", "0.6153643", "0.61534387", "0.6149885", "0.61323947", "0.6129494", "0.6129122", "0.6128356", "0.6126953", "0.6122865", "0.6120962", "0.6101112", "0.60915136", "0.6058905", "0.6038705", "0.6034246", "0.60338193", "0.60209805", "0.60178655", "0.6011199", "0.60064393", "0.60046315", "0.6001434", "0.59992355", "0.599401", "0.5993905", "0.59925467", "0.598434", "0.59670234", "0.59592223", "0.59460163", "0.5942458", "0.5937791", "0.5925649", "0.5922112", "0.5921701", "0.592158", "0.5911311", "0.59053904", "0.5904416", "0.58915764", "0.5891165", "0.58855426", "0.5873997", "0.5873135", "0.58566993", "0.58285266", "0.5810334", "0.58074105", "0.58015376", "0.5800902", "0.57878286", "0.5777475", "0.5766322", "0.5765359", "0.57637423", "0.5755676", "0.5750867", "0.57493585", "0.5744456", "0.57285273", "0.57266456", "0.57262206", "0.5717224", "0.57149374" ]
0.0
-1
Envia um email para os destinatarios
public void sendEmail(String[] to, String subject, String body, MailMimeType mailMimeType) throws EmailNotSendedException { if(emailConfig == null){ throw new EmailNotSendedException("Servidor de email não está configurado"); } // Validar configuracoes de email ValidatorFactory validatorFactory = Validation.buildDefaultValidatorFactory(); Validator validator = validatorFactory.getValidator(); Set<ConstraintViolation<EmailConfig>> violations = validator.validate(emailConfig); if(violations.size() > 0){ throw new EmailNotSendedException("Configurações de Email Incorretas ao tentar enviar"); } Properties props = new Properties(); props.put("mail.smtp.host", emailConfig.getHost()); props.put("mail.smtp.port", emailConfig.getPort()); if (emailConfig.getProtocol() == Protocol.TLS) { props.put("mail.smtp.starttls.enable", "true"); }else if(emailConfig.getProtocol() == Protocol.SMTPS){ props.put("mail.smtp.ssl.enable", "true"); } final String username = emailConfig.getLogin(); final String password = emailConfig.getPassword(); final String from = emailConfig.getSender(); Authenticator authenticator = null; if(emailConfig.getNeedAuthentication()){ props.put("mail.smtp.auth", "true"); authenticator = new Authenticator() { private PasswordAuthentication pa = new PasswordAuthentication(username, password); @Override public PasswordAuthentication getPasswordAuthentication() { return pa; } }; } Session session = Session.getInstance(props, authenticator); session.setDebug(emailConfig.getDebug()); MimeMessage message = new MimeMessage(session); try { message.setFrom(new InternetAddress(from)); InternetAddress[] address = new InternetAddress[to.length]; for (int i = 0; i < to.length; i++) { try { address[i] = new InternetAddress(to[i]); } catch (Exception e) { throw new EmailNotSendedException("Endereço de email inválido"); } } message.setRecipients(Message.RecipientType.TO, address); message.setSubject(subject); message.setSentDate(new Date()); Multipart multipart = new MimeMultipart("alternative"); MimeBodyPart bodyPart = new MimeBodyPart(); switch (mailMimeType){ case TXT: bodyPart.setText(body); break; case HTML: bodyPart.setContent(body, "text/html"); break; default: bodyPart.setText(body); } multipart.addBodyPart(bodyPart); message.setContent(multipart); Transport.send(message); } catch (MessagingException ex) { throw new EmailNotSendedException("Não foi possível enviar email: " + ex.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void enviarEmail(String emaildestino, String assunto, String mensagem) {\n\t\ttry {\n\t\t\tif (Fachada.emailDesabilitado)\n\t\t\t\treturn;\n\n\t\t\tString emailorigem = Fachada.emailOrigem;\n\t\t\tString senhaorigem = Fachada.senhaOrigem;\n\n\t\t\t//configurar email de origem\n\t\t\tProperties props = new Properties();\n\t\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\t\tprops.put(\"mail.smtp.port\", \"587\");\n\t\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\t\tSession session;\n\t\t\tsession = Session.getInstance(props,\n\t\t\t\t\tnew javax.mail.Authenticator() \t{\n\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() \t{\n\t\t\t\t\treturn new PasswordAuthentication(emailorigem, senhaorigem);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t//criar e enviar email\n\t\t\tMimeMessage message = new MimeMessage(session);\n\t\t\tmessage.setSubject(assunto);\n\t\t\tmessage.setFrom(new InternetAddress(emailorigem));\n\t\t\tmessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse(emaildestino));\n\t\t\tmessage.setText(mensagem); // usar \"\\n\" para quebrar linhas\n\t\t\tTransport.send(message);\n\t\t} \n\t\tcatch (MessagingException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public static void enviarMail(Activity actividad, String asunto, String mensaje, String destinatariosSeparadosPorComas) {\n Intent i = new Intent(Intent.ACTION_SENDTO, Uri.parse(\"mailto:\" + destinatariosSeparadosPorComas));\n // -- EXTRA_SUBJECT Es el asunto del correo y EXTRA_TEXT el cuerpo del correo\n i.putExtra(Intent.EXTRA_SUBJECT, asunto);\n i.putExtra(Intent.EXTRA_TEXT, mensaje);\n // -- EXTRA_HTML_TEXT se usa si el texto del correo tiene formato HTML\n // i.putExtra(Intent.EXTRA_HTML_TEXT, \"<bold>TEXTO DEL MENSAJE</bold>\");\n // -- En este caso el segundo parametro del createChooser es un mensaje que se muestra\n // -- por pantalla cuando se efectua el envio\n actividad.startActivity(Intent.createChooser(i, \"Enviando mensaje\"));\n }", "public void sendEmail(String recipient,String password);", "private void composeEmail() {\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:[email protected]\"));\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "private static boolean enviarEmailAnexo(Email remetente, List<File> files, String destinatario, String titulo, String mensagem) {\n Properties prop = new Properties();\r\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n prop.put(\"mail.smtp.port\", \"465\");\r\n prop.put(\"mail.smtp.auth\", \"true\");\r\n prop.put(\"mail.smtp.socketFactory.port\", \"465\");\r\n prop.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\r\n Session session = Session.getInstance(prop,\r\n new DefaultAuthenticator(remetente.getRemetente(), remetente.getSenha()));\r\n\r\n MimeMessage msg = new MimeMessage(session);\r\n\r\n try {\r\n //Quem esta enviando\r\n msg.setFrom(new InternetAddress(remetente.getRemetente()));\r\n //Destinatario\r\n msg.setRecipient(Message.RecipientType.TO, new InternetAddress(destinatario));\r\n //Data de envio\r\n msg.setSentDate(new Date());\r\n //titulo email\r\n msg.setSubject(titulo);\r\n\r\n Multipart mp = new MimeMultipart();\r\n //mensagem\r\n\r\n MimeBodyPart paragrafo = new MimeBodyPart();\r\n paragrafo.setContent(mensagem + \"\\n\\nJCR\", \"text/html\");\r\n mp.addBodyPart(paragrafo);\r\n //anexos\r\n for (File file : files) {\r\n MimeBodyPart mbp = new MimeBodyPart();\r\n DataSource fds = new FileDataSource(file);\r\n mbp.setDisposition(Part.ATTACHMENT);\r\n mbp.setDataHandler(new DataHandler(fds));\r\n mbp.setFileName(deAccent(fds.getName()));\r\n mp.addBodyPart(mbp);\r\n }\r\n\r\n msg.setContent(mp);\r\n\r\n //envia a mensagem\r\n Transport.send(msg);\r\n return true;\r\n } catch (MessagingException e) {\r\n System.err.println(e);\r\n GerarLogErro.gerar(e.getMessage());\r\n return false;\r\n }\r\n }", "public boolean enviarMailConfirmacion(Agente agente, Usuario usuario){\n\n try {\n\n //seteamos el asunto\n// message.setSubject(\"UNDEC - Activar Cuenta Nortia UNDEC\");\n//\n// //seteamos el mensaje que vamos a enviar\n// message.setContent(\"<html>\\n\" +\n// \"<body>\\n\" +\n// \"\\n Hola, para poder activar la cuenta haga click en el siguiente link ----> \" +\n// \"<a href=\\\"\"+new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n// \"&hash=\"+usuario.getUsuarioclave()+\n// \"\\\">\\n\" +\n// \"Activar cuenta</a>\\n\" +\n// \"\\n\" +\n// \"En caso de no poder pegue en el browser lo siguiente\\n \"+\n// new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n// \"&hash=\"+usuario.getUsuarioclave()+\"\\n\"+\n// \"Muchas Gracias\"+\n// \"</body>\\n\" +\n// \"</html>\", \"text/html\");\n// //colocamos la direccion de donde enviamos el correo\n// Address address = new InternetAddress(agente.getEmail());\n// message.setFrom(address);\n// //Colocamos la direccion de la persona a enviar\n// Address send = new InternetAddress(agente.getOtroemail(),false);\n// message.addRecipient(Message.RecipientType.TO,send);\n// message.addRecipient(Message.RecipientType.BCC, new InternetAddress( agente.getOtroemail()));\n// //la persona que envia con la validacion de su cuenta.\n// Transport trans = session.getTransport(\"smtp\");\n// //Aca se autentifica que la direccion de la persona que envia sea válida\n// //trans.connect();\n// trans.connect(\"[email protected]\",\"sgap*9812\");\n// trans.sendMessage(message,message.getAllRecipients());\n// trans.close();\n Email email = new Email();\n email.setFromAddress(\"Nortia UNDEC\", \"[email protected]\");\n email.addRecipient(agente.getApellido(), agente.getEmail(), RecipientType.TO);\n email.addRecipient(agente.getApellido(), agente.getOtroemail(), RecipientType.BCC);\n email.setTextHTML(\"Hola \"+usuario.getUsuarionombre()+\", <br /> para poder activar la cuenta haga click en el siguiente link ----> \" +\n\"<a href=\\\"\"+new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n \"&hash=\"+usuario.getUsuarioclave() +\n\"\\\"> Activar cuenta </a> <br />\"+\n \n\"En caso de no poder pegue en el browser lo siguiente \" +\n new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n\"&hash=\"+usuario.getUsuarioclave()+\"<br />\" +\n\"Muchas Gracias\");\n email.setSubject(\"UNDEC - Activar Cuenta Nortia UNDEC\");\n \n // or:\n new Mailer(\"localhost\", 25, \"[email protected]\", \"sgap*9812\").sendMail(email);\n } catch (Exception ex) {\n\n ex.printStackTrace();\n //Si el correo tiene algun error lo retornaremos aca\n JsfUtil.addErrorMessage(ex,\"No se pudo crear el Usuario\");\n\n return false;\n\n// } catch (MalformedURLException ex) {\n// Logger.getLogger(EnviarMail.class.getName()).log(Level.SEVERE, null, ex);\n// return false;\n }\n //Correo tuvo exito dara una salida en este punto indicando que si se envio\n return true;\n \n }", "public Boolean sendEmail(String sender, String receiver, String subject, String body) throws Exception;", "public void enviarEmail(String c, Ciudadano a){\n\t}", "public void sendMail(String to, String cc, String bcc, String subject, String text);", "public void sentEmail(String destinatario, String comic) {\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.socketFactory.port\", \"465\");\n\t\tprops.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.port\", \"465\");\n\n\t\tSession session = Session.getDefaultInstance(props, new javax.mail.Authenticator() {\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(\"[email protected]\", \"progettoIS2\");\n\t\t\t}\n\t\t});\n\n\t\t/** Debug for session */\n\t\tsession.setDebug(true);\n\n\t\ttry {\n\n\t\t\tMessage message = new MimeMessage(session);\n\t\t\tmessage.setFrom(new InternetAddress(\"[email protected]\")); // mitente\n\n\t\t\tAddress[] toUser = InternetAddress // destinatario\n\t\t\t\t\t.parse(destinatario);\n\n\t\t\tmessage.setRecipients(Message.RecipientType.TO, toUser);\n\t\t\tmessage.setSubject(\"Avviso disponibilitą fumetto - NOTICE\");// contenuto\n\t\t\tmessage.setText(\"Salve! Il fumetto che era del suo interesse adesso č disponibile in stock! Fumetto:\"\n\t\t\t\t\t+ comic + \"; Tanti saluti! \"); // messaggio\n\t\t\t/** metodo che invia il messaggio creato */\n\t\t\tTransport.send(message);\n\n\t\t} catch (MessagingException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\t\n\t}", "private void sendEmail(String emailAddress, String subject, String body) {\n\t\t\n\t}", "private void enviarCorreo(Soda soda){\n String[] TO = {soda.getEmail()};\n Uri uri = Uri.parse(\"mailto:\" + soda.getEmail())\n .buildUpon()\n .appendQueryParameter(\"subject\", \"Consulta Soda Universitaria\")\n .appendQueryParameter(\"body\", \"Enviado desde SodaUniversitaria.\")\n .build();\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO, uri);\n emailIntent.putExtra(Intent.EXTRA_EMAIL, TO);\n startActivity(Intent.createChooser(emailIntent, \"Enviar vía correo\"));\n }", "public void sendMail(String to, String cc, String subject, String text);", "public void sendMail(String address, String content) {\n }", "public void sendMail(String to, String subject, String text);", "void sendMail(String receivers) throws MessagingException;", "private void sendEmail(){\n String teachersEmail = tvTeachersEmail.getText().toString();\n String[] receiver = new String[1];\n receiver[0] = teachersEmail;\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.putExtra(Intent.EXTRA_EMAIL, receiver);\n\n // opening only email clients - force sending with email\n intent.setType(\"message/rfc822\");\n startActivity(Intent.createChooser(intent, getString(R.string.open_email_clients)));\n }", "void send(Email email);", "public static void sendMail (String email, String name, String surname) throws AddressException,MessagingException {\n \n Properties props = new Properties();\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.port\", \"587\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n\n Session session = Session.getDefaultInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\",\"progettoweb2018\");\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(email));\n message.setSubject(\"Benvenuto in Friday!\");\n message.setText(name+\" \"+surname+\", Benvenuto in Friday!\"+\n \"\\n\\n link di conferma : http://localhost:8080/Friday/confirmRegistrationServlet?email=\"+email);\n\n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }", "public static void sendEmail(EmailSendable e, String message){\n\t\tSystem.out.println(\"Email-a bidali da: \"+message);\r\n\t}", "public java.lang.String sendMail(java.lang.String accessToken, java.lang.String toAddresses, java.lang.String subject, java.lang.String body, java.lang.String msgFrom) throws java.rmi.RemoteException;", "public void sendEmail(View view) {\n //deckare enauk addresses\n String[] addresses = {\n \"[email protected]\",\n \"[email protected]\"\n };\n String subject = \"Coffee Order\";\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\n intent.putExtra(Intent.EXTRA_EMAIL, addresses);\n intent.putExtra(Intent.EXTRA_SUBJECT, subject);\n intent.putExtra(Intent.EXTRA_TEXT, message);\n// if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n// }\n }", "void send(String emailName);", "void send(String email, Locale locale);", "SendEmail() {\t\n\t}", "void sendCommonMail(String to, String subject, String content);", "public void sendemail(String sender,String to,String pass,String companyname){\n final String username = sender;\n final String password = pass;\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", true);\n props.put(\"mail.smtp.starttls.enable\", true);\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected javax.mail.PasswordAuthentication getPasswordAuthentication() {\n return new javax.mail.PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(to));\n message.setSubject(companyname+\" Db Backup\");\n message.setText(\"Security system at \"+companyname+\" database attached...\");\n\n MimeBodyPart messageBodyPart = new MimeBodyPart();\n\n Multipart multipart = new MimeMultipart();\n\n messageBodyPart = new MimeBodyPart();\n String file = path;\n //String fileName = companyname+\" Database Backup\";\n DataSource source = new FileDataSource(file);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(path);\n multipart.addBodyPart(messageBodyPart);\n\n message.setContent(multipart);\n\n System.out.println(\"Sending...\");\n\n Transport.send(message);\n\n System.out.println(\"Done\");\n\n } catch (MessagingException e) {\n \n }\n }", "void sendEmail(Job job, String email);", "private void sendEmail() {\n\n // Set up an intent object to send email and fill it out\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.setType(\"text/plain\");\n\n // An array of string addresses\n String[] toAddress = new String[]{getString(R.string.email_company_contact)};\n emailIntent.putExtra(Intent.EXTRA_EMAIL, toAddress);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.email_subject));\n emailIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.email_default_text));\n\n // Error handler, try to execute code\n try {\n // Starts a new screen to send email\n startActivity(Intent.createChooser(emailIntent, getString(R.string.email_prompt)));\n finish();\n } catch (android.content.ActivityNotFoundException ex) {\n // An error occurred trying to use the activity\n Toast.makeText(this,\n getString(R.string.error_send_email), Toast.LENGTH_SHORT).show();\n // Missing a finally that closes the activity?\n }\n }", "public void sendMail(String to, String cc, String bcc, String templateName, Object... parameters);", "void sendAttachMail(String to, String subject, String content);", "void sendEmail(Task task, String taskTypeName, String plantName);", "@Test\n @Ignore\n public void enviarEmail() {\n String caminho = \"C:\\\\Users\\\\Da Rocha\\\\OneDrive\\\\Projeto_DiskAgua\\\\xml\\\\20_Tardeli da Rocha.xml\";\n\n Email.sendEmail(caminho, \"[email protected]\");\n\n }", "@Override\n\tpublic void enviarEmailConfirmacaoPedido(Pedido obj) {\n\t\t//Vou chamar a classe que faz a referência ao EMAIL\n\t\t/*\n\t\t * Vou instanciar o meu SimpleMailMessage a apartir do meu metodo\n\t\t * que é o Pedido.\n\t\t * \n\t\t * Esse enviarEmail é aquele metodo da minha interface.\n\t\t * \n\t\t * Estou chamando ele aqui no meu AbstractEmailServico\n\t\t * Ele não está implementado ainda, mas já posso utiliza-lo aqui\n\t\t * na minha implementação da classe abstrata, esse é o padrão de projeto\n\t\t * Template Method, que você consegue implementar um metodo baseado em\n\t\t * metodos abstratos, que depois vão ser implementados pelas implementações \n\t\t * da interface EmailServico.\n\t\t */\n\t\tSimpleMailMessage sm = prepararMessagemDeEmailParaPedido(obj);\n\t\tenviarEmail(sm);\n\t}", "public static void SendEmailConfirmation(String toEmail, String content)\r\n {\r\n try\r\n {\r\n System.out.println(\"Se pregateste email-ul.\");\r\n\r\n Properties properties = new Properties();\r\n properties.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n properties.put(\"mail.smtp.port\", \"587\");\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\r\n Authenticator auth = new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(fromEmail, password);\r\n }\r\n };\r\n\r\n Session session = Session.getInstance(properties, auth);\r\n\r\n sendEmail(session, toEmail, \"[INFORMATII PERSONALE] Credentiale pentru aplicatia UVT StudentApp\", content);\r\n }\r\n catch ( Exception e)\r\n {\r\n System.out.println(\"Nu s-a putut trimite mail-ul.\");\r\n return;\r\n }\r\n }", "private void sendEmail() {\n String email = emailInput.getText().toString();\n String title = titleInput.getText().toString();\n String message = messageInput.getText().toString();\n\n if(email.isEmpty() ||title.isEmpty() ||message.isEmpty()){\n Toast.makeText(this, R.string.field_not_empty, Toast.LENGTH_SHORT).show();\n return;\n }\n\n if(!checkEmailPattern(email)){\n Toast.makeText(this,R.string.invalid_email,Toast.LENGTH_SHORT).show();\n return;\n }\n\n\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n\n emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{email});\n emailIntent.putExtra(Intent.EXTRA_CC, new String[]{CC_CUPIC, CC_BAOTIC});\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, title);\n emailIntent.putExtra(Intent.EXTRA_TEXT, message);\n\n emailIntent.setType(\"message/rfc822\");\n\n try{\n startActivity(Intent.createChooser(emailIntent,\"\"));\n finish();\n }catch(ActivityNotFoundException ex){\n Toast.makeText(this,R.string.cant_send,Toast.LENGTH_SHORT).show();\n }\n }", "public boolean mailRecuperarPassword(String nombreusuario, String password, String mail){\n\n try {\n\n// //seteamos el asunto\n// message.setSubject(\"UNDEC - Activar Cuenta Nortia UNDEC\");\n//\n// //seteamos el mensaje que vamos a enviar\n// message.setContent(\"<html>\\n\" +\n// \"<body>\\n\" +\n// \"\\nHola, usuario = \" +nombreusuario+ \",\\n su nuevo password es = \"+password+\n// \"\\n\" +\n// \"\\nUsted puede cambiar el password cuando ingrese al sistema\\n \"+\n// \n// \"Muchas Gracias\"+\n// \"</body>\\n\" +\n// \"</html>\", \"text/html\");\n// //colocamos la direccion de donde enviamos el correo\n// Address address = new InternetAddress(mail);\n// message.setFrom(address);\n// //Colocamos la direccion de la persona a enviar\n// Address send = new InternetAddress(mail,false);\n// message.addRecipient(Message.RecipientType.TO,send);\n// \n// //la persona que envia con la validacion de su cuenta.\n// Transport trans = session.getTransport(\"smtp\");\n// //Aca se autentifica que la direccion de la persona que envia sea válida\n//\n// trans.connect(\"[email protected]\",\"momomomo\");\n// trans.sendMessage(message,message.getAllRecipients());\n// trans.close();\n System.out.println(\"maiñll\");\n Email email = new Email();\n email.setFromAddress(\"Nortia UNDEC\", \"[email protected]\");\n email.addRecipient(nombreusuario, mail, RecipientType.TO);\n //email.addRecipient(agente.getApellido(), agente.getOtroemail(), RecipientType.BCC);\n email.setTextHTML(\"Hola, usuario = \"+nombreusuario+ \"su nuevo password es = \"+password +\n\n\" <br />Usted puede cambiar el password cuando ingrese al sistema <br />\" +\n\n\"Muchas Gracias\");\n System.out.println(\"-----------\"+mail);\n email.setSubject(\"UNDEC - Recuperar Password Nortia UNDEC\");\n \n // or:\n new Mailer(\"localhost\", 25, \"[email protected]\", \"sgap*9812\").sendMail(email);\n System.out.println(\"-----------enviado\");\n } catch (Exception ex) {\n\n ex.printStackTrace();\n //Si el correo tiene algun error lo retornaremos aca\n JsfUtil.addErrorMessage(ex,\"No se pudo crear el Usuario\");\n\n return false;\n\n \n }\n //Correo tuvo exito dara una salida en este punto indicando que si se envio\n return true;\n \n }", "public void sendMail(String to, String cc, String templateName, Object... parameters);", "public void EnvoyerEmailSurveillant(Utilisateur user) {\n\t\t\t\t MimeMessage mimeMessage = mailSender.createMimeMessage(); \n\t\t\t try {\n\t\t\t MimeMessageHelper mimeMessageHelper = new MimeMessageHelper(mimeMessage, true);\n\t\t\t mimeMessageHelper.setSubject(\"Compte Surveillant \");\n\t\t\t mimeMessageHelper.setFrom(\"[email protected]\");\n\n\t\t\t mimeMessageHelper.setTo(user.getEmail());\n\t\t\t String url =\"scolarity.dpc.com.tn\";\n\t\t String content = \"Bonjour Mr ( Mmme), \" + user.getNom()+\" + \" + user.getPrenom()\n\t\t + \", votre nom d'utilisateur par la platforme scolarity est : \\n \" + user.getUsername() +\" \\n\"+\"et votre mot de passe est : \\n\"+ user.getPassword()+\"\\n\"+\"vous pouvez accéder au espace surveillant via l'adresse suivante : \\n\"+url+\"\\n\"+\" \\n Cordialement.\";\n\t\t System.out.println(content);\n\n\t\t\t mimeMessageHelper.setTo(user.getEmail());\n\t\t mimeMessageHelper.setText(content);\n\t\t // Add a resource as an attachment\n\t\t mimeMessageHelper.setText(\"<html><body><p>\" + content + \"</p> <img src=\\\"http://207.180.211.158:/logodpc.bmp\\\" width=\\\"50\\\" alt=\\\"Apen\\\"></body></html>\", true);\n\n\t\t\t \n\t\t\t \n\t\t\t mailSender.send(mimeMessageHelper.getMimeMessage());\n\t\t\t } catch (MessagingException e) {\n\t\t\t e.printStackTrace();\n\t\t\t }\n\t\t\t\t\n\t\t\t}", "public void sendMail(String to) throws URISyntaxException, IOException {\n final String username = \"kicsikacsacodecool\";//change accordingly\n final String password = \"codecool\";//change accordingly\n\n // Assuming you are sending email through relay.jangosmtp.net\n String host = \"relay.jangosmtp.net\";\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n // Get the Session object.\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n // Create a default MimeMessage object.\n Message message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(\"[email protected]\"));\n\n // Set To: header field of the header.\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(to));\n\n // Set Subject: header field\n message.setSubject(\"Webshop Registration\");\n\n // Now set the actual message\n message.setText(\"Welcome to the codecool webshop !!\");\n\n // Send message\n try {\n Transport.send(message);\n } catch (Exception e) {\n System.out.println(e);\n }\n\n System.out.println(\"Sent message successfully....\");\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }", "public void posaljiIzvestajEmail(final IzvestajDto izvestajDto) {\n final Context context = popuniKontekstIzvestaja(izvestajDto);\n partnerRepository.findByPpid(izvestajDto.getKomentarDto().getPpid()).ifPresent(partner -> {\n log.info(\"Slanje izvestaja komercijalisti {}\", partner.getNaziv());\n sendEmail.pripremiIPosaljiEmail(partner.getEmail(), \"Podsetnik za izvestaj\", \"slanjeIzvestajPodsetnik\", context);\n });\n\n }", "@Override\n public void sendEmail() {\n return;\n }", "public void sendEmail(\n ActionRequest actionRequest, ActionResponse actionResponse)\n throws IOException, PortletException {\n }", "public void sendsMail(String recipient, String email_address, String subject, String contentMail, String mailType)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString query = \"insert into mails (sender, recipient, mailSubject, message, mailType)\" + \r\n\t\t\t\t\t\t\t\"values(?, ?, ?, ?, ?)\";\r\n\t\t\tpreparedStatement = connect.prepareStatement(query);\r\n\t\t\tpreparedStatement.setString(1, email_address);\r\n\t\t\tpreparedStatement.setString(2, recipient);\r\n\t\t\tpreparedStatement.setString(3, subject);\r\n\t\t\tpreparedStatement.setString(4, contentMail);\r\n\t\t\tpreparedStatement.setString(5, mailType);\r\n\t\t\tpreparedStatement.executeUpdate();\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}", "@TransactionAttribute(REQUIRES_NEW)\n public void sendEmailWithAttachment(String[] to_addresses, String[] bc_addresses, String[] cc_addresses, String subject, String message, List<File> attachedFiles) throws AddressException,\n MessagingException {\n Authenticator auth = new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(prop.getProperty(\"smtp.username\"), prop.getProperty(\"smtp.password\"));\n }\n };\n\n session = Session.getInstance(getProperties(), auth);\n // creates a new e-mail message\n Message msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(prop.getProperty(\"smtp.username\")));\n\n InternetAddress[] bcAddresses, ccAddresses;\n InternetAddress[] toAddresses = new InternetAddress[to_addresses.length];\n\n if (bc_addresses != null) {\n bcAddresses = new InternetAddress[bc_addresses.length];\n for (int x = 0; x < bc_addresses.length; x++) {\n bcAddresses[x] = new InternetAddress(bc_addresses[x]);\n }\n msg.setRecipients(Message.RecipientType.BCC, bcAddresses);\n }\n\n if (cc_addresses != null) {\n ccAddresses = new InternetAddress[cc_addresses.length];\n for (int x = 0; x < cc_addresses.length; x++) {\n ccAddresses[x] = new InternetAddress(cc_addresses[x]);\n }\n msg.setRecipients(Message.RecipientType.CC, ccAddresses);\n }\n\n for (int x = 0; x < to_addresses.length; x++) {\n toAddresses[x] = new InternetAddress(to_addresses[x]);\n }\n\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\n msg.setSubject(subject);\n msg.setSentDate(new Date());\n\n // creates message part\n MimeBodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setContent(message, \"text/html\");\n\n // creates multi-part\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(messageBodyPart);\n\n // adds attachments\n if (attachedFiles != null && attachedFiles.size() > 0) {\n for (File aFile : attachedFiles) {\n MimeBodyPart attachPart = new MimeBodyPart();\n\n try {\n attachPart.attachFile(aFile);\n } catch (IOException ex) {\n Logger.getLogger(EmailSender.class.getName()).log(Level.SEVERE, \"Attching file failed\", ex);\n }\n\n multipart.addBodyPart(attachPart);\n }\n }\n\n // sets the multi-part as e-mail's content\n msg.setContent(multipart);\n\n // sends the e-mail\n Transport.send(msg);\n\n }", "public Boolean enviaEmail(PathDocEle pathDocEle, String emailDestino, String numeroComprobante, String mensaje, String xmlSinFirma, String numeroAutorizacion) throws ServicioExcepcion, EmailException, MessagingException, UnsupportedEncodingException {\n if (!emailDestino.isEmpty()) {\n ConfiguracionRepositorio configuracionRepositorio = new ConfiguracionRepositorio();\n hostMailServicio = new HostMailServicio();\n /*mail = hostMailServicio.obtenerPorConsultaJpaNombrada(mail.LISTAR_TODO, null);\n //seteo de variables de correo\n usuario = mail.getHtmCorreo();\n contrasena = mail.getHtmContrasenia();\n seguridad = new Integer(mail.getHtmSeguridad());\n smtp = mail.getHtmSmtp();\n puertoGmail = new Integer(mail.getHtmPuerto());\n remitente=mail.getHtmRemitente();\n*/ \n pathCorreo=pathDocEle.getPdeRepTemporal();\n asunto=\"Facturación Electrónica: \".concat(numeroComprobante);\n String pathRepositorioTemp = pathDocEle.getPdeRepTemporal();\n String nombreArchivoPdf = Util.aString(\"RIDE-\", numeroComprobante, \".pdf\");//RIDE-001-001-000000001.pdf\n String nombreArchivoXml = Util.aString(numeroComprobante, \"-firmado.xml\");//RIDE-001-001-000000001.xml\n String pathArchivoXml = Util.aString(pathRepositorioTemp, nombreArchivoXml, \"\");//home/repositorio/temporales/001-001-000000001.xml\n String pathLogo = pathDocEle.getPdeLogo();\n String fechaAutorizacionString = Util.aFechaHora_String(new Date());\n //generar RIDE pdf\n String xmlPuro = xmlSinFirma;//viene xml sin tag de autorizacion\n InputStream inputStream = RideExport.export(pathLogo, numeroAutorizacion, fechaAutorizacionString, xmlPuro.getBytes(\"UTF-8\"));\n //almacenar PDF\n ServicioArchivo servicioA = new ServicioArchivo();\n //servicioA.almacenar_File(pathArchivoXml, claseEmail.getXmlConAutorizacion());//esta en NULL, revisar\n servicioA.almacenar_EnRepositorio(pathRepositorioTemp, nombreArchivoPdf, inputStream);\n Util.aString(pathRepositorioTemp, nombreArchivoPdf, \"\");\n String pathArchivoPdf=pathCorreo.concat(nombreArchivoPdf);\n \n Multipart multipart = new MimeMultipart();\n BodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setContent(mensaje, \"text/html\");\n multipart.addBodyPart(messageBodyPart);\n\n //adjunto el PDF\n messageBodyPart = new MimeBodyPart();\n DataSource source = new FileDataSource(pathArchivoPdf);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(nombreArchivoPdf);\n multipart.addBodyPart(messageBodyPart);\n\n //adjunto el XML\n pathArchivoXml=pathCorreo.concat(numeroComprobante).concat(\"-firmado.xml\");\n messageBodyPart = new MimeBodyPart();\n source = new FileDataSource(pathArchivoXml);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(numeroComprobante.concat(\"-firmado.xml\"));\n multipart.addBodyPart(messageBodyPart);\n\n //envio de correo\n Email email = new MultiPartEmail();\n email.setHostName(smtp);//servidor de correos\n email.setAuthenticator(new DefaultAuthenticator(usuario, contrasena));\n if(seguridad==1){\n email.setSSLOnConnect(true);\n }\n email.setSmtpPort(puertoGmail);\n email.addTo(emailDestino, \"\");//Para quien se envia\n email.setFrom(correo, remitente);//quien envia\n email.setSubject(asunto);\n\n // add the attachment\n email.setContent((MimeMultipart) multipart);\n email.send();\n\n//FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"E-mail enviado con éxito para: \" + Emaildestino, \"Información\"));\n return Boolean.TRUE;\n }\n return Boolean.FALSE;\n\n }", "public static void sendMail(String to, String msg) throws RuntimeException, AddressException, MessagingException {\r\n Properties properties = System.getProperties();\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n properties.put(\"mail.smtp.port\", \"587\");\r\n properties.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\r\n// properties.setProperty(\"mail.smtp.host\", HOST);\r\n Session session = Session.getDefaultInstance(properties,\r\n new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(FROM, PASSWORD);\r\n }\r\n });\r\n\r\n // Create a default MimeMessage object.\r\n MimeMessage message = new MimeMessage(session);\r\n // Set From: header field of the header.\r\n message.setFrom(new InternetAddress(FROM));\r\n // Set To: header field of the header.\r\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to));\r\n // Set Subject: header field\r\n message.setSubject(\"Your confirmation code from Simple Blog register\");\r\n // Send the actual HTML message, as big as you like\r\n message.setContent(\r\n \"<h1>\" + msg + \"</h1><br/>\"\r\n + \"<h5>Please input your confirmation code to the web link:</h5>\"\r\n + \"<a href=\\\"\" + CONFIRM_URL + \"\\\">Click here</a>\",\r\n \"text/html\");\r\n\r\n // Send message \r\n Transport.send(message);\r\n System.out.println(\"message sent successfully....\");\r\n\r\n }", "@Override\n public void sendEmail(String emailBody) {\n }", "public void sendHtmlEmail( String emailAdmin, String emailDestinatario, String asunto, String contenido ) throws Exception\r\n {\n HtmlEmail email = new HtmlEmail();\r\n email.setHostName(\"smtp.gmail.com\");\r\n email.setSmtpPort( 587 );\r\n email.setAuthenticator(new DefaultAuthenticator( this.adminEmail, this.adminPw));\r\n email.addTo( emailDestinatario);\r\n email.addBcc( emailAdmin);\r\n email.setFrom( emailAdmin);\r\n email.setSubject( asunto );\r\n\r\n // embed the image and get the content id\r\n //URL url = new URL(\"http://www.apache.org/images/asf_logo_wide.gif\");\r\n //String cid = email.embed(url, \"Apache logo\");\r\n\r\n // set the html message\r\n email.setHtmlMsg( contenido);\r\n\r\n // set the alternative message\r\n //email.setTextMsg(\"Your email client does not support HTML messages\");\r\n\r\n email.setTLS( true );\r\n\r\n // send the email\r\n email.send();\r\n }", "public void sendMail(String to, String templateName, Object... parameters);", "public void SendEmail(){\n //Dummy Email Bot\n String from = \"[email protected]\";\n String emailPW = \"thisiscz2002\";\n\n try{\n Session session = Session.getDefaultInstance(init(), new Authenticator(){\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(from, emailPW);\n }});\n\n // -- Create a new message --\n Message msg = new MimeMessage(session);\n\n // -- Set the FROM and fields --\n msg.setFrom(new InternetAddress(from));\n msg.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(getRecipientEmail(),false));\n\n LocalDateTime myDateObj = LocalDateTime.now();\n DateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yyyy HH:mm:ss\");\n String formattedDate = myDateObj.format(myFormatObj);\n\n msg.setSubject(getEmailSubject());\n msg.setText(getMessage());\n msg.setSentDate(new Date());\n Transport.send(msg);\n\n //System.out.println(formattedDate + \" - Message sent.\");\n }catch (MessagingException e){\n System.out.println(\"Error: \" + e);\n }\n }", "private void sendEmailWithoutChooser() {\r\n String email = AppConstants.ADMIN_EMAIL;\r\n String feedback_msg = \"\";\r\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO);\r\n String aEmailList[] = {email};\r\n emailIntent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\r\n emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, aEmailList);\r\n emailIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(\"<i><font color='your color'>\" + feedback_msg + \"</font></i>\"));\r\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"Request help from Customer Support\");\r\n\r\n PackageManager packageManager = getApplicationContext().getPackageManager();\r\n boolean isIntentSafe = emailIntent.resolveActivity(packageManager) != null;\r\n if (isIntentSafe) {\r\n startActivity(emailIntent);\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Email app is not found\", Toast.LENGTH_SHORT).show();\r\n }\r\n }", "public void sendEmail(String receiver, Integer indexID){\r\n\t \r\n\t Properties props = new Properties();\r\n\t props.put(\"mail.smtp.host\", EMAIL_SERVER);\r\n\t props.put(\"mail.smtp.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t props.put(\"mail.smtp.auth\", \"true\");\r\n\t props.put(\"mail.smtp.socketFactory.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t props.put(\"mail.smtp.socketFactory.fallback\", \"false\");\r\n\t \r\n\t Session sess = Session.getInstance(props,\r\n\t\t\t new javax.mail.Authenticator() {\r\n\t\t \t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t \t\t\treturn new PasswordAuthentication(EMAIL_SENDER, PW_SENDER);\r\n\t\t \t\t}\r\n\t \t});\r\n\t \r\n\t try{ \r\n\t Message msg = new MimeMessage(sess);\r\n\t msg.setFrom(new InternetAddress(EMAIL_SENDER));\r\n\t msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(receiver));\r\n\t msg.setSubject(\"Notification regarding waitlist\");\r\n\t \r\n\t Transport.send(msg);\r\n\t System.out.println(\"Email has been send successfully!\"); \r\n\t }\r\n\t \r\n\t catch (MessagingException e){\r\n\t\t throw new RuntimeException(e);\r\n\t }\r\n\t \r\n\t \r\n\t }", "public static void main(String [] args) throws Throwable, MessagingException {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n Properties prop = new Properties();\n\n prop.put(\"mail.smtp.auth\", true);\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.port\", \"587\");\n Session session = Session.getInstance(prop, new Authenticator() {\n \t @Override\n \t protected PasswordAuthentication getPasswordAuthentication() {\n \t return new PasswordAuthentication(\"sarowerhome\", \"tanvirj9\");\n \t }\n \t});\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(\n Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"Mail Subject\");\n\n String msg = \"This is my first email using JavaMailer\";\n\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(msg, \"text/html\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(mimeBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tString destinatario = \"[email protected]\"; //A quien le quieres escribir.\n\t String asunto = \"Pruebas envio de correo con Java\";\n\t String cuerpo = \":) HOLA rt\";\n\n\t enviarConGMail(destinatario, asunto, cuerpo);\n\t System.out.println(\"MENSAJE ENVIADO CORRECTAMENTE\");\n\n\t}", "private void sendEmail() {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n\n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"This is the Subject Line!\");\n\n // Now set the actual message\n message.setText(\"This is actual message\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }", "private void SendEmail(String password, String emailTo, String staffNames)\n {\n String to = emailTo;\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"smtp.upcmail.ie\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n \n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try{\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"Password Change From Help Manager\");\n\n // Now set the actual message\n message.setText(\"Hello \"+staffNames +\", \\n\\n Your new Password is: \"+ password +\".\\n\\n Regards \\n Help Manager Team\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n }catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }", "public void sendEmail(String toAddr,String subject,String text){\n\t\tsendEmail(toAddr, subject, text, null);\n\t}", "@Override\n public Future<EmailResult<String>> sendEmail(\n String subject,\n List<String> emailAddresses,\n String message,\n MailSettings settings,\n boolean enc) {\n if (enc) {\n settings.setPassword(encryptionService.encrypt(settings.getPassword()));\n }\n return emailThread.submit(createEmailer(subject, emailAddresses, message, message, settings));\n }", "public void sendEmail(String toAddr,String subject,String text,final CommonsMultipartFile cmf){\n\t\ttry {\n\t\t\tMimeMessage message=mailSender.createMimeMessage();\n\t\t\t//use helper class to compose email\n\t\t\tMimeMessageHelper helper=new MimeMessageHelper(message, true);\n\n\t\t\thelper.setFrom(\"[email protected]\");\n\n\t\t\thelper.setTo(toAddr);\n\t\t\thelper.setSubject(subject);\n\t\t\thelper.setText(text);\n\n\t\t\t//add any attachements\n\t\t\tif(cmf!=null){\n\t\t\t\thelper.addAttachment(cmf.getOriginalFilename(), \n\t\t\t\t\t\tnew InputStreamSource() {\n\n\t\t\t\t\tpublic InputStream getInputStream() throws IOException {\n\t\t\t\t\t\treturn cmf.getInputStream();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t//click on send button\n\t\t\tmailSender.send(message);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void sendMail() {\n String email = emailID.getText().toString();\n String subject = \"BlueBucket One-Time OTP\";\n otp=generateOTP();\n String message = \"\"+otp;\n\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }", "public void testDynamicMailto() {\r\n Map<String, String> parameters = new HashMap<String, String>();\r\n ConnectionParameters cp = new ConnectionParameters(new MockConnectionEl(parameters,\r\n \"mailto:$address?subject=$subject\"), MockDriverContext.INSTANCE);\r\n final Map<String,String> params = new HashMap<String, String>();\r\n MailConnection mc = new MailConnection(cp) {\r\n @Override\r\n protected void send(MimeMessage message) {\r\n try {\r\n assertEquals(params.get(\"address\"), message.getRecipients(Message.RecipientType.TO)[0].toString());\r\n assertEquals(\"Message. \"+params.get(\"example\"), message.getContent());\r\n assertEquals(params.get(\"subject\"), message.getSubject());\r\n } catch (Exception e) {\r\n throw new IllegalStateException(e);\r\n }\r\n\r\n }\r\n };\r\n params.put(\"address\", \"[email protected]\");\r\n params.put(\"example\", \"*example*\");\r\n params.put(\"subject\", \"Hello1\");\r\n mc.executeScript(new StringResource(\"Message. $example\"), MockParametersCallbacks.fromMap(params));\r\n params.put(\"address\", \"[email protected]\");\r\n params.put(\"subject\", \"Hello2\");\r\n mc.executeScript(new StringResource(\"Message. $example\"), MockParametersCallbacks.fromMap(params));\r\n params.put(\"address\", \"////@\");\r\n try {\r\n mc.executeScript(new StringResource(\"Message. $example\"), MockParametersCallbacks.fromMap(params));\r\n } catch (MailProviderException e) {\r\n assertTrue(\"Invalid address must be reported\", e.getMessage().indexOf(\"////@\")>=0);\r\n }\r\n\r\n\r\n }", "private SendMail SendMail(WebDriver driver2) {\n return null;\n }", "public void posaljiRegistracioniEmail(final RegistracijaDto dto) {\n final Context context = popuniKontextRegistracionogEmaila(dto);\n sendEmail.pripremiIPosaljiEmail(dto.EMAIL_ZA_PRIMANJE, dto.NASLOV, dto.TEMPLATE, context);\n }", "boolean sendUserMail(FormEditor target, String recipient, String formData, List<FormElement<?>> elements, List<MultipartFile> files);", "public interface MailService\r\n{\r\n public static final String FROM_ADDRESS = \"[email protected]\";\r\n \r\n \r\n /**\r\n * Envoi un mail aux distinataires dont les adresses sont fournies.\r\n * \r\n * @param recipients Liste des adresses mail des destinataires (non null, non vide)\r\n * @param object Sujet du mail\r\n * @param message Message du mail\r\n * @throws IllegalArgumentException Si recipients est null ou vide\r\n * @throws MailException En cas de problème pour envoyer le mail\r\n */\r\n void sendMail(List<String> recipients, String object, String message) throws MailException;\r\n \r\n /**\r\n * Envoi un mail pour chaque distinataires dont les adresses sont fournies.\r\n * Il y a un mail d'envoyé par destinataire et non un seul mail avec tous\r\n * les destinataires en copie.\r\n * \r\n * @param recipients Liste des adresses mail des destinataires (non null, non vide)\r\n * @param object Sujet du mail\r\n * @param message Message du mail\r\n * @throws IllegalArgumentException Si recipients est null ou vide\r\n * @throws MailException En cas de problème pour envoyer le mail pour 1 ou plusieurs destinataires\r\n */\r\n void sendSeparateMail(List<String> recipients, String object, String message) throws MailException;\r\n}", "private void enviarEmailAutor(final AutorProyectoDTO autorProyectoDTO) {\r\n FacesContext facesContext = FacesContext.getCurrentInstance();\r\n ResourceBundle bundle = facesContext.getApplication().getResourceBundle(facesContext, \"msg\");\r\n String mensaje = (bundle.getString(\"estimado\") + \": \"\r\n + autorProyectoDTO.getPersona().getNombres() + \" \" + autorProyectoDTO.getPersona().getApellidos() + \" \"\r\n + bundle.getString(\"asignacion_director_autor_a\") + \": \" + autorProyectoDTO.getAutorProyecto().getProyectoId().getTemaActual() + \" \"\r\n + \"\" + bundle.getString(\"asignacion_director_autor_b\") + \": \" + sessionProyecto.getProyectoSeleccionado().getDirectores());\r\n enviarEmail(autorProyectoDTO.getPersona(), mensaje);\r\n }", "public boolean send(String subject, String body,\n\n String sender, String recipients) throws Exception {\n\n if(!sender.equals(\"\") && !recipients.equals(\"\") && !subject.equals(\"\") && !body.equals(\"\")) {\n// Session session = Session.getInstance(props, this);\n\n MimeMessage msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(sender));\n\n// InternetAddress[] addressTo = new InternetAddress[recipients.length];\n// for (int i = 0; i < recipients.length; i++) {\n// addressTo[i] = new InternetAddress(_to[i]);\n// }\n// InternetAddress addressTo = new InternetAddress();\n// addressTo = new InternetAddress(recipients);\n msg.setRecipients(MimeMessage.RecipientType.TO, InternetAddress.parse(recipients));\n Log.d(\"&&&&&\",subject);\n msg.setSubject(subject);\n msg.setSentDate(new Date());\n\n // setup message body\n BodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setText(body);\n _multipart.addBodyPart(messageBodyPart);\n\n // Put parts in message\n msg.setContent(_multipart);\n\n // send email\n Log.w(\"$#@msg\",msg.toString());\n Transport.send(msg);\n\n return true;\n } else {\n return false;\n }\n }", "public static void sendMail(String fromAddr,String pass,String targetAddr,String subj,String msg) {\n\n final String username = fromAddr;\n final String password = pass;\n\n Properties props = new Properties();\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(username));\n message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(targetAddr));\n message.setSubject(subj);\n message.setText(msg);\n \n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }", "public void sendNewOrderAdmin(){\n final String username = \"[email protected]\";\n\n // change accordingly\n final String password = \"dcc59vez\";\n\n // Get system properties\n Properties props = new Properties();\n\n // enable authentication\n props.put(\"mail.smtp.auth\", \"true\");\n\n // enable STARTTLS\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n\n // Setup mail server\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\n // TLS Port\n props.put(\"mail.smtp.port\", \"587\");\n\n // creating Session instance referenced to\n // Authenticator object to pass in\n // Session.getInstance argument\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n //override the getPasswordAuthentication method\n protected PasswordAuthentication\n getPasswordAuthentication() {\n\n return new PasswordAuthentication(username,\n password);\n }\n });\n\n try {\n // compose the message\n // javax.mail.internet.MimeMessage class is\n // mostly used for abstraction.\n Message message = new MimeMessage(session);\n\n // header field of the header.\n message.setFrom(new InternetAddress(\"BallonkompagnietIVS\"));\n\n //Set admin email\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"New order on website\");\n\n message.setText(\"New order placed on your website\");\n\n //send Message\n Transport.send(message);\n System.out.println(\"Email sent to admin - New order\");\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }", "private void sendBookingConfirmMailWithMailtrapProvider(String userEmail, String token) throws MessagingException {\n String to = userEmail;//change accordingly \n// Gmail’s SMTP account,\n\n String userName = \"91c28c9b77f112\";//from mailtrap\n String password = \"9d4d7fbf411267\";\n\n //Get the session object \n //1. sets SMTP server properties\n Properties properties = new Properties();\n properties.put(\"mail.smtp.auth\", true);\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\n properties.put(\"mail.smtp.host\", \"smtp.mailtrap.io\");\n properties.put(\"mail.smtp.port\", \"25\");\n properties.put(\"mail.smtp.ssl.trust\", \"smtp.mailtrap.io\");\n //2. creates a new session with an authenticator\n Authenticator auth = new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(userName, password);\n }\n };\n\n Session session = Session.getInstance(properties, auth);\n\n //3. Creates a new e-mail message\n Message msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(\"[email protected]\"));\n InternetAddress[] toAddresses = {new InternetAddress(to)};\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\n msg.setSubject(\"Test send mail\");\n msg.setSentDate(new Date());\n msg.setText(\"Hello, this is example of sending email. ?token=\" + token);\n\n// MimeMessage message = new MimeMessage(session);\n// message.setFrom(new InternetAddress(from));\n// message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n //4. Send the message\n Transport.send(msg);\n System.out.println(\"message sent successfully....\");\n\n }", "public static void sendConfirmationMail(String toMail){\n String confirmationText = \"Welcome as a new user of Household Manager.\" +\n \"\\n You can log in with \"+toMail+ \" and the password you chose.\" +\n \"If you've forgotten your password you can get a new one sent from our Login page.\";\n sendMail(toMail,confirmationText);\n }", "public void sendMail(RegistrationData d) {}", "private void sendEmail() {\n\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n Log.i(TAG, \"sendEmail: \"+currentEmail);\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n String email = currentEmail.trim();\n String subject = \"Garbage Report Handeled\";\n\n String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" +\" \"+textViewDescription.getText().toString();\n\n// String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" + \" \" +time+\" \"+textViewDescription.getText().toString();\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }", "public void sendEmail(Author authorObject);", "public static boolean sendMail(String from, String[] to, String host, String subject, String content) throws Exception{\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n MailAdapter mailAdapter = MailAdapter.getInstance();\n mailAdapter.sendEmail(\"[email protected]\", \"[email protected]\", \"We are doing Java\", true);\n mailAdapter.receiveEmail();\n\n }", "@Override\n\tpublic void sendMail(Mail mail, boolean flag) {\n\t\t\n\t}", "@Override\n public void send(Email email) {\n email = EmailBuilder.copying(email)\n .clearRecipients()\n .to(sinkName, sinkAddress)\n .buildEmail();\n mailService.send(email);\n }", "public static void sendEmail ( final String addr, final String subject, final String body )\n throws MessagingException {\n\n InputStream input = null;\n\n final String to = addr;\n final String from;\n final String username;\n final String password;\n final String host;\n\n final File emailFile;\n final String emailPath = System.getProperty( \"user.dir\" ) + \"/src/main/java/email.properties\";\n Scanner emailScan = null;\n\n try {\n emailFile = new File( emailPath );\n emailScan = new Scanner( emailFile );\n }\n catch ( final FileNotFoundException fnfe ) {\n emailScan = null;\n }\n\n if ( null != emailScan ) {\n emailScan.next(); // from\n from = emailScan.next();\n emailScan.next(); // username\n username = emailScan.next();\n emailScan.next(); // password\n password = emailScan.next();\n emailScan.next(); // host\n host = emailScan.next();\n emailScan.close();\n }\n else {\n final Properties properties = new Properties();\n final String filename = \"email.properties\";\n input = DBUtil.class.getClassLoader().getResourceAsStream( filename );\n if ( null != input ) {\n try {\n properties.load( input );\n }\n catch ( final IOException e ) {\n e.printStackTrace();\n }\n }\n from = properties.getProperty( \"from\" );\n username = properties.getProperty( \"username\" );\n password = properties.getProperty( \"password\" );\n host = properties.getProperty( \"host\" );\n }\n\n /*\n * Source for java mail code:\n * https://www.tutorialspoint.com/javamail_api/\n * javamail_api_gmail_smtp_server.htm\n */\n\n final Properties props = new Properties();\n props.put( \"mail.smtp.auth\", \"true\" );\n props.put( \"mail.smtp.starttls.enable\", \"true\" );\n props.put( \"mail.smtp.host\", host );\n props.put( \"mail.smtp.port\", \"587\" );\n\n final Session session = Session.getInstance( props, new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication () {\n return new PasswordAuthentication( username, password );\n }\n } );\n\n try {\n final Message message = new MimeMessage( session );\n message.setFrom( new InternetAddress( from ) );\n message.setRecipients( Message.RecipientType.TO, InternetAddress.parse( to ) );\n message.setSubject( subject );\n message.setText( body );\n Transport.send( message );\n }\n catch ( final MessagingException e ) {\n e.printStackTrace();\n throw e;\n }\n }", "public static void sendInvitationMail(String toMail, Group group){\n String invitationText = \"Hello!\\n\\n You have been invited to join a group on Household Manager. \" +\n \"Login to accept the invitation \\n\" +\n \"Invited to group: \"+group.getName()+ \"\\n Invited by: \"+group.getAdmin();\n sendMail(toMail,invitationText);\n }", "public void sendnotification_emailtome(String sender,String to,String pass,String subject_to_me, String message_to_me,JDialog dialog){\n final String username = sender;\n final String password = pass;\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", true);\n props.put(\"mail.smtp.starttls.enable\", true);\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected javax.mail.PasswordAuthentication getPasswordAuthentication() {\n return new javax.mail.PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(to));\n message.setSubject(subject_to_me);//email subject\n message.setText(message_to_me);//email message\n \n System.out.println(\"Sending...\");\n \n Transport.send(message);\n \n System.out.println(\"Done!\");\n } catch (MessagingException e) {\n dialog.dispose();\n JOptionPane.showMessageDialog(null,\" Check on internet connection...Email was unable to be sent...\");\n }\n }", "public void writterMail(String to, String subject, String text) {\n\tLOG.info(\"Start writterMail\\n\");\n\ttoMail.sendKeys(to);\n\tsubjectMail.sendKeys(subject);\n\ttextMail.sendKeys(text);\n }", "public String enviarcorreo(String receptor, String asunto, String mensaje, String telefono, String nombre){\ntry {final String username = \"[email protected]\";\n final String password = \"32sky4951m\";\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n /*Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });*/\n\n Session session = Session.getInstance(props, new GMailAuthenticator(username, password));\n\n try {\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(\"[email protected]\"));\n message.setSubject(asunto);\n mensaje = \"Nombre y Apellido:\" + \"<br>\" + nombre+ \"<br>\" + \"<br>\" +\n \"Correo Electronico:\" + \"<br>\" + receptor + \"<br>\" +\"<br>\" +\n \"N° de Teléfono:\" + \"<br>\" + telefono+ \"<br>\" + \"<br>\" +\n \"ASUNTO DEL MENSAE:\" +\"<br>\" + mensaje;\n message.setContent(mensaje,\"text/html; charset=utf-8\");\n\n Transport.send(message);\n\n System.out.println(\"Done\");\n respuesta=\"Su mensaje ha sido enviado\";\n } catch (MessagingException e) {\n respuesta=\"Error al enviar\";\n throw new RuntimeException(e);\n\n }\n\n} catch (Exception e) {\n respuesta=\"Error al enviar, verifique su conexión\";\n throw new RuntimeException(e);\n\n }\n\n\n return respuesta;\n }", "void transferOwnerShipToUser(List<String> list, String toEmail);", "public void generateAndSendEmail(EmailSendingParameters emailParameters) throws AddressException, MessagingException {\r\n \r\n\t\t//Step1\t\t\r\n\t\tSystem.out.println(\"Setup Mail Server Properties..\");\r\n\t\tmailServerProperties = System.getProperties();\r\n\t\tmailServerProperties.put(\"mail.smtp.port\", \"587\");\r\n\t\tmailServerProperties.put(\"mail.smtp.auth\", \"true\");\r\n\t\tmailServerProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t\tSystem.out.println(\"Mail Server Properties have been setup successfully..\");\r\n \r\n\t\t//Step2\r\n\t\tSystem.out.println(\"Get Mail Session..\");\r\n\t\tgetMailSession = Session.getDefaultInstance(mailServerProperties, null);\r\n\t\tgenerateMailMessage = new MimeMessage(getMailSession);\r\n\t\tgenerateMailMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(emailParameters.getEmailReceiverAdress()));\r\n\t\tgenerateMailMessage.setSubject(\"Greetings from Crunchify..\");\r\n\t\tString emailBody = \"EMAIL CONTENT (with html tags)\";\r\n\t\tgenerateMailMessage.setContent(emailBody, \"text/html\");\r\n\t\tSystem.out.println(\"Mail Session has been created successfully..\");\r\n \r\n\t\t//Step3\t\t\r\n\t\tSystem.out.println(\"Get Session\tand Send mail\");\r\n\t\tTransport transport = getMailSession.getTransport(\"smtp\");\r\n\r\n\t\tSystem.out.println(\"Sending message\");\r\n\t\ttransport.connect(/*smtp.gmail.com\", emailReceiverAdress* emailReceiverPassword*/); \r\n\t\ttransport.sendMessage(generateMailMessage, generateMailMessage.getAllRecipients());\r\n\t\tSystem.out.println(\"Message sended properly\");\r\n\t\ttransport.close();\r\n\t}", "@Jpf.Action(forwards = { @Jpf.Forward(name = \"success\", action=\"verVacantes\"), @Jpf.Forward(name = \"start\", path = \"index.jsp\")})\n\tpublic Forward enviarVacantePorMail() throws Exception{\n\t\tForward forward = new Forward(\"success\");\n\t\t\n\t\tif(getCurrentUser()==null){\n\t\t\tforward = new Forward(\"start\");\n\t\t\tforward.addActionOutput(\"errors\", \"Necesitas registrarte para enviarte una vacante.\");\n\t\t\treturn forward;\n\t\t}else{\n\t\t\tif(getCurrentUser().getCurriculum()!=null){\n\t\t\t\tString nombreCompleto = getCurrentUser().getName()+\" \"+getCurrentUser().getLastname()+\" \"+getCurrentUser().getSecondlastname();\n\t\t\t\tif(getRequest().getParameter(\"idVacante\")!= null){\n\t\t\t\t\tUcmUtil.sendMailVacante(nombreCompleto, getCurrentUser().getEmail(), \n\t\t\t\t\t\t\tgetRequest().getParameter(\"idVacante\"), getRequest());\n\t\t\t\t\t\n\t\t\t\t\tforward.addActionOutput(\"mailOk\", getRequest().getParameter(\"idVacante\"));\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tforward = new Forward(\"success\");\n\t\t\t\tforward.addActionOutput(\"errors\", \"Necesitas Actualizar tu Curiculum antes de enviarte una vacante\");\n\t\t\t}\n\t\t}\n\t\treturn forward;\n\t}", "@Asynchronous //Metodo Assíncrono para que a aplicação continue normalmente sem ficar bloqueada até que o email seja enviado \r\n\tpublic void sendEmail(Email email) {\n\t log.info(\"Email enviado por \" + email.getEmailUsuario() + \" para \" + email.getReceptor() +\" : \" + email.getMensagem());\r\n\t try {\r\n\t //Criação de uma mensagem simples\r\n\t Message message = new MimeMessage(mailSession);\r\n\t //Cabeçalho do Email\r\n\t message.setFrom(new InternetAddress(email.getEmailUsuario()));\r\n\t message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(email.getReceptor())); \r\n\t message.setSubject(email.getTitulo());\r\n\t //Corpo do email\r\n\t message.setText(email.getMensagem());\r\n\r\n\t //Envio da mensagem \r\n\t Transport.send(message);\r\n\t log.debug(\"Email enviado\");\r\n\t } catch (MessagingException e) {\r\n\t log.error(\"Erro a enviar o email : \" + e.getMessage()); }\r\n\t }", "public void onClick(View arg0) {\n\t\t\t\tString emailAddress = \"[email protected]\";\r\n\t\t\t\tString emailSubject = edittextEmailSubject.getText().toString();\r\n\t\t\t\tString emailText = edittextEmailText.getText().toString();\r\n\t\t\t\tString emailAddressList[] = {emailAddress};\r\n\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_SEND); \r\n\t\t\t\tintent.setType(\"plain/text\");\r\n\t\t\t\tintent.putExtra(Intent.EXTRA_EMAIL, emailAddressList); \r\n\t\t\t\tintent.putExtra(Intent.EXTRA_SUBJECT, emailSubject); \r\n\t\t\t\tintent.putExtra(Intent.EXTRA_TEXT, emailText); \r\n\t\t\t\tstartActivity(Intent.createChooser(intent, \"Choice App to send email:\"));\r\n\t\t\t}", "void sendEmail(Otp otp) throws Exception {\n String text = \"Otp: \" + otp.getOtpValue();\n String from = \"\"; // Add From Email Address\n String to = \"\"; // Add To Email Address\n\n SimpleMailMessage message = new SimpleMailMessage();\n message.setFrom(from);\n message.setTo(to);\n message.setSubject(\"Otp Verification\");\n message.setText(text);\n emailSender.send(message);\n }", "void sendMail(){\r\n String mailBody = getString(R.string.congratz_message, String.valueOf(playerScore));\r\n mailBody += \" \" + playerRating;\r\n\r\n Intent intent = new Intent(Intent.ACTION_SENDTO);\r\n intent.setData(Uri.parse(\"mailto:\")); //only email apps should handle this\r\n intent.putExtra(Intent.EXTRA_SUBJECT, \"Sports Trivia score for \" + getPlayerName());\r\n intent.putExtra(intent.EXTRA_TEXT, mailBody);\r\n\r\n if(intent.resolveActivity(getPackageManager())!=null){\r\n startActivity(intent);\r\n }\r\n }", "private void email() throws IOException {\n\t\t/*\n\t\tString emailText = \"This email includes the following Play Types: \" + playSort.getSelectedItem().toString() + \n\t\t\t\t\"\\nFrom the gameplan: \" + gamePlans.getSelectedItem().toString();\n\t\tString subject = playSort.getSelectedItem().toString() + \" from \" + gamePlans.getSelectedItem().toString();\n\t\t\t\t\n\t\t// TODO: save image to file system, and add the file paht to atachment\n\t\tArrayList<String> attachments = DigPlayDB.getInstance(getBaseContext()).getAllPlayNames();\n\t\tArrayList<String> attachmentPath = new ArrayList<String>();\n\t\tfor (int att = 0; att < attachments.size(); att++) \n\t\t{\n\t\t\tFile myFile = new File(\"/sdcard/DCIM/Play/temp.jpeg\");\n\t\t\tmyFile.setWritable(true);\n\t FileOutputStream myOutWriter =new FileOutputStream(myFile);\n\t myOutWriter.write(DigPlayDB.getInstance(getBaseContext()).getImage(attachments.get(att)));\n\t myOutWriter.flush();\n\t myOutWriter.close();\n\t myFile.setReadable(true);\n\t attachmentPath.add(myFile.getAbsolutePath());\n\t\t}\n\n\t\tEmailPlaybook.EmailAttachment(this, \"[email protected]\", subject, emailText, attachmentPath);\n\t\t*/\n\t}", "@Override\n public void onClick(View view) {\n Intent i = new Intent(Intent.ACTION_SEND);\n i.setType(\"message/rfc822\");\n i.putExtra(Intent.EXTRA_EMAIL , new String[]{\"\"});\n i.putExtra(Intent.EXTRA_SUBJECT, \"\");\n i.putExtra(Intent.EXTRA_TEXT , \"\");\n try {\n startActivity(Intent.createChooser(i, \"Envoyer un mail\"));\n } catch (android.content.ActivityNotFoundException ex) {\n Toast.makeText(MainActivity.this, \"There are no email clients installed.\", Toast.LENGTH_SHORT).show();\n }\n }", "public void sendMailAction(View view) {\n String name = getPlayerName();\n String message = createShortQuizSummary(finalScore, name);\n String mailto = \"mailto:\" + getPlayerMail() +\n \"?cc=\" + \"\" +\n \"&subject=\" + Uri.encode(name + getResources().getString(R.string.score_in_quiz)) +\n \"&body=\" + Uri.encode(message);\n\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO);\n emailIntent.setData(Uri.parse(mailto));\n\n try {\n startActivity(emailIntent);\n } catch (ActivityNotFoundException e) {\n }\n\n }", "@Override\n\tpublic void sendMail(Mail mail) {\n\t\t\n\t}", "private void teletransportar(Personaje p, Celda destino) {\n // TODO implement here\n }", "@Asynchronous\n public void sendEmail(String subject, String text, String ... recepients) {\n try {\n Message m = new MimeMessage(noReplySession);\n \n Address[] addrs = InternetAddress.parse(StringUtils.concat(recepients, \";\"), false);\n m.setRecipients(Message.RecipientType.TO, addrs);\n m.setSubject(subject);\n m.setFrom(InternetAddress.parse(\"[email protected]\", false)[0]);\n m.setContent(text, \"text/html; charset=utf-8\");\n m.setSentDate(new Date());\n Transport.send(m);\n } catch (Exception ex) {\n log.error(\"sendEmail(): failed to send message.\", ex);\n }\n }", "public static void sendAsHtml(String to, String title, String mensagemAEnviar) {\n try{\n System.out.println(\"Enviar email para \" + to);\n System.out.println(\"A criar sessao\");\n Session session = createSession();\n System.out.println(\"Sessao criada\");\n System.out.println(\"Preparar mensagem\");\n MimeMessage message = new MimeMessage(session);\n prepareEmailMessage(message, to, title, mensagemAEnviar);\n System.out.println(\"Mensagem \"+ message.toString() + \" preparada\");\n System.out.println(\"A mandar mensagem\");\n Transport.send(message);\n System.out.println(\"Done\");\n }catch(Exception e){\n e.printStackTrace();\n }\n\n }", "public void sendMail(View view) {\n\n contentManager = new ContentManager(this);\n contentManager.sendEmail(helpBinding.mail.getText().toString(), new EmailListener() {\n @Override\n public void onSuccess(EmailResponse emailResponse) {\n showToast(emailResponse.getMessage());\n }\n\n @Override\n public void onFailed(String message, int responseCode) {\n showToast(message);\n }\n\n @Override\n public void startLoading(String requestId) {\n showToast(getString(R.string.sendEmail));\n }\n\n @Override\n public void endLoading(String requestId) {\n\n }\n });\n }", "public static void email(Context context, String emailTo, String emailCC,\n String subject, String emailText, List<String> filePaths)\n {\n final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND_MULTIPLE);\n emailIntent.setType(\"text/plain\");\n emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,\n new String[]{emailTo});\n emailIntent.putExtra(android.content.Intent.EXTRA_CC,\n new String[]{emailCC});\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);\n \n ArrayList<String> extra_text = new ArrayList<String>();\n extra_text.add(emailText);\n emailIntent.putStringArrayListExtra(Intent.EXTRA_TEXT, extra_text);\n //emailIntent.putExtra(Intent.EXTRA_TEXT, emailText);\n \n //has to be an ArrayList\n ArrayList<Uri> uris = new ArrayList<Uri>();\n //convert from paths to Android friendly Parcelable Uri's\n for (String file : filePaths)\n {\n File fileIn = new File(file);\n Uri u = Uri.fromFile(fileIn);\n uris.add(u);\n }\n emailIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);\n context.startActivity(Intent.createChooser(emailIntent, \"Send mail...\"));\n }" ]
[ "0.7184329", "0.6750815", "0.65926194", "0.65615994", "0.6539971", "0.644461", "0.63717955", "0.6342144", "0.6268969", "0.62635154", "0.6231334", "0.62299055", "0.61750203", "0.6127406", "0.6101353", "0.6077512", "0.60619015", "0.6045813", "0.6045008", "0.60394526", "0.60269016", "0.6021459", "0.5996284", "0.5995752", "0.5972154", "0.5931439", "0.5925015", "0.58970577", "0.58935946", "0.58734083", "0.5866557", "0.585342", "0.5836532", "0.58333635", "0.5831752", "0.5810974", "0.5795836", "0.57872653", "0.5769361", "0.5765811", "0.5744736", "0.57442033", "0.5743702", "0.57371724", "0.57264704", "0.5709745", "0.56987303", "0.5693896", "0.5687253", "0.5675001", "0.5674669", "0.56662005", "0.5649446", "0.56492704", "0.56422573", "0.56394583", "0.5625678", "0.56158715", "0.56134063", "0.56118584", "0.5604614", "0.56039155", "0.56027454", "0.5596222", "0.5594944", "0.55874544", "0.55871487", "0.55867034", "0.55836934", "0.55719584", "0.55654395", "0.5563587", "0.5557547", "0.555366", "0.55532384", "0.5535987", "0.55327827", "0.5531952", "0.5518252", "0.5486045", "0.54719216", "0.54681903", "0.5461567", "0.5460718", "0.5448212", "0.544783", "0.5446232", "0.54437023", "0.5428273", "0.54239565", "0.5423418", "0.54141915", "0.54137135", "0.5409091", "0.5406304", "0.5404202", "0.54022044", "0.53971094", "0.5391339", "0.5387417" ]
0.6059429
17
The time needed to teleport the player
@Override public long getTimeNeeded() { return timeNeeded; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTime() {\n\t\tif(player == null) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn player.getPosition();\n\t}", "private int timeToNextAttack() {\n return ATTACK_SPEED - mAttacker.getSpeed();\n }", "public long getPlayerTime ( ) {\n\t\treturn extract ( handle -> handle.getPlayerTime ( ) );\n\t}", "public boolean timeUp(){\n return timeAlive == pok.getSpawnTime(); \n }", "public abstract void sendTraceTime(Player p);", "public int getTravelTime() {\r\n return travelTime;\r\n }", "public static int calculateTime(World world, BlockPos c1, TeleportDestination teleportDestination) {\n if (!world.dimension().equals(teleportDestination.getDimension())) {\n return TeleportConfiguration.timeTeleportBaseDim.get();\n } else {\n BlockPos c2 = teleportDestination.getCoordinate();\n double dist = new Vector3d(c1.getX(), c1.getY(), c1.getZ()).distanceTo(new Vector3d(c2.getX(), c2.getY(), c2.getZ()));\n int time = TeleportConfiguration.timeTeleportBaseLocal.get() + (int)(TeleportConfiguration.timeTeleportDist.get() * dist / 1000);\n if (time > TeleportConfiguration.timeTeleportBaseDim.get()) {\n time = TeleportConfiguration.timeTeleportBaseDim.get();\n }\n return time;\n }\n }", "public double gettimetoAchieve(){\n\t\treturn this.timeFrame;\n\t}", "public int getTravelingTime() {\n\t\treturn mTravelingTime;\n\t}", "double getClientTime();", "public long getTime(){\r\n\t\treturn world.getWorldTime();\r\n\t}", "@Override\n public void run() {\n if (time == 0) {\n // wait has ended time to teleport\n if (!Utils.homeExists(homeOwner, homeName)) {\n // the has since been deleted whilst waiting\n p.sendMessage(\"There was an error teleporting you.\");\n cancel();\n return;\n }\n Utils.teleportPlayer((Player) sender, homeOwner, homeName);\n sender.sendMessage(Utils.chat(plugin.getConfig().getString(\"teleport-color\") + plugin.getConfig().getString(\"teleport-message\")));\n cancel();\n return;\n }\n Location currentLocation = ((Player) sender).getLocation();\n if (initialLocation.getX() != currentLocation.getX() ||\n initialLocation.getY() != currentLocation.getY() ||\n initialLocation.getZ() != currentLocation.getZ()) {\n // they've moved and the config says to cancel on move\n sender.sendMessage(Utils.chat(plugin.getConfig().getString(\"move-cancel-message\")));\n cancel();\n }\n else {\n sender.sendMessage(Utils.chat(plugin.getConfig().getString(\"countdown-message\").replace(\"<time>\", Integer.toString(time))));\n time--;\n }\n }", "public int getRideTime() {\r\n\r\n\t\treturn client_p.getManhattanDistanceTo(destination);\r\n\r\n\r\n\t}", "Double currentTime() {\n return execute(\"player.currentTime\");\n }", "@Override\r\n\tpublic void showDoTimeMessage(Player player) {\n\t}", "public float getTimeToMove()\n\t{\n\t\treturn this.timeToMove;\n\t}", "long getLobbyJoinTimeMs();", "public void sendTeleport(final Player player) {\r\n player.lock();\r\n World.submit(new Pulse(1) {\r\n\r\n int delay = 0;\r\n\r\n @Override\r\n public boolean pulse() {\r\n if (delay == 0) {\r\n player.getActionSender().sendMessage(\"You've been spotted by an elemental and teleported out of its garden.\");\r\n player.graphics(new Graphics(110, 100));\r\n player.getInterfaceState().openComponent(8677);\r\n PacketRepository.send(MinimapState.class, new MinimapStateContext(player, 2));\r\n face(player);\r\n } else if (delay == 6) {\r\n player.getProperties().setTeleportLocation(Location.create(getRespawnLocation()));\r\n PacketRepository.send(MinimapState.class, new MinimapStateContext(player, 0));\r\n player.getInterfaceState().close();\r\n face(null);\r\n player.unlock();\r\n return true;\r\n }\r\n delay++;\r\n return false;\r\n }\r\n });\r\n }", "public int calcTravelTime(Request request) {\r\n\t\tNdPoint currentLocation = space.getLocation(this);\r\n\t\tNdPoint s1location = request.getOrigin();\r\n\t\tNdPoint s2location = request.getDestination();\r\n\r\n\t\t// Calc time between current position and first source\r\n\t\tdouble distance1 = this.space.getDistance(currentLocation, s1location);\r\n\t\t// Calc time between first source and second source\r\n\t\tdouble distance2 = this.space.getDistance(s1location, s2location);\r\n\t\t// Added times\r\n\t\tdouble totaldistance = distance1 + distance2;\r\n\t\tint totaltime = (int) (totaldistance / (this.speed * 0.5));\r\n\r\n\t\treturn totaltime;\r\n\t}", "public Integer getTravelTime() {\n\t\treturn travelTime;\n\t}", "public long getRemainingTime() {\n if (isPaused()) {\n return pausedPoint;\n }\n long res = (long) ((spedEndTime - SystemClock.elapsedRealtime()) * speed);\n return res > 0 ? res : 0;\n }", "public int getTurnaround (){\n return finishingTime-arrival_time;\n }", "public double getTravelTime() {\n return travelTime;\n }", "Double getRemainingTime();", "public int sessionTime(String player){\n \t\tif( BeardStat.loginTimes.containsKey(player)){\n \t\t\treturn Integer.parseInt(\"\"+BeardStat.loginTimes.get(player)/1000L);\n \t\t\t\n \t\t}\n \t\treturn 0;\n \t}", "boolean teleport(Player p1, Player p2, boolean change);", "java.lang.String getPlayTime();", "public long getWorldTime()\n {\n return worldTime;\n }", "public long getPlayerTimeOffset ( ) {\n\t\treturn extract ( handle -> handle.getPlayerTimeOffset ( ) );\n\t}", "protected long time(LuaTable table) {\n\t\t//TODO allow table argument to work\n\t\treturn System.currentTimeMillis(); //TODO change this to be something minecraft related\n\t}", "public double time(Packman p , Point3D f1)\r\n\t{\r\n\t\treturn distance(p.location , f1) / p.speed;\r\n\t}", "int delay(Player player);", "void setTime(){\n gTime += ((float)millis()/1000 - millisOld)*(gSpeed/4);\n if(gTime >= 4) gTime = 0;\n millisOld = (float)millis()/1000;\n }", "public Player getToTeleportTo(){\n\t\treturn toTeleportTo;\n\t}", "public int getTotalTravelTime() {\n return totalTravelTime;\n }", "@Override\n\tpublic long getPlaytime() {\n\t\treturn this.playTime;\n\t}", "Duration getRemainingTime();", "public int getTime() { return _time; }", "@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}", "public void setPlayerTime ( long time , boolean relative ) {\n\t\texecute ( handle -> handle.setPlayerTime ( time , relative ) );\n\t}", "public void teleportation(Vector2 posTp) {\n int distance = (int) Math.sqrt(Math.pow(posTp.x - position.x, 2) + Math.pow(posTp.y - position.y, 2));\n int coef = 50;\n if (wallet.getMoney() >= coef*distance) {\n position.set(posTp);\n position.x += WIDTH/2;\n resetMiner();\n wallet.withdraw(coef * distance);\n }\n }", "public static void countdown(Player player) {\n Bukkit.broadcastMessage(prefix + ChatColor.YELLOW + \"Game starting in \" + count + \" seconds..\");\n new BukkitRunnable() {\n @Override\n public void run() {\n if (count == 0) {\n Bukkit.broadcastMessage(prefix + ChatColor.YELLOW + \"Teleporting players to arena\");\n for(Player onlinePlayer : Bukkit.getOnlinePlayers()) {\n\n String name = onlinePlayer.getName();\n teleport(onlinePlayer);\n }\n gameStart(player);\n cancel();\n } else {\n RainbowText text = new RainbowText(\"Teleporting players in \");\n RainbowText text2 = new RainbowText(count + \" seconds..\");\n\n for(Player player : Bukkit.getOnlinePlayers()) {\n player.sendTitle(text.getText(), text2.getText(), 1, 20, 1);\n text.moveRainbow();\n player.playSound(player.getLocation(), Sound.ENTITY_EXPERIENCE_ORB_PICKUP, 2.0F, 1.0F);\n }\n Bukkit.broadcastMessage(prefix + ChatColor.YELLOW + \"Teleporting players in \" + count + \" seconds..\");\n count--;\n\n }\n }\n }.runTaskTimer(Bukkit.getServer().getPluginManager().getPlugin(\"Seawars\"), 20L, 20L);\n }", "@Override\n public long getTime() {\n return time;\n }", "public static void tpr(String world, Player player) {\n String msg = MessageManager.getMessageYml().getString(\"Tpr.Teleporting\");\n player.sendMessage(MessageManager.getPrefix() + ChatColor.translateAlternateColorCodes('&', msg));\n Location originalLocation = player.getLocation();\n Random random = new Random();\n Location teleportLocation;\n int maxDistance = Main.plugin.getConfig().getInt(\"TPR.Max\");\n World w = Bukkit.getServer().getWorld(world);\n int x = random.nextInt(maxDistance) + 1;\n int y = 150;\n int z = random.nextInt(maxDistance) + 1;\n boolean isOnLand = false;\n teleportLocation = new Location(w, x, y, z);\n while (!isOnLand) {\n teleportLocation = new Location(w, x, y, z);\n if (teleportLocation.getBlock().getType() != Material.AIR) {\n isOnLand = true;\n } else {\n y--;\n }\n }\n player.teleport(new Location(w, teleportLocation.getX(), teleportLocation.getY() + 1.0D, teleportLocation.getZ()));\n if (Main.plugin.getConfig().getString(\"NOTIFICATIONS.Tpr\").equalsIgnoreCase(\"True\")) {\n int dis = (int) teleportLocation.distance(originalLocation);\n String dist = String.valueOf(dis);\n String original = (MessageManager.getMessageYml().getString(\"Tpr.Distance\").replaceAll(\"%distance%\", dist));\n String distance = (ChatColor.translateAlternateColorCodes('&', original));\n player.sendMessage(MessageManager.getPrefix() + distance);\n }\n }", "public int getTimer() {\n return worldTimer;\n }", "void currentTime(double timeInSeconds) {\n execute(\"player.currentTime = \" + timeInSeconds);\n }", "public int getTimeToComplete() {\n // one level is ten minutes long\n int totalTime = numberOfLevels * 10;\n if (is3D) {\n // if it's 3d then it take twice as long because its harder\n totalTime = totalTime * 2;\n }\n \n return totalTime;\n }", "public int getPlayBackTime() {\n\t\treturn mPlayer.getDuration();\n\t}", "public int getTimeToAtk() {\r\n return timeToAtk;\r\n }", "public long getSentTime();", "public double getTimeRemaining() {\n\t\treturn (startingTime + duration) - System.currentTimeMillis();\n\t}", "public void spawnTimeRender(Renderer screen) {\r\n\t\tif (respawns == 0) font.render(\"YOU LOSE\", this.getX()-((8*8)/2), this.getY(), true, 0xffffffff, screen, true);\r\n\t\telse font.render(\"Respawn: \"+respawnRender+\"...\", this.getX()-((13*8)/2), this.getY(), true, 0xffffffff, screen, true);\r\n\t}", "private long getGameDuration() {\n return ((System.currentTimeMillis() - startGameTime) / 1000);\n }", "public int getTime() {\r\n return time;\r\n }", "public void updatePlayer(float deltaTime){\n\n this.sprite.setPosition(body.getPosition().x * GameInfo.PPM, body.getPosition().y * GameInfo.PPM);\n this.feet.getPosition().set(pos.x * GameInfo.PPM, pos.y * GameInfo.PPM);\n\n if(this.isInAir)\n inAirTime += deltaTime;\n }", "public void setWorldTime(long time)\n {\n worldTime = time;\n }", "public long getTimeElapsed() {\r\n\t long now = new Date().getTime();\r\n\t long timePassedSinceLastUpdate = now - this.updatedSimTimeAt;\r\n\t return this.pTrialTime + timePassedSinceLastUpdate;\r\n\t}", "public long getTimeRemaining() {\n int timer = 180000; //3 minutes for the game in milliseconds\n long timeElapsed = System.currentTimeMillis() - startTime;\n long timeRemaining = timer - timeElapsed + bonusTime;\n long timeInSeconds = timeRemaining / 1000;\n long seconds = timeInSeconds % 60;\n long minutes = timeInSeconds / 60;\n if (seconds < 0 || minutes < 0) { //so negative numbers don't show\n seconds = 0;\n minutes = 0;\n }\n return timeInSeconds;\n }", "public long getSessionDuration(){\n return (currentTime-startTime)/1000;\n }", "public void timePassed() {\n this.moveOneStep();\n }", "public long getRemainingTime() {\n return (maxTime_ * 1000L)\n - (System.currentTimeMillis() - startTime_);\n }", "public void passTime(){\n growPop();\n growGdp();\n growSocial();\n growLiving();\n }", "public int getTime() {\n return time;\n }", "public int getTime() {\n return time;\n }", "public int getTime() {\n return time;\n }", "@Override\n\tpublic long getTime() {\n\t\treturn System.nanoTime() - startTime;\n\t}", "public int getTime() {\n\t\treturn time;\n\t}", "public int getTime() {\n\t\treturn time;\n\t}", "int getChronicDelayTime();", "protected double getElapsedTime() {\n\t\treturn Utilities.getTime() - startTime;\n\t}", "public int timeToNextEnemy(){\n if(mEnemyIndex < mEnemiesToSpawn.size()){\n return mTimeToSpawnEnemy.get(mEnemyIndex);\n } else {\n return -1;\n }\n }", "public static int getTime() {\n\t\treturn time;\n\t}", "public int totalTime()\n {\n return departureTime - arrivalTime;\n }", "public long getSendTime() {\n return sendTime_;\n }", "public static int offset_p_sendts() {\n return (40 / 8);\n }", "public long getTime() {\r\n \treturn time;\r\n }", "public void setTimeToMove(float time_)\n\t{\n\t\tthis.timeToMove=time_;\n\t}", "public int getParkingTime() {\r\n\t\treturn parkingTime;\r\n\t}", "private long CurrentTime(){\n return (TotalRunTime + System.nanoTime() - StartTime)/1000000;\n }", "public Player getTeleporter(){\n\t\treturn teleporter;\n\t}", "public double count_walk_time(double x, double y){\r\n\t\treturn Math.sqrt(Math.pow(x-this.getPosition()[0],2) + Math.pow(y-this.getPosition()[1],2)) / this.WALK_SPEED;\t\r\n\t}", "protected static double getFPGATime() {\n return (System.currentTimeMillis() - startTime) / 1000.0;\n }", "public double getTime() {return _time;}", "public void updateGameTime() {\n\t\tGameTime = Timer.getMatchTime();\n\t}", "double getRelativeTime() {\n return relativeTime;\n }", "public long getSendTime() {\n return sendTime_;\n }", "public double getUserTimeSec() {\n\treturn getUserTime() / Math.pow(10, 9);\n}", "@Override\r\n\tpublic long getTime() {\n\t\treturn this.time;\r\n\t}", "public double getRemainingTime()\n {\n return totalTime - scheduledTime;\n }", "public double getTime() { return time; }", "public int getTime() {\n\n\t\treturn time;\n\t}", "private static void goThroughPassage(Player player) {\n int x = player.getAbsX();\n player.getMovement().teleport(x == 2970 ? x + 4 : 2970, 4384, player.getHeight());\n }", "@Override\n public void timePassed() {\n }", "public int getEnter_time()\n\t{\n\t\treturn enter_time;\n\t}", "public int getEat_time()\n\t{\n\t\treturn eat_time;\n\t}", "@Override\r\n public int actionDelayTime(Entity attacker) {\n return 4000;\r\n }", "public int getDelayTime()\n\t{\n\t\treturn delayTime;\n\t}", "int getTime();", "int getTime();", "public static long getTotalHitTime() {\r\n return _time;\r\n }" ]
[ "0.65793383", "0.63793665", "0.6340353", "0.6311114", "0.62247014", "0.61817694", "0.61793035", "0.6150203", "0.612701", "0.6094698", "0.60391855", "0.5995791", "0.5989427", "0.5987549", "0.5986521", "0.59673834", "0.5962223", "0.5959734", "0.59440595", "0.5925165", "0.5898937", "0.58960986", "0.5895506", "0.58839417", "0.58468395", "0.58461523", "0.58424646", "0.5772532", "0.5750611", "0.57462096", "0.5745425", "0.572836", "0.5722126", "0.5718657", "0.5718386", "0.5718348", "0.5709091", "0.5702632", "0.5695555", "0.5682411", "0.5681473", "0.56691587", "0.5648898", "0.5643213", "0.5635212", "0.56141603", "0.56097406", "0.5604128", "0.55988586", "0.55902416", "0.55838364", "0.5583542", "0.5567173", "0.556517", "0.55518526", "0.5548596", "0.55441993", "0.5538512", "0.5529564", "0.5528102", "0.55258876", "0.55216384", "0.5519517", "0.5519517", "0.5519517", "0.55147403", "0.5508342", "0.5508342", "0.55053526", "0.5503407", "0.5495679", "0.54956114", "0.54894966", "0.54860866", "0.54698074", "0.5465154", "0.54615515", "0.5452848", "0.5451655", "0.54458153", "0.5435876", "0.54328835", "0.54240876", "0.5412462", "0.54121375", "0.54107624", "0.54086", "0.54025215", "0.5401155", "0.540059", "0.540011", "0.53974324", "0.539738", "0.5395732", "0.5395318", "0.5391372", "0.5388333", "0.5385342", "0.5385342", "0.5384849" ]
0.583136
27
Get the location to teleport to
@Override public Location getLocation() { if (type == TeleportType.TPA) { return target.getPlayerReference(Player.class).getLocation(); } else if (type == TeleportType.TPHERE) { return toTeleport.getPlayerReference(Player.class).getLocation(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Location getPlayerLocation();", "Location getLocation();", "Location getLocation();", "Location getLocation();", "Location getLocation();", "String getLocation();", "String getLocation();", "String getLocation();", "public Location getLocation() {\n return getLocation(null);\n }", "public Point getRobotLocation();", "public Point getLocation();", "public Location getLocation(){\n\t\tWorld w = Bukkit.getWorld(worldName);\n\t\tif(w==null){\n\t\t\tSystem.out.println(\"Error, null world in Location from SQL\");\n\t\t\treturn null;\n\t\t}\n\t\treturn new Location(w, x+0.5, y, z+0.5);\n\t\t\n\t}", "java.lang.String getLocation();", "IntPoint getLocation();", "public GridLocation getLocation();", "public int getLocation()\r\n {\n }", "public Location getCurrentLocation();", "public final Coord getLocation() {\n return location;\n }", "@Nonnull\n Location getPlayerLocation();", "public Point getLocation() { return loc; }", "public PVector getLocation()\n\t{\n\t\treturn location;\n\t}", "MapLocation getPosition(Unit unit);", "public String getLocation() {\n\t\treturn \"-12.9990189,-38.5140298\";\n\t}", "public Vector2f getLocation() {\r\n\t\treturn location.getLocation();\r\n\t}", "public int getLocation()\r\n {\r\n return location;\r\n }", "public Location getDest() {\n return ticketsCalculator.getDest();\n }", "public static MapLocation myLocation() {\n return RC.getLocation();\n }", "SiteLocation getLocatedAt();", "public Location getLocation() {\n return loc;\n }", "public Location getLocation() {\n return loc;\n }", "public Coordinate getLocation();", "public Location getLocation() \n\t{\n\t\treturn location;\n\t}", "public final Point getLocation() {\n return this.location ;\n }", "int getPlayerLocation(Player p) {\n\t\t\treturn playerLocationRepo.get(p);\n\t\t}", "com.google.ads.googleads.v14.common.LocationInfo getLocation();", "public BwLocation getLocation() {\n if (location == null) {\n location = BwLocation.makeLocation();\n }\n\n return location;\n }", "public Location getLocation()\n\t{\n\t\treturn l;\n\t}", "public Location getLocation() {\n\t\treturn loc;\n\t}", "public WotlasLocation getLocation() {\n return this.getBasicChar().getLocation();\n }", "public geo_location getLocation() {\n return _pos;\n }", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "public Point getLocation() {\n\t\treturn location.getCopy();\n\t}", "public Planet getLocation() {\n\t\treturn currentLocation;\n\t}", "public String getLocation() {\r\n return location;\r\n }", "public String getLocation()\n {\n return location;\n }", "public Location getLocation() {\n\t\treturn location.clone();\n\t}", "public Location getLocation ( ) {\n\t\treturn extract ( handle -> handle.getLocation ( ) );\n\t}", "public LatLng getLocation() {\n\t\treturn location;\n\t}", "public FrillLoc getLocation() {\n return MyLocation;\n }", "public String getLocation() {\r\n return location;\r\n }", "public String getLocation() {\n return location;\n }", "public String getLocation(){\r\n return Location;\r\n }", "public Player getToTeleportTo(){\n\t\treturn toTeleportTo;\n\t}", "public String getLocation() {\r\n\t\treturn location; \r\n\t}", "public Point getLocation() {\n\t\treturn location;\n\t}", "public final Location getLocation() {\n\t\treturn location.clone();\n\t}", "public final String getLocation() {\n return location;\n }", "public String getLocation() { return location; }", "public String getLocation() { return location; }", "public String getLocation() {\n return mLocation;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public Point getLocation() {\n return location;\n }", "public String getLocation() {\n\t\treturn mLocation;\n\t}", "public java.lang.String getLocation() {\n return location;\n }", "public Location getLocation() {\n return ((Location) tile);\n }", "public String getLocation() {\r\n\t\treturn location;\r\n\t}", "public Location getLocation() {\r\n\t\treturn location;\r\n\t}", "public Location getLocation() {\r\n\t\treturn location;\r\n\t}", "public String getLocation(){\r\n return location;\r\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public PVector getLoc() {\n return location;\n }", "public PVector getLoc() {\n return location;\n }", "public Point getLocation() {\n Map<String, Long> map = (java.util.Map<String, Long>) driver.executeAtom(\n atoms.getLocationJs, false, this);\n return new Point(map.get(\"x\").intValue(), map.get(\"y\").intValue());\n }", "public String getLocation() {\n return location;\n }", "public java.lang.String getLocation() {\n return location;\n }", "public String getLocation() {\n return this.location;\n }", "public Location getLocation() {\n return location;\n }", "public Location getLocation() {\n return location;\n }" ]
[ "0.7429285", "0.73955077", "0.73955077", "0.73955077", "0.73955077", "0.70153093", "0.70153093", "0.70153093", "0.68612975", "0.6837365", "0.6837183", "0.67782634", "0.67779493", "0.67671686", "0.6757104", "0.67454416", "0.6708208", "0.6688215", "0.6687149", "0.66836846", "0.6674643", "0.6672782", "0.6670811", "0.6652694", "0.6640335", "0.66307944", "0.6612226", "0.6602459", "0.6599708", "0.6599708", "0.6595752", "0.6582401", "0.65771794", "0.6573444", "0.6559852", "0.6555647", "0.65446645", "0.65371555", "0.6522164", "0.65206337", "0.65194446", "0.65194446", "0.65194446", "0.65194446", "0.65194446", "0.65194446", "0.65194446", "0.65194446", "0.65174925", "0.64955133", "0.64869183", "0.6484741", "0.6473737", "0.6469734", "0.64681846", "0.6467972", "0.6463099", "0.64609075", "0.64575124", "0.64549947", "0.64530814", "0.6450452", "0.64475095", "0.6434326", "0.6433475", "0.6433475", "0.64319426", "0.6425839", "0.6425839", "0.6425839", "0.6425839", "0.6425839", "0.6425839", "0.6425839", "0.6425839", "0.6425839", "0.6425839", "0.6425839", "0.6425839", "0.6424077", "0.641806", "0.64173764", "0.6411135", "0.63954526", "0.63933456", "0.63933456", "0.63877463", "0.6384454", "0.6384454", "0.6384454", "0.6384454", "0.6384454", "0.6380433", "0.6380433", "0.63751876", "0.63747233", "0.63741916", "0.63739794", "0.6372729", "0.6372729" ]
0.79384726
0
Notify the players that the teleport has been cancelled
public void notifyCancel() { Player senderPlayer = this.getToTeleport().getPlayerReference(Player.class), targetPlayer = this.getTarget().getPlayerReference(Player.class); if (senderPlayer == null || targetPlayer == null) { return; } MainData.getIns().getMessageManager().getMessage("TPA_CANCELLED").sendTo(senderPlayer); MainData.getIns().getMessageManager().getMessage("TPA_SELF_CANCELLED").sendTo(targetPlayer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancelTask(){\n\t\tif(main.teleporting.containsKey(teleporter.getName())){\n\t\t\tmain.teleporting.remove(teleporter.getName());\n\t\t}\n\t\tthis.cancel();\n\t}", "public void cancel(){\n cancelled = true;\n }", "public void onCancel();", "void onCancel();", "protected abstract void onCancel();", "public void cancel() {\n\t\tcancelled = true;\n\t}", "public void cancel( String reason );", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel() {\n target.setAllowFlight(false);\n target.setWalkSpeed(0.01F);\n target.setFlySpeed(0.01F);\n targets.remove(target);\n\n JavaUtils.broadcastStage(\"done\",this);\n }", "public void onCancelled();", "void onCanceled();", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "public boolean cancel();", "public void cancel();", "void sendCancelMessage();", "public void cancel()\n\t{\n\t}", "public void onCancelled() {\n this.cancelled = true;\n }", "void onCancelled();", "public void onCancel() {\n\t\t\t\t\t}", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "protected void onPdCancel(){\r\r\t}", "public void cancel() {\n\t}", "protected abstract void sendCancel(Status reason);", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "public void cancel(){\n\t\tstartTime = -1;\n\t\tplayersFinished = new ArrayList<>();\n\t\tplayersFinishedMarked = new ArrayList<Player>();\n\t\tDNFs = new ArrayList<>();\n\t\ttempNumber = 0;\n\t\tmarkedNum = 0;\n\t\t//normally we'd mark started racers as such, but we are don't know how many started.\n\t}", "public abstract boolean cancel();", "public void onCancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n public void cancel() {\n }", "@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}", "public synchronized void cancel() {\n }", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\t\t\n\t}", "@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}", "public void onCancel() {\n }", "private void onCancel() {\n data.put(\"cerrado\",true);\n dispose();\n }", "public void cancel() {\r\n\t\tcanceled = true;\r\n\t\ttry {\r\n\t\t\tThread.sleep(51);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void onCancel() {\n }", "@Override\n public void cancel() {\n\n }", "@Override\n\tpublic void canceled() {\n\t\t\n\t}", "@Override\n\tpublic void canceled() {\n\t\t\n\t}", "@Override\n public void cancel() {\n }", "@Override\n public void cancel() {\n\n }", "public void cancel() {\r\n\t\tbStop = true;\r\n\t}", "@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }", "public void cancel() {\n request.disconnect();\n }", "void cancelTimeout() {\n timeoutCancelled = true;\n if (timeout != null) {\n timeout.cancel();\n }\n }", "@Override\r\n\t\tpublic void onCancel() {\n\t\t}", "private void onCancel()\n\t{\n\t\tdispose();\n\t}", "@Override\r\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "private void onCancel() {\n\t\tdispose();\n\t}", "public void onCancel() {\n\n }", "@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void onCancel() {\n \n \t}", "@Override\n public void run() {\n BlockPos cachePosition = teleportee.getPosition();\n while (cachePosition.equals(teleportee.getPosition()) || pendingTeleports.containsKey(originalSender)) {/*block execution until move or teleport*/}\n if (pendingTeleports.containsKey(originalSender)) { //has not teleported\n pendingTeleports.remove(sender.getName(), originalSender);\n sender.addChatMessage(new TextComponentString(TextFormatting.RED + \"Teleport canceled.\"));\n teleportee.addChatMessage(new TextComponentString(TextFormatting.RED + \"Teleport canceled.\"));\n }\n }", "public boolean isCancelled();", "public boolean isCancelled();", "public boolean isCancelled();", "synchronized void cancel()\n {\n state = DNSState.CANCELED;\n notifyAll();\n }", "public void onCancelled() {\n }", "public void onCancelled() {\n }", "@Override\n\t\t\tpublic void setCanceled(boolean value) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t\t public void onCancel() {\n\t\t\t\t\t errorMessage = \"You cancelled Operation\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }", "@Override\n protected void onCancel() {\n }", "public void cancel() {\n btCancel().push();\n }", "@Override\n public void onCancel() {\n\n }", "@Override\n public void onCancel() {\n\n }", "@Override\n public void onCancel() {\n }", "@Override\n public void cancel() {\n mTn.hide();\n getService().cancelToast(mTn);\n }", "@Override\r\n public void cancelMsg() {\n System.out.println(\"Transaction has been cancelled for gas pump #1..\");\r\n }", "private void onCancel()\r\n {\n dispose();\r\n }", "public void cancel() {\n\t\tinterrupt();\n\t}", "void cancelOriginal();", "private void onCancel() {\n dispose();\r\n }", "public void cancelInvitionUser() {\n\n }", "public void onPause(){\n\t\tsuper.onPause();\n\t\tif (this.currTeacher != null && this.currTeacher.getStatus() == Status.RUNNING) {\n\t\t\tthis.currTeacher.cancel(true);\n\t\t\tcancelToast();\n\t\t}if (this.tList !=null && this.tList.getStatus() == Status.RUNNING) {\n\t\t\tthis.tList.cancel(true);\n\t\t\tcancelToast();\n\t\t}if (this.add !=null && this.add.getStatus() == Status.RUNNING) {\n\t\t\tthis.add.cancel(true);\n\t\t\tcancelToast();\n\t\t}if (this.allTimes !=null && this.allTimes.getStatus() == Status.RUNNING) {\n\t\t\tthis.allTimes.cancel(true);\n\t\t\tcancelToast();\n\t\t}if (this.availableTimes !=null && this.availableTimes.getStatus() == Status.RUNNING) {\n\t\t\tthis.availableTimes.cancel(true);\n\t\t\tcancelToast();\n\t\t}\n\t}", "public void cancel() {\n try {\n mConnectedSocket.close();\n } catch (IOException e) {\n showToast(\"Could not close the connected socket.\");\n }\n }", "private void cancelPressed() {\n\t\tVideoPlayer.mediaPlayer.stop();\n\t\tl.clear();\n\t\tpaths.clear();\n\t\tsizes.clear();\n\t\tcancelPlayingList.setEnabled(false);\n\t\tplayTheList.setEnabled(true);\n\t}", "abstract protected void cancelCommands();", "@Override\r\n\tpublic void setCanceled(boolean value) {\n\r\n\t}", "public void cancel() {\n\t\tcancel(false);\n\t}", "private void onCancel() {\n dispose();\n }", "private void onCancel() {\n dispose();\n }", "private void onCancel() {\n dispose();\n }", "private void onCancel() {\n dispose();\n }", "private void onCancel() {\n dispose();\n }" ]
[ "0.70969415", "0.70941", "0.70090723", "0.6925097", "0.6920042", "0.67824614", "0.67291653", "0.6728818", "0.6728818", "0.6728818", "0.6728818", "0.6728818", "0.6728818", "0.6700315", "0.66822356", "0.6661136", "0.6610871", "0.6610871", "0.6610871", "0.6610871", "0.6610871", "0.66021985", "0.65806663", "0.65524524", "0.6550214", "0.6548914", "0.65473056", "0.6533968", "0.6526665", "0.6518186", "0.65141773", "0.65131265", "0.6511283", "0.6507021", "0.6485903", "0.6478488", "0.6472693", "0.6463263", "0.64519906", "0.644791", "0.644791", "0.644791", "0.6443202", "0.64163226", "0.6412496", "0.6406053", "0.6405008", "0.6399112", "0.6399112", "0.6399112", "0.6365962", "0.6359648", "0.6352314", "0.6352314", "0.6337451", "0.632589", "0.63148206", "0.6312713", "0.6307041", "0.6303062", "0.62981886", "0.6291563", "0.62663925", "0.62636596", "0.6253687", "0.6252535", "0.6237244", "0.6232414", "0.6228701", "0.6227205", "0.6227205", "0.6227205", "0.6224872", "0.6224666", "0.6224666", "0.6223297", "0.62167203", "0.6216005", "0.61940587", "0.6191663", "0.6191663", "0.619076", "0.61898714", "0.614368", "0.6143105", "0.6132679", "0.6109281", "0.6098725", "0.6092987", "0.6092966", "0.6084002", "0.6080037", "0.60760313", "0.6070132", "0.60696656", "0.6062517", "0.6062517", "0.6062517", "0.6062517", "0.6062517" ]
0.8197957
0
Notify the recipient that he has received a teleport
public void notifyCreation() { Player targetPlayer = this.getTarget().getPlayerReference(Player.class), senderPlayer = this.getToTeleport().getPlayerReference(Player.class); if (targetPlayer == null || senderPlayer == null) { return; } MainData.getIns().getMessageManager().getMessage("TPA_SENT").sendTo(senderPlayer); if (this.type == TeleportType.TPA) { MainData.getIns().getMessageManager().getMessage("TPA_REQUESTED") .format("%player%", getToTeleport().getNameWithPrefix()).sendTo(targetPlayer); } else if (this.type == TeleportType.TPHERE) { MainData.getIns().getMessageManager().getMessage("TPHERE_REQUESTED") .format("%player%", getToTeleport().getNameWithPrefix()).sendTo(targetPlayer); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n if (pendingTeleports.containsKey(sender.getName())) {\n pendingTeleports.remove(sender.getName(),originalSender);\n if (senderPlayer.dimension != teleportee.dimension) {\n TeleportHelper.transferPlayerToDimension(teleportee,senderPlayer.dimension,server.getPlayerList());\n }\n teleportee.setPositionAndUpdate(senderPlayer.posX,senderPlayer.posY,senderPlayer.posZ);\n sender.addChatMessage(new TextComponentString(TextFormatting.GREEN+\"Teleport successful.\"));\n teleportee.addChatMessage(new TextComponentString(TextFormatting.GREEN+\"Teleport successful.\"));\n } //if not, the teleportee moved\n }", "public void sendTeleport(final Player player) {\r\n player.lock();\r\n World.submit(new Pulse(1) {\r\n\r\n int delay = 0;\r\n\r\n @Override\r\n public boolean pulse() {\r\n if (delay == 0) {\r\n player.getActionSender().sendMessage(\"You've been spotted by an elemental and teleported out of its garden.\");\r\n player.graphics(new Graphics(110, 100));\r\n player.getInterfaceState().openComponent(8677);\r\n PacketRepository.send(MinimapState.class, new MinimapStateContext(player, 2));\r\n face(player);\r\n } else if (delay == 6) {\r\n player.getProperties().setTeleportLocation(Location.create(getRespawnLocation()));\r\n PacketRepository.send(MinimapState.class, new MinimapStateContext(player, 0));\r\n player.getInterfaceState().close();\r\n face(null);\r\n player.unlock();\r\n return true;\r\n }\r\n delay++;\r\n return false;\r\n }\r\n });\r\n }", "@Override\n public void run() {\n BlockPos cachePosition = teleportee.getPosition();\n while (cachePosition.equals(teleportee.getPosition()) || pendingTeleports.containsKey(originalSender)) {/*block execution until move or teleport*/}\n if (pendingTeleports.containsKey(originalSender)) { //has not teleported\n pendingTeleports.remove(sender.getName(), originalSender);\n sender.addChatMessage(new TextComponentString(TextFormatting.RED + \"Teleport canceled.\"));\n teleportee.addChatMessage(new TextComponentString(TextFormatting.RED + \"Teleport canceled.\"));\n }\n }", "boolean teleport(Player p1, Player p2, boolean change);", "@Override\n public void execute() {\n vars.setState(\"Teleporting...\");\n Methods.teleToFlameKing();\n }", "@EventHandler(priority = EventPriority.LOWEST)\n\tpublic void onPlayerTeleport(PlayerTeleportEvent event)\n\t{\n\t Player player = event.getPlayer();\n\t\tPlayerData playerData = this.dataStore.getPlayerData(player.getUniqueId());\n\t\t\n\t\t//FEATURE: prevent players from using ender pearls to gain access to secured claims\n\t\tTeleportCause cause = event.getCause();\n\t\tif(cause == TeleportCause.CHORUS_FRUIT || (cause == TeleportCause.ENDER_PEARL && instance.config_claims_enderPearlsRequireAccessTrust))\n\t\t{\n\t\t\tClaim toClaim = this.dataStore.getClaimAt(event.getTo(), false, playerData.lastClaim);\n\t\t\tif(toClaim != null)\n\t\t\t{\n\t\t\t\tplayerData.lastClaim = toClaim;\n\t\t\t\tString noAccessReason = toClaim.allowAccess(player);\n\t\t\t\tif(noAccessReason != null)\n\t\t\t\t{\n\t\t\t\t\tinstance.sendMessage(player, TextMode.Err, noAccessReason);\n\t\t\t\t\tevent.setCancelled(true);\n\t\t\t\t\tif(cause == TeleportCause.ENDER_PEARL)\n\t\t\t\t\t player.getInventory().addItem(new ItemStack(Material.ENDER_PEARL));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void callOnTeleport() {\n\t\tif (summonedFamiliar != null && c.getInstance().summoned != null) {\n\t\t\tc.getInstance().summoned.killerId = 0;\n\t\t\tc.getInstance().summoned.underAttackBy = 0;\n\t\t\tc.getInstance().summoned.npcTeleport(0, 0, 0);\n\t\t\tc.getInstance().summoned.updateRequired = true;\n\t\t\tc.getInstance().summoned = Server.npcHandler.summonNPC(c, summonedFamiliar.npcId, c.getX(),\n\t\t\t\t\tc.getY() + (summonedFamiliar.large ? 2 : 1), c.heightLevel, 0, c.getInstance().summoned.HP, 1, 1,\n\t\t\t\t\t1);\n\t\t\tcallFamiliar();\n\t\t} else {\n\t\t\tc.getPA().sendSummOrbDetails(false, \"\");\n\t\t}\n\t}", "public void teleportation(Vector2 posTp) {\n int distance = (int) Math.sqrt(Math.pow(posTp.x - position.x, 2) + Math.pow(posTp.y - position.y, 2));\n int coef = 50;\n if (wallet.getMoney() >= coef*distance) {\n position.set(posTp);\n position.x += WIDTH/2;\n resetMiner();\n wallet.withdraw(coef * distance);\n }\n }", "public boolean teleport(Entity destination) {\n/* 571 */ return teleport(destination.getLocation());\n/* */ }", "public void notifyRespawn()\n {\n playerObserver.onRespawn();\n }", "private void teletransportar(Personaje p, Celda destino) {\n // TODO implement here\n }", "public void treatment()\n {\n\t\tCommunicationManagerServer cms = CommunicationManagerServer.getInstance();\n\t\tDataServerToComm dataInterface = cms.getDataInterface();\n\t\t/** On récupère et stocke l'adresse IP du serveur\n\t\t */\n\t\tdataInterface.updateUserChanges(user);\n\n\t /** Création du message pour le broadcast des informations**/\n\t updatedAccountMsg message = new updatedAccountMsg(this.user);\n\t\tmessage.setPort(this.getPort());\n\t cms.broadcast(message);\n\t}", "public boolean teleport ( Entity destination , PlayerTeleportEvent.TeleportCause cause ) {\n\t\treturn invokeSafe ( \"teleport\" , destination , cause );\n\t}", "void notifyPlayerHasAnotherTurn();", "private void sendMessage() {\n Log.d(\"sender\", \"Broadcasting message\");\n Intent intent = new Intent(\"custom-event-name\");\n // You can also include some extra data.\n double[] destinationArray = {getDestination().latitude,getDestination().longitude};\n intent.putExtra(\"destination\", destinationArray);\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }", "public void notifyCancel() {\n Player senderPlayer = this.getToTeleport().getPlayerReference(Player.class),\n targetPlayer = this.getTarget().getPlayerReference(Player.class);\n\n if (senderPlayer == null || targetPlayer == null) {\n return;\n }\n\n MainData.getIns().getMessageManager().getMessage(\"TPA_CANCELLED\").sendTo(senderPlayer);\n MainData.getIns().getMessageManager().getMessage(\"TPA_SELF_CANCELLED\").sendTo(targetPlayer);\n\n }", "@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)\n public void onPlayerTeleport(PlayerTeleportEvent event) {\n\n if (event.getCause() == PlayerTeleportEvent.TeleportCause.END_GATEWAY) {\n event.getPlayer().discoverRecipe(TeleportalsPlugin.getKey(\"gateway_prism\"));\n }\n }", "public boolean teleport ( Location location , PlayerTeleportEvent.TeleportCause cause ) {\n\t\treturn invokeSafe ( \"teleport\" , location , cause );\n\t}", "private void handleTeleport(GameGUI gui) {\r\n\t\tif (gui.isTeleportPressed()) {\r\n\t\t\tteleport();\r\n\t\t}\r\n\t}", "public boolean teleport ( Entity destination ) {\n\t\treturn invokeSafe ( \"teleport\" , destination );\n\t}", "public boolean teleport(Location location) {\n/* 508 */ return teleport(location, PlayerTeleportEvent.TeleportCause.PLUGIN);\n/* */ }", "public Player getToTeleportTo(){\n\t\treturn toTeleportTo;\n\t}", "default void interactWith(Teleporter tp) {\n\t}", "void sendTo(String from, String to, String m_id);", "public void sendMessage() {\n\t\tString myPosition=this.agent.getCurrentPosition();\n\t\tif (myPosition!=null){\n\t\t\t\n\t\t\tList<String> wumpusPos = ((CustomAgent)this.myAgent).getStenchs();\n\t\t\t\n\t\t\tif(!wumpusPos.isEmpty()) {\n\t\t\t\tList<String> agents =this.agent.getYellowpage().getOtherAgents(this.agent);\n\t\t\t\t\n\t\t\t\tACLMessage msg=new ACLMessage(ACLMessage.INFORM);\n\t\t\t\tmsg.setSender(this.myAgent.getAID());\n\t\t\t\tmsg.setProtocol(\"WumpusPos\");\n\t\t\t\tmsg.setContent(wumpusPos.get(0)+\",\"+myPosition);\n\t\t\t\t\n\t\t\t\tfor(String a:agents) {\n\t\t\t\t\tif(this.agent.getConversationID(a)>=0) {\n\t\t\t\t\t\tif(a!=null) msg.addReceiver(new AID(a,AID.ISLOCALNAME));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.agent.sendMessage(msg);\n\t\t\t\tthis.lastPos=myPosition;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "@Override\n\tpublic void msgAtLocation(Person p, Role r, List<Action> actions) {\n\t\tlog.add(new LoggedEvent(\"Recieved at location\"));\n\t\t\n\t}", "@Override\n public void opponentSurrender(int id) {\n try {\n if (getClientInterface() != null)\n getClientInterface().notifyOpponentSurrender(id);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending opponent surrender error\");\n }\n }", "public void teleport(boolean penalty) { \n\t\tPublisher teleport_h = new Publisher(\"/ariac_human/go_home\", \"std_msgs/Bool\", bridge);\n\t\tif(penalty)\t\n\t\t\tteleport_h.publish(new Bool(true));\t\n\t\telse\n\t\t\tteleport_h.publish(new Bool(false));\t\n\n\t\t// Reset \"smart\" orientation variables\n\t\tlastHumanState_MsgT = System.currentTimeMillis();\n\t\tlastUnsafeD_MsgT = System.currentTimeMillis();\n\t\tpreviousDistance = 50.0;\n\t\tisAproximating = false;\n\t}", "public void sendData() {\r\n\t\t// HoverBot specific implementation of sendData method\r\n\t\tSystem.out.println(\"Sending location information...\");\r\n\t}", "public abstract void teleport(TeleportSpell spell);", "public static void teleport(LivingEntity ent, Location to) {\n\t\tteleport(ent, to, true, true);\n\t}", "@Override\n public void recipient(String recipient) {\n }", "@EventHandler\n\tpublic void onTravelToNether(PlayerPortalEvent e) {\n\t\tPlayerTR trPlayer = TaskRun.getPlayer(e.getPlayer());\n\t\tif (e.getTo().getWorld().getEnvironment() == Environment.NETHER) {\n\t\t\ttrPlayer.completeTask(1);\n\t\t}\n\t}", "public static void teleportPlayer(final Player player,\n \t\t\tfinal Location toLocation) {\n \t\tfinal Object networkManager = getNetServerHandler(getHandle(player));\n \t\ttry {\n \t\t\tnetworkManager.getClass().getMethod(\"teleport\", Location.class)\n \t\t\t\t\t.invoke(networkManager, toLocation);\n \t\t} catch (final Exception e) {\n \t\t\tthrow new RuntimeException(\"Can't teleport the player \" + player\n \t\t\t\t\t+ \" to \" + toLocation, e);\n \t\t}\n \t}", "public static void tpr(String world, Player player) {\n String msg = MessageManager.getMessageYml().getString(\"Tpr.Teleporting\");\n player.sendMessage(MessageManager.getPrefix() + ChatColor.translateAlternateColorCodes('&', msg));\n Location originalLocation = player.getLocation();\n Random random = new Random();\n Location teleportLocation;\n int maxDistance = Main.plugin.getConfig().getInt(\"TPR.Max\");\n World w = Bukkit.getServer().getWorld(world);\n int x = random.nextInt(maxDistance) + 1;\n int y = 150;\n int z = random.nextInt(maxDistance) + 1;\n boolean isOnLand = false;\n teleportLocation = new Location(w, x, y, z);\n while (!isOnLand) {\n teleportLocation = new Location(w, x, y, z);\n if (teleportLocation.getBlock().getType() != Material.AIR) {\n isOnLand = true;\n } else {\n y--;\n }\n }\n player.teleport(new Location(w, teleportLocation.getX(), teleportLocation.getY() + 1.0D, teleportLocation.getZ()));\n if (Main.plugin.getConfig().getString(\"NOTIFICATIONS.Tpr\").equalsIgnoreCase(\"True\")) {\n int dis = (int) teleportLocation.distance(originalLocation);\n String dist = String.valueOf(dis);\n String original = (MessageManager.getMessageYml().getString(\"Tpr.Distance\").replaceAll(\"%distance%\", dist));\n String distance = (ChatColor.translateAlternateColorCodes('&', original));\n player.sendMessage(MessageManager.getPrefix() + distance);\n }\n }", "public void atenderTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" atendido!\");\n notificarTodos();\n }", "public void notifyNotifyPresenceReceived(Friend lf);", "public void notifyPlayerDefeat(Player p);", "private static void goThroughPassage(Player player) {\n int x = player.getAbsX();\n player.getMovement().teleport(x == 2970 ? x + 4 : 2970, 4384, player.getHeight());\n }", "public void sendTeleportPacket(int entityId, Vector destination, byte yaw, byte pitch) {\n Object packet = ReflectUtils.newInstance(\"PacketPlayOutEntityTeleport\");\n ReflectUtils.setField(packet, \"a\", entityId);\n\n // Set the teleport location to the position of the entity on the player's side of the portal\n ReflectUtils.setField(packet, \"b\", destination.getX());\n ReflectUtils.setField(packet, \"c\", destination.getY());\n ReflectUtils.setField(packet, \"d\", destination.getZ());\n ReflectUtils.setField(packet, \"e\", yaw);\n ReflectUtils.setField(packet, \"f\", pitch);\n\n sendPacket(packet);\n }", "public boolean teleport ( Location location ) {\n\t\treturn invokeSafe ( \"teleport\" , location );\n\t}", "public void teleport(Node<?> node) {\n observedNode = node;\n }", "public static void teleportAway(ClientContext ctx) {\n Item sceptre = ctx.inventory.select().id(Items.SKULL_SCEPTRE_I_21276).poll();\n\n if (sceptre.valid()) {\n sceptre.interact(\"Invoke\", sceptre.name());\n sleep(3000);\n } else {\n // Teletab\n Item tab = ctx.inventory.select().select(new Filter<Item>() {\n @Override\n public boolean accept(Item item) {\n return item.name().toLowerCase().contains(\"teleport\");\n }\n }).poll();\n\n if (tab.valid()) {\n tab.click();\n } else {\n // Glory Teleport\n ctx.game.tab(Game.Tab.EQUIPMENT);\n Item ammy = ctx.equipment.itemAt(Equipment.Slot.NECK);\n if (ammy.name().toLowerCase().contains(\"glory\")) {\n ammy.interact(\"Edgeville\");\n sleep(4000);\n }\n }\n }\n }", "public void sendJoiningPlayer() {\r\n Player p = nui.getPlayerOne();\r\n XferJoinPlayer xfer = new XferJoinPlayer(p);\r\n nui.notifyJoinConnected();\r\n networkPlayer.sendOutput(xfer);\r\n }", "public void sendTo(P2PUser dest, Object msg) throws IOException;", "public Teleporter(Vector2D teleporterPos, Vector2D teleportsToPos, int id, float elevation,\n\t\t\tString description, String name,boolean canInteract) {\n\t\tsuper(teleporterPos, id, elevation, description, name);\n\t\tthis.teleportsToPos = teleportsToPos;\n\t\tthis.canInteract = canInteract;\n\t}", "@Override\r\n\tpublic boolean canTeleport() {\n\t\treturn false;\r\n\t}", "public static void sendTo(Player player, OwnedWarp warp) {\n if(warp == null)\n return;\n try {\n Points.teleportTo(player, warp.getTarget(), warp.getName());\n } catch (InvalidDestinationException ex) {\n player.sendMessage(ex.getMessage());\n Stdout.println(ex.getMessage(), Level.ERROR);\n }\n }", "@Override\n\tpublic void onGetLiveUserInfoDone(final LiveUserInfoEvent event) {\n\t\t\n\t\tChatActivity.this.runOnUiThread(new Runnable() {\n\t\t\t public void run() {\n\t\tif(WarpResponseResultCode.SUCCESS==event.getResult()){\n\t\t\tif(event.isLocationLobby())\n\t\t\t\tsend.setClickable(true);\n\t\t\telse\n\t\t\t\tsend.setClickable(false);\n\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tsend.setClickable(false);\n\t\t}\n\t\t\t }\n\t\t});\n\t}", "public void sendDirectedPresence() {\n Cursor cursor = getContentResolver().query(\n Roster.CONTENT_URI,\n new String[]{Roster.LAST_UPDATED},\n null, null, \"last_updated desc\"\n );\n if (cursor.moveToFirst()) {\n long after = cursor.getLong(\n cursor.getColumnIndex(Roster.LAST_UPDATED));\n Presence presence = new Presence(Type.available);\n presence.setTo(\"broadcaster.buddycloud.com\");\n client.sendFromAllResources(presence);\n }\n cursor.close();\n }", "public void notify(String userId, int timezoneDiff);", "INotificationTraveller getSender();", "public void notify(String userId);", "@SubscribeEvent\n public void onItemUseFinish(LivingEntityUseItemEvent.Start event) {\n boolean didTeleport = false;\n\n if (teleportStabilize\n && event.getEntityLiving() instanceof PlayerEntity\n && event.getItem().getItem() == Items.CHORUS_FRUIT\n && !event.getEntityLiving().getEntityWorld().isRemote\n ) {\n World world = event.getEntityLiving().world;\n PlayerEntity player = (PlayerEntity) event.getEntityLiving();\n Map<Double, BlockPos> positions = new HashMap<>();\n BlockPos playerPos = player.getPosition();\n BlockPos targetPos = null;\n\n // find the blocks around the player\n BlockPos.getAllInBox(playerPos.add(-range, -range, -range), playerPos.add(range, range, range)).forEach(pos -> {\n if (world.getBlockState(pos).getBlock() == block && !pos.up(1).equals(playerPos)) {\n\n // should be able to stand on it\n if (world.getBlockState(pos.up(1)).getMaterial() == Material.AIR && world.getBlockState(pos.up(2)).getMaterial() == Material.AIR) {\n positions.put(WorldHelper.getDistanceSq(playerPos, pos.up(1)), pos.up(1));\n }\n }\n });\n\n // get the closest position by finding the smallest distance\n if (!positions.isEmpty()) {\n targetPos = positions.get(Collections.min(positions.keySet()));\n }\n\n if (targetPos != null) {\n double x = targetPos.getX() + 0.5D;\n double y = targetPos.getY();\n double z = targetPos.getZ() + 0.5D;\n if (player.attemptTeleport(x, y, z, true)) {\n didTeleport = true;\n\n // play sound at original location and new location\n world.playSound(null, x, y, z, SoundEvents.ITEM_CHORUS_FRUIT_TELEPORT, SoundCategory.PLAYERS, 1.0F, 1.0F);\n player.playSound(SoundEvents.ITEM_CHORUS_FRUIT_TELEPORT, 1.0F, 1.0F);\n }\n }\n\n if (didTeleport) {\n player.getCooldownTracker().setCooldown(Items.CHORUS_FRUIT, 20);\n event.getItem().shrink(1);\n event.setCanceled(true);\n }\n }\n }", "public Player getTeleporter(){\n\t\treturn teleporter;\n\t}", "void firePeerDiscovered(TorrentId torrentId, Peer peer);", "void onRespawned(Need need, NeedLevel level, PlayerEntity player, PlayerEntity oldPlayer);", "@Override\n public void onOtpCompleted(String otp) {\n\n }", "public synchronized void tellAt(){\n\t\tnotifyAll();\n\t}", "private void sendLocalEventData() {\n\n if(!localUnsentEvents.isEmpty()){\n\n Event event = localUnsentEvents.get(0);\n int eventIndex = event.getIndex();\n int eventNumber = event.getType();\n\n System.out.println(\"EVENT: \" + event);\n System.out.println(\"INDEX: \" + eventIndex);\n\n getJSON(hostUrl + sendLocalEventScript.getFilename()\n + \"?matchId=\" + matchId\n + \"&player=\" + assignedPlayer\n + \"&event=\" + eventNumber\n + \"&eventIndex=\" + eventIndex,\n 2000);\n\n lastSentLocalEventIndex = eventIndex;\n localUnsentEvents.remove(0);\n\n }\n\n }", "@Override\r\n\tpublic void notifyFriendship(String m, String d) throws RemoteException {\n\t\t\r\n\t\tif (d.equals(utente))\r\n\t\t\tres.append(\"Tu e \" + m + \" siete diventati amici\\n\");\r\n\t}", "public void notify(CommandSender player, String message) {\n\t\tplayer.sendMessage(ChatColor.GRAY + \"[\" + ChatColor.GOLD + \"BattleKits\" + ChatColor.GRAY + \"]\" + ChatColor.YELLOW + message);\n\t}", "public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}", "@Override\n\t\tpublic void onReceivePoi(BDLocation arg0) {\n\t\t\t\n\t\t}", "public void sendnotification(View v){\r\n\t\tRequest req=(Request)v.getTag();\r\n\t\tLog.d(\"selected\", req.getPassenger().getId().toString());\r\n\t\t\r\n//\t\trideresponse=\r\n\t\t\t\trideStart(req, new LatLng(req.getLocation().getLatitude(), req.getLocation().getLongitude()),(Location)this.getIntent().getSerializableExtra(\"mylocation\"));\r\n\t\t\r\n//\t\tIntent intent = new Intent(this, RideStartActivity.class);\r\n// \t \tintent.putExtra(\"ride\", rideresponse);\r\n// \t \tstartActivity(intent);\r\n// \t \tfinish();\r\n\t\t}", "public void update(MazeEventTeleported e) {\r\n }", "public void sendToOutpatients(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "public void teleportToAlien() {\n\t\tAlien a;\n\t\tSpaceship sp;\n\t\tif(roamingAliens > 0){\n\t\t\tsp = getTheSpaceship();\n\t\t\ta = getRandomAlien();\n\t\t\tsp.setLocation(a.getLocation());\n\t\t\tSystem.out.println(\"You've teleported to an alien\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Error: There were no aliens to jump to.\");\n\t}", "protected void processPlayerArrived(String name) {\n Player player = tournamentService.findPlayer(name);\n if (player == null) {\n alertManagers(\"Arriving player {0} is on my notify list, but I don''t have him in the tournament roster.\", name);\n return;\n }\n player.setState(PlayerState.WAITING);\n Game game = tournamentService.findPlayerGame(player);\n if (game == null) return;\n if (game.status.isFinished()) return;\n if (loggingIn) {\n \tcommand.sendCommand(\"observe {0}\", name);\n } else {\n tellManagers(\"{0} arrived. Reserving board {1}.\", name, game.boardNumber);\n }\n command.sendAdminCommand(\"spoof {0} tell JudgeBot nowin\", game.whitePlayer);\n command.sendAdminCommand(\"spoof {0} tell JudgeBot nowin\", game.blackPlayer);\n command.sendAdminCommand(\"set-other {0} kib 0\", game.blackPlayer);\n command.sendAdminCommand(\"set-other {0} kib 0\", game.whitePlayer);\n command.sendAdminCommand(\"reserve-game {0} {1}\", game.whitePlayer, game.boardNumber);\n command.sendAdminCommand(\"reserve-game {0} {1}\", game.blackPlayer, game.boardNumber);\n if (game.status.isAdjourned()) {\n command.sendAdminCommand(\"spoof {0} match {1}\", game.whitePlayer, game.blackPlayer);\n command.sendAdminCommand(\"spoof {0} match {1}\", game.blackPlayer, game.whitePlayer);\n }\n }", "void forgotten(TwoWayEvent.Forgotten<DM, UMD, DMD> evt);", "@Override\n public void waypointUpdate(WaypointState status) {\n synchronized(_waypointListeners) {\n if (_waypointListeners.isEmpty()) return;\n }\n \n try {\n // Construct message\n Response resp = new Response(UdpConstants.NO_TICKET, DUMMY_ADDRESS);\n resp.stream.writeUTF(UdpConstants.COMMAND.CMD_SEND_WAYPOINT.str);\n resp.stream.writeByte(status.ordinal());\n \n // Send to all listeners\n synchronized(_waypointListeners) {\n _udpServer.bcast(resp, _waypointListeners.keySet());\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to serialize camera\");\n }\n }", "private void teleport(Player player, ClanPlayerImpl clanPlayer, Location<World> teleportLocation) {\n player.setLocation(teleportLocation);\n clanPlayer.setLastClanHomeTeleport(new LastClanHomeTeleport());\n }", "private void notifyStakeholder(){\n }", "public void notify(Player player, String message) {\n\t\tplayer.sendMessage(ChatColor.GRAY + \"[\" + ChatColor.GOLD + \"BattleKits\" + ChatColor.GRAY + \"]\" + ChatColor.YELLOW + message);\n\t}", "private void resendPosition(Player player) {\r\n\t\tPacketContainer positionPacket = protocolManager.createPacket(PacketType.Play.Server.POSITION);\r\n\t\tLocation location = player.getLocation();\r\n\r\n\t\tpositionPacket.getDoubles().write(0, location.getX());\r\n\t\tpositionPacket.getDoubles().write(1, location.getY());\r\n\t\tpositionPacket.getDoubles().write(2, location.getZ());\r\n\t\tpositionPacket.getFloat().write(0, 0f); // No change in yaw\r\n\t\tpositionPacket.getFloat().write(1, 0f); // No change in pitch\r\n\t\tgetFlagsModifier(positionPacket).write(0, EnumSet.of(PlayerTeleportFlag.X_ROT, PlayerTeleportFlag.Y_ROT)); // Mark pitch and yaw as relative\r\n\r\n\t\tPacketContainer velocityPacket = protocolManager.createPacket(PacketType.Play.Server.ENTITY_VELOCITY);\r\n\t\tvelocityPacket.getIntegers().write(0, player.getEntityId());\r\n\t\tvelocityPacket.getIntegers().write(1, 0).write(2, 0).write(3, 0); // Set velocity to 0,0,0\r\n\r\n\t\ttry {\r\n\t\t\tprotocolManager.sendServerPacket(player, positionPacket);\r\n\t\t\tprotocolManager.sendServerPacket(player, velocityPacket);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new RuntimeException(\"Failed to send position and velocity packets\", e);\r\n\t\t}\r\n\t}", "void onAction(TwitchUser sender, TwitchMessage message);", "void onPrivMsg(TwitchUser sender, TwitchMessage message);", "@Override\n public void onReceivePoi(BDLocation poiLocation) {\n }", "public abstract void sendConfirmationMessage(Player player);", "private void returnToSender(ClientMessage m) {\n\n if (m.returnToSender) {\n // should never happen!\n // System.out.println(\"**** Returning to sender says EEK\");\n return;\n }\n\n // System.out.println(\"**** Returning to sender says her I go!\");\n m.returnToSender = true;\n forward(m, true);\n }", "public void magicTeleported(int type) {\n\n }", "private void notifyExpire(final Helper helper) {\n final Island island = EmberIsles.getInstance().getWorldManager().getIslandAtLoc(helper.getWorldType(), helper.getIslandKey().getGridX(), helper.getIslandKey().getGridZ());\n // Safety check against programming bugs, data corruption etc since island can't be null here for valid helper data\n if (island == null) {\n return;\n }\n final Player recipient = Bukkit.getPlayer(helper.getPlayerId());\n final Player sender = Bukkit.getPlayer(island.getOwner());\n if (recipient == null || sender == null) {\n return;\n }\n if (sender.isOnline()) {\n sender.sendMessage(String.format(EmberIsles.getInstance().getMessage(\"helper-expire-sender\"), recipient.getName()));\n }\n if (recipient.isOnline()) {\n recipient.sendMessage(String.format(EmberIsles.getInstance().getMessage(\"helper-expire-recipient\"), sender.getName()));\n }\n }", "@Override\n\t\t\tpublic void onReceivePoi(BDLocation arg0) {\n\t\t\t\t\n\t\t\t}", "private void notifyTtsCompleted()\n {\n //if(resources.getTtsCallbackUrl().compareTo())\n RequestDispatcher dispatcher = new RequestDispatcher(this);\n dispatcher.execute(resources.getTtsCallbackUrl(), \"\", \"\", \"true\");\n Intent i = new Intent(\"ttsCompleted-event\");\n LocalBroadcastManager.getInstance(myContext).sendBroadcast(i);\n }", "private void sendMessageToPrompt(String txt){\n\t\tMessage msg = new Message();\n\t\tmsg.obj = \"UDPReceiver: \" + txt;\n\t\tthis.msgPromptHandler.sendMessage(msg);\n\t}", "@Listener\n public void onPlayerRespawnPost(final RespawnPlayerEvent.Post event)\n {\n ServerPlayer serverPlayer = event.entity();\n if (HOME_TELEPORT_PLAYER_UUIDS.contains(serverPlayer.uniqueId()))\n {\n HOME_TELEPORT_PLAYER_UUIDS.remove(serverPlayer.uniqueId());\n Faction faction = getPlugin().getFactionLogic().getFactionByPlayerUUID(serverPlayer.uniqueId())\n .orElse(null);\n\n if(faction == null)\n return;\n\n FactionHome factionHome = faction.getHome();\n if (factionHome == null)\n {\n serverPlayer.sendMessage(PluginInfo.ERROR_PREFIX.append(messageService.resolveComponentWithMessage(\"error.home.could-not-spawn-at-faction-home-it-may-not-be-set\")));\n return;\n }\n\n ServerWorld world = WorldUtil.getWorldByUUID(factionHome.getWorldUUID()).orElse(null);\n if (world != null)\n {\n ServerLocation safeLocation = Sponge.server().teleportHelper().findSafeLocation(ServerLocation.of(world, factionHome.getBlockPosition()))\n .orElse(ServerLocation.of(world, factionHome.getBlockPosition()));\n serverPlayer.setLocation(safeLocation);\n }\n else\n {\n serverPlayer.sendMessage(PluginInfo.ERROR_PREFIX.append(messageService.resolveComponentWithMessage(\"error.home.could-not-spawn-at-faction-home-it-may-not-be-set\")));\n }\n }\n }", "private void sendNotification() {\n }", "@Override\n\tpublic boolean teleport(final Location location) {\n\t\tGuard.ArgumentNotNull(location, \"location\");\n\t\t\n\t\tif (isOnline()) {\n\t\t\treturn bukkitPlayer.teleport(location);\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public void run() {\n if (time == 0) {\n // wait has ended time to teleport\n if (!Utils.homeExists(homeOwner, homeName)) {\n // the has since been deleted whilst waiting\n p.sendMessage(\"There was an error teleporting you.\");\n cancel();\n return;\n }\n Utils.teleportPlayer((Player) sender, homeOwner, homeName);\n sender.sendMessage(Utils.chat(plugin.getConfig().getString(\"teleport-color\") + plugin.getConfig().getString(\"teleport-message\")));\n cancel();\n return;\n }\n Location currentLocation = ((Player) sender).getLocation();\n if (initialLocation.getX() != currentLocation.getX() ||\n initialLocation.getY() != currentLocation.getY() ||\n initialLocation.getZ() != currentLocation.getZ()) {\n // they've moved and the config says to cancel on move\n sender.sendMessage(Utils.chat(plugin.getConfig().getString(\"move-cancel-message\")));\n cancel();\n }\n else {\n sender.sendMessage(Utils.chat(plugin.getConfig().getString(\"countdown-message\").replace(\"<time>\", Integer.toString(time))));\n time--;\n }\n }", "public void teleportTo(int y, int x){\n\t\tthis.position[y][x] = 1;//makes the position here, used for other object room\n\t}", "@Override public void onOtpCompleted(String otp) {\n }", "public void sendTo(User remetente, String emitente, String msg){\n\t\tString dataFormatada = retornaData();\n\t\tString horaFormatada = retornaHora();\n\t\t\n\t\ttry {\n\t\t\tif(remetente == null){\n\t\t\t\tDataOutputStream o = new DataOutputStream(socket.getOutputStream());\n\t\t\t\to.writeUTF(\"\\nUsuario inexistente.\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tDataOutputStream o = new DataOutputStream(remetente.getSocket().getOutputStream());\n\t\t\t\to.writeUTF(\"\\n\" + socket.getInetAddress() + \":\" + socket.getPort() + \"/~\" + emitente + \":\" + msg + \" \" + horaFormatada + \" \" + dataFormatada);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void sendMessage() {\n\n\t}", "public void notifyChangementTour();", "@EventHandler(ignoreCancelled = true)\n public void onEntityTeleport(EntityTeleportEvent event) {\n if (Util.isTrackable(event.getEntity())) {\n AbstractHorse abstractHorse = (AbstractHorse) event.getEntity();\n Entity passenger = Util.getPassenger(abstractHorse);\n if (passenger instanceof Player) {\n Player player = (Player) passenger;\n getState(player).clearHorseDistance();\n }\n }\n }", "void messageSent();", "@Override\n\tpublic void arrival_proc(Player p, Game g) {\n\t\t// TODO Auto-generated method stub\n\t\tp.go2Jail(g);\n\n\t}", "public void sendResponse(){\n\n //DropItPacket dropPkt = new DropItPacket(Constants.PONG.toString());\n // Send out a dropit Packet\n Channel channel = e.getChannel();\n ChannelFuture channelFuture = Channels.future(e.getChannel());\n ChannelEvent responseEvent = new DownstreamMessageEvent(channel, channelFuture, packet, channel.getRemoteAddress());\n// System.out.println(\"===== sending to\" + channel.getRemoteAddress().toString());\n try{\n ctx.sendDownstream(responseEvent);\n }catch (Exception ex){\n System.out.println(\"Node: \" + fileServer.getNode().getPort() + \" sending to\"+\n channel.getRemoteAddress().toString() +\"failed! \" + ex.toString());\n }\n }", "public void notifyJoueurActif();", "protected void emit(Player p, String message) {\n }" ]
[ "0.6764245", "0.65163434", "0.6458922", "0.64017135", "0.6108123", "0.6077894", "0.597751", "0.59702384", "0.59438765", "0.5925572", "0.58765626", "0.5751535", "0.5730869", "0.5669569", "0.56239915", "0.56180805", "0.5613574", "0.55973214", "0.5590074", "0.5573517", "0.5549343", "0.5525198", "0.55060613", "0.54880106", "0.5484834", "0.5482011", "0.5465361", "0.5450905", "0.54423225", "0.5417931", "0.5415357", "0.540992", "0.540386", "0.5352622", "0.5352114", "0.5351066", "0.5343394", "0.53357136", "0.53334904", "0.53155077", "0.5308404", "0.5303457", "0.5298872", "0.5297574", "0.5296567", "0.5283334", "0.5275414", "0.5265707", "0.5256024", "0.52499115", "0.524909", "0.52463436", "0.5234265", "0.52328354", "0.52304494", "0.5215887", "0.5208645", "0.5191602", "0.51724267", "0.5170629", "0.51644456", "0.5163337", "0.51603746", "0.51583683", "0.5152463", "0.5147868", "0.5144633", "0.51444554", "0.51432085", "0.5139648", "0.5139341", "0.51341903", "0.5127659", "0.512627", "0.5122802", "0.5114822", "0.5110235", "0.5108636", "0.51006925", "0.51000196", "0.50995165", "0.509385", "0.50909793", "0.50890064", "0.5088004", "0.50866735", "0.5080968", "0.50795925", "0.5077142", "0.507673", "0.5067276", "0.5051296", "0.5050942", "0.5041866", "0.5039851", "0.5038219", "0.50308704", "0.5030196", "0.5017418", "0.50171715" ]
0.6725898
1
Check if this teleport request has expired
public boolean hasExpired() { return this.getOriginalTime() + TimeUnit.MINUTES.toMillis(2) < System.currentTimeMillis(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isExpired() {\n return age() > this.timeout;\n }", "public boolean hasExpired(){\n Date now = new Date();\n return now.after(getExpireTime());\n }", "boolean hasExpired();", "boolean isExpired();", "boolean expired();", "public boolean checkTimeout(){\n\t\tif((System.currentTimeMillis()-this.activeTime.getTime())/1000 >= this.expire){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isExpired() {\n final LocalDateTime now = LocalDateTime.now().minusSeconds(10L);\n return now.isAfter(startTime.plusMinutes(exam.getExamTime())) || endTime != null;\n }", "public boolean isExpired()\n\t{\n\t\tif (TimeRemaining == 0) \n\t\t\treturn true;\n\t\telse return false;\n\t}", "public boolean isExpired() {\n return getExpiration() <= System.currentTimeMillis() / 1000L;\n }", "@Override\n\tpublic boolean isExpired();", "public boolean isExpired() {\n return System.currentTimeMillis() > this.expiry;\n }", "public boolean isExpired() {\n return expired;\n }", "public boolean isExpired() {\n return expired;\n }", "public boolean isExpired() {\n\n return this.expiration.before(new Date());\n }", "public boolean isExpired()\n {\n long dtExpiry = m_dtExpiry;\n return dtExpiry != 0 && dtExpiry < getSafeTimeMillis();\n }", "public boolean isExpired() {\n return ((System.currentTimeMillis() - this.createdTime) >= expiryTime);\n }", "@Override\n\tpublic boolean isExpired() {\n\t\treturn model.isExpired();\n\t}", "boolean checkForExpiration() {\n boolean expired = false;\n\n // check if lease exists and lease expire is not MAX_VALUE\n if (leaseId > -1 && leaseExpireTime < Long.MAX_VALUE) {\n\n long currentTime = getCurrentTime();\n if (currentTime > leaseExpireTime) {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[checkForExpiration] Expiring token at {}: {}\",\n currentTime, this);\n }\n noteExpiredLease();\n basicReleaseLock();\n expired = true;\n }\n }\n\n return expired;\n }", "public boolean accessTokenExpired() {\n Date currentTime = new Date();\n if ((currentTime.getTime() - lastAccessTime.getTime()) > TIMEOUT_PERIOD) {\n return true;\n } else {\n return false;\n }\n }", "public boolean mayHaveExpired() {\n return mayHaveExpired;\n }", "public boolean isExpired() {\n\t\treturn this.maturityDt.before(Calendar.getInstance().getTime());\n\t}", "public boolean isExpired() {\n\t\t// Return whether the exipred after time has passed in American Samoa\n\t\treturn getSamoaNow().after(this.expiredAfter);\n\t}", "boolean isExpire(long currentTime);", "public boolean hasExpired() {\n return (time.milliseconds() - this.lastRecordTime) > this.inactiveSensorExpirationTimeMs;\n }", "boolean isAccountNonExpired();", "boolean isAccountNonExpired();", "@Override\r\n public boolean isAccountNonExpired() {\r\n return true;\r\n }", "public boolean hasExpire() {\n return result.hasExpire();\n }", "public boolean hasExpire() {\n return result.hasExpire();\n }", "public boolean hasExpire() {\n return result.hasExpire();\n }", "public boolean isExpired(){\r\n float empty = 0.0f;\r\n return empty == getAmount();\r\n \r\n }", "boolean hasExpiry();", "private boolean hasCoolOffPeriodExpired(Jwt jwt) {\n\n Date issuedAtTime = jwt.getClaimsSet().getIssuedAtTime();\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.set(Calendar.MILLISECOND, 0);\n calendar.add(Calendar.MINUTE, -1);\n\n return calendar.getTime().compareTo(issuedAtTime) > 0;\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "public Boolean isExpired() {\n\t\tCalendar today = Calendar.getInstance();\n\t\treturn today.get(Calendar.DAY_OF_YEAR) != date.get(Calendar.DAY_OF_YEAR);\n\t}", "public boolean hasExpired(Map params, Date since) \r\n\t{\t\t\r\n \treturn (System.currentTimeMillis() - since.getTime()) > 5000;\r\n\t}", "public boolean expired(){\n return !Period.between(dateOfPurchase.plusYears(1), LocalDate.now()).isNegative();\n }", "public boolean isExpired() {\r\n if (expiresDate != null) {\r\n Date rightNow = new Date();\r\n return expiresDate.before(rightNow);\r\n }\r\n return false;\r\n }", "@Override\n public boolean isAccountNonExpired () {\n return true;\n }", "public void checkExpiration(){\n //Will grab the time from the timer and compare it to the job expiration\n //Then will grab each jobID that is expired\n //Will then add it to a String array\n //then remove all those jobs in the String array\n //return true if found\n\n for(int i=0; i < jobs.size(); i++){\n currentJob = jobs.get(i);\n if(currentJob.getExpData().compareTo(JobSystemCoordinator.timer.getCurrentDate())==0){\n currentJob.setStatus(\"EXPIRED\");\n }\n }\n }", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "@Override\n\t\t\t\tpublic boolean isAccountNonExpired() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public boolean isExpired(long currentTimeMs) {\n return this.contextSet.isExpired(currentTimeMs);\n }", "@Override\r\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\r\n\t}", "public boolean hasExpired() {\n return (System.currentTimeMillis() - lastUpdate) > IMAGE_CACHE_EXPIRE;\n }", "public boolean checkTokenExpiry() {\n //System.out.println(\"Checking token expiry...\");\n Date now = new Date();\n long nowTime = now.getTime();\n //Date expire;\n Date tokenEXPClaim;\n long expires;\n try {\n DecodedJWT recievedToken = JWT.decode(currentAccessToken);\n tokenEXPClaim = recievedToken.getExpiresAt();\n expires = tokenEXPClaim.getTime();\n //System.out.println(\"Now is \"+nowTime);\n //System.out.println(\"Expires at \"+expires);\n //System.out.println(\"Expired? \"+(nowTime >= expires));\n return nowTime >= expires;\n } \n catch (Exception exception){\n System.out.println(\"Problem with token, no way to check expiry\");\n System.out.println(exception);\n return true;\n }\n \n }", "boolean hasExpiryTimeSecs();", "@Override\r\n\tpublic boolean isAccountNonExpired() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isAccountNonExpired() {\n\t\treturn false;\r\n\t}", "@Override\n public boolean isAccountNonExpired() {\n return !locked;\n }", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "public boolean isAccountNonExpired() {\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean isAccountNonExpired()\n\t{\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn false;\n\t}", "public boolean isAccountNonExpired() {\n\t\treturn false;\r\n\t}", "private boolean isExpired(CacheableObject value) {\n if (value == null) {\n return false;\n } else {\n return System.currentTimeMillis() - value.createTime > timeToLive;\n }\n }", "public boolean isExpiredAt(long ldtNow)\n {\n return m_metaInf.isExpiredAt(ldtNow);\n }", "public boolean isAccountNonExpired() {\n\t\treturn false;\n\t}", "public boolean isAccountNonExpired() {\n\t\treturn false;\n\t}", "@Override\npublic boolean isAccountNonExpired() {\n\treturn true;\n}", "public boolean isAccountNonExpired() {\n\t\treturn true;\n\t}", "boolean isCredentialsNonExpired();", "boolean isCredentialsNonExpired();", "private boolean isReqTimeFresh(Date reqTime, String username) {\r\n\t\tDate oldReqTime = oldRequestTimes.get(username); \r\n\t\tif(oldReqTime!= null && oldReqTime.equals(reqTime))\r\n\t\t\tthrow new RuntimeException(\"This request has been sent before.\");\r\n\t\t\r\n\t\tDate current = new Date();\r\n\t\treturn current.getTime() - 750 < reqTime.getTime() && reqTime.getTime() < current.getTime() + 750;\r\n\t}", "boolean hasDepositEndTime();", "boolean hasExpirationDate();", "@Override\npublic boolean isAccountNonExpired() {\n\treturn false;\n}", "public boolean isEnd() { return (_dateExpiration - System.currentTimeMillis()) <= 0; }", "boolean hasResponseTimeSec();", "public boolean isLate(){\n Date d = givenBack != null ? givenBack : new Date();\n return expirationDate.before(d);\n }", "public boolean isSecurityTokenExpired() {\n return System.currentTimeMillis() > securityTokenExpiryTime || isExpired();\n }", "public boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}", "public final boolean hasExpired(long curTime) {\n\t if ( m_tmo == NoTimeout)\n\t \treturn false;\n\t if ( curTime > m_tmo)\n\t \treturn true;\n\t return false;\n\t}", "Duration getTokenExpiredIn();", "public boolean isCredentialsNonExpired() {\n\t\treturn false;\r\n\t}", "boolean isExpired(int userId);", "int getExpireTimeout();", "public boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "public boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "public boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}" ]
[ "0.7298629", "0.71632266", "0.7161093", "0.7066944", "0.7060938", "0.70458436", "0.7043375", "0.70252556", "0.70064867", "0.69570893", "0.6929022", "0.6864606", "0.6864606", "0.674187", "0.6706869", "0.6706126", "0.6693568", "0.6652967", "0.66494495", "0.66004574", "0.65991163", "0.65262663", "0.64439106", "0.63923943", "0.63819724", "0.63819724", "0.6354839", "0.6337506", "0.6337506", "0.6337506", "0.62934303", "0.6286696", "0.62823737", "0.6274542", "0.6274542", "0.6274542", "0.62740576", "0.6261479", "0.6254517", "0.62430984", "0.6231437", "0.622263", "0.62106574", "0.62106574", "0.62106574", "0.62008905", "0.6199882", "0.6192506", "0.6192506", "0.61924165", "0.6186824", "0.6173205", "0.6162299", "0.6162299", "0.6159248", "0.6155224", "0.6155224", "0.6155224", "0.6155224", "0.6155224", "0.6155224", "0.6155224", "0.6155224", "0.6155224", "0.6155224", "0.6155224", "0.6155224", "0.6155224", "0.6155224", "0.61439496", "0.6135147", "0.6134298", "0.6134298", "0.6134298", "0.613197", "0.609492", "0.60907537", "0.6086103", "0.6086103", "0.60819834", "0.60714036", "0.60615313", "0.60615313", "0.60559684", "0.60482246", "0.6016251", "0.6014279", "0.60118705", "0.6011034", "0.59924597", "0.597007", "0.59624386", "0.59489256", "0.59385294", "0.5938375", "0.593637", "0.5933873", "0.5923923", "0.5923923", "0.59234285" ]
0.7214568
1
Fetches the Swing component. Also supplies this object with a background color.
@Override public Component getComponent() { Component component = button.getComponent(); component.setBackground(color); return component; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JComponent getComponent();", "@Override\n public JComponent getComponent () {\n return this;\n }", "public abstract JComponent getComponent();", "@Override\n\tpublic Component getComponent() {\n\t\treturn this;\n\t}", "public JComponent getComponent() {\n return getGradleUI().getComponent();\n }", "protected final Component getComponent()\n\t{\n\t\treturn component;\n\t}", "public JComponent getComponent() {\n return itsComp;\n }", "public Component getComponent() {\n return component;\n }", "JComponent getImpl();", "public JComponent getComponent() { return _panel; }", "JComponent getRenderComponent();", "public Component getComponent() {\n\treturn component;\n}", "public JComponent toSwingComponent();", "public JComponent getWidget() {\n return itsComp;\n }", "public JComponent getWrappedComponent()\n {\n return field;\n }", "@Override\n\tpublic Component getComponent() {\n\t\treturn p;\n\t}", "@Override\n public Component getUiComponent() {\n return this;\n }", "public Color getBackground()\r\n\t{\r\n\t\treturn _g2.getBackground();\r\n\t}", "public static Color getColor() { return lblColor.getBackground(); }", "@Override\n public Component getComponent() {\n if (component == null) {\n component = new PubMLSTVisualPanel2();\n }\n component.setPreferredSize(new java.awt.Dimension(480,340));\n return component;\n }", "private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(null);\r\n\t\t\tjPanel.add(getJPanelPreview(), null);\r\n\t\t\tjPanel.add(getJButtonOK(), null);\r\n\t\t\tjPanel.add(getJButtonCancel(), null);\r\n\t\t\tjPanel.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t \tpublic void mousePressed(java.awt.event.MouseEvent e) {\r\n\t \t\tJPanel jp = (JPanel)jPanel.getComponentAt(e.getPoint());\r\n\t \t\tcolor = jp.getBackground();\r\n\t \t\tsetPreviewColor();\r\n\t \t}\r\n\t });\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}", "public Color getBackground();", "@Override\n\tpublic ElementView getComponent() {\n\t\treturn jc;\n\t}", "public Component getComponent() {\n if (getUserObject() instanceof Component)\n return (Component)getUserObject();\n return null;\n }", "public UiBackground getBackground() {\n if (getBackground == null)\n getBackground = new UiBackground(jsBase + \".background()\");\n\n return getBackground;\n }", "public String getComponent() {\n return this.component;\n }", "public X background(Color bg) {\n component.setBackground(bg);\n return (X) this;\n }", "private JProgressBar getJProgressBar() {\n\t\tif (jProgressBar == null) {\n\t\t\tjProgressBar = new JProgressBar();\n\t\t\tjProgressBar.setBounds(new Rectangle(40, 492, 381, 19));\n\t\t\tjProgressBar.setStringPainted(false);\n\t\t\tjProgressBar.setBackground(Color.white);\n\t\t}\n\t\treturn jProgressBar;\n\t}", "public String getComponent() {\r\n\t\treturn component;\r\n\t}", "public JComponent getContentComponent() {\r\n return this;\r\n }", "public Color askForColor(JComponent targetComponent, boolean foreground) {\r\n\t\t\r\n\t\tthisChooser = this;\r\n\t\tcolorEsit = false;\r\n\t\tString title = (foreground)? \"Choose Text color\" : \"Choose Background color\";\r\n\t\tColor backupColor;\r\n\t\tbackupColor = (foreground)? targetComponent.getForeground() : targetComponent.getBackground();\r\n\t\t\r\n\t\tthisChooser.getSelectionModel().setSelectedColor(backupColor);\r\n\t\tthisChooser.getSelectionModel().addChangeListener(new ChangeListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void stateChanged(ChangeEvent e) {\r\n\t\t\t\tif (foreground) {\r\n\t\t\t\t\ttargetComponent.setForeground(thisChooser.getColor());\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttargetComponent.setBackground(thisChooser.getColor());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcolorChangedAction.colorChanged(thisChooser.getColor());\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t JDialog dialog = JColorChooser.createDialog(targetComponent, title, true, thisChooser, new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override // OK\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tColor color = thisChooser.getColor();\r\n\t\t\t\tif (color != null) {\r\n\t\t\t\t\tif (foreground) {\r\n\t\t\t\t\t\ttargetComponent.setForeground(color);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttargetComponent.setBackground(color);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcolorChangedAction.colorChanged(thisChooser.getColor());\r\n\t\t\t\t\tcolorEsit = true;\r\n\t\t }\t\t\t\r\n\t\t\t}\r\n\t\t}, new ActionListener() {\r\n\t\t\t@Override // NO\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (foreground) {\r\n\t\t\t\t\ttargetComponent.setForeground(backupColor);\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttargetComponent.setBackground(backupColor);\r\n\t\t\t\t}\r\n\t\t\t\tcolorChangedAction.colorChanged(backupColor);\r\n\t\t\t\tcolorEsit = false;\r\n\t\t\t}\r\n\t\t});\r\n\t\tdialog.setVisible(true);\r\n\t\t\r\n\t\tif(colorEsit) {\r\n\t\t\treturn thisChooser.getColor();\r\n\t\t}else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public Paint getBackground() {\r\n return background;\r\n }", "private JPanel getJPanelColor() {\r\n\t\tif (jPanelColor == null) {\r\n\t\t\tjPanelColor = new JPanel();\r\n\t\t\tjPanelColor.setBackground(color);\r\n\t\t\tjPanelColor.setLayout(null);\r\n\t\t\tjPanelColor.setBounds(new Rectangle(21, 29, 68, 52));\r\n\t\t\tjPanelColor.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));\r\n\t\t}\r\n\t\treturn jPanelColor;\r\n\t}", "public java.awt.Color getColor() {\r\n return this.color;\r\n }", "public JPanel getJPanel();", "public JPanel getJPanel();", "public Object getComponentEditPart() {\n\t\treturn componentEditPart;\n\t}", "C getGlassPane();", "@Override\n public SelectCurriculumVisualPanel getComponent() {\n if (component == null) {\n component = new SelectCurriculumVisualPanel();\n component.manager.addPropertyChangeListener(this);\n }\n return component;\n }", "@Override\n\tpublic Component getComponent() {\n\t\treturn toolbox;\n\t}", "public abstract JComponent[] getComponents();", "public java.awt.Color getColor() {\n return this.color;\n }", "public java.awt.Color getColor() {\n return this.color;\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 Color getColor() { return color.get(); }", "public JawbComponent getMainComponent () {\n return null;\n }", "public AddBooking() {\n initComponents();\n getContentPane().setBackground(Color.orange);\n }", "public java.awt.Color getColor() {\r\n return color;\r\n }", "public native final String backgroundColor() /*-{\n\t\treturn this.backgroundColor;\n\t}-*/;", "public Color getBackgroundColor()\n {\n return backgroundColor;\n }", "public ColorPanel() {\r\n setLayout(null);\r\n\r\n chooser = new ColorChooserComboBox[8];\r\n chooserLabel = new JLabel[8];\r\n String[][] text = new String[][] {\r\n {\"Hintergrund\", \"Background\"},\r\n {\"Kante I\", \"Edge I\"},\r\n {\"Kante II\", \"Edge II\"},\r\n {\"Gewicht\", \"Weight\"},\r\n {\"Kantenspitze\", \"Edge Arrow\"},\r\n {\"Rand der Knoten\", \"Node Borders\"},\r\n {\"Knoten\", \"Node Background\"},\r\n {\"Knoten Kennzeichnung\", \"Node Tag\"}};\r\n\r\n for (int i = 0; i < 8; i++) {\r\n createChooser(i, text[i], 10 + 30 * i);\r\n }\r\n\r\n add(createResetButton());\r\n add(createApplyButton());\r\n add(createReturnButton());\r\n\r\n setColorSelection();\r\n this.changeLanguageSettings(mainclass.getLanguageSettings());\r\n }", "@SuppressWarnings(\"unchecked\")\n private void create() {\n components.clear();\n\n if (content != null) {\n content.clearChildren();\n }\n else {\n content = new Container();\n content.setInsets(INSETS);\n }\n\n GuiComponent guiComponent = (GuiComponent) getReflectedItem().getValue();\n\n // let the user choose which type of backgroundComponent they want.\n Label label = content.addChild(new Label(\"Type\"), 0, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n Container backgroundTypeContainer = content.addChild(new Container(), 0, 1);\n\n ColorRGBA oldColor = BackgroundUtils.getBackgroundColor(guiComponent);\n\n Button colorOnlyBgButton = backgroundTypeContainer.addChild(new Button(\"Color Only\"), 0, 0);\n colorOnlyBgButton.addClickCommands(source -> {\n if (!(guiComponent instanceof QuadBackgroundComponent)) {\n setValue(new QuadBackgroundComponent(oldColor));\n create();\n }\n });\n\n Button colorAndImageBgButton = backgroundTypeContainer.addChild(new Button(\"Color and Image\"), 0, 1);\n colorAndImageBgButton.addClickCommands(source -> {\n if (!(guiComponent instanceof TbtQuadBackgroundComponent)) {\n setValue(BackgroundComponents.gradient(oldColor));\n create();\n }\n });\n\n if (guiComponent instanceof QuadBackgroundComponent) {\n\n try {\n\n Method getter = QuadBackgroundComponent.class.getDeclaredMethod(\"getColor\");\n Method setter = QuadBackgroundComponent.class.getDeclaredMethod(\"setColor\", ColorRGBA.class);\n\n label = content.addChild(new Label(\"Color\"), 1, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n\n ColorRGBAComponent bgColorComponent = new ColorRGBAComponent(guiComponent, getter, setter);\n content.addChild(bgColorComponent.getPanel(), 1, 1);\n components.add(bgColorComponent);\n\n // margin\n getter = QuadBackgroundComponent.class.getDeclaredMethod(\"getMargin\");\n setter = QuadBackgroundComponent.class.getDeclaredMethod(\"setMargin\", Vector2f.class);\n\n label = content.addChild(new Label(\"Margin\"), 2, 0);\n Vector2fComponent marginComponent = new Vector2fComponent(guiComponent, getter, setter);\n content.addChild(marginComponent.getPanel(), 2, 1);\n components.add(marginComponent);\n\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n }\n\n }\n else if (guiComponent instanceof TbtQuadBackgroundComponent) {\n\n TbtQuadBackgroundComponent backgroundComponent = (TbtQuadBackgroundComponent) guiComponent;\n\n try {\n Method getter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"getColor\");\n Method setter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"setColor\", ColorRGBA.class);\n\n label = content.addChild(new Label(\"Color\"), 1, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n\n ColorRGBAComponent bgColorComponent = new ColorRGBAComponent(guiComponent, getter, setter);\n content.addChild(bgColorComponent.getPanel(), 1, 1);\n components.add(bgColorComponent);\n\n label = content.addChild(new Label(\"Image\"), 2, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n\n Button browseImageButton = content.addChild(new Button(\"Select Background Image...\"), 2, 1);\n browseImageButton.setTextVAlignment(VAlignment.Center);\n browseImageButton.addClickCommands(source -> {\n\n JFileChooser jfc = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n jfc.setDialogTitle(\"Select a Background Image...\");\n jfc.setMultiSelectionEnabled(false);\n jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n jfc.setAcceptAllFileFilterUsed(false);\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"PNG Images\", \"png\");\n jfc.addChoosableFileFilter(filter);\n int returnValue = jfc.showOpenDialog(null);\n\n if (returnValue == JFileChooser.APPROVE_OPTION) {\n\n File file = jfc.getSelectedFile();\n\n\n try {\n\n byte[] imageData = Files.readAllBytes(file.toPath());\n byte[] stringData = Base64.getEncoder().encode(imageData);\n\n String imageString = new String(stringData);\n\n // PanelBackground panelBackground = (PanelBackground) getReflectedProperty().getValue();\n // panelBackground.setBase64Image(imageString);\n\n Texture texture = new TextureUtils().fromBase64(imageString);\n\n backgroundComponent.setTexture(texture);\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n });\n\n // margin\n getter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"getMargin\");\n setter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"setMargin\", Vector2f.class);\n\n label = content.addChild(new Label(\"Margin\"), 3, 0);\n Vector2fComponent marginComponent = new Vector2fComponent(guiComponent, getter, setter);\n content.addChild(marginComponent.getPanel(), 3, 1);\n components.add(marginComponent);\n\n\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n }\n\n }\n\n//\n// this.content = new RollupPanel(\"\", contentContainer, null);\n// this.content.setOpen(false);\n//\n// // background Image\n// Container bgImageContainer = contentContainer.addChild(new Container(new SpringGridLayout(Axis.Y, Axis.X, FillMode.Last, FillMode.Last)), 0, 0);\n// Label bgImageLabel = bgImageContainer.addChild(new Label(\"Background Image\"), 0, 0);\n// bgImageLabel.setTextVAlignment(VAlignment.Center);\n// bgImageLabel.setInsets(new Insets3f(0.0F, 2.0F, 0.0F, 5.0F));\n// Button browseImageButton = bgImageContainer.addChild(new Button(\"Browse...\"), 0, 1);\n// Button removeImageButton = bgImageContainer.addChild(new Button(\"Remove\"), 0, 2);\n// bgImageContainer.addChild(new Container(), 0, 3);\n//\n// browseImageButton.addClickCommands(source -> {\n//\n// JFileChooser jfc = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n// jfc.setDialogTitle(\"Select a Background Image...\");\n// jfc.setMultiSelectionEnabled(false);\n// jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n// jfc.setAcceptAllFileFilterUsed(false);\n// FileNameExtensionFilter filter = new FileNameExtensionFilter(\"PNG Images\", \"png\");\n// jfc.addChoosableFileFilter(filter);\n// int returnValue = jfc.showOpenDialog(null);\n//\n// if (returnValue == JFileChooser.APPROVE_OPTION) {\n//\n// File file = jfc.getSelectedFile();\n//\n// try {\n// byte[] imageData = Files.readAllBytes(file.toPath());\n// byte[] stringData = Base64.getEncoder().encode(imageData);\n//\n// String imageString = new String(stringData);\n//\n// PanelBackground panelBackground = (PanelBackground) getReflectedProperty().getValue();\n// panelBackground.setBase64Image(imageString);\n//\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// }\n//\n// });\n//\n// removeImageButton.addClickCommands(source -> {\n// PanelBackground panelBackground = (PanelBackground) getReflectedProperty().getValue();\n// panelBackground.setBase64Image(\"\");\n// });\n//\n//\n// try {\n//\n// // color\n// Method get = PanelBackground.class.getMethod(\"getColor\");\n// Method set = PanelBackground.class.getMethod(\"setColor\", ColorRGBA.class);\n//\n// ColorRGBAComponent bgColorComponent = new ColorRGBAComponent(getReflectedProperty().getValue(), get, set);\n// bgColorComponent.setPropertyName(\"Color\");\n// contentContainer.addChild(bgColorComponent.getPanel());\n// components.add(bgColorComponent);\n//\n// // insetTop\n// get = PanelBackground.class.getMethod(\"getInsetTop\");\n// set = PanelBackground.class.getMethod(\"setInsetTop\", int.class);\n//\n// IntComponent insetTopComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetTopComponent.setPropertyName(\"Inset Top\");\n// contentContainer.addChild(insetTopComponent.getPanel());\n// components.add(insetTopComponent);\n//\n// // insetLeft\n// get = PanelBackground.class.getMethod(\"getInsetLeft\");\n// set = PanelBackground.class.getMethod(\"setInsetLeft\", int.class);\n//\n// IntComponent insetLeftComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetLeftComponent.setPropertyName(\"Inset Left\");\n// contentContainer.addChild(insetLeftComponent.getPanel());\n// components.add(insetLeftComponent);\n//\n// // insetBottom\n// get = PanelBackground.class.getMethod(\"getInsetBottom\");\n// set = PanelBackground.class.getMethod(\"setInsetBottom\", int.class);\n//\n// IntComponent insetBottomComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetBottomComponent.setPropertyName(\"Inset Bottom\");\n// contentContainer.addChild(insetBottomComponent.getPanel());\n// components.add(insetBottomComponent);\n//\n// // insetRight\n// get = PanelBackground.class.getMethod(\"getInsetRight\");\n// set = PanelBackground.class.getMethod(\"setInsetRight\", int.class);\n//\n// IntComponent insetRightComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetRightComponent.setPropertyName(\"Inset Right\");\n// contentContainer.addChild(insetRightComponent.getPanel());\n// components.add(insetRightComponent);\n//\n// // zOffset\n// get = PanelBackground.class.getMethod(\"getzOffset\");\n// set = PanelBackground.class.getMethod(\"setzOffset\", float.class);\n//\n// FloatComponent zOffsetComponent = new FloatComponent(getReflectedProperty().getValue(), get, set);\n// zOffsetComponent.setPropertyName(\"Z-Offset\");\n// contentContainer.addChild(zOffsetComponent.getPanel());\n// components.add(zOffsetComponent);\n//\n// } catch (NoSuchMethodException e) {\n// e.printStackTrace();\n// }\n\n\n }", "public GComponent getFocusedComponent()\n {\n return this.focusedComponent;\n }", "Component getComponent() {\n/* 224 */ return this.component;\n/* */ }", "public Control getControl()\n {\n return composite;\n }", "public Color getBackground(){\r\n return back;\r\n }", "@SuppressWarnings(\"unchecked\")\n public <T extends Component> T getComponent() {\n try {\n return (T) component;\n } catch (ClassCastException ex) {\n getLogger().log(Level.SEVERE,\n \"Component code/design type mismatch\", ex);\n }\n return null;\n }", "@Override\n public GeneralOrthoMclSettingsVisualPanel getComponent() {\n if (component == null) {\n component = new GeneralOrthoMclSettingsVisualPanel();\n\n }\n return component;\n }", "public Entity getComponent() {\n return component;\n }", "public Component load(){\n\t\treturn this;\n\t}", "public JPanel getPanel()\r\n\t {\r\n\t JPanel result = new JPanel();\r\n\t spinner = new JSpinner();\r\n\t spinner.setPreferredSize(new Dimension(50, 50));\r\n\t spinner.setAlignmentY(1.5F);\r\n\t result.add(spinner);\r\n\t return result;\r\n\t }", "public JFormattedTextField getEditComponent() {\r\n\t\tif(m_editComponent==null) {\r\n\t\t\t// create\r\n\t\t\tm_editComponent = createDefaultComponent(true,m_documentListener);\r\n\t\t\t//m_editComponent.getDocument().addDocumentListener(m_documentListener);\r\n\t\t}\r\n\t\treturn m_editComponent;\r\n\t}", "public JComponent getPodContent() {\r\n return this;\r\n }", "public RoundPanelOJ() {\n initComponents();\n setOpaque(false);\n }", "public Component getPopupComponent() {\r\n return _component;\r\n }", "public form1() {\n initComponents();\n\n this.getContentPane().setBackground(Color.orange);\n\n }", "protected Node getComponentNode() {\n return componentNode;\n }", "private JComboBox getCardColor() {\n\t\tif (cardColor == null) {\n\t\t\tcardColor = new JComboBox();\n\t\t\tcardColor.setModel(new TypeModel(TypeModel.valueMast_cards));\n\t\t\tcardColor.setSelectedIndex(0);\n\t\t}\n\t\treturn cardColor;\n\t}", "public Color getColor() {\n return this.color;\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 Color getColor() {\r\n return this.color;\r\n }", "public Component getTableCellEditorComponent(JTable table, Object value,\n boolean hasFocus, int row, int column) {\n \n currentColor = (Color)value;\n lastRow = row;\n return colorEditButton;\n }", "@Override\n\tpublic JPanel getPanel()\n\t{\n\t\treturn panel;\n\t}", "public JComponent getMainComponent() {\n\t return mainPanel;\n\t}", "public DrawComponent() {\n if (screen == null) {\n screen = Screen.getScreen();\n }\n\n // generate a random color\n color = screen.color(screen.random(255), screen.random(255), screen.random(255)); //random color\n }", "JPanel getPanel();", "protected void paintComponentWithPainter(Graphics2D g)\n/* */ {\n/* 200 */ if (this.ui != null)\n/* */ {\n/* */ \n/* */ \n/* 204 */ Graphics2D scratchGraphics = (Graphics2D)g.create();\n/* */ try {\n/* 206 */ scratchGraphics.setColor(getBackground());\n/* 207 */ scratchGraphics.fillRect(0, 0, getWidth(), getHeight());\n/* 208 */ paintPainter(g);\n/* 209 */ this.ui.paint(scratchGraphics, this);\n/* */ }\n/* */ finally {\n/* 212 */ scratchGraphics.dispose();\n/* */ }\n/* */ }\n/* */ }", "public Component getListCellRendererComponent(JList jlist, \n Object value, \n int cellIndex, \n boolean isSelected, \n boolean cellHasFocus)\n {\n if (value instanceof JPanel)\n {\n Component component = (Component) value;\n component.setForeground (Color.white);\n component.setBackground (isSelected ? UIManager.getColor(\"Table.focusCellForeground\") : Color.white);\n return component;\n }\n else\n {\n // TODO - I get one String here when the JList is first rendered; proper way to deal with this?\n //System.out.println(\"Got something besides a JPanel: \" + value.getClass().getCanonicalName());\n return new JLabel(\"???\");\n }\n }", "@Override\n public void paintComponent(final Graphics g) {\n if (!isOpaque()) {\n super.paintComponent(g);\n return;\n }\n \n // use value of JTextField for consistency\n g.setColor(UIManager.getColor(\"TextField.inactiveBackground\"));\n g.fillRect(3, 3, getWidth() - 6, getHeight() - 6);\n \n // do rest, changing opaque to ensure background is not overwritten\n setOpaque(false);\n super.paintComponent(g);\n setOpaque(true);\n }", "public JawbComponent getEditorComponent () {\n if (editorComponent == null)\n initEditorComponent ();\n return editorComponent;\n }", "public Color getColor()\n {\n return color;\n }", "void createDialogComponents(Color color) {\r\n GridBagConstraints constr = new GridBagConstraints();\r\n constr.gridwidth = 1;\r\n constr.gridheight = 4;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n\r\n constr.gridx = 0;\r\n constr.gridy = 0;\r\n\r\n // Create color wheel canvas\r\n colorCanvas = new ColorCanvas(50, color);\r\n add(colorCanvas, constr);\r\n\r\n // Create input boxes to enter values\r\n Font font = new Font(\"DialogInput\", Font.PLAIN, 10);\r\n redInput = new TextField(3);\r\n redInput.addFocusListener(this);\r\n redInput.setFont(font);\r\n greenInput = new TextField(3);\r\n greenInput.addFocusListener(this);\r\n greenInput.setFont(font);\r\n blueInput = new TextField(3);\r\n blueInput.addFocusListener(this);\r\n blueInput.setFont(font);\r\n\r\n // Add the input boxes and labels to the component\r\n Label label;\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.SOUTH;\r\n constr.insets = new Insets(0, 0, 0, 0);\r\n constr.gridx = 1;\r\n constr.gridy = 0;\r\n label = new Label(\"Red:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n label = new Label(\"Green:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTH;\r\n label = new Label(\"Blue:\", Label.RIGHT);\r\n add(label, constr);\r\n\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.SOUTHWEST;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.gridx = 2;\r\n constr.gridy = 0;\r\n add(redInput, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.WEST;\r\n add(greenInput, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTHWEST;\r\n add(blueInput, constr);\r\n\r\n // Add color swatches\r\n Panel panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 4, 4));\r\n oldSwatch = new ColorSwatch(false);\r\n oldSwatch.setForeground(color);\r\n panel.add(oldSwatch);\r\n newSwatch = new ColorSwatch(false);\r\n newSwatch.setForeground(color);\r\n panel.add(newSwatch);\r\n\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 1;\r\n constr.gridy = 3;\r\n constr.gridwidth = 2;\r\n add(panel, constr);\r\n\r\n // Add buttons\r\n panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 10, 2));\r\n Font buttonFont = new Font(\"SansSerif\", Font.BOLD, 12);\r\n okButton = new Button(\"Ok\");\r\n okButton.setFont(buttonFont);\r\n okButton.addActionListener(this);\r\n cancelButton = new Button(\"Cancel\");\r\n cancelButton.addActionListener(this);\r\n cancelButton.setFont(buttonFont);\r\n panel.add(okButton);\r\n panel.add(cancelButton);\r\n\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 0;\r\n constr.gridy = 4;\r\n constr.gridwidth = 3;\r\n add(panel, constr);\r\n }", "public Color getColor() {\n return this.color;\n }", "public Color getColor() {\n return this.color;\n }", "public Color getColor() {\n return this.color;\n }", "JComponent makeColorBox(final String cmd, Color color) {\n\n ColorSwatchComponent swatch = new ColorSwatchComponent(getStore(), color,\n \"Set Color\") {\n public void userSelectedNewColor(Color c) {\n super.userSelectedNewColor(c);\n try {\n if (cmd.equals(CMD_RAD_COLOR)) {\n rangeRings.setAzimuthLineColor(radColor = c);\n } else if (cmd.equals(CMD_RR_COLOR)) {\n rangeRings.setRangeRingColor(rrColor = c);\n } else if (cmd.equals(CMD_LBL_COLOR)) {\n rangeRings.setLabelColor(lblColor = c);\n }\n if (linkColorAndLineWidthButton.isSelected()) {\n rangeRings.setAzimuthLineColor(radColor = c);\n rangeRings.setRangeRingColor(rrColor = c);\n rangeRings.setLabelColor(lblColor = c);\n radColorSwatch.setBackground(c);\n rrColorSwatch.setBackground(c);\n lblColorSwatch.setBackground(c);\n }\n } catch (Exception exc) {\n logException(\"setting color\", exc);\n }\n }\n };\n return swatch;\n /*\n JComboBox jcb = getDisplayConventions().makeColorSelector(color);\n jcb.addActionListener(this);\n jcb.setActionCommand(cmd);\n return jcb;\n */\n }", "private JPanel getJPanelColorModel() {\r\n\t\tjPanelColorModel = new JPanel();\r\n\t\t//jPanelColorModel.setLayout(new BoxLayout(jPanelColorModel, BoxLayout.X_AXIS));\r\n\t\tjPanelColorModel.setLayout(new FlowLayout(FlowLayout.CENTER, 0, 0));\r\n\t\tjPanelColorModel.setBorder(new TitledBorder(null, \"Color model\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\t\t\r\n\r\n\t\tjPanelColorModel.add(getJRadioButtonGrey());\r\n\t\tjPanelColorModel.add(getJRadioButtonColor());\r\n\t\tthis.setButtonGroupColorModel(); // Grouping of JRadioButtons\r\n\t\treturn jPanelColorModel;\r\n\t}", "private JPanel getJContentPane() {\r\n if (jContentPane == null) {\r\n jContentPane = new JPanel();\r\n jContentPane.setLayout(new BorderLayout());\r\n }\r\n return jContentPane;\r\n }", "public interface SwingDisplayable {\n\n /* constants */\n \n /* public methods */\n \n /**\n * Returns a Swing display of this.\n *\n * @return A JComponent that displays the state of this Object.\n */\n public JComponent toSwingComponent();\n\n}", "public Color getSelectedColor() {\n return this.selectedColor;\n }", "protected Image makeColorWheel() {\r\n int x, y;\r\n float[] hsb = new float[3];\r\n\r\n Image image = createImage(colorWheelWidth, colorWheelWidth);\r\n if (image == null)\r\n return null;\r\n\r\n Graphics g = image.getGraphics();\r\n\r\n g.setColor(getBackground());\r\n g.fillRect(0, 0, colorWheelWidth, colorWheelWidth);\r\n\r\n int offset = selectDiameter / 2;\r\n for (y = 0; y <= diameter; y++) {\r\n for (x = 0; x <= diameter; x++) {\r\n if (getColorAt(hsb, x, y, true)) {\r\n g.setColor(Color.getHSBColor(hsb[0], hsb[1], hsb[2]));\r\n g.drawLine(x + offset, y + offset, x + offset, y + offset);\r\n }\r\n }\r\n }\r\n g.dispose();\r\n return image;\r\n }", "public Color getColor() {\n\t\treturn (Color)p.getPaint();\n\t}", "private JButton getColorButton() {\r\n\t\tif (colorButton == null) {\r\n\t\t\tcolorButton = new JButton(); \r\n\t\t\tcolorButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/rtf_choosecolor.gif\")));\r\n\t\t\tcolorButton.setPreferredSize(new Dimension(23, 23));\r\n\t\t\tcolorButton.setBounds(new Rectangle(16, 1, 23, 20));\r\n\t\t\tcolorButton.setToolTipText(\"颜色编辑\");\r\n\t\t\tcolorButton.setActionCommand(\"colorButton\");\r\n\t\t\tcolorButton.addActionListener(this.buttonAction);\r\n\t\t}\r\n\t\treturn colorButton;\r\n\t}", "private JLabel getDchjComboBox() {\r\n\t\tif (dchjComboBox == null) {\r\n\t\t\tdchjComboBox = new JLabel();\r\n\t\t\tdchjComboBox.setForeground(color);\r\n\t\t\tdchjComboBox.setBounds(new Rectangle(96, 54, 90, 18));\r\n\t\t\tdchjComboBox.setText(name);\r\n\t\t}\r\n\t\treturn dchjComboBox;\r\n\t}", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "@Override\n\t\tpublic Color color() { return color; }", "public Object getCellEditorValue() {\n return currentColor;\n }", "public AppComponent component(){\n return mComponent;\n }" ]
[ "0.6923384", "0.6637307", "0.6553514", "0.64374983", "0.63703865", "0.6368328", "0.63224477", "0.6281499", "0.62753445", "0.6253776", "0.6203851", "0.60849386", "0.6060862", "0.60131645", "0.5987424", "0.5831103", "0.579893", "0.57371515", "0.5712596", "0.56823325", "0.5674419", "0.5672191", "0.565957", "0.56472707", "0.56170535", "0.5578183", "0.55725425", "0.5537914", "0.5537143", "0.55370605", "0.549378", "0.54924", "0.5481347", "0.5462785", "0.5454206", "0.5454206", "0.5447169", "0.54446715", "0.5422607", "0.5411043", "0.54100525", "0.54093826", "0.54093826", "0.5375439", "0.53715575", "0.5357261", "0.5353793", "0.5326263", "0.53142655", "0.5301821", "0.52953124", "0.5272209", "0.52675474", "0.5265662", "0.52625436", "0.5258724", "0.5250164", "0.52474064", "0.5245384", "0.5224064", "0.5209587", "0.52086467", "0.51888025", "0.5185174", "0.51829135", "0.51774704", "0.5176093", "0.51755434", "0.51677525", "0.5166786", "0.51617694", "0.51581144", "0.51572657", "0.5157112", "0.51541114", "0.51518667", "0.51511145", "0.5150732", "0.5140105", "0.5133892", "0.5128836", "0.5126459", "0.5120189", "0.5120189", "0.5120189", "0.511759", "0.51131386", "0.5106618", "0.51021063", "0.5100259", "0.5099945", "0.50963014", "0.5094092", "0.5093104", "0.50906754", "0.50906754", "0.50906754", "0.50855833", "0.5084372", "0.5080041" ]
0.73785716
0
throw new UnsupportedOperationException("Not supported yet.");
public void clientConnected(WonderlandClientSender sender, WonderlandClientID clientID, Properties properties) { logger.fine("client connected..."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "@Override\n public boolean isSupported() {\n return true;\n }", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public UnsupportedCycOperationException() {\n super();\n }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "void unavailable();", "void unavailable();", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "default boolean isDeprecated() {\n return false;\n }", "default T handleNull() {\n throw new UnsupportedOperationException();\n }", "public MissingMethodArgumentException() {\n }", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public A force_get()\n {\n throw new UnsupportedOperationException();\n }", "private Quantify()\n {\n throw new UnsupportedOperationException(\"Instantiation of utility classes is not supported.\");\n }", "private CompareDB () {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "public static void forward()\n {\n throw new UnsupportedOperationException();\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n throw new UnsupportedOperationException(\"not supported optional operation.\");\n }", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "static void m6826d() {\n throw new NoSuchMethodError();\n }", "@Override\n public ListIterator<T> listIterator() {\n throw new UnsupportedOperationException();\n }", "public static void back()\n {\n throw new UnsupportedOperationException();\n }", "@Override\n public String animationState() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "private ThreadUtil() {\n throw new UnsupportedOperationException(\"This class is non-instantiable\"); //$NON-NLS-1$\n }", "@Override\n\t\tpublic void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t\t// Iterator.super.remove();\n\t\t}", "public UnsupportedOperationException(@NotNull String str) {\n super(str, null);\n Intrinsics.checkParameterIsNotNull(str, \"message\");\n this.b = str;\n }", "@Override\n public boolean remove(Object o) {\n throw new UnsupportedOperationException(\"Remove not supported\");\n }", "@Override\r\n public void clear() {\r\n throw new UnsupportedOperationException(UNSUPPORTED);\r\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private NativeSupport() {\n\t}", "@Override\n\tpublic boolean isForceLoaded()\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}", "@Override\r\n public boolean remove(Object obj) {\r\n throw new UnsupportedOperationException(UNSUPPORTED);\r\n }", "@Override\n public V remove(Object obj) {\n throw new UnsupportedOperationException();\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n protected boolean matchesSafely(ReusableBuffer item) {\n throw new UnsupportedOperationException();\n }", "void notSupported(String errorcode);", "public boolean add(Object o) {\r\n throw new com.chimu.jdk12.java.lang.UnsupportedOperationException(); //UnsupportedOperationException();\r\n }", "public DTUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "public void remove()\n {\n throw new UnsupportedOperationException(\n \"remove() is not supported.\");\n }", "public String mo1262b() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "private void checkMutability()\n\t{\n\t\tif (immutable)\n\t\t{\n\t\t\tthrow new UnsupportedOperationException(\"Map is immutable\");\n\t\t}\n\t}", "private AppUtils() {\n throw new UnsupportedOperationException(\"cannot be instantiated\");\n }" ]
[ "0.76209044", "0.732105", "0.72922087", "0.71886545", "0.71294034", "0.71020085", "0.7070374", "0.7030918", "0.7030918", "0.6992831", "0.69775355", "0.6931478", "0.689979", "0.6877116", "0.6877116", "0.686053", "0.6859947", "0.68594235", "0.68457353", "0.68457353", "0.68457353", "0.68278104", "0.6795744", "0.679336", "0.67497295", "0.67470473", "0.67470473", "0.6732926", "0.6710624", "0.6695991", "0.6695991", "0.66873074", "0.66864747", "0.66776955", "0.6654852", "0.6637604", "0.6596537", "0.6585924", "0.6585924", "0.65840954", "0.6574944", "0.6571135", "0.6570091", "0.65613455", "0.65584135", "0.65434843", "0.6531329", "0.65264934", "0.65264934", "0.6510659", "0.6509669", "0.64854276", "0.64560497", "0.6429866", "0.640944", "0.6390793", "0.6355991", "0.63497746", "0.63427526", "0.6341468", "0.63387066", "0.63284147", "0.6325509", "0.63219184", "0.6321731", "0.63174623", "0.6306393", "0.6297321", "0.6292585", "0.62622637", "0.6253797", "0.6239063", "0.62341744", "0.6225949", "0.62252104", "0.62181294", "0.62092465", "0.6189989", "0.6179601", "0.6171193", "0.6158594", "0.61581147", "0.61459017", "0.6136849", "0.6136255", "0.6134709", "0.6134709", "0.6125999", "0.61157197", "0.61125183", "0.6110096", "0.6109583", "0.610189", "0.60999626", "0.60858244", "0.6084769", "0.6075298", "0.60639775", "0.60602725", "0.6054523", "0.60542315" ]
0.0
-1
Creates a new EPPFeeTst object.
public EPPFeeTst(String name) { super(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.PricePointTiersType createPricePointFullTypePricePointTiersType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.PricePointTiersTypeImpl();\n }", "public StudentFee() {\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointTierFullType createPricePointTierFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTierFullTypeImpl();\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType createPricePointFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl();\n }", "public FeeAccount ()\n {\n }", "public com.vodafone.global.er.decoupling.binding.request.ErServiceFullType.PricePointsType createErServiceFullTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ErServiceFullTypeImpl.PricePointsTypeImpl();\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointType createPricePointType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl();\n }", "public com.vodafone.global.er.decoupling.binding.request.ErServiceType.PricePointsType createErServiceTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ErServiceTypeImpl.PricePointsTypeImpl();\n }", "Etf()\n {\n super();\n extended = 'A';\n price = 2176.33;\n number = 10;\n }", "public static Points createEntity() {\n Points points = new Points()\n .date(DEFAULT_DATE)\n .exercise(DEFAULT_EXERCISE)\n .meals(DEFAULT_MEALS)\n .alcohol(DEFAULT_ALCOHOL)\n .notes(DEFAULT_NOTES);\n return points;\n }", "public ExemptedFeesVM() {\n list = new ArrayList<>();\n }", "public void createExpense(ExpenseBE expenseBE) {\n\n }", "public void setFee(int fee)\n {\n this.fee = fee;\n }", "public VenTransactionFee persistVenTransactionFee(VenTransactionFee venTransactionFee);", "public Tue4BmPayee() {\n this(DSL.name(\"tue4_bm_payee\"), null);\n }", "public FeeRefund create(Map<String, Object> params) throws StripeException {\n return create(params, (RequestOptions) null);\n }", "public FeeAccount (double minimumBalance, double transactionFee)\n {\n this.minimumBalance = minimumBalance;\n this.transactionFee = transactionFee;\n }", "public void setFee(BigDecimal fee) {\r\n this.fee = fee;\r\n }", "public Transaction(final TransactionType type, final BuddyAccount buddyOwner, final BuddyAccount buddyReceiver,\n final LocalDate date, final String description, final BigDecimal amount, final BigDecimal fee) {\n super();\n this.type = type;\n this.buddyOwner = buddyOwner;\n this.buddyReceiver = buddyReceiver;\n this.date = date;\n this.description = description;\n this.amount = amount;\n this.fee = fee;\n }", "public void setFee(BigDecimal fee) {\n this.fee = fee;\n }", "public com.vodafone.global.er.decoupling.binding.request.BasePrice createBasePrice()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.BasePriceImpl();\n }", "public com.vodafone.global.er.decoupling.binding.request.SuperCreditPricePointFullType createSuperCreditPricePointFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.SuperCreditPricePointFullTypeImpl();\n }", "public TAccountTicketFlow(){}", "public void setFee(AmountType fee) {\n\t this.fee = fee;\n\t}", "public static Test suite() {\n\t\tEPPCodecTst.initEnvironment();\n\n\t\tTestSuite suite = new TestSuite(EPPFeeTst.class);\n\n\t\t// iterations Property\n\t\tString numIterProp = System.getProperty(\"iterations\");\n\n\t\tif (numIterProp != null) {\n\t\t\tnumIterations = Integer.parseInt(numIterProp);\n\t\t}\n\n\t\t// Add the EPPNSProductExtFactory to the EPPCodec.\n\t\ttry {\n\t\t\tEPPFactory.getInstance().addMapFactory(\n\t\t\t\t\t\"com.verisign.epp.codec.host.EPPHostMapFactory\");\n\t\t\tEPPFactory.getInstance().addMapFactory(\n\t\t\t\t\t\"com.verisign.epp.codec.domain.EPPDomainMapFactory\");\n\t\t\tEPPFactory.getInstance().addExtFactory(\n\t\t\t\t\t\"com.verisign.epp.codec.fee.v08.EPPFeeExtFactory\");\n\t\t}\n\t\tcatch (EPPCodecException e) {\n\t\t\tAssert.fail(\"EPPCodecException adding factories to EPPCodec: \" + e);\n\t\t}\n\n\t\treturn suite;\n\t}", "public com.vodafone.global.er.decoupling.binding.request.PricePointTierFullType.BalanceImpactsType createPricePointTierFullTypeBalanceImpactsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTierFullTypeImpl.BalanceImpactsTypeImpl();\n }", "public com.vodafone.global.er.decoupling.binding.request.CatalogFullPricepointRequestType createCatalogFullPricepointRequestType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogFullPricepointRequestTypeImpl();\n }", "public com.vodafone.global.er.decoupling.binding.request.GetPricepointRequestType createGetPricepointRequestType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.GetPricepointRequestTypeImpl();\n }", "private void createTx() throws Exception {\n PublicKey recipient = Seed.getRandomAddress();\n Transaction tx = new Transaction(wallet.pb, recipient, wallet.pr);\n//\t\tSystem.out.println(\"Created a tx\");\n txPool.add(tx);\n//\t\tcache.put(tx.txId, null);\n sendTx(tx);\n }", "public com.vodafone.global.er.decoupling.binding.request.PricingModelFullType.TiersType createPricingModelFullTypeTiersType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricingModelFullTypeImpl.TiersTypeImpl();\n }", "public Transaction(final TransactionType type, final BuddyAccount buddyOwner, final BankAccount bankAccount,\n final LocalDate date, final String description, final BigDecimal amount, final BigDecimal fee) {\n super();\n this.type = type;\n this.buddyOwner = buddyOwner;\n this.bankAccount = bankAccount;\n this.date = date;\n this.description = description;\n this.amount = amount;\n this.fee = fee;\n }", "public com.vodafone.global.er.decoupling.binding.request.PriceType createPriceType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PriceTypeImpl();\n }", "@Test\n public void createNewCase_withNoAddressTypeForEstab() throws Exception {\n doCreateNewCaseTest(\n \"Floating palace\", EstabType.OTHER, AddressType.SPG, CaseType.SPG, AddressLevel.U);\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.CreditPurchasePricePointsType createPricePointFullTypeCreditPurchasePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.CreditPurchasePricePointsTypeImpl();\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.BalanceImpactsType createPricePointFullTypeBalanceImpactsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.BalanceImpactsTypeImpl();\n }", "public com.vodafone.global.er.decoupling.binding.request.CatalogPackageFullType.PricePointsType createCatalogPackageFullTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageFullTypeImpl.PricePointsTypeImpl();\n }", "public FeeRefund create(Map<String, Object> params, RequestOptions options)\n throws StripeException {\n return ApiResource.request(ApiResource.RequestMethod.POST, String.format(\"%s%s\",\n Stripe.getApiBase(), this.getUrl()), params, FeeRefund.class, options);\n }", "public void setFee(Number value) {\n setAttributeInternal(FEE, value);\n }", "public void setFee(String fee) {\n\t\tthis.fee = fee;\n\t}", "public com.vodafone.global.er.decoupling.binding.request.SuperCreditPricePointType createSuperCreditPricePointType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.SuperCreditPricePointTypeImpl();\n }", "protected final Transaction createTransaction(TransactionTypeKeys type) {\n\t\tTransaction trans = null;\n\t\tString payee = getForm().getPayFrom();\n\t\tdouble amount = parseAmount();\n\n\t\t// Put amount in proper form.\n\t\tif ((type == INCOME && amount < 0.0)\n\t\t\t\t|| (type == EXPENSE && amount >= 0.0)) {\n\t\t\tamount = -amount;\n\t\t}\n\n\t\t// Put payee in proper form.\n\t\tpayee = purgeIdentifier(payee);\n\n\t\ttrans = new Transaction(getForm().getField(CHECK_NUMBER).getText(),\n\t\t\t\tparseDate(), payee, Money.of(amount,\n\t\t\t\t\t\tUI_CURRENCY_SYMBOL.getCurrency()), getCategory(),\n\t\t\t\tgetForm().getField(NOTES).getText());\n\n\t\t// Set attributes not applicable in the constructor.\n\t\ttrans.setIsReconciled(getForm().getButton(PENDING).isSelected() == false);\n\n\t\tif (isInEditMode() == true) {\n\t\t\ttrans.setLabel(getEditModeTransaction().getLabel());\n\t\t}\n\n\t\treturn trans;\n\t}", "public BigDecimal getFee() {\r\n return fee;\r\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.BalanceImpactRatesType createPricePointFullTypeBalanceImpactRatesType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.BalanceImpactRatesTypeImpl();\n }", "public BigDecimal getFee() {\n return fee;\n }", "public com.vodafone.global.er.decoupling.binding.request.PackageType.PricePointsType createPackageTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PackageTypeImpl.PricePointsTypeImpl();\n }", "public com.vodafone.global.er.decoupling.binding.request.PriceplanType createPriceplanType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PriceplanTypeImpl();\n }", "Klassenstufe createKlassenstufe();", "TT createTT();", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.SuperCreditPricePointsType createPricePointFullTypeSuperCreditPricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.SuperCreditPricePointsTypeImpl();\n }", "ECNONet createECNONet();", "public FundingDetails() {\n super();\n }", "public Feature createFeature(Feature.Template ft)\n throws BioException, ChangeVetoException;", "public TestTicket() {\n\t}", "public BigDecimal getFee() {\n return fee;\n }", "public Builder setFee(long value) {\n \n fee_ = value;\n onChanged();\n return this;\n }", "public com.vodafone.global.er.decoupling.binding.request.TransactionFullType createTransactionFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.TransactionFullTypeImpl();\n }", "TRule createTRule();", "public AmountType getFee() {\n\t return this.fee;\n\t}", "public com.vodafone.global.er.decoupling.binding.request.DateTimeTierFullType createDateTimeTierFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.DateTimeTierFullTypeImpl();\n }", "public void setFeeList(List<FeeComponent> feeList) {\r\n this.feeList = feeList;\r\n }", "public ArrayList<VenTransactionFee> persistVenTransactionFeeList(\n\t\t\tList<VenTransactionFee> venTransactionFeeList);", "public static PetrinetmodelFactory init() {\r\n\t\ttry {\r\n\t\t\tPetrinetmodelFactory thePetrinetmodelFactory = (PetrinetmodelFactory)EPackage.Registry.INSTANCE.getEFactory(PetrinetmodelPackage.eNS_URI);\r\n\t\t\tif (thePetrinetmodelFactory != null) {\r\n\t\t\t\treturn thePetrinetmodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new PetrinetmodelFactoryImpl();\r\n\t}", "public long getFee() {\n return fee_;\n }", "public void createPPF(){\n\t\tSystem.out.println(\"HDFC:: createed ppf\");\n\t}", "private ProfitPerTariffType ()\n {\n super();\n }", "public Etf() {\n\t}", "public com.vodafone.global.er.decoupling.binding.request.SelfcareFullTransactionsType createSelfcareFullTransactionsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.SelfcareFullTransactionsTypeImpl();\n }", "public long getFee() {\n return fee_;\n }", "public Ticket(String name, javax.money.MonetaryAmount price, Festival festival){\n this.name = name;\n this.price = price;\n this.festival = festival;\n }", "ShipmentCostEstimate createShipmentCostEstimate();", "Elevage createElevage();", "@Test\n\tpublic void createAccountDebtsTest() {\n\t\tsetChequingRadioDefaultOff();\n\t\trdbtnDebt.setSelected(true);\n\t\tdata.setRdbtnDebt(rdbtnDebt);\n\t\tAccount account = data.createNewAccount();\n\t\taccountTest = new Account(TEST_ACCOUNT_NAME, bankTest,\n\t\t\t\tAccount.Types.DEBITS.getAccountType());\n\t\tassertEquals(accountTest, account);\n\t}", "private static FXForwardTrade createFxForwardTrade() {\n\n Counterparty counterparty = new SimpleCounterparty(ExternalId.of(Counterparty.DEFAULT_SCHEME, \"COUNTERPARTY\"));\n BigDecimal tradeQuantity = BigDecimal.valueOf(1);\n LocalDate tradeDate = LocalDate.of(2014, 7, 11);\n OffsetTime tradeTime = OffsetTime.of(LocalTime.of(0, 0), ZoneOffset.UTC);\n SimpleTrade trade = new SimpleTrade(createFxForwardSecurity(), tradeQuantity, counterparty, tradeDate, tradeTime);\n trade.setPremium(0.00);\n trade.setPremiumDate(LocalDate.of(2014, 7, 25));\n trade.setPremiumCurrency(Currency.GBP);\n\n FXForwardTrade fxForwardTrade = new FXForwardTrade(trade);\n\n return fxForwardTrade;\n }", "public void create(T e);", "public int getFee(){return 0;}", "public boolean createFixedDeposit(FixedDepositDetails fdd) {\n\t\treturn true;\n\t}", "Delivery createDelivery();", "public com.vodafone.global.er.decoupling.binding.request.CatalogFullPricepointRequest createCatalogFullPricepointRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogFullPricepointRequestImpl();\n }", "Document newDeposit(String source, double amount,\n String effectiveDate);", "public double getFee() {\n\t\treturn fee;\n\t}", "public ATFXNDF(final Trade trade) {\r\n\tsuper(trade);\r\n\tfxndf = (FXNDF) trade.getProduct();\r\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public String getFee() {\n\t\treturn fee;\n\t}", "public com.vodafone.global.er.decoupling.binding.request.TaxType createTaxType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.TaxTypeImpl();\n }", "public EasytaxTaxations() {\n this(\"easytax_taxations\", null);\n }", "public nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData addNewFeeAccrData()\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData target = null;\n target = (nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData)get_store().add_element_user(FEEACCRDATA$0);\n return target;\n }\n }", "private static FXForwardSecurity createFxForwardSecurity() {\n\n Currency payCurrency = Currency.GBP;\n Currency recCurrency = Currency.USD;\n\n double payAmount = 1_000_000;\n double recAmount = 1_600_000;\n\n ZonedDateTime forwardDate = DateUtils.getUTCDate(2019, 2, 4);\n\n ExternalId region = ExternalSchemes.currencyRegionId(Currency.GBP);\n\n FXForwardSecurity fxForwardSecurity = new FXForwardSecurity(payCurrency, payAmount, recCurrency, recAmount, forwardDate, region);\n\n return fxForwardSecurity;\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointType.SuperCreditPricePointsType createPricePointTypeSuperCreditPricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl.SuperCreditPricePointsTypeImpl();\n }", "public com.vodafone.global.er.decoupling.binding.request.GetPricepointRequest createGetPricepointRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.GetPricepointRequestImpl();\n }", "@WebMethod public Bet createBet(String bet, float money, Question q) throws BetAlreadyExist;", "protected MoneyFactory() {\n\t}", "public int getFee()\n {\n return fee;\n }", "public com.vodafone.global.er.decoupling.binding.request.PricingModelFullType createPricingModelFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricingModelFullTypeImpl();\n }", "Etf(char extended, double price, int number)\n {\n super();\n this.extended = extended;\n this.price = price;\n this.number = number;\n }", "private void makeDeposit() {\n\t\t\r\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry addNewDebts();", "public static Paiement createEntity(EntityManager em) {\n Paiement paiement = new Paiement()\n .dateTransation(DEFAULT_DATE_TRANSATION)\n .montantTTC(DEFAULT_MONTANT_TTC);\n return paiement;\n }", "public com.vodafone.global.er.decoupling.binding.request.BalanceImpactFullType createBalanceImpactFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.BalanceImpactFullTypeImpl();\n }", "public void setTixianFee(BigDecimal tixianFee) {\r\n this.tixianFee = tixianFee;\r\n }", "public de.fraunhofer.fokus.movepla.model.Entitlement create(\n long entitlementId);" ]
[ "0.5927741", "0.5879994", "0.58545", "0.5667721", "0.5635784", "0.55721176", "0.54847103", "0.54837984", "0.53227705", "0.53005695", "0.52746564", "0.5259681", "0.5216612", "0.51757425", "0.5173066", "0.51717585", "0.5162285", "0.515639", "0.5143223", "0.5132", "0.5125062", "0.5125061", "0.5110765", "0.51045144", "0.50925016", "0.5087235", "0.5078586", "0.50431514", "0.502923", "0.50234014", "0.50211334", "0.5002662", "0.4989772", "0.49864104", "0.49797997", "0.49760813", "0.4962175", "0.49503216", "0.49474192", "0.4933579", "0.49067852", "0.48896766", "0.4886104", "0.4883588", "0.48835737", "0.48798442", "0.48732638", "0.4864706", "0.48602536", "0.4858637", "0.48583442", "0.48577344", "0.4851648", "0.484672", "0.48439625", "0.48364818", "0.48341933", "0.4817498", "0.4781048", "0.47763348", "0.47693956", "0.47665966", "0.47644368", "0.47599968", "0.47490665", "0.47471815", "0.47466987", "0.47448987", "0.47447532", "0.47350016", "0.47319993", "0.4731252", "0.4717267", "0.4715819", "0.4713726", "0.47104108", "0.47080904", "0.47059843", "0.47002596", "0.46990362", "0.46920785", "0.4688366", "0.4686547", "0.46687233", "0.46597743", "0.4658336", "0.46539038", "0.4649005", "0.4648182", "0.46474782", "0.46360168", "0.46312308", "0.46238536", "0.46124014", "0.46116057", "0.46085006", "0.4607114", "0.46066684", "0.46058512", "0.46003643" ]
0.74111295
0
Unit test for the extension to the check command and response.
public void testDomainCheck() { EPPDomainCheckCmd theCommand; EPPEncodeDecodeStats commandStats; EPPCodecTst.printStart("testDomainCheck"); // Check three domains Vector domains = new Vector(); domains.addElement("example.com"); domains.addElement("example.net"); domains.addElement("example.org"); theCommand = new EPPDomainCheckCmd("ABC-12345", domains); // Add the Fee Check Extension EPPFeeCheck theCheckExt = new EPPFeeCheck(); theCheckExt.addDomain(new EPPFeeDomain("example.com", "USD", new EPPFeeCommand("create", EPPFeeCommand.PHASE_SUNRISE), new EPPFeePeriod(1))); theCheckExt.addDomain(new EPPFeeDomain("example.net", "EUR", new EPPFeeCommand("create", EPPFeeCommand.PHASE_CLAIMS, EPPFeeCommand.PHASE_LANDRUSH), new EPPFeePeriod(2))); theCheckExt.addDomain(new EPPFeeDomain("example.org", "EUR", new EPPFeeCommand("transfer"), null)); theCheckExt.addDomain(new EPPFeeDomain("example.xyz", new EPPFeeCommand("restore"))); theCommand.addExtension(theCheckExt); commandStats = EPPCodecTst.testEncodeDecode(theCommand); System.out.println(commandStats); // Domain Check Responses EPPDomainCheckResp theResponse; EPPEncodeDecodeStats responseStats; // Response for a single domain name EPPTransId respTransId = new EPPTransId(theCommand.getTransId(), "54321-XYZ"); theResponse = new EPPDomainCheckResp(respTransId, new EPPDomainCheckResult("example1.com", true)); theResponse.setResult(EPPResult.SUCCESS); // Add the Fee Check Data Extension EPPFeeChkData theChkDataExt = new EPPFeeChkData(); EPPFeeDomainResult theFeeResult; // example.com result theFeeResult = new EPPFeeDomainResult("example.com", "USD", new EPPFeeCommand("create", EPPFeeCommand.PHASE_SUNRISE)); theFeeResult.addFee(new EPPFeeValue(new BigDecimal("5.00"), "Application Fee", false, null, EPPFeeValue.APPLIED_IMMEDIATE)); theFeeResult.addFee(new EPPFeeValue(new BigDecimal("5.00"), "Registration Fee", true, "P5D", null)); theFeeResult.setPeriod(new EPPFeePeriod(1)); theChkDataExt.addCheckResult(theFeeResult); // example.net result theFeeResult = new EPPFeeDomainResult("example.net", "EUR", new EPPFeeCommand("create", EPPFeeCommand.PHASE_CLAIMS, EPPFeeCommand.PHASE_LANDRUSH), new EPPFeePeriod(2), new EPPFeeValue(new BigDecimal("5.00"))); theChkDataExt.addCheckResult(theFeeResult); // example.org result theFeeResult = new EPPFeeDomainResult("example.org", "EUR", new EPPFeeCommand("transfer")); theFeeResult.addFee(new EPPFeeValue(new BigDecimal("2.50"), "Transfer Fee", false, null, null)); theFeeResult.addFee(new EPPFeeValue(new BigDecimal("10.00"), "Renewal Fee", true, "P5D", null)); theFeeResult.setPeriod(new EPPFeePeriod(2)); theChkDataExt.addCheckResult(theFeeResult); // example.xyz result theFeeResult = new EPPFeeDomainResult("example.xyz", "GDB", new EPPFeeCommand("restore")); theFeeResult.addFee(new EPPFeeValue(new BigDecimal("25.00"), "Restore Fee", false, null, EPPFeeValue.APPLIED_IMMEDIATE)); theFeeResult.setClassification("premium-tier1"); theChkDataExt.addCheckResult(theFeeResult); theResponse.addExtension(theChkDataExt); responseStats = EPPCodecTst.testEncodeDecode(theResponse); System.out.println(responseStats); EPPCodecTst.printEnd("testDomainCheck"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCheck()\r\n {\n DataUtil.check(9, \"This is a test!\");\r\n }", "@Test\n\tpublic void checkStatus() {\n\t\tclient.execute(\"1095C-16-111111\");\n\t}", "@Test\n\tpublic void check() {\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Unit Test Begins\");\n\t\t\t// Generate Random Log file\n\t\t\tUnitTestLogGenerator.generateRandomLogs();\n\t\t\t// Generate Cmd String\n\t\t\tString cmd = ClientClass.generateCommand(IpAddress, \"seth\", \"v\",\n\t\t\t\t\ttrue);\n\t\t\t// Run Local Grep;\n\t\t\tlocalGrep(cmd);\n\t\t\t// Connecting to Server\n\t\t\tConnectorService connectorService = new ConnectorService();\n\t\t\tconnectorService.connect(IpAddress, cmd);\n\t\t\tInputStream FirstFileStream = new FileInputStream(\n\t\t\t\t\t\"/tmp/localoutput_unitTest.txt\");\n\t\t\tInputStream SecondFileStream = new FileInputStream(\n\t\t\t\t\t\"/tmp/output_main.txt\");\n\t\t\tSystem.out.println(\"Comparing the two outputs...\");\n\t\t\tboolean result = fileComparison(FirstFileStream, SecondFileStream);\n\t\t\tAssert.assertTrue(result);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\n void checkManagerWithPermissionGetAlert(){\n LinkedList<PermissionEnum.Permission> list=new LinkedList<>();\n list.add(PermissionEnum.Permission.RequestBidding);\n tradingSystem.AddNewManager(EuserId,EconnID,storeID,NofetID);\n tradingSystem.EditManagerPermissions(EuserId,EconnID,storeID,NofetID,list);\n Response Alert=new Response(\"Alert\");\n store.sendAlertOfBiddingToManager(Alert);\n //??\n }", "@Test\n public void testCheck() {\n System.out.println(\"check\");\n String email = \"\";\n String password = \"\";\n DaftarPengguna instance = new DaftarPengguna();\n boolean expResult = false;\n boolean result = instance.check(email, password);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "void check();", "void check();", "@Test(enabled = true, groups = {\"servicetest.p1\"})\n public void testGetHealthCheck(){\n\n RestResponse<HealthCheck> healthCheckRestResponse = new ServiceWorkflow().getHealthCheck();\n Assert.assertTrue(healthCheckRestResponse.getStatus() == 200, \"Invalid Status\");\n Assert.assertEquals(healthCheckRestResponse.getBody().getService(),serviceName, \"Incorrect Service Name\");\n Assert.assertEquals(healthCheckRestResponse.getBody().getVersion(),version, \"Incorrect version\");\n }", "@Test\n public void testCheckPositive() {\n Helper.checkPositive(1, \"obj\", \"method\", LogManager.getLog());\n }", "@Test\n public void checkBook2() throws Exception {\n SmartPlayer x = new SmartPlayer(0,0);\n boolean gotBook = x.checkBook();\n assertTrue(!gotBook);\n }", "private CheckUtil(){ }", "@Test\n public void testHealthy() {\n checker.checkHealth();\n\n assertThat(checker.isHealthy(), is(true));\n }", "@Test\n\tpublic void test_001() {\n\t\tfinal String EXPECTED_RESPONSE = \"{\\\"hello\\\": \\\"world\\\"}\";\n\t\tJdProgramRequestParms.put(\"U$FUNZ\", new StringValue(\"URL\"));\n\t\tJdProgramRequestParms.put(\"U$METO\", new StringValue(\"HTTP\"));\n\t\tJdProgramRequestParms.put(\"U$SVARSK\", new StringValue(\"http://www.mocky.io/v2/5185415ba171ea3a00704eed\"));\n\n\t\tList<Value> responseParms = JdProgram.execute(javaSystemInterface, JdProgramRequestParms);\n\t\tassertTrue(responseParms.get(2).asString().getValue().equals(EXPECTED_RESPONSE));\n\t}", "public void testCheckOxyEmpty() {\n }", "public abstract void checkingCommand(String nameOfCommand, ArrayList<Unit> units);", "@Test\n\tpublic void performRequestValidation() throws Exception {\n\n\t\tString responseBody = TestUtils.getValidResponse();\n\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tResponseEntity<ResponseWrapper> responseEntity = prepareReponseEntity(responseBody);\n\n\t\t\tthis.mockServer.verify();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "default void checkInOk(String name) {\n }", "@Test\n\tpublic void execute() throws Exception {\n\t\tassertTrue(argumentAnalyzer.getFlags().contains(Context.CHECK.getSyntax()));\n\t}", "@Test public void addCard_response_check_status_test() throws ClientProtocolException, IOException\n\t{\n\t\tSystem.out.println(\"\\n--------------------------------------------------\");\n\t\tSystem.out.println(\"Start test: \" + testName.getMethodName());\n\t\t\n\t\t//Given\n\t\tString idList = testSuite.listId;\n\t\tString due = \"null\";\n\t\tString name = \"Add card\";\n\t\tString desc = \"API test - Add card through trello API\";\n\t\t\n\t\tString query = String.format(\"idList=%s&due=%s&name=%s&desc=%s&key=%s&token=%s\", \n\t\t\t\t\t\t\t\t\t\tURLEncoder.encode(idList, charset), \n\t\t\t\t\t\t\t\t\t\tURLEncoder.encode(due, charset),\n\t\t\t\t\t\t\t\t\t\tURLEncoder.encode(name, charset), \n\t\t\t\t\t\t\t\t\t\tURLEncoder.encode(desc, charset), \n\t\t\t\t\t\t\t\t\t\tURLEncoder.encode(key, charset), \n\t\t\t\t\t\t\t\t\t\tURLEncoder.encode(token, charset));\n\t\t//When\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\n\t\tHttpPost postRequest = new HttpPost(cardUrl + \"?\" + query);\n\t\tHttpResponse response = httpClient.execute(postRequest);\n\t\t//Then\n\t\t/*\n\t\t * Expect: 200 - status code\n\t\t * */\n\t\tassertEquals(response.getStatusLine().getStatusCode(), 200);\n\t\t\n\t\t//Tear down\n\t\thttpClient.close();\n\t\t\n\t\tSystem.out.println(\"Finish test: \" + testName.getMethodName());\n\t\tSystem.out.println(\"--------------------------------------------------\\n\");\n\t}", "public static void main(String[] args) {\n\r\n // action\r\n // - nothing\r\n\r\n // check\r\n // - nothing\r\n }", "@Override\r\n protected Result check() throws Exception {\n try {\r\n Response response = webTarget.request().get();\r\n\r\n if (!response.getStatusInfo().getFamily().equals(Response.Status.Family.SUCCESSFUL)) {\r\n\r\n return Result.unhealthy(\"Received status: \" + response.getStatus());\r\n }\r\n\r\n return Result.healthy();\r\n } catch (Exception e) {\r\n\r\n return Result.unhealthy(e.getMessage());\r\n }\r\n }", "@Test\n\tpublic void testResponse() {\n\t\tquestions.setResponse(\"No\");\n\t\tassertEquals(\"No\",questions.getResponse());\n\t}", "boolean checkVerification();", "int verify(Requirement o);", "public boolean test(CommandSender sender, MCommand command);", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAbout() {\n\t\tboolean flag = oTest.checkAbout();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Test\n public void getStatus_StatusIsGot_Passes() throws Exception {\n Assert.assertEquals(test1JsonResponse.getStatus(), test1status);\n }", "public abstract String check() throws Exception;", "@Test\n void basicTest() {\n final OSEntropyCheck.Report report =\n assertDoesNotThrow(() -> OSEntropyCheck.execute(), \"Check should not throw\");\n assertTrue(report.success(), \"Check should succeed\");\n assertNotNull(report.elapsedNanos(), \"Elapsed nanos should not be null\");\n assertTrue(report.elapsedNanos() > 0, \"Elapsed nanos should have a positive value\");\n assertNotNull(report.randomLong(), \"A random long should have been generated\");\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Test\n public void checkBook() throws Exception {\n SmartPlayer x = new SmartPlayer(0,0);\n x.setCards(3,4);\n boolean gotBook = x.checkBook();\n assertTrue(gotBook);\n }", "public void assertMsgCheck() {\r\n\t\tassertEquals(successMsg.getText().substring(0,36), \"Success: You have modified products!\");\r\n\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ successMsg.getText().substring(0,36));\r\n\t}", "public final void testSupports() {\r\n assertFalse(commandValidator.supports(sampleCommand.getClass()));\r\n assertTrue(commandValidator.supports(sampleValidatableCommand.getClass()));\r\n assertFalse(commandValidator.supports(this.getClass()));\r\n assertTrue(commandValidator.supports(sampleValidatable.getClass()));\r\n }", "public void testGetPostTransferCommand() throws Exception {\n System.out.println(\"getPostTransferCommand\");\n \n String expResult = \"None\";\n String result = instance.getPostTransferCommand();\n assertEquals(expResult, result);\n \n }", "void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }", "void check() throws YangException;", "@Test\n public void baseCommandTests_part2() throws Exception {\n ExecutionSummary executionSummary = testViaExcel(\"unitTest_base_part2.xlsx\");\n assertPassFail(executionSummary, \"crypto\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"macro-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"repeat-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"expression-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"multi-scenario2\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"flow_controls\", new TestOutcomeStats(2, 14));\n }", "@Test\n public void statusTest() {\n // TODO: test status\n }", "@Test\n public void statusTest() {\n // TODO: test status\n }", "@Test\n\tpublic void getCommandTest() {\n\t\tString command = \"Hello World\";\n\t\tString expected = \"Hello\";\n\t\tString actual = Helper.getCommand(command);\n\t\tassertEquals(expected, actual);\n\n\t\tcommand = \"This is a line of commands\";\n\t\texpected = \"This\";\n\t\tactual = Helper.getCommand(command);\n\t\tassertEquals(expected, actual);\n\n\t}", "@Test\r\n public void testGetCommandName() {\r\n assertEquals(\"curl\", curl.getCommandName());\r\n }", "@Test\n void executeMoneyTransfer() throws ParseException, JsonProcessingException {\n\n String idAccount = \"14537780\";\n String receiverName = \"Receiver Name\";\n String description = \"description text\";\n String currency = \"EUR\";\n String amount = \"100\";\n String executionDate = \"2020-12-12\";\n MoneyTransfer moneyTransfer = Utils.fillMoneyTransfer(idAccount, receiverName, description, currency, amount, executionDate);\n\n Response response = greetingWebClient.executeMoneyTransfer(moneyTransfer, idAccount);\n assertTrue(response.getStatus().equals(\"KO\"));\n\n\n }", "@Test\n public void testCheckEvenNormal_1() {\n assertTrue(checkerNumber.checkEven(100));\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkTest() {\n\t\tboolean flag = oTest.checkTest();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "private void commandCheck() {\n\t\t//add user command\n\t\tif(cmd.getText().toLowerCase().equals(\"adduser\")) {\n\t\t\t/*\n\t\t\t * permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\t * There will be more user level commands added in version 2, like changing rename to allow a\n\t\t\t * user to rename themselves, but not any other user. Admins can still rename all users.\n\t\t\t */\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\taddUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//delete user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"deluser\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdelUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t};\n\t\t}\n\t\t//rename user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"rename\")) {\n\t\t\t//permissions check: if user is an admin, allow the user o chose a user to rename.\n\t\t\t//If not, allow the user to rename themselves only.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\trename(ALL);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trename(SELF);\n\t\t\t}\n\t\t}\n\t\t//promote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"promote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tpromote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//demote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"demote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdemote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//the rest of the commands are user level, no permission checking\n\t\telse if(cmd.getText().toLowerCase().equals(\"ccprocess\")) {\n\t\t\tccprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"cprocess\")) {\n\t\t\tcprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opentill\")) {\n\t\t\topenTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"closetill\")) {\n\t\t\tcloseTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opendrawer\")) {\n\t\t\topenDrawer();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"sale\")) {\n\t\t\tsale();\n\t\t}\n\t\t//if the command that was entered does not match any command, return an error.\n\t\telse {\n\t\t\terror(CMD_NOT_FOUND);\n\t\t}\n\t}", "@Test\n void sendGetRequest() {\n try {\n String response = HttpUtils.sendGet();\n assertFalse(response.contains(\"404\"));\n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n }", "public abstract Error errorCheck(Model m, String command);", "public boolean test(CommandListenerWrapper wrapper) {\n/* 48 */ return this.command.testPermissionSilent(wrapper.getBukkitSender());\n/* */ }", "@Test(priority = 1, dataProvider = \"verifytxTestData\")\r\n\tpublic void testResponseCode(HashMap<String, String> hm) {\r\n\r\n\t\t// Checking execution flag\r\n\t\tif (hm.get(\"ExecuteFlag\").trim().equalsIgnoreCase(\"No\"))\r\n\t\t\tthrow new SkipException(\"Skipping the test ---->> As per excel entry\");\r\n\t\t\r\n\t\t\tappURL = globalConfig.getString(\"VERIFYTX_API_CONFIG\");\r\n\r\n\r\n\t\t System.out.println(\"URL:\"+ appURL);\r\n\t\t\t\r\n\r\n\t\tHashMap<String, String> headerParameters = new HashMap<String, String>();\r\n\t\t\r\n\t\t\t\r\n\t\t\theaderParameters.put(\"txid\", hm.get(\"I_txid\"));\t\t\r\n\t\t\t\r\n\t\t\theaderParameters.put(\"txbytes\", hm.get(\"I_txbytes\"));\r\n\t\r\n\t\t\r\n\r\n\t\tint responseCode = 0;\r\n\t\tlogger.debug(\"requestURL is getting sent as {}\", appURL.toString());\r\n\r\n\t\ttry {\r\n\t\t\tresponseCode = HTTPUtil.sendGet(appURL, headerParameters);\r\n\r\n\t\t\tSystem.out.println(\"Response Code:\" +responseCode);\r\n\r\n\t\t\tif ((responseCode == 200) || (responseCode == 404)) {\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tString filePathOfJsonResponse = HelperUtil.createOutputDir(this.getClass().getSimpleName())\r\n\t\t\t\t\t\t\t+ File.separator + this.getClass().getSimpleName() + hm.get(\"SerialNo\") + \".json\";\r\n\r\n\t\t\t\t\tHTTPUtil.writeResponseToFile(filePathOfJsonResponse);\r\n\r\n\t\t\t\t} catch (UnsupportedOperationException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception :\" + e.getMessage());\r\n\t\t\t\t\tAssertJUnit.fail(\"Caught Exception ...\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception :\" + e.getMessage());\r\n\t\t\tAssertJUnit.fail(\"Caught Exception ...\" + e.getMessage());\r\n\t\t}\r\n\r\n\t\tlogger.debug(\"The response code is {}\", Integer.valueOf(responseCode).toString());\r\n\t\tPreconditions.checkArgument(!hm.get(\"httpstatus\").equals(null), \"String httpstatus in excel must not be null\");\r\n\r\n\t\t// Verify response code\r\n\t\tif (responseCode==200) {\r\n\t\t\treporter.writeLog(\"PASS\", \"Status should be \" + hm.get(\"httpstatus\"), \"Status is \" + responseCode);\r\n\t\t\tAssertJUnit.assertEquals(responseCode, 200);\r\n\t\t} else {\r\n\t\t\treporter.writeLog(\"FAIL\", \"Status should be \" + hm.get(\"httpstatus\"), \"Status is \" + responseCode);\r\n\t\t\tAssertJUnit.assertEquals(responseCode, Integer.parseInt(hm.get(\"httpstatus\")));\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"-------------------------------------------\");\r\n\t}", "@Test\r\n public void dummyCanGiveXP() {\n\r\n dummy.giveExperience();\r\n\r\n assertEquals(DUMMY_EXPERIENCE, dummy.giveExperience());\r\n }", "@Override\n\tpublic void check() throws Exception {\n\t}", "@Test\n\tpublic void testSayMessageOnRequest(){\n\t\tSystem.out.println(\"\\nMensajes aleatorios al aparecer el Meesek:\\n\");\n\t\tMrMe.sayMessageOnRequest();\n\t\tMrMe.sayMessageOnRequest();\n\t\tMrMe.sayMessageOnRequest();\n\t}", "@Test\n\tpublic void execute() {\n\t\tcommand.execute(request);\n\t}", "@Test\n public void testCheckForXssAttack2(){\n\n Assert.assertTrue(xssValidator.checkForXssAttack(RIGHT_DATA));\n }", "@Test\n\tpublic void testReadTicketOk() {\n\t}", "private MockarooPingHelper(){}", "public abstract void check(Manager manager);", "@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateAcctCheckbox() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether proper error message is displayed when continuing with out enabling the accounts check box\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvManageView\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ManageViews()\t \t\t\t\t\t \t \t\t\t\t \t \t\t\n\t\t.ValidateCheckboxerror(userProfile);\t \t \t\t\n\t}", "@Test\n\tvoid testCheckString1() {\n\t\tassertTrue(DataChecker.checkString(\"Test\"));\n\t}", "@Test\n public void checkValidityTest1() {\n GenericStandardDeckGame g = new GenericStandardDeckGame();\n assert (g.checkValidity(g.getDeck()));\n }", "private void cmdCheck(String line) throws NoSystemException {\n boolean verbose = false;\n boolean details = false;\n boolean all = false;\n boolean noGenInv = true;\n ArrayList<String> invNames = new ArrayList<String>();\n StringTokenizer tokenizer = new StringTokenizer(line);\n // skip command\n tokenizer.nextToken();\n while (tokenizer.hasMoreTokens()) {\n String token = tokenizer.nextToken();\n if (token.equals(\"-v\")) {\n verbose = true;\n } else if (token.equals(\"-d\")) {\n details = true;\n } else if (token.equals(\"-a\")) {\n all = true;\n } else {\n MClassInvariant inv = system().model().getClassInvariant(token);\n if (system().generator() != null && inv == null) {\n GFlaggedInvariant gInv = system().generator()\n .flaggedInvariant(token);\n if (gInv != null) {\n inv = gInv.classInvariant();\n noGenInv = false;\n }\n }\n if (!noGenInv) {\n if (inv == null)\n Log.error(\"Model has no invariant named `\" + token\n + \"'.\");\n else\n invNames.add(token);\n }\n }\n }\n\n PrintWriter out;\n if (Options.quiet && !Options.quietAndVerboseConstraintCheck) {\n out = new PrintWriter(new NullWriter());\n } else {\n out = new PrintWriter(Log.out());\n }\n fLastCheckResult = system().state().check(out, verbose, details, all,\n invNames);\n }", "@Test\n public void handleCompositeCommand1() {\n }", "public void checkData(){\n\n }", "public void testGetPreTransferCommand() throws Exception {\n System.out.println(\"getPreTransferCommand\");\n \n String expResult = \"None\";\n String result = instance.getPreTransferCommand();\n assertEquals(expResult, result);\n \n }", "@Test\n public void testCheckForXssAttack1(){\n\n Assert.assertFalse(xssValidator.checkForXssAttack(WRONG_DATA));\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkProtocol() {\n\t\tboolean flag = oTest.checkProtocol();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn false;\r\n\t}", "public void doChecking() {\n \tdoCheckingDump();\n \tdoCheckingMatl();\n }", "default boolean checkForError(HttpResponse response) {\n parameters.clear();\n\n\n if (response.getStatusCode() == 500) {\n System.out.println(\"Internal server error\");\n return true;\n } else if (response.getStatusCode() == 400) {\n System.out.println(\"Your input was not as expected. Use \\\"help\\\"-command to get more help.\");\n System.out.println(response.getBody());\n return true;\n } else if (response.getStatusCode() == 404) {\n System.out.println(\"The resource you were looking for could not be found. Use \\\"help\\\"-command to get more help.\");\n }\n\n return false;\n\n }", "@Test\n public void testCheck() throws Exception {\n System.out.println(\"check\");\n byte[] bytes = {0,1,2};\n data = new Data(bytes);\n module = new TestModule(null,\"module\");\n generic = new Generic<UDT_Test_3Bytes>(module, \"generic\");\n udt = new UDT_Test_3Bytes(null, new Address(0,Address.NA,UDT_Test_3Bytes.getSize()), 0, new Data(bytes));\n instance = new IoGeneric(generic, udt);\n module.start();\n while(module.isAlive()) Thread.sleep(500);\n assert(true);\n }", "abstract protected boolean checkMethod();", "public static void runAndAssertValidateSuccess(CommandBase<?> command) {\n boolean validate = command.validate();\n List<String> validationMessages = command.getReturnValue().getValidationMessages();\n assertTrue(MessageFormat.format(\"Command''s validate expected to succeed, but failed, messages are: {0}\",\n validationMessages), validate);\n assertTrue(MessageFormat.format(\"Command''s validate succeeded, but added the following messages: {0}\",\n validationMessages), validationMessages.isEmpty());\n }", "@Test\n public void baseCommandTests_part1() throws Exception {\n ExecutionSummary executionSummary = testViaExcel(\"unitTest_base_part1.xlsx\");\n assertPassFail(executionSummary, \"base_showcase\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_projectfile\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_array\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_count\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_date\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"actual_in_output\", TestOutcomeStats.allPassed());\n }", "@Test\n public void execute_success() {\n ModelStubWithRecipeList modelStub = new ModelStubWithRecipeList(TypicalRecipes.getTypicalRecipeList());\n CommandResult expectedCommandResult = new CommandResult(ListRecipeCommand.MESSAGE_SUCCESS,\n false, false, DisplayedInventoryType.RECIPES);\n assertCommandSuccess(listRecipeCommand, modelStub, expectedCommandResult, modelStub);\n }", "private void testCommand(String cmdName, Map<String, String> kwargs, InputStream inputStream,\n String authInfo,\n Map<String, String> expectedHeaders, int expectedStatusCode,\n Field... fields) throws IOException, InterruptedException {\n ZooKeeperServer zks = serverFactory.getZooKeeperServer();\n final CommandResponse commandResponse = inputStream == null\n ? Commands.runGetCommand(cmdName, zks, kwargs, authInfo, null) : Commands.runPostCommand(cmdName, zks, inputStream, authInfo, null);\n assertNotNull(commandResponse);\n assertEquals(expectedStatusCode, commandResponse.getStatusCode());\n try (final InputStream responseStream = commandResponse.getInputStream()) {\n if (Boolean.parseBoolean(kwargs.getOrDefault(REQUEST_QUERY_PARAM_STREAMING, \"false\"))) {\n assertNotNull(responseStream, \"InputStream in the response of command \" + cmdName + \" should not be null\");\n } else {\n Map<String, Object> result = commandResponse.toMap();\n assertTrue(result.containsKey(\"command\"));\n // This is only true because we're setting cmdName to the primary name\n assertEquals(cmdName, result.remove(\"command\"));\n assertTrue(result.containsKey(\"error\"));\n assertNull(result.remove(\"error\"), \"error: \" + result.get(\"error\"));\n\n for (Field field : fields) {\n String k = field.key;\n assertTrue(result.containsKey(k),\n \"Result from command \" + cmdName + \" missing field \\\"\" + k + \"\\\"\" + \"\\n\" + result);\n Class<?> t = field.type;\n Object v = result.remove(k);\n assertTrue(t.isAssignableFrom(v.getClass()),\n \"\\\"\" + k + \"\\\" field from command \" + cmdName\n + \" should be of type \" + t + \", is actually of type \" + v.getClass());\n }\n\n assertTrue(result.isEmpty(), \"Result from command \" + cmdName + \" contains extra fields: \" + result);\n }\n }\n assertEquals(expectedHeaders, commandResponse.getHeaders());\n }", "@Test\n\tpublic void checkFalseTest() throws IOException {\n\t\tHttpClient httpClient = new HttpClient(10, 10);\n\t\tassertEquals(false, httpClient.check(\"http://localhost:5000/hs\"));\n\t}", "@Test\n public void testGetIt() {\n String responseMsg = target.path(\"service/servertest\").request().get(String.class);\n assertEquals(\"Got it!\", responseMsg);\n }", "public void checkForAlerts() {\n }", "@Test\n public void testCheckin() throws Exception {\n }", "@Test\n\tpublic void forInputChecker() {\n\t\tchar charTest = 'c';\n\t\tboolean result = false;\n\t\ttry {\n\t\t\tresult = object1.inputChecker(charTest);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tboolean ExpectedResult = true;\n\t\tassertEquals(ExpectedResult, result);\n\n\t}", "@Test\n\tpublic void test_003() {\n\t\tJdProgramRequestParms.put(\"U$FUNZ\", new StringValue(\"URL\"));\n\t\tJdProgramRequestParms.put(\"U$METO\", new StringValue(\"HTTP\"));\n\t\tJdProgramRequestParms.put(\"U$SVARSK\", new StringValue(\"http://www.mocky.io/v2/5185415ba171ea3a00704eedxxx\"));\n\n\t\tJdProgramResponseParms = JdProgram.execute(javaSystemInterface, JdProgramRequestParms);\n\t\tassertTrue(JdProgramResponseParms.get(2).asString().getValue().startsWith(\"*ERROR\"));\n\t\tassertTrue(JdProgramResponseParms.get(2).asString().getValue().contains(\"HTTP response code: 500\"));\n\t}", "@Test\r\n public void testCheckUIS() {\r\n System.out.println(\"checkUIS\");\r\n String word = \"\";\r\n IwRepoDAOMarkLogicImplStud instance = new IwRepoDAOMarkLogicImplStud();\r\n boolean expResult = false;\r\n boolean result = instance.checkUIS(word);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testGetNumberAvailable() {\n }", "@Test\n public void should_return_() {\n }", "public void testGetReturnCode() {\n System.out.println(\"getReturnCode\");\n Wizard instance = new Wizard();\n int expResult = 0;\n int result = instance.getReturnCode();\n assertEquals(expResult, result);\n }", "@Test(groups = { \"unit\" })\r\n public void testCase() {\r\n getPlayer().teleportToRoom(VAULT_ROOM);\r\n getPlayerA().teleportToRoom(VAULT_ROOM);\r\n clearAllOutput();\r\n\r\n if (!getCommand().execute(getPlayer(), \"de asd\")) {\r\n \t Assert.fail();\r\n }\r\n TestUtil.assertOutput(getPlayerOutput(), TaMessageManager.BNKTMC.getMessage());\r\n TestUtil.assertOutput(getPlayerAOutput(), \"\");\r\n \r\n if (!getCommand().execute(getPlayer(), \"de 100\")) {\r\n \t Assert.fail(); \t \r\n }\r\n TestUtil.assertOutput(getPlayerOutput(), TaMessageManager.BNKNHA.getMessage());\r\n TestUtil.assertOutput(getPlayerAOutput(), \"\"); \r\n \r\n if (getCommand().execute(getPlayer(), \"de 100 gold\")) {\r\n \t Assert.fail(); \t \t \r\n }\r\n \r\n getPlayer().setGold(100);\r\n \r\n if (!getCommand().execute(getPlayer(), \"de 101\")) {\r\n \t Assert.fail(); \t \t \t \r\n }\r\n TestUtil.assertOutput(getPlayerOutput(), TaMessageManager.BNKNHA.getMessage());\r\n TestUtil.assertOutput(getPlayerAOutput(), \"\"); \r\n \r\n if (getPlayer().getVaultBalance() != 0) {\r\n Assert.fail();\r\n }\r\n\r\n if (getPlayer().getGold() != 100) {\r\n Assert.fail();\r\n }\r\n \r\n if (!getCommand().execute(getPlayer(), \"de 100\")) {\r\n \t Assert.fail(); \t \t \t \r\n }\r\n String depositString = MessageFormat.format(TaMessageManager.BNKDEP.getMessage(), \"100\");\r\n TestUtil.assertOutput(getPlayerOutput(), depositString);\r\n TestUtil.assertOutput(getPlayerAOutput(), \"\"); \r\n\r\n if (getPlayer().getVaultBalance() != 100) {\r\n Assert.fail();\r\n }\r\n\r\n if (getPlayer().getGold() != 0) {\r\n Assert.fail();\r\n }\r\n \r\n // Test the command in an invalid room.\r\n getPlayer().teleportToRoom(NORTH_PLAZA);\r\n getPlayerA().teleportToRoom(NORTH_PLAZA);\r\n clearAllOutput();\r\n\r\n if (getCommand().execute(getPlayer(), \"ba\")) {\r\n Assert.fail();\r\n }\r\n \r\n }", "void doCheckHealthy();", "@Override\r\n\tpublic void preCheck(CheckCommand checkCommand) throws Exception {\n\r\n\t}", "public void test_execute() throws Throwable {\r\n\t\t\r\n\t\tCLIService service = null;\r\n\t\t\r\n\t\t// Ping\r\n\t\ttry {\r\n\t\t\tservice = CLIServiceWrapper.getService();\r\n\t\t\tString response = service.tender(CLIServiceConstants.COMMAND_PING + \" \" + TEST_PING_ARG0);\r\n\t\t\tif ( CLIServiceTools.isResponseOkAndComplete(response) ) {\r\n\t\t\t\tPASS(TEST_PING);\r\n\t\t\t} else {\r\n\t\t\t\tFAIL(TEST_PING, \"Response not ok. response=\" + response);\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tABORT(TEST_PING,\"ping failed to exception:\" + e.getMessage());\r\n\t\t}\r\n\r\n\t\t// Process list - log and cli\r\n\t\ttry {\r\n\t\t\tString response = service.tender(CLIServiceConstants.COMMAND_PROCESSLIST);\r\n\t\t\tif ( (CLIServiceTools.isResponseOkAndComplete(response)) && (response.indexOf(TEST_PROCESSLIST_VALIDATION1) >= 0) &&\r\n\t\t\t\t (response.indexOf(TEST_PROCESSLIST_VALIDATION2) >= 0) && (response.indexOf(TEST_PROCESSLIST_VALIDATION3) >= 0) ) {\r\n\t\t\t\tPASS(TEST_PROCESSLIST);\r\n\t\t\t} else {\r\n\t\t\t\tFAIL(TEST_PROCESSLIST, \"Response not ok. See log for response.\");\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tABORT(TEST_PROCESSLIST,\"process list failed to exception:\" + e.getMessage());\r\n\t\t}\t\r\n\t\t\r\n\t\t// Process list - log only - the CLI output should not contain any validations, just the OK.\r\n\t\ttry {\r\n\t\t\tString response = service.tender(CLIServiceConstants.COMMAND_PROCESSLIST + \" =\" + CLIServiceConstants.COMMAND_PROCESSLIST_LOG_VALUE);\r\n\t\t\tif ( (CLIServiceTools.isResponseOkAndComplete(response)) && (response.indexOf(TEST_PROCESSLIST_VALIDATION1) < 0) &&\r\n\t\t\t (response.indexOf(TEST_PROCESSLIST_VALIDATION2) < 0) && (response.indexOf(TEST_PROCESSLIST_VALIDATION3) < 0) ) {\r\n\t\t\t\tPASS(TEST_PROCESSLIST_LOG);\r\n\t\t\t} else {\r\n\t\t\t\tFAIL(TEST_PROCESSLIST_LOG, \"Response not ok. See log for response.\");\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tABORT(TEST_PROCESSLIST_LOG,\"process list (log only) failed to exception:\" + e.getMessage());\r\n\t\t}\t\r\n\r\n\t}", "public void receiveResultcheckServerStatus(\n loadbalance.LoadBalanceStub.CheckServerStatusResponse result\n ) {\n }", "@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}", "@Ignore\r\n @Test\r\n public void shouldReturnValidTime() {\n\r\n HealthCheck hc = client.healthCheck();\r\n assertNotNull(hc.getCurrentTime());\r\n }", "@Test\n public void testOncoKBInfo() {\n // TODO: test OncoKBInfo\n }", "@Test\n\tpublic void testStatusMessage() {\n\t\tassertEquals(\"Not Found\", myReply.getStatusMessage());\n\t}", "private static void checkStatus() {\n\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(\"Checking at :\"+date.toString());\r\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tresponse = sendGET(GET_URL_COVAXIN);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//System.out.println(response.toString());\r\n\t\tArrayList<Map> res = formatResponse(response);\r\n\r\n\t\tres = checkAvailability(res);\r\n\t\tif(res.size()>0)\r\n\t\t\tnotifyUser(res);\r\n\t\t//System.out.println(emp.toString());\r\n\t}", "@Override\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "private static void setupCommandTests(Application application) {\n\t\tapplication.addTest(\"Load secret command\", new SelectLoadSecretCommandOptionListener());\n\n\t\tapplication.addTest(\"Run command\", new SelectRunCurrentCommandOptionListener(DriverFeature.getDriverManager()));\n\n\t}", "@Test\n public void testCheckAccess() throws Exception {\n PolyspaceAccessConfig.DescriptorImpl desc_access = new PolyspaceAccessConfig.DescriptorImpl();\n\n FormValidation port_access_ok = desc_access.doCheckPolyspaceAccessPort(\"1234\");\n assertEquals(FormValidation.Kind.OK, port_access_ok.kind);\n\n FormValidation port_access_ko = desc_access.doCheckPolyspaceAccessPort(\"wrong-port\");\n assertEquals(FormValidation.Kind.ERROR, port_access_ko.kind);\n assertEquals(com.mathworks.polyspace.jenkins.config.Messages.portMustBeANumber(), port_access_ko.renderHtml());\n \n FormValidation protocol_access_http = desc_access.doCheckPolyspaceAccessProtocol(\"http\");\n assertEquals(FormValidation.Kind.OK, protocol_access_http.kind);\n\n FormValidation protocol_access_https = desc_access.doCheckPolyspaceAccessProtocol(\"https\");\n assertEquals(FormValidation.Kind.OK, protocol_access_https.kind);\n\n FormValidation protocol_access_ko = desc_access.doCheckPolyspaceAccessProtocol(\"wrong_protocol\");\n assertEquals(FormValidation.Kind.ERROR, protocol_access_ko.kind);\n assertEquals(com.mathworks.polyspace.jenkins.config.Messages.wrongProtocol(), protocol_access_ko.renderHtml());\n }", "public interface CommonScriptCommands\n{\n /**\n * Asserts that the value of the attribute identified by the given attribute locator matches the given text pattern.\n * \n * @param attributeLocator\n * the attribute locator\n * @param textPattern\n * the text pattern that the attribute value must match\n */\n public void assertAttribute(final String attributeLocator, final String textPattern);\n\n /**\n * Asserts that the value of the attribute identified by the given element locator and attribute name matches the\n * given text pattern.\n * \n * @param elementLocator\n * the element locator\n * @param attributeName\n * the name of the attribute\n * @param textPattern\n * the text pattern that the attribute value must match\n */\n public void assertAttribute(final String elementLocator, final String attributeName, final String textPattern);\n\n /**\n * Asserts that the given checkbox/radio button is checked.\n * \n * @param elementLocator\n * the checkbox/radio button element locator\n */\n public void assertChecked(final String elementLocator);\n\n /**\n * Asserts that the given element has the given class(es).\n * \n * @param elementLocator\n * the element locator\n * @param clazzString\n * the class(es) string\n */\n public void assertClass(final String elementLocator, final String clazzString);\n\n /**\n * Asserts that the number of elements found by using the given element locator is equal to the given count.\n * \n * @param elementLocator\n * the element locator\n * @param count\n * the number of elements\n */\n public void assertElementCount(final String elementLocator, final int count);\n\n /**\n * Asserts that the number of elements found by using the given element locator is equal to the given count.\n * \n * @param elementLocator\n * the element locator\n * @param count\n * the number of elements\n */\n public void assertElementCount(final String elementLocator, final String count);\n\n /**\n * Asserts that the given element is present.\n * \n * @param elementLocator\n * locator identifying the element that should be present\n */\n public void assertElementPresent(final String elementLocator);\n\n /**\n * Asserts that evaluating the given expression matches the given text pattern.\n * \n * @param expression\n * the expression to evaluate\n * @param textPattern\n * the text pattern that the evaluation result must match\n */\n public void assertEval(final String expression, final String textPattern);\n\n /**\n * Asserts that the time needed to load a page does not exceed the given value.\n * \n * @param loadTime\n * maximum load time in milliseconds\n */\n public void assertLoadTime(final long loadTime);\n\n /**\n * Asserts that the time needed to load a page does not exceed the given value.\n * \n * @param loadTime\n * maximum load time in milliseconds\n */\n public void assertLoadTime(final String loadTime);\n\n /**\n * Asserts that the value of the attribute identified by the given attribute locator does NOT match the given text\n * pattern.\n * \n * @param attributeLocator\n * the attribute locator\n * @param textPattern\n * the text pattern that the attribute value must NOT match\n */\n public void assertNotAttribute(final String attributeLocator, final String textPattern);\n\n /**\n * Asserts that the value of the attribute identified by the given element locator and attribute name does NOT match\n * the given text pattern.\n * \n * @param elementLocator\n * the element locator\n * @param attributeName\n * the name of the attribute\n * @param textPattern\n * the text pattern that the attribute value must NOT match\n */\n public void assertNotAttribute(final String elementLocator, final String attributeName, final String textPattern);\n\n /**\n * Asserts that the given checkbox/radio button is unchecked.\n * \n * @param elementLocator\n * the checkbox/radio button element locator\n */\n public void assertNotChecked(final String elementLocator);\n\n /**\n * Asserts that the given element doesn't have the given class(es).\n * \n * @param elementLocator\n * the element locator\n * @param clazzString\n * the class(es) string\n */\n public void assertNotClass(final String elementLocator, final String clazzString);\n\n /**\n * Asserts that the number of elements found by using the given element locator is unequal to the given count.\n * \n * @param elementLocator\n * the element locator\n * @param count\n * the number of elements\n */\n public void assertNotElementCount(final String elementLocator, final int count);\n\n /**\n * Asserts that the number of elements found by using the given element locator is unequal to the given count.\n * \n * @param elementLocator\n * the element locator\n * @param count\n * the number of elements\n */\n public void assertNotElementCount(final String elementLocator, final String count);\n\n /**\n * Asserts that the given element is not present.\n * \n * @param elementLocator\n * locator identifying the element that should be NOT present\n */\n public void assertNotElementPresent(final String elementLocator);\n\n /**\n * Asserts that evaluating the given expression does NOT match the given text pattern.\n * \n * @param expression\n * the expression to evaluate\n * @param textPattern\n * the text pattern that the evaluation result must NOT match\n */\n public void assertNotEval(final String expression, final String textPattern);\n\n /**\n * Asserts that no ID of all selected options of the given select element matches the given pattern.\n * \n * @param selectLocator\n * the select element locator\n * @param idPattern\n * the ID pattern\n */\n public void assertNotSelectedId(final String selectLocator, final String idPattern);\n\n /**\n * Asserts that the option of the given select element at the given index is not selected.\n * \n * @param selectLocator\n * the select element locator\n * @param indexPattern\n * the option index pattern\n */\n public void assertNotSelectedIndex(final String selectLocator, final String indexPattern);\n\n /**\n * Asserts that no label of all selected options of the given select element matches the given pattern.\n * \n * @param selectLocator\n * the select element locator\n * @param labelPattern\n * the label pattern\n */\n public void assertNotSelectedLabel(final String selectLocator, final String labelPattern);\n\n /**\n * Asserts that no value of all selected options of the given select element matches the given pattern.\n * \n * @param selectLocator\n * the select element locator\n * @param valuePattern\n * the value pattern\n */\n public void assertNotSelectedValue(final String selectLocator, final String valuePattern);\n\n /**\n * Asserts that the effective style of the element identified by the given element locator does NOT match the given\n * style.\n * \n * @param elementLocator\n * the element locator\n * @param styleText\n * the style that must NOT match (e.g. <code>width: 10px; overflow: hidden;</code>)\n */\n public void assertNotStyle(final String elementLocator, final String styleText);\n\n /**\n * Asserts that the embedded text of the given element does not contain the given text.\n * \n * @param elementLocator\n * locator identifying the element\n * @param text\n * the text that should not be embedded in the given element\n */\n public void assertNotText(final String elementLocator, final String text);\n\n /**\n * Asserts that the given text is not present on the page.\n * \n * @param text\n * the text that should NOT be present\n */\n public void assertNotTextPresent(final String text);\n\n /**\n * Asserts that the page title does not match the given title.\n * \n * @param title\n * the title that should not match\n */\n public void assertNotTitle(final String title);\n\n /**\n * Asserts that the value of the given element doesn't match the given value. If the element is a &lt;textarea&gt;\n * this method asserts that the containing text doesn't match the given value.\n * \n * @param elementLocator\n * locator identifying the element whose value doesn't match the given value\n * @param valuePattern\n * the value that doesn't match the given element's value\n */\n public void assertNotValue(String elementLocator, String valuePattern);\n\n /**\n * Asserts that the given element is invisible.\n * \n * @param elementLocator\n * the element locator.\n */\n public void assertNotVisible(final String elementLocator);\n\n /**\n * Asserts that the number of elements locatable by the given XPath expression is not equal to the given count.\n * \n * @param xpath\n * the XPath expression\n * @param count\n * the number of elements that should NOT be equal to the actual number of elements matching the given\n * XPath expression\n */\n public void assertNotXpathCount(final String xpath, final int count);\n\n /**\n * Asserts that the number of elements locatable by the given XPath expression is not equal to the given count.\n * \n * @param xpath\n * the XPath expression\n * @param count\n * the number of elements that should NOT be equal to the actual number of elements matching the given\n * XPath expression\n */\n public void assertNotXpathCount(final String xpath, final String count);\n\n /**\n * Asserts that the size of the actual page (including images etc.) does not exceed the given value.\n * \n * @param pageSize\n * the number of bytes the page size must not exceed\n */\n public void assertPageSize(final long pageSize);\n\n /**\n * Asserts that the size of the actual page (including images etc.) does not exceed the given value.\n * \n * @param pageSize\n * the number of bytes the page size must not exceed\n */\n public void assertPageSize(final String pageSize);\n\n /**\n * Asserts that the ID of at least one selected option of the given select element matches the given pattern.\n * \n * @param selectLocator\n * the select element locator\n * @param idPattern\n * ID pattern\n */\n public void assertSelectedId(final String selectLocator, final String idPattern);\n\n /**\n * Asserts that the option of the given select element at the given index is selected.\n * \n * @param selectLocator\n * the select element locator\n * @param indexPattern\n * the option index pattern\n */\n public void assertSelectedIndex(final String selectLocator, final String indexPattern);\n\n /**\n * Asserts that the label of at least one selected option of the given select element matches the given pattern.\n * \n * @param selectLocator\n * the select element locator\n * @param labelPattern\n * the label pattern\n */\n public void assertSelectedLabel(final String selectLocator, final String labelPattern);\n\n /**\n * Asserts that the value of at least one selected option of the given select element matches the given pattern.\n * \n * @param selectLocator\n * the select element locator\n * @param valuePattern\n * the value pattern\n */\n public void assertSelectedValue(final String selectLocator, final String valuePattern);\n\n /**\n * Asserts that the effective style of the element identified by the given element locator matches the given style.\n * \n * @param elementLocator\n * the element locator\n * @param styleText\n * the style to match (e.g. <code>width: 10px; overflow: hidden;</code>)\n */\n public void assertStyle(final String elementLocator, final String styleText);\n\n /**\n * Asserts that the text embedded by the given element contains the given text.\n * \n * @param elementLocator\n * locator identifying the element whose text should contain the given text\n * @param text\n * the text that should be embedded in the given element\n */\n public void assertText(final String elementLocator, final String text);\n\n /**\n * Asserts that the given text is present.\n * \n * @param text\n * the text that should be present\n */\n public void assertTextPresent(final String text);\n\n /**\n * Asserts that the given title matches the page title.\n * \n * @param title\n * the title that should match the page title\n */\n public void assertTitle(final String title);\n\n /**\n * Asserts that the value of the given element matches the given value. If the element is a &lt;textarea&gt; this\n * method asserts that the containing text matches the given value.\n * \n * @param elementLocator\n * locator identifying the element whose value should match the given value\n * @param valuePattern\n * the value that should match the given element's value\n */\n public void assertValue(String elementLocator, String valuePattern);\n\n /**\n * Asserts that the given element is visible.\n * \n * @param elementLocator\n * the element locator\n */\n public void assertVisible(final String elementLocator);\n\n /**\n * Asserts that the number of elements locatable by the given XPath expression is equal to the given count.\n * \n * @param xpath\n * the XPath expression\n * @param count\n * the number of elements that must match the given XPath expression\n */\n public void assertXpathCount(final String xpath, final int count);\n\n /**\n * Asserts that the number of elements locatable by the given XPath expression is equal to the given count.\n * \n * @param xpath\n * the XPath expression\n * @param count\n * the number of elements that must match the given XPath expression\n */\n public void assertXpathCount(final String xpath, final String count);\n\n /**\n * Closes the browser.\n */\n public void close();\n\n /**\n * Creates a new cookie. The new cookie will be stored as session cookie for the current path and domain.\n * \n * @param cookie\n * name value pair of the new cookie\n */\n public void createCookie(final String cookie);\n\n /**\n * Creates a new cookie.\n * \n * @param cookie\n * name value pair of the new cookie\n * @param options\n * cookie creation options (path, max_age and domain)\n */\n public void createCookie(final String cookie, final String options);\n\n /**\n * Removes all cookies visible to the current page.\n */\n public void deleteAllVisibleCookies();\n\n /**\n * Removes the cookie with the specified name.\n * \n * @param name\n * the cookie's name\n */\n public void deleteCookie(final String name);\n\n /**\n * Removes the cookie with the specified name.\n * \n * @param name\n * the cookie's name\n * @param options\n * cookie removal options (path, domain and recurse)\n */\n public void deleteCookie(final String name, final String options);\n\n /**\n * Prints the given message to the log.\n * \n * @param message\n * the message to print\n */\n public void echo(final String message);\n\n /**\n * Returns whether or not the given expression evaluates to <code>true</code>.\n * \n * @param jsExpression\n * the JavaScript expression to evaluate\n * @return <code>true</code> if and only if the given JavaScript expression is not blank and evaluates to\n * <code>true</code>\n */\n public boolean evaluatesToTrue(final String jsExpression);\n\n /**\n * Returns the result of evaluating the given JavaScript expression.\n * \n * @param jsExpression\n * the JavaScript expression to evaluate\n * @return result of evaluation\n */\n public String evaluate(final String jsExpression);\n\n /**\n * Returns the value of the given element attribute locator.\n * \n * @param attributeLocator\n * the element attribute locator\n * @return value of given element attribute locator\n */\n public String getAttribute(final String attributeLocator);\n\n /**\n * Returns the value of the given element and attribute.\n * \n * @param elementLocator\n * the element locator\n * @param attributeName\n * the name of the attribute\n * @return value of given element attribute locator\n */\n public String getAttribute(final String elementLocator, final String attributeName);\n\n /**\n * Returns the number of matching elements.\n * \n * @param elementLocator\n * the element locator\n * @return number of elements matching the given locator\n */\n public int getElementCount(final String elementLocator);\n\n /**\n * Returns the (visible) text of the current page.\n * \n * @return the page's (visible) text\n */\n public String getPageText();\n\n /**\n * Returns the (visible) text of the given element. If the element is not visible, the empty string is returned.\n * \n * @param elementLocator\n * the element locator\n * @return the element's (visible) text\n */\n public String getText(final String elementLocator);\n\n /**\n * Returns the title of the current page.\n * \n * @return page title\n */\n public String getTitle();\n\n /**\n * Returns the value of the given element. If the element doesn't have a value, the empty string is returned.\n * \n * @param elementLocator\n * the element locator\n * @return the element's value\n */\n public String getValue(final String elementLocator);\n\n /**\n * Returns the number of elements matching the given XPath expression.\n * \n * @param xpath\n * the XPath expression\n * @return number of matching elements\n */\n public int getXpathCount(final String xpath);\n\n /**\n * Returns whether or not the value of the attribute identified by the given attribute locator matches the given\n * text pattern.\n * \n * @param attributeLocator\n * the attribute locator\n * @param textPattern\n * the text pattern\n * @return <code>true</code> if the attribute value matches the given pattern, <code>false</code> otherwise\n */\n public boolean hasAttribute(final String attributeLocator, final String textPattern);\n \n /**\n * Returns whether or not the value of the given element and attribute matches the given text pattern.\n * \n * @param elementLocator\n * the element locator\n * @param attributeName\n * the name of the attribute\n * @param textPattern\n * the text pattern\n * @return <code>true</code> if the attribute value matches the given pattern, <code>false</code> otherwise\n */\n public boolean hasAttribute(final String elementLocator, final String attributeName, final String textPattern);\n\n /**\n * Returns whether or not the given element has the given class(es).\n * \n * @param elementLocator\n * the element locator\n * @param clazz\n * the class string (multiple CSS classes separated by whitespace)\n * @return <code>true</code> if the element's class attribute contains all of the given class(es),\n * <code>false</code> otherwise\n */\n public boolean hasClass(final String elementLocator, final String clazz);\n\n /**\n * Returns whether or not the given element has the given style; that is, all of the given CSS properties must match\n * the element's actual style.\n * \n * @param elementLocator\n * the element locator\n * @param style\n * the CSS style text to check (e.g. <code>width: 10px; overflow: hidden;</code>)\n * @return <code>true</code> if ALL of the given CSS properties match the elements actual style, <code>false</code>\n * otherwise\n */\n public boolean hasStyle(final String elementLocator, final String style);\n \n /**\n * Returns whether or not the given element doesn't have the given class(es); that is, its class attribute doesn't\n * contain any of the given class(es).\n * \n * @param elementLocator\n * the element locator\n * @param clazz\n * the class string (multiple CSS classes separated by whitespace)\n * @return <code>true</code> if the element's class attribute does not contains any of the given class(es),\n * <code>false</code> otherwise\n */\n public boolean hasNotClass(final String elementLocator, final String clazz);\n\n /**\n * Returns whether or not the given element doesn't have the given style; that is, none of the given CSS properties\n * must match the element's actual style.\n * \n * @param elementLocator\n * the element locator\n * @param style\n * the CSS style text to check (e.g. <code>width: 10px; overflow: hidden;</code>)\n * @return <code>true</code> if NONE of the given CSS properties match the element's actual style,\n * <code>false</code> otherwise\n */\n public boolean hasNotStyle(final String elementLocator, final String style);\n \n /**\n * Checks that the text embedded by the given element contains the given text.\n * \n * @param elementLocator\n * locator identifying the element whose text should contain the given text\n * @param textPattern\n * the text that should be embedded in the given element\n * @return <code>true</code> the text embedded by the given element contains the given text, <code>false</code>\n * otherwise\n */\n public boolean hasText(final String elementLocator, final String textPattern);\n \n\n /**\n * Checks that the given title matches the page title.\n * \n * @param title\n * the title that should match the page title\n * @return <code>true</code> if the given title matches the page title, <code>false</code> otherwise\n */\n public boolean hasTitle(final String title);\n \n /**\n * Checks that the value of the given element matches the given value. If the element is a &lt;textarea&gt; this\n * method checks that the containing text matches the given value.\n * \n * @param elementLocator\n * locator identifying the element whose value should match the given value\n * @param valuePattern\n * the value that should match the given element's value\n * @return <code>true</code> if the value of the given element matches the given value, <code>false</code> otherwise\n */\n public boolean hasValue(final String elementLocator, final String valuePattern);\n \n /**\n * Returns whether or not the element identified by the given element locator is checked.\n * \n * @param elementLocator\n * the element locator\n * @return <code>true</code> if the element identified by the given element locator is checked, <code>false</code>\n * otherwise\n */\n public boolean isChecked(final String elementLocator);\n\n /**\n * Returns whether or not there is an element for the given locator.\n * \n * @param elementLocator\n * the element locator\n * @return <code>true</code> if there at least one element has been found for the given locator, <code>false</code>\n * otherwise\n */\n public boolean isElementPresent(final String elementLocator);\n\n /**\n * Returns whether or not the given element is enabled.\n * \n * @param elementLocator\n * the element locator\n * @return <code>true</code> if element was found and is enabled, <code>false</code> otherwise\n */\n public boolean isEnabled(final String elementLocator);\n\n /**\n * Returns whether or not the result of evaluating the given expression matches the given text pattern.\n * \n * @param expression\n * the expression to evaluate\n * @param textPattern\n * the text pattern\n * @return <code>true</code> if the evaluation result matches the given pattern, <code>false</code> otherwise\n */\n public boolean isEvalMatching(final String expression, final String textPattern);\n\n \n /**\n * Checks that the given text is present.\n * \n * @param textPattern\n * the text that should be present\n * @return <code>true</code> if the given text is present, <code>false</code> otherwise\n */\n public boolean isTextPresent(final String textPattern);\n \n\n \n /**\n * Returns whether or not the given element is visible.\n * \n * @param elementLocator\n * the element locator\n * @return <code>true</code> if element was found and is visible, <code>false</code> otherwise\n */\n public boolean isVisible(final String elementLocator);\n\n /**\n * Sets the timeout to the given value.\n * \n * @param timeout\n * the new timeout in milliseconds\n */\n public void setTimeout(final long timeout);\n\n /**\n * Sets the timeout to the given value.\n * \n * @param timeout\n * the new timeout in milliseconds\n */\n public void setTimeout(final String timeout);\n\n /**\n * Stores the given text to the given variable.\n * \n * @param text\n * the text to store\n * @param variableName\n * the variable name\n */\n public void store(final String text, final String variableName);\n\n /**\n * Stores the value of the attribute identified by the given attribute locator to the given variable.\n * \n * @param attributeLocator\n * the attribute locator\n * @param variableName\n * the variable name\n */\n public void storeAttribute(final String attributeLocator, final String variableName);\n\n /**\n * Stores the value of the given element and attribute to the given variable.\n * \n * @param elementLocator\n * the element locator\n * @param attributeName\n * the name of the attribute\n * @param variableName\n * the variable name\n */\n public void storeAttribute(final String elementLocator, final String attributeName, final String variableName);\n\n /**\n * Stores that the number of elements found by using the given element locator to the given variable.\n * \n * @param elementLocator\n * the element locator\n * @param variableName\n * the variable name\n */\n public void storeElementCount(final String elementLocator, final String variableName);\n\n /**\n * Stores the result of evaluating the given expression to the given variable.\n * \n * @param expression\n * the expression to evaluate\n * @param variableName\n * the variable name\n */\n public void storeEval(final String expression, final String variableName);\n\n /**\n * Stores the text of the element identified by the given locator to the given variable.\n * \n * @param elementLocator\n * the element locator\n * @param variableName\n * the variable\n */\n public void storeText(final String elementLocator, final String variableName);\n\n /**\n * Stores the title of the currently active document to the given variable.\n * \n * @param variableName\n * the variable\n */\n public void storeTitle(final String variableName);\n\n /**\n * Stores the value (in case of a <code>&lt;textarea&gt;</code> the contained text) of the element identified by the\n * given locator to the given variable.\n * \n * @param elementLocator\n * the element locator\n * @param variableName\n * the variable\n */\n public void storeValue(final String elementLocator, final String variableName);\n\n /**\n * Stores the number of elements matching the given XPath expression to the given variable.\n * \n * @param xpath\n * the XPath expression\n * @param variableName\n * the variable\n */\n public void storeXpathCount(final String xpath, final String variableName);\n}", "@Test\n void test() {\n Game g = init(\"gen_2p_02\");\n List<Player> players = g.getData().getPlayers();\n wrappedIllegalCommand(g, players.get(0), \"tool 6\");\n wrappedLegalCommand(g, players.get(0), \"pick 1\");\n assertTrue(g.isUndoAvailable());\n wrappedLegalCommand(g, players.get(0), \"tool 6\");\n assertFalse(g.isUndoAvailable());\n lightestShade(g, players);\n notLightestShade(g, players);\n }" ]
[ "0.64333636", "0.6253338", "0.61520976", "0.60144424", "0.5923835", "0.59095", "0.59095", "0.58312654", "0.58076566", "0.5802828", "0.5795668", "0.57830405", "0.5733135", "0.5729495", "0.5703159", "0.56923497", "0.56756306", "0.565997", "0.56124073", "0.560975", "0.5593158", "0.5564176", "0.5553659", "0.55529374", "0.5547559", "0.5539907", "0.55274147", "0.5522779", "0.55082834", "0.5491854", "0.5491854", "0.54834056", "0.5478383", "0.5468163", "0.54639137", "0.5460234", "0.5454435", "0.54502916", "0.5444061", "0.5444061", "0.54434943", "0.5438332", "0.54364276", "0.543521", "0.5426214", "0.5421316", "0.54213125", "0.54140717", "0.54096526", "0.5403898", "0.53881466", "0.5384811", "0.53790706", "0.5367241", "0.5363321", "0.5354191", "0.5353636", "0.5349542", "0.53479946", "0.5342492", "0.53412926", "0.53392255", "0.5338997", "0.5337853", "0.53327113", "0.53297824", "0.53261876", "0.53258026", "0.5318542", "0.5313194", "0.5303124", "0.53030866", "0.52988553", "0.5298097", "0.52967024", "0.5294778", "0.5290857", "0.5290852", "0.5287853", "0.52861327", "0.5284373", "0.5283557", "0.5271833", "0.5260301", "0.5260071", "0.5258421", "0.525593", "0.52530324", "0.52509916", "0.5249085", "0.5247018", "0.52450264", "0.5244466", "0.5236874", "0.5236478", "0.52310634", "0.5226537", "0.52247286", "0.5220562", "0.52180165" ]
0.6153165
2
Unit test for the extension to the create command and response.
public void testDomainCreate() { EPPDomainCreateCmd theCommand; EPPEncodeDecodeStats commandStats; EPPCodecTst.printStart("testDomainCreate"); // Create Command theCommand = new EPPDomainCreateCmd("ABC-12345", "example.com", new EPPAuthInfo("2fooBAR")); EPPFeeCreate theCreateExt = new EPPFeeCreate(new EPPFeeValue( new BigDecimal("5.00"))); theCreateExt.setCurrency("USD"); theCommand.addExtension(theCreateExt); commandStats = EPPCodecTst.testEncodeDecode(theCommand); System.out.println(commandStats); // Create Response EPPDomainCreateResp theResponse; EPPTransId respTransId = new EPPTransId(theCommand.getTransId(), "54321-XYZ"); theResponse = new EPPDomainCreateResp(respTransId, "example.com", new GregorianCalendar(1999, 4, 3).getTime(), new GregorianCalendar(2001, 4, 3).getTime()); theResponse.setResult(EPPResult.SUCCESS); EPPFeeCreData theRespExt = new EPPFeeCreData("USD", new EPPFeeValue( new BigDecimal("5.00"))); theCommand.addExtension(theRespExt); commandStats = EPPCodecTst.testEncodeDecode(theCommand); System.out.println(commandStats); respTransId = new EPPTransId(theCommand.getTransId(), "54321-XYZ"); theResponse = new EPPDomainCreateResp(respTransId, "example.com", new GregorianCalendar(1999, 4, 3).getTime(), new GregorianCalendar(2001, 4, 3).getTime()); theResponse.setResult(EPPResult.SUCCESS); theRespExt = new EPPFeeCreData("USD", new EPPFeeValue(new BigDecimal( "5.00"))); theRespExt.setBalance(new BigDecimal("-5.00")); theRespExt.setCreditLimit(new BigDecimal("1000.00")); theCommand.addExtension(theRespExt); commandStats = EPPCodecTst.testEncodeDecode(theCommand); System.out.println(commandStats); EPPCodecTst.printEnd("testDomainCreate"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "public void shouldCreate() {\n }", "@Test\n public void testDemotivatorCreateSuccess() throws IOException{\n \tFixtures.deleteAllModels();\n \tFixtures.loadModels(\"data/user.yml\");\n \t\n \tauthenticate();\n \t\n \tMap<String, String> createDemoParams = new HashMap<String, String>();\n \tcreateDemoParams.put(\"title\", THIRTY_CHARS_TITLE);\n \tcreateDemoParams.put(\"text\", EIGHTY_CHARS_TEXT);\n \tcreateDemoParams.put(\"mode\", \"create\");\n \tMap<String, File> fileParams = new HashMap<String, File>();\n \tFile file = new File(\"test/data/image.jpg\");\n \tfileParams.put(\"image\", file);\n\n \tResponse response = POST(\"/create\", createDemoParams, fileParams);\n\n \tassertStatus(200, response);\n \tassertContentType(\"application/json; charset=utf-8\", response);\n \t\n \tList<Demotivator> demos = Demotivator.findAll();\n \tassertEquals(1, demos.size());\n \tassertEquals(THIRTY_CHARS_TITLE, demos.get(0).getTitle());\n \tassertEquals(EIGHTY_CHARS_TEXT, demos.get(0).getText());\n \tassertEquals(\"localhost\", demos.get(0).getDomain().getName());\n \tlong id = demos.get(0).getId().longValue();\n \t\n \tassertContentEquals(\"{\\\"fileName\\\":\\\"/image/thumb.test.file.name\\\",\\\"id\\\":\\\"\" + id + \"\\\",\\\"status\\\":\\\"success\\\"}\", response);\n }", "public abstract Response create(Request request, Response response);", "public void create(HandlerContext context, Management request, Management response) {\n\t\t// TODO Auto-generated method stub\n\n\t}", "Response createResponse();", "public void create(){}", "ResponseType createResponseType();", "protected abstract T createTestResource();", "@Override\n\tpublic void create(IWizardEntity entity, WizardRunner runner) {\n\t\t\n\t}", "public void testContentCreationTest() {\n\t\tQuestion question = new Question(\"Q title test\", \"Q body test\", \"Q author id test\");\n\t\tAnswer answer = new Answer(\"A body test\", \"A author id test\");\n\t\tReply reply = new Reply(\"R body test\", \"R author id test\");\n\t\tUser user = new User();\n\t\t//adds the question of the topic to an array of saved questions\n\t\tquestion.addAnswer(answer);\n\t\tquestion.addReply(reply);\n\t\t//question.setFavourite(user);\n\t\t//answer.setFavourite(user);\n\t\tanswer.addReply(reply);\n\t\t//tests if answer added to question is correct\n\t\tassertTrue(question.getAnswerCount() == 1);\n\t\t//smoke test code reply and answers.\n\t\tassertTrue(question.getReplies().get(0).getId().equals(reply.getId()));\n\t\tassertTrue(question.getAnswers().get(0).equals(answer));\n\t}", "public abstract void create();", "@Test\n public void create_405() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n Integer id = addMOToDb(3).getId();\n\n // PREPARE THE TEST\n // Change the name\n Workflow mo = new Workflow();\n mo.setName(\"Different name\");\n mo.setDescription(\"Different description\");\n mo.setRaw(\"Different raw\");\n\n\n // DO THE TEST\n Response response = callAPI(VERB.POST, \"/mo/\" + id.toString(), mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(405, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"HTTP 405 Method Not Allowed\", body);\n }", "@Test\n\tpublic void test_create_new_user_success(){\n\t\tUser user = new User(null, \"create_user\", \"[email protected]\", \"12345678\");\n\t\tResponseEntity<User> response = template.postForEntity(REST_SERVICE_URI + ACCESS_TOKEN + token, user, User.class);\n\t\tUser newUser = response.getBody();\n\t\tassertThat(newUser.getName(), is(\"create_user\"));\n\t\tassertThat(response.getStatusCode(), is(HttpStatus.CREATED));\n\t\tvalidateCORSHttpHeaders(response.getHeaders());\n\t}", "public void create() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "@Test\n\tpublic static void create_Task() {\n\t\tString testName = \"Valid Scenario- When all the data are valid\";\n\t\tlog.info(\"Valid Scenario: Create Task\");\n\t\t// report generation start\n\t\textentTest = extent.startTest(\"Task Controller- Create Task\");\n\n\t\tResponse response = HttpOperation\n\t\t\t\t.createAuthToken(PayLoads.createAuthToken_Payload(extentTest, auth_sheetName, auth_valid_testName));\n\t\tString authToken = ReusableMethods.Auth(extentTest, response);\n\n\t\t// response for login the user\n\t\tresponse = HttpOperation.loginUser(authToken, PayLoads.create_user_Payload(user_sheet, testName));\n\t\tlog.info(\"Response received for login\");\n\t\textentTest.log(LogStatus.INFO, \"Response received for login:- \" + response.asString());\n\n\t\t// get the User Token\n\t\tJsonPath jp = ReusableMethods.rawToJson(response);\n\t\tuserToken = jp.get(\"jwt\");\n\t\tlog.info(\"Received User Token:- \" + userToken);\n\t\textentTest.log(LogStatus.INFO, \"User Token:- \" + userToken);\n\n\t\t// Creating the Task response\n\t\tresponse = HttpOperation.create_Task(userToken, PayLoads.create_task_Payload(sheetName, testName));\n\n\t\tlog.info(\"Response received to create the task\");\n\t\textentTest.log(LogStatus.INFO, \"Response received to create the task:- \" + response.asString());\n\n\t\t// Assertion\n\n\t\tAssert.assertEquals(response.getStatusCode(), 201);\n\t\tlog.info(\"Assertion Passed!!\");\n\t\textentTest.log(LogStatus.INFO, \"HTTP Status Code:- \" + response.getStatusCode());\n\n\t}", "@Test\n @SuppressWarnings({\"PMD.JUnitTestsShouldIncludeAssert\"})\n public void testCreateRoomOkResponse() {\n // given\n final CreateRoomRequest createRoomRequest = CreateRoomRequest.builder().name(TEST_ROOM).build();\n given(clientResponseProvider.sendPostRequest(\n MultiUserChatConstants.MULTI_USER_CHAT_CREATE_ROOM_COMMAND, createRoomRequest))\n .willReturn(OK_RESPONSE);\n\n // when\n multiUserChatService.createRoom(TEST_ROOM);\n\n // then\n\n }", "@Test(groups = {\"rest-commands\"})\n public void createStandaloneInstanceTest() {\n GlassFishServer server = glassFishServer();\n Command command = new CommandCreateInstance(STANDALONE_INSTANCE, null,\n TestDomainV4Constants.NODE_NAME);\n try {\n Future<ResultString> future =\n ServerAdmin.<ResultString>exec(server, command);\n try {\n ResultString result = future.get();\n //assertNotNull(result.getValue());\n assertEquals(result.state, TaskState.COMPLETED);\n } catch ( InterruptedException | ExecutionException ie) {\n fail(\"CommandCreateInstance command execution failed: \" + ie.getMessage());\n }\n } catch (GlassFishIdeException gfie) {\n fail(\"CommandCreateInstance command execution failed: \" + gfie.getMessage());\n }\n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Test\n @SuppressWarnings({\"PMD.JUnitTestsShouldIncludeAssert\"})\n public void testCreateRoomWithOptionsOkResponse() {\n // given\n Map<String, String> options = new HashMap<>();\n final CreateRoomRequest createRoomRequest =\n CreateRoomRequest.builder().name(TEST_ROOM).options(options).build();\n given(clientResponseProvider.sendPostRequest(\n MultiUserChatConstants.MULTI_USER_CHAT_CREATE_ROOM_WITH_OPT_COMMAND, createRoomRequest))\n .willReturn(OK_RESPONSE);\n\n // when\n multiUserChatService.createRoomWithOptions(TEST_ROOM, options);\n\n // then\n }", "@Test\n public void testFindByCreate() throws Exception {\n\n Tracker tracker = new Tracker();\n\n String action = \"0\";\n String yes = \"y\";\n String no = \"n\";\n\n // add item\n\n String name = \"task1\";\n String desc = \"desc1\";\n String create = \"3724\";\n\n Input input1 = new StubInput(new String[]{action, name, desc, create, yes});\n new StartUI(input1).init(tracker);\n\n // find item\n\n String action2 = \"5\";\n\n Input input2 = new StubInput(new String[]{action2, create, yes});\n new StartUI(input2).init(tracker);\n\n }", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Test\n public void create_400() throws Exception {\n\n // PREPARE THE DATABASE\n // No data needed in database\n\n // PREPARE THE TEST\n // No preparation needed\n\n // DO THE TEST\n Response response = callAPI(VERB.POST, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(400, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"Wrong inputs\", body);\n\n }", "public CreationScenario(IEmergencyDispatchApi api, Logger logger) {\n\t\tsuper(\"Creation Test\", api, logger);\n\t}", "@Test\n\tpublic void testCreateCorrectParamCreationPb() {\n\t\tStickyPolicy sPolicy = PolicyGenerator.buildStickyPolicy();\n\t\tfinal String owner = \"\"+1;\n\t\t\n\t\tFormDataContentDisposition fileDetail = FormDataContentDisposition.name(\"file\").fileName(\"test.jpg\").build();\n\t\tInputStream uploadedInputStream = null;\n\t\ttry {\n\t\t\tuploadedInputStream = new FileInputStream(new File(FILE_DIR + FILE_NAME));\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t\t\n\t\twhen(mPiiService.create(\"test.jpg\", uploadedInputStream, sPolicy, owner)).thenReturn(null);\n\t\t\n\t\tResponse response = piiController.createPiiFile(uploadedInputStream, fileDetail, sPolicy, owner);\n\t\t\n\t\tverify(mPiiService).create(\"test.jpg\", uploadedInputStream, sPolicy, owner);\n\t\tverifyZeroInteractions(mPuidDao);\n\t\tassertEquals(500, response.getStatus());\n\t\t\n\t\tObject entity = response.getEntity();\n\t\tassertNull(entity);\n\t}", "@Test\n\tpublic void testAdminCreate() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(05, \"new acc\", 00001, 100.00, \"A\"));\n\t\ttransactions.add(2, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Account Created\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to create account as admin\", testResult);\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "protected abstract Command getCreateCommand(CreateRequest request);", "@CommandDescription(name=\"createAluno\", kind=CommandKind.Create, requestPrimitive=\"createAluno\", responsePrimitive=\"createAlunoResponse\")\npublic interface CreateAluno extends MessageHandler {\n \n public Aluno createAluno(Aluno toCreate);\n \n}", "@Test\n public void createNewComputerBuildSuccess() {\n ComputerBuild computerBuild = createComputerBuild(SAMPLE_BUDGET_COMPUTER_BUILD_NAME, SAMPLE_BUDGET_COMPUTER_BUILD_DESCRIPTION);\n LoginRequest loginRequest = new LoginRequest(ANOTHER_USER_NAME_TO_CREATE_NEW_USER, USER_PASSWORD);\n\n loginAndCreateBuild(computerBuild, loginRequest, SAMPLE_BUDGET_COMPUTER_BUILD_NAME, SAMPLE_BUDGET_COMPUTER_BUILD_DESCRIPTION);\n }", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n public MockResponse handleCreate(RecordedRequest request) {\n return process(request, postHandler);\n }", "@Test\n public void createTemplateTest() throws IdfyException, Exception {\n CreatePdfTemplate model = new CreatePdfTemplate.Builder().build();\n PdfTemplate response = api.createTemplate(model);\n assertNotNull(response);\n }", "interface Create {}", "@Test\n\tpublic void driverCreatePositiveTest() {\n\t\tDriver driver;\n\t\tUserAccount ua;\n\t\tfinal Authority authority;\n\t\tCollection<Authority> authorities;\n\n\t\tdriver = this.driverService.create();\n\t\tua = this.userAccountService.create();\n\t\tauthority = new Authority();\n\t\tauthority.setAuthority(Authority.DRIVER);\n\t\tauthorities = new ArrayList<Authority>();\n\t\tauthorities.add(authority);\n\n\t\tdriver.setName(\"Name\");\n\t\tdriver.setSurname(\"Surname\");\n\t\tdriver.setCountry(\"Country\");\n\t\tdriver.setCity(\"City\");\n\t\tdriver.setBankAccountNumber(\"ES4963116815932885489285\");\n\t\tdriver.setPhone(\"698456847\");\n\t\tdriver.setChilds(true);\n\t\tdriver.setMusic(true);\n\t\tdriver.setSmoke(false);\n\t\tdriver.setPets(true);\n\n\t\tua.setUsername(\"[email protected]\");\n\t\tua.setPassword(\"newdriver\");\n\t\tua.setAuthorities(authorities);\n\n\t\tdriver.setUserAccount(ua);\n\n\t\tthis.driverService.save(driver);\n\t\tthis.driverService.flush();\n\t}", "@Test\n public void create_databaseEmpty_201() throws Exception {\n\n // PREPARE THE DATABASE\n // No data needed in database \n\n // PREPARE THE TEST\n Workflow mo = new Workflow();\n mo.setName(\"My_Macro_Operator\");\n mo.setDescription(\"Description of my new macro operator\");\n mo.setRaw(\"Macro operator content\");\n\n // DO THE TEST\n Response response = callAPI(VERB.POST, \"/mo/\", mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(201, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n\n URI headerLocation = response.getLocation();\n Pattern pattern = Pattern.compile(\".*/mo/([0-9]+)\");\n Matcher matcher = pattern.matcher(headerLocation.toString());\n assertEquals(true, matcher.matches());\n String expectedId = matcher.group(1);\n assertEquals(getAPIURL() + \"/mo/\" + expectedId, headerLocation.toString());\n\n List<WorkflowEntitySummary> macroOpList = Facade.listAllMacroOp();\n assertEquals(1, macroOpList.size());\n\n Response response2 = callAPI(VERB.GET, \"/mo/\" + expectedId, mo);\n assertEquals(200, response2.getStatus());\n\n\n }", "@Test\n public void officeActionCreateAndRecreateTestFor77777777() {\n testCreateSampleEviOneForOffActn();\n testCreateSampleEviTwoForOffActn();\n UrlInputDto urlInput = new UrlInputDto(TradeMarkDocumentTypes.TYPE_OFFICE_ACTION.getAlfrescoTypeName());\n urlInput.setSerialNumber(ParameterValues.VALUE_SERIAL_77777777_NUMBER.toString());\n urlInput.setFileName(VALUE_OFFACTN_FILE_NAME);\n String OFFICEACTION_CREATE_WEBSCRIPT_URL = CaseCreateUrl.returnGenericCreateUrl(urlInput);\n Map<String, String> offActnParam = new HashMap<String, String>();\n offActnParam.put(ParameterKeys.URL.toString(), OFFICEACTION_CREATE_WEBSCRIPT_URL);\n offActnParam.put(ParameterKeys.METADATA.toString(), VALUE_OFFICEACTION_METADATA);\n offActnParam.put(ParameterKeys.CONTENT_ATTACHEMENT.toString(), OfficeActionBaseTest.CONTENT_OFFICEACTION_ATTACHMENT);\n testCreateOfficeAction(offActnParam);\n testDuplicateOfficeActionCreation(offActnParam);\n testCreateOfficeActionWithDifferentNewName();\n }", "@Test\n public void filesCreateTest() throws ApiException {\n String owner = null;\n String repo = null;\n FilesCreate data = null;\n PackageFileUpload response = api.filesCreate(owner, repo, data);\n\n // TODO: test validations\n }", "CreateResponse create(@NonNull CreateRequest request);", "public void testCreate() {\n TCreate_Input[] PriceLists_create_in = new TCreate_Input[] { PriceList_in };\n TCreate_Return[] PriceLists_create_out = priceListService.create(PriceLists_create_in);\n\n // test if creation was successful\n assertEquals(\"create result set\", 1, PriceLists_create_out.length);\n\n TCreate_Return PriceList_create_out = PriceLists_create_out[0];\n assertNoError(PriceList_create_out.getError());\n assertEquals(\"created?\", true, PriceList_create_out.getCreated());\n }", "@Test\n public final void testUserAPICreateUserAPI() {\n UserAPI result = new UserAPI();\n assertNotNull(result);\n // add additional test code here\n }", "public void sendCreateTest( MessageReceivedEvent event ) {\n\n final StringBuilder message = new StringBuilder();\n message.append( \"!poll create \\\"NoArgs\\\" \\n\" );\n message.append( \"!poll create \\\"\\\" \\\"\\\" \\n\" );\n message.append( \"!poll create NoQuotes Ans1 \\n\" );\n message.append( \"!poll create \\n\" );\n message.append( \"!poll \\n\" );\n message.append( \"!poll create \\\"PassPoll\\\" \\\"Ans1\\\" \\\"Ans2\\\" \\n\" );\n message.append(\"-----\");\n event.getChannel().sendMessage( message ).queue();\n }", "@Test\n public void test_whenCreateRequestForNotExisting_entityIsCreated() {\n CreateEntityRequestV1 command = prepareCreateEntityRequest();\n\n commandProcessor.process(ENTITY_ID_IN_SUBDOMAIN, command);\n\n // Let's verify that expected key and entity were stored in store.\n ArgumentCaptor<String> argumentKey = ArgumentCaptor.forClass(String.class);\n ArgumentCaptor<GenericRecord> argumentValue = ArgumentCaptor.forClass(GenericRecord.class);\n verify(entityKVStateStoreMock).put(argumentKey.capture(), argumentValue.capture());\n GenericRecord resultEntity = argumentValue.getValue();\n //\n // Verify key.\n assertEquals(ENTITY_ID_IN_SUBDOMAIN, argumentKey.getValue());\n //\n // Verify entity content.\n assertEquals(command.getEntityTypeName(), resultEntity.get(EntityV1FieldNames.ENTITY_TYPE_NAME) );\n assertEquals(command.getEntitySubdomainName(), resultEntity.get(EntityV1FieldNames.ENTITY_SUBDOMAIN_NAME) );\n assertEquals(command.getEntityIdInSubdomain(), resultEntity.get(EntityV1FieldNames.ENTITY_ID_IN_SUBDOMAIN));\n assertAttributesAreEqual(command.getEntityAttributes(),\n (GenericRecord) resultEntity.get(EntityV1FieldNames.ATTRIBUTES));\n\n // And verify that the same key and entity were forwarded.\n ArgumentCaptor<GenericRecord> argumentForwarded = ArgumentCaptor.forClass(GenericRecord.class);\n verify(processorContextMock).forward(argumentKey.capture(), argumentForwarded.capture());\n GenericRecord forwardedEntity = argumentForwarded.getValue();\n assertEquals(ENTITY_ID_IN_SUBDOMAIN, argumentKey.getValue());\n assertSame(resultEntity, forwardedEntity);\n }", "@Test\n public void create_databaseFilled_201() throws Exception {\n\n // PREPARE THE DATABASE\n addMOToDb(1);\n\n // PREPARE THE TEST\n Workflow mo = new Workflow();\n mo.setName(\"My_Macro_Operator\");\n mo.setDescription(\"Description of my new macro operator\");\n mo.setRaw(\"Macro operator content\");\n\n // DO THE TEST\n Response response = callAPI(VERB.POST, \"/mo/\", mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(201, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n\n URI headerLocation = response.getLocation();\n Pattern pattern = Pattern.compile(\".*/mo/([0-9]+)\");\n Matcher matcher = pattern.matcher(headerLocation.toString());\n assertEquals(true, matcher.matches());\n String expectedId = matcher.group(1);\n assertEquals(getAPIURL() + \"/mo/\" + expectedId, headerLocation.toString());\n\n List<WorkflowEntitySummary> macroOpList = Facade.listAllMacroOp();\n assertEquals(2, macroOpList.size());\n\n Response response2 = callAPI(VERB.GET, \"/mo/\" + expectedId, mo);\n assertEquals(200, response2.getStatus());\n\n }", "@Test\n public void test1() throws JsonProcessingException {\n JSONObject payload = getJsonObject(PAYLOAD_BASEPATH + \"saveEmployee.json\");\n\n payload.put(\"email\", RandomUtils.generateRandomString(5).concat(\"@gmail.com\"));\n payload.put(\"status\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value2\"));\n payload.put(\"name\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value3\"));\n payload.put(\"gender\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value4\"));\n\n log.info(\"api request is {} \", payload);\n Response response = given().headers(\"Authorization\", \"Bearer e85170d9b952bb8a12603f87d6c8f525946b4906c311b83eeec703bd0c1cbea0\").filter(new ErrorLoggingFilter(errorCapture)).contentType(ContentType.JSON).body(payload.toString()).log().everything().when().post(Constants.BASEPATH.concat(Constants.CREATE_USER));\n verifyStatusCode(response);\n verifyResponseBody(response, \"201\");\n// dbAssist.responseValidation(response);\n log.error(\"hey {} \", errorWriter.toString().toUpperCase());\n log.info(\"response is {}\", response.prettyPrint());\n }", "@Test\n public void testNewEntity_0args() {\n // newEntity() is not implemented!\n }", "public void XtestCreateAppContext()\n {\n fail(\"Unimplemented test\");\n }", "@Test\n void postTest() {\n URI uri = URI.create(endBody + \"/post\");\n\n // create a dummy body for easy JSON conversion\n QuestionText newQuestion = new QuestionText(\"Test\");\n\n // convert to json and send / store the response\n HttpResponse<String> response = HttpMethods.post(uri, gson.toJson(newQuestion));\n\n assertEquals(200, response.statusCode());\n }", "private void POSTTest(Map<String, Object> inputBody, int expectedStatus, Map<String, Object> expectedResponse, boolean strict) throws Exception{\n CloseableHttpResponse response = createUser(inputBody);\n int status = response.getStatusLine().getStatusCode();\n\n if (status == expectedStatus) {\n HttpEntity entity = response.getEntity();\n String strResponse = EntityUtils.toString(entity);\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n if (expectedStatus == 201) {\n expectedResponse.put(\"id\", Long.parseLong(getIdFromStringResponse(strResponse)));\n JSONObject json = new JSONObject(expectedResponse);\n JSONAssert.assertEquals(json.toString() ,strResponse, strict);\n } else {\n // // shouldnt be comaring response for an invalid request\n // if (!\"\".equals(strResponse)){\n // throw new ClientProtocolException(\"Unexpected response body: \" + strResponse);\n // }\n } \n\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n\n EntityUtils.consume(response.getEntity());\n response.close();\n }", "@Test\n public void officeActionCreateWithNoteTypeAsAssociation() {\n testCreateSampleNoteForOffActn();\n testCreateOfficeActionWithNoteAssoc();\n }", "public ServerResponseCreateArchive() {\n }", "Commands createCommands();", "public void successfulCreation(String type) {\n switch (type) {\n case \"Attendee\":\n System.out.println(\"Attendee Created\");\n break;\n case \"Organizer\":\n System.out.println(\"Organizer Created\");\n break;\n case \"Speaker\":\n System.out.println(\"Speaker Created\");\n break;\n case \"VIP\":\n System.out.println(\"VIP Created\");\n break;\n }\n }", "@Test\n\tpublic void givenCreateItem_whenValidRecord_ThenSuccess() {\n\t\tHashMap<String, Object> newRecord = getRecordHashMap(20, \"Steak\", \"Meats\", 15.5f);\n\n\t\t// create a new record and extract the ID from the response\n\t\tInteger newId = given().\n\t\t\tcontentType(ContentType.JSON).\n\t\t\tbody(newRecord).\n\t\twhen().\n\t\t\tpost(\"/\").\n\t\tthen().\n\t\t\tstatusCode(HttpStatus.CREATED.value()).\n\t\t\tcontentType(ContentType.JSON).\n\t\t\textract().\n\t\t\tpath(\"id\");\n\n\t\tnewRecord = setRecordId(newRecord, newId);\n\n\t\t// verify that the new record is created\n\t\tHashMap<String, Object> actual = given().\n\t\t\tpathParam(\"id\", newId).\n\t\twhen().\n\t\t\tget(\"/{id}\").\n\t\tthen().\n\t\t\tstatusCode(HttpStatus.OK.value()).\n\t\t\tcontentType(ContentType.JSON).\n\t\t\textract().path(\"$\");\n\n\t\tassertThat(newRecord).isEqualTo(actual);\n\n\t}", "@Override\n\tprotected Command getCreateCommand(CreateRequest request) {\n\t\treturn null;\n\t}", "public void testCrearDispositivo() {\n\t\tString referencia = \"A0021R\";\n\t\tString nombre = \"Motorola G primera generacion\";\n\t\tString descripcion = \"1 GB de RAM\";\n\t\tint tipo = 1;\n\t\tString foto = \"url\";\n\t\tString emailAdministrador = \"[email protected]\";\n\t\ttry {\n\t\t\tdispositivoBL.crearDispositivo(referencia, nombre, descripcion, tipo, foto, emailAdministrador);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void testCreateOfficeAction77() {\n UrlInputDto urlInput = new UrlInputDto(TradeMarkDocumentTypes.TYPE_OFFICE_ACTION.getAlfrescoTypeName());\n urlInput.setSerialNumber(ParameterValues.VALUE_SERIAL_77777777_NUMBER.toString());\n urlInput.setFileName(VALUE_OFFACTN_FILE_NAME_TWO);\n String OFFICEACTION_CREATE_WEBSCRIPT_URL = CaseCreateUrl.returnGenericCreateUrl(urlInput);\n Map<String, String> offActnParam = new HashMap<String, String>();\n offActnParam.put(ParameterKeys.URL.toString(), OFFICEACTION_CREATE_WEBSCRIPT_URL);\n offActnParam.put(ParameterKeys.METADATA.toString(), VALUE_OFFICEACTION_METADATA_TWO);\n offActnParam.put(ParameterKeys.CONTENT_ATTACHEMENT.toString(), OfficeActionBaseTest.CONTENT_OFFICEACTION_ATTACHMENT);\n ClientResponse response = createDocument(offActnParam);\n //String str = response.getEntity(String.class);\n //System.out.println(str);\n assertEquals(400, response.getStatus());\n }", "@Test\n\tpublic void testCreatePostLive() throws Exception\n\t{\n\t}", "@Test\n public void createUserTestTest()\n {\n HashMap<String, Object> values = new HashMap<String, Object>();\n values.put(\"age\", \"22\");\n values.put(\"dob\", new Date());\n values.put(\"firstName\", \"CreateFName\");\n values.put(\"lastName\", \"CreateLName\");\n values.put(\"middleName\", \"CreateMName\");\n values.put(\"pasword\", \"user\");\n values.put(\"address\", \"CreateAddress\");\n values.put(\"areacode\", \"CreateAddressLine\");\n values.put(\"city\", \"CreateCity\");\n values.put(\"country\", \"CreateCountry\");\n values.put(\"road\", \"CreateRoad\");\n values.put(\"suberb\", \"CreateSuberb\");\n values.put(\"cell\", \"CreateCell\");\n values.put(\"email\", \"user\");\n values.put(\"homeTell\", \"CreateHomeTell\");\n values.put(\"workTell\", \"CreateWorkTell\");\n createUser.createNewUser(values);\n\n Useraccount useraccount = useraccountCrudService.findById(ObjectId.getCurrentUserAccountId());\n Assert.assertNotNull(useraccount);\n\n Garage garage = garageCrudService.findById(ObjectId.getCurrentGarageId());\n Assert.assertNotNull(garage);\n\n Saleshistory saleshistory = saleshistoryCrudService.findById(ObjectId.getCurrentSalesHistoryId());\n Assert.assertNotNull(saleshistory);\n }", "@Test\n public void handleCompositeCommand1() {\n }", "@Test\n public void whenCreateValidStudent_thenReceiveOKResponse() throws IOException {\n final HttpPost httpPost = new HttpPost(BASE_URL + \"2/students\");\n final InputStream resourceStream = this.getClass().getClassLoader()\n .getResourceAsStream(\"created_student.xml\");\n httpPost.setEntity(new InputStreamEntity(resourceStream));\n httpPost.setHeader(\"Content-Type\", \"text/xml\");\n \n //In this case the Student object does not exist in the Course \n //istance and should be succefully created\n final HttpResponse response = client.execute(httpPost);\n assertEquals(200, response.getStatusLine().getStatusCode());\n \n //We may confirm the new states of the web service resource\n final Student student = getStudent(2, 3);\n assertEquals(3, student.getId());\n assertEquals(\"Student C\", student.getName());\n }", "Command createCommand() throws ServiceException, AuthException;", "@Test(\tdescription = \"Create a basic appointment\",\n\t\t\tgroups = { \"sanity\" }\n\t)\n\tpublic void CheckApptCreatedOnServer() throws HarnessException {\n\t\tAppointmentItem appt = new AppointmentItem();\n\t\tappt.setSubject(\"appointment\" + ZimbraSeleniumProperties.getUniqueString());\n\t\tappt.setContent(\"content\" + ZimbraSeleniumProperties.getUniqueString());\n\t\tappt.setStartTime(new ZDate(2014, 12, 25, 12, 0, 0));\n\t\tappt.setEndTime(new ZDate(2014, 12, 25, 14, 0, 0));\n\n\n\t\t// Open the new mail form\n\t\tFormApptNew apptForm = (FormApptNew) app.zPageCalendar.zToolbarPressButton(Button.B_NEW);\n\t\tZAssert.assertNotNull(apptForm, \"Verify the new form opened\");\n\n\t\t// Fill out the form with the data\n\t\tapptForm.zFill(appt);\n\n\t\t// Send the message\n\t\tapptForm.zSubmit();\n\t\t\t\n\t\t//verify toasted message 'group created' \n String expectedMsg =\"Appointment Created\";\n ZAssert.assertStringContains(app.zPageMain.zGetToaster().zGetToastMessage(),\n \t\t expectedMsg , \"Verify toast message '\" + expectedMsg + \"'\");\n \n\t\t\n\t\tverifyApptCreatedOnServer(appt);\n\t}", "@Test\n public void createProduct() {\n }", "@Override\n\tpublic void create(ReplyVO4 vo) throws Exception {\n\t\tsession.insert(namespace+\".create4\",vo);\n\t\n\t}", "public void testZRecordingCreation() {\n\t\tsolo.pressSpinnerItem(3, 1);\n\t\tsolo.clickOnText(\"Begin Rehearsing\");\n\t\tsolo.clickOnText(\"Rec\");\n\t\tsolo.clickOnText(\"Rec\");\n\t\tsolo.typeText(0, \"testName\");\n\t\tsolo.clickOnText(\"Save\");\n\t\t// If file exists already then overwrite it\n\t\tif (solo.searchButton(\"Yes\")) {\n\t\t\tsolo.clickOnButton(\"Yes\");\n\t\t}\n\t\tsolo.pressMenuItem(4);\n\t\tassertTrue(solo.searchText(\"testName\"));\n\t}", "@Test\n public void aTestRegister() {\n given()\n .param(\"username\", \"playlist\")\n .param(\"password\", \"playlist\")\n .post(\"/register\")\n .then()\n .statusCode(201);\n }", "@Test(dependsOnMethods = { \"testCreateTaskWithOptionalParameters\" },\n description = \"podio {createTask} integration test with negative case.\")\n public void testCreateTaskWithNegativeCase() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createTask_negative.json\");\n String apiEndPoint = apiUrl + \"/task\";\n \n RestResponse<JSONObject> apiRestResponse =\n sendJsonRestRequest(apiEndPoint, \"POST\", apiRequestHeadersMap, \"api_createTask_negative.json\");\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"error\"), apiRestResponse.getBody().getString(\"error\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"error_description\"), apiRestResponse.getBody()\n .getString(\"error_description\"));\n }", "public void testCreate() {\n TCreate_Return[] Baskets_create_out = basketService.create(new TCreate_Input[] { Basket_in });\n assertNoError(Baskets_create_out[0].getError());\n\n assertNull(\"No FormErrors\", Baskets_create_out[0].getFormErrors());\n assertEquals(\"created?\", true, Baskets_create_out[0].getCreated());\n assertNotNull(\"Path not null\", Baskets_create_out[0].getPath());\n BasketPath = Baskets_create_out[0].getPath();\n }", "@Test\n public void testCreate() {\n\n }", "@Test\n\tpublic void testCreate() throws Exception {\n\t\tMockHttpServletRequestBuilder reqBuilder = MockMvcRequestBuilders.post(\"/createJourney\");\n\t\treqBuilder.contentType(MediaType.APPLICATION_JSON);\n\t\treqBuilder.accept(MediaType.APPLICATION_JSON);\n\t\treqBuilder.content(this.mapper.writeValueAsString(journey));\n\t\t\n\t\tResultMatcher matchStatus = MockMvcResultMatchers.status().isCreated();\n\t\tResultMatcher matchContent = MockMvcResultMatchers.content().json(this.mapper.writeValueAsString(savedJourney));\t\n\t\t\t\t\n\t\tthis.mockMVC.perform(reqBuilder).andExpect(matchStatus).andExpect(matchContent);\n\t}", "@Test\r\n\tpublic void createFunctionTest(){\r\n\t\tSystem.out.println(\"TEST STARTED: createFunctionTest()\");\r\n\t\tLong orgId = null;\r\n\t\tLong funcId = null;\r\n\t\ttry{\r\n\t\t\t//create the test organization \r\n\t\t\tString createOrgResp = org_service.createOrganization(CREATE_ORG_REQ_1);\r\n\t\t\torgId = getRecordId(createOrgResp);\r\n\t\t\tSystem.out.println(createOrgResp);\r\n\t\t\t\r\n\t\t\t//create the test function linked to the organization test\r\n\t\t\tString createFuncResp = func_service.createFunction(CREATE_FUNCTION_REQ_1.replace(\"$ID_ORG\", orgId.toString()));\r\n\t\t\tSystem.out.println(\"CreateFunction Response: \"+createFuncResp);\r\n\t\t\t\r\n\t\t\t//get the new function ID\r\n\t\t\tfuncId = getRecordId(createFuncResp);\r\n\t\t\t\r\n\t\t\t//check if the createFuncResp is a well formed JSON object.\t\t\t\r\n\t\t\tcheckJsonWellFormed(createFuncResp);\r\n\t\t\t\r\n\t\t\t//Assert the JSON response does not have an error field\r\n\t\t\tAssert.assertTrue(!createFuncResp.contains(\"\\\"status\\\":\\\"error\\\"\"));\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tAssert.fail();\r\n\t\t}finally{\t\t\t\r\n\t\t\t//delete the test organization created\r\n\t\t\torg_service.deleteOrganization(DELETE_ORG_REQ_1+orgId+REQ_END);\r\n\r\n\t\t\tSystem.out.println(\"TEST ENDED: createFunctionTest()\");\r\n\t\t}\r\n\t}", "API createAPI();", "@Test(priority=1)\r\n\tpublic void createStudentSeraliztion() {\r\n\t\t//for seralization i used java object student.\r\n\t\t\r\n\t\tStudent student = new Student();\r\n\t\t//information look at book tutorial-9.\r\n\t\tstudent .setId(102);\r\n\t\tstudent .setFirstName(\"Mango\");\r\n\t\tstudent .setLastName(\"Rasalu\");\r\n\t\tstudent .setEmail(\"[email protected]\");\r\n\t\tstudent .setProgramme(\"King\");\r\n\t\t//Courses have two courses.wer using ArrayList To hold different courses.\r\n\t\tArrayList<String> courseList = new ArrayList<String>();\r\n\t\tcourseList.add(\"java\");\r\n\t\tcourseList.add(\"Selenium\");\r\n\t\tstudent.setCourses(courseList);\r\n\t\tgiven()\r\n\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t.body(student)\r\n\t\t.when()\r\n\t\t\t.post(\"http://localhost:8085/student\")\r\n\t\t.then()\r\n\t\t\t.statusCode(201)\r\n\t\t\t.assertThat()\r\n\t\t\t.body(\"msg\",equalTo(\"student added\"));\r\n\t\t\r\n\t\t\r\n\t}", "@Test(priority = 1, dependsOnMethods = { \"testGetFileWithNegativeCase\" },\n description = \"podio {createTask} integration test with mandatory parameters.\")\n public void testCreateTaskWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createTask_mandatory.json\");\n String taskId = esbRestResponse.getBody().getString(\"task_id\");\n connectorProperties.put(\"taskId\", taskId);\n \n String apiEndPoint = apiUrl + \"/task/\" + taskId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"text\"), apiRestResponse.getBody().getString(\"text\"));\n }", "@Test\n\tpublic static void invalid_create_Task_taskname() {\n\t\tString login_testName = \"Valid Scenario- When all the data are valid\";\n\t\tString task_testName = \"Invalid Scenario- With Invalid Taskname\";\n\t\tlog.info(\"Invalid Scenario- Create Task With invalid task name\");\n\t\t// report generation start\n\t\textentTest = extent.startTest(\"Invalid Scenario- Create Task With invalid taskname\");\n\n\t\tResponse response = HttpOperation\n\t\t\t\t.createAuthToken(PayLoads.createAuthToken_Payload(extentTest, auth_sheetName, auth_valid_testName));\n\t\tString authToken = ReusableMethods.Auth(extentTest, response);\n\n\t\t// response for login the user\n\t\tresponse = HttpOperation.loginUser(authToken, PayLoads.create_user_Payload(user_sheet, login_testName));\n\t\tlog.info(\"Response received for login\");\n\t\textentTest.log(LogStatus.INFO, \"Response received for login:- \" + response.asString());\n\n\t\t// get the User Token\n\t\tJsonPath jp = ReusableMethods.rawToJson(response);\n\t\tuserToken = jp.get(\"jwt\");\n\t\tlog.info(\"Received User Token:- \" + userToken);\n\t\textentTest.log(LogStatus.INFO, \"User Token:- \" + userToken);\n\n\t\t// Creating the Task response\n\t\tresponse = HttpOperation.create_Task(userToken, PayLoads.create_task_Payload(sheetName, task_testName));\n\n\t\tlog.info(\"Response received to create the task\");\n\t\textentTest.log(LogStatus.INFO, \"Response received to create the task:- \" + response.asString());\n\n\t\t// Assertion\n\n\t\tAssert.assertEquals(response.getStatusCode(), 406);\n\t\tlog.info(\"Assertion Passed!!\");\n\t\textentTest.log(LogStatus.INFO, \"HTTP Status Code:- \" + response.getStatusCode());\n\n\t}", "HarvestResponseType createHarvestResponseType();", "private CreateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@org.junit.Test\r\n public void testCreate() {\r\n System.out.println(\"create\");\r\n ContactRequest Crequest = new ContactRequest(\"DN Verma\",\"[email protected]\",\"9006745345\",\"faizabad\");\r\n ContactDao instance = new ContactDao();\r\n List<ContactResponse> expResult = new ArrayList<ContactResponse>();;\r\n List<ContactResponse> result = instance.create(Crequest);\r\n expResult=instance.getSingleContact(\"[email protected]\");\r\n String s=\"Duplicate entry '[email protected]' for key 1\";\r\n if(!result.get(0).getMessage().equals(s))\r\n {\r\n assertEquals(expResult.get(0).getName(), result.get(0).getName());\r\n assertEquals(expResult.get(0).getEmail(), result.get(0).getEmail());\r\n assertEquals(expResult.get(0).getCity(), result.get(0).getCity());\r\n assertEquals(expResult.get(0).getContact(), result.get(0).getContact());\r\n }\r\n }", "public abstract int createProductResponse();", "@Test\n\tpublic void create() {\n\t\t// Given\n\t\tString name = \"Mark\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"0211616447\";\n\n\t\t// When\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\n\t\t// Then\n\t\tAssert.assertNotNull(customer);\n\t}", "@Test\n public void testCreate() {\n //System.out.println(\"create\");\n URI context = URI.create(\"file:test\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n instance.create(context);\n }", "@Test\n\tpublic void testCreate(){\n\t\t\n\t\tString jsonStr = \"{'companyName':'Lejia', 'companyNameLocal':'Lejia', 'companyAddress':'Guangdong', 'txtEmail':'[email protected]', 'telephone':'17721217320', 'contactPerson':'Molly'}\";\n\t\tcreateUser.createUserMain(jsonStr);\n\t\t\n\t}", "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method allows to create a new requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_CREATED, message = \"Returns the created requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response createRequirement(@ApiParam(value = \"Requirement entity\", required = true) Requirement requirementToCreate) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n // TODO: check whether the current user may create a new requirement\n dalFacade = service.bazaarService.getDBConnection();\n Gson gson = new Gson();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n requirementToCreate.setCreatorId(internalUserId);\n Vtor vtor = service.bazaarService.getValidators();\n vtor.useProfiles(\"create\");\n vtor.validate(requirementToCreate);\n if (vtor.hasViolations()) {\n ExceptionHandler.getInstance().handleViolations(vtor.getViolations());\n }\n vtor.resetProfiles();\n\n // check if all components are in the same project\n for (Component component : requirementToCreate.getComponents()) {\n component = dalFacade.getComponentById(component.getId());\n if (requirementToCreate.getProjectId() != component.getProjectId()) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.VALIDATION, \"Component does not fit with project\");\n }\n }\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Create_REQUIREMENT, String.valueOf(requirementToCreate.getProjectId()), dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.requirement.create\"));\n }\n Requirement createdRequirement = dalFacade.createRequirement(requirementToCreate, internalUserId);\n dalFacade.followRequirement(internalUserId, createdRequirement.getId());\n\n // check if attachments are given\n if (requirementToCreate.getAttachments() != null && !requirementToCreate.getAttachments().isEmpty()) {\n for (Attachment attachment : requirementToCreate.getAttachments()) {\n attachment.setCreatorId(internalUserId);\n attachment.setRequirementId(createdRequirement.getId());\n vtor.validate(attachment);\n if (vtor.hasViolations()) {\n ExceptionHandler.getInstance().handleViolations(vtor.getViolations());\n }\n vtor.resetProfiles();\n dalFacade.createAttachment(attachment);\n }\n }\n\n createdRequirement = dalFacade.getRequirementById(createdRequirement.getId(), internalUserId);\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, createdRequirement.getCreation_time(), Activity.ActivityAction.CREATE, createdRequirement.getId(),\n Activity.DataType.REQUIREMENT, createdRequirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.status(Response.Status.CREATED).entity(gson.toJson(createdRequirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }", "com.exacttarget.wsdl.partnerapi.DefinitionResponseMsgDocument.DefinitionResponseMsg addNewDefinitionResponseMsg();", "@Before\n public void newHTTPTest() throws IOException {\n code = callHandlerResponse(\"\", \"POST\");\n }", "@Test\n\tpublic void createConsumerTest() {\n\t\twhen(consumerRepository.save(any(Consumer.class)))\n\t\t\t\t.then(invocation -> {\n\t\t\t\t\tConsumer consumer = (Consumer) invocation.getArguments()[0];\n\t\t\t\t\tconsumer.setId(CONSUMER_ID);\n\t\t\t\t\treturn consumer;\n\t\t\t\t});\n\n\t\t/* invoca la creazione del consumatore */\n\t\tConsumer consumer = consumerService.create(CONSUMER_FIRST_NAME, CONSUMER_LAST_NAME);\n\n\t\t/* verifica che il consumatore è stato salvato */\n\t\tverify(consumerRepository)\n\t\t\t\t.save(same(consumer));\n\t\t/* verifica che è stato creato un evento di creazione del consumatore */\n\t\tverify(domainEventPublisher)\n\t\t\t\t.publish(new ConsumerCreatedEvent(CONSUMER_ID, CONSUMER_FIRST_NAME, CONSUMER_LAST_NAME), ConsumerServiceChannel.consumerServiceChannel);\n\t}", "@Test\n public void testCreateProductShouldCorrect() throws Exception {\n when(productRepository.existsByName(productRequest.getName())).thenReturn(false);\n when(productRepository.save(any(Product.class))).thenReturn(product);\n\n testResponseData(RequestInfo.builder()\n .request(post(PRODUCT_ENDPOINT))\n .token(adminToken)\n .body(productRequest)\n .httpStatus(HttpStatus.OK)\n .build());\n }", "@Test\n\tpublic void testCreate() {\n\t\tApp app = new App();\n\t\tapp.setId(1L);\n\t\tRole role = new Role();\n\t\trole.setApp(app);\n\t\trole.setName(\"admin中国\");\n\t\troleService.create(role);\n\t}", "@Test\n public void autocreateLesson() throws Exception{\n\n }", "@Test\r\n void addUser() throws Exception, IOException {\r\n }", "@Test\r\n\tpublic void test() {\n\t\tString serverUrl = \"https://openapi.kaola.com/router\";\r\n\t\tString accessToken = \"a2d50342-d6c9-4bff-9329-ab289904cf68\";\r\n\t\tString appKey = \"3526616f2ecf2beeceac7f7a940dce41\";\r\n\t\tString appSecret = \"afab22a1e6124bbd93179adb37188fe5a9cdbc5d78dc1631be2d6a4efc896c83\";\r\n\t\tDefaultKaolaClient client = new DefaultKaolaClient(serverUrl, accessToken, appKey, appSecret);\r\n\r\n\t\tItemAddRequest request = (ItemAddRequest) ObjectFieldManager.pushValues(new ItemAddRequest(), createAddItemRequest());\r\n\t\tSystem.out.println(JsonUtils.toJson(request));\r\n\t\tItemAddResponse response = client.execute(request);\r\n\t\tSystem.out.println(JsonUtils.toJson(response));\r\n\t}", "@Test\n final void testCreateDevice() {\n when(deviceDao.save(user, deviceDTO)).thenReturn(deviceDTO);\n when(request.getRemoteAddr()).thenReturn(DeviceFixture.PUBLIC_IP_ADDRESS);\n when(deviceDao.createDevice(user, createDeviceRequest, DeviceFixture.PUBLIC_IP_ADDRESS))\n .thenReturn(deviceDTO);\n when(deviceMapper.toModel(deviceDTO)).thenReturn(deviceModel);\n\n ResponseEntity<DeviceModel> response = deviceController.createDevice(createDeviceRequest);\n\n assertEquals(200, response.getStatusCodeValue());\n assertNotNull(response.getBody());\n DeviceModel device = response.getBody();\n assertEquals(deviceModel, device);\n }", "Command createCommand();", "@Path(\"resource/create\")\n @POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n// public Response createText(@FormParam(\"\") TextDTO text) {\n public Response createResource(RSComponentDTO dto) {\n Response.ResponseBuilder rb = Response.created(context.getAbsolutePath());\n\n try {\n\n Collection parentCollection = ResourceSystemComponent.load(Collection.class, dto.uriParent);\n RSCType type = DTOValueRSC.instantiate(RSCType.class).withValue(ResourceSystemAnnotationType.RESOURCE);\n RSCParent parent = DTOValueRSC.instantiate(RSCParent.class).withValue(parentCollection);\n\n ResourceSystemComponent resource = ResourceSystemComponent.of(Resource.class, dto.uri)\n .withParams(dto.name, dto.description, type, parent);\n\n resource.setResourceContent(load(dto.catalogItemUri));\n parentCollection.add(resource);\n parentCollection.save();\n\n } catch (InstantiationException ie) {\n log.error(ie.getLocalizedMessage());\n rb.entity(new ServiceResult(\"1\", \"Error, \" + ExceptionUtils.getRootCauseMessage(ie)));\n return rb.build();\n } catch (IllegalAccessException iae) {\n log.error(iae.getLocalizedMessage());\n rb.entity(new ServiceResult(\"2\", \"Error, \" + ExceptionUtils.getRootCauseMessage(iae)));\n return rb.build();\n } catch (VirtualResourceSystemException vrse) {\n log.error(vrse.getLocalizedMessage());\n rb.entity(new ServiceResult(\"3\", \"Error, \" + ExceptionUtils.getRootCauseMessage(vrse)));\n return rb.build();\n } catch (ManagerAction.ActionException ex) {\n log.error(ex.getLocalizedMessage());\n rb.entity(new ServiceResult(\"4\", \"Error, \" + ExceptionUtils.getRootCauseMessage(ex)));\n return rb.build();\n } catch (Annotation.Data.InvocationMethodException ime) {\n log.error(ime.getLocalizedMessage());\n rb.entity(new ServiceResult(\"5\", \"Error, \" + ExceptionUtils.getRootCauseMessage(ime)));\n return rb.build();\n }\n\n log.info(\"resource created\");\n\n return rb.entity(new ServiceResult()).build();\n }", "@Test\n public void shouldCreateAnValidRoomAndPersistIt() throws Exception {\n\n\tfinal CreateRoomCommand command = new CreateRoomCommand(\n\t\tArrays.asList(validRoomOfferValues));\n\n\tfinal UrlyBirdRoomOfferService roomOfferService = new UrlyBirdRoomOfferService(\n\t\tdao, builder, isOccupancyIn48Hours, isRoomBookable);\n\n\twhen(isOccupancyIn48Hours.isSatisfiedBy((Date) any())).thenReturn(true);\n\twhen(dao.create(Arrays.asList(validRoomOfferValues))).thenReturn(\n\t\tvalidRoomOffer);\n\n\tfinal UrlyBirdRoomOffer createdRoomOffer = roomOfferService\n\t\t.createRoomOffer(command);\n\n\tverify(dao).create(Arrays.asList(validRoomOfferValues));\n\tassertThat(createdRoomOffer, is(equalTo(validRoomOffer)));\n }", "@Test(enabled=false)\n\tpublic void createPostCheckBodyContents() {\n\t\tPosts posts = new Posts(\"4\", \"Packers\", \"Favre\");\n\t\t\n\t\tgiven().\n\t\twhen().contentType(ContentType.JSON).\n\t\tbody(posts).\n\t\tpost(\"http://localhost:3000/posts/\").\n\t\tthen().\n\t\tstatusCode(201).\n\t\tbody(\"id\", is(posts.getId())).\n\t\tbody(\"title\",is(posts.getTitle())).\n\t\tbody(\"author\",is(posts.getAuthor()));\n\t}", "@Test (priority = 1)\n\tpublic void TC1_CheckCreateNewuser_Exists ()\n\n\t{\n\t\tCreateUserPage UserObj = new CreateUserPage (driver);\n\n\t\t// This is to Validate If Create user button exists to Create a new User\n\t\tUserObj.Validate_CreateUserButton_Exsist();\n\n\t}", "@Test\r\n public void testCreateMethod() {\r\n DailyBudget budget = new DailyBudget();\r\n\r\n budget.setName(\"Test budget\");\r\n RequestBuilder requestBuilder = MockMvcRequestBuilders\r\n .post(\"/api/budget\")\r\n .characterEncoding(\"utf-8\")\r\n .accept(MediaType.APPLICATION_JSON)\r\n .contentType(MediaType.APPLICATION_JSON)\r\n .header(\"authorization\", authUtils.generateToken(testUser.getEmail()))\r\n .content(String.format(\"{%s: %s}\",\r\n getEnclosedString(\"id\"),\r\n getEnclosedString(testUser.getId().toString())));\r\n\r\n try {\r\n MvcResult result = mockMvc.perform(requestBuilder).andReturn();\r\n MockHttpServletResponse response = result.getResponse();\r\n BudgetRole createdRole;\r\n\r\n assertEquals(HttpStatus.CREATED.value(), response.getStatus());\r\n assertEquals(1, testRoles.size()); // make sure only one instance was created\r\n\r\n createdRole = testRoles.get(0);\r\n assertEquals(testUser, createdRole.getUser());\r\n assertEquals(BudgetRoleType.CREATOR.rank, createdRole.getRoleType().rank);\r\n }\r\n catch (Exception ex) {\r\n log.error(ex.getMessage());\r\n }\r\n }" ]
[ "0.66569614", "0.6549519", "0.6526835", "0.6348653", "0.6312227", "0.629299", "0.6268239", "0.62224734", "0.61516815", "0.6069707", "0.59718347", "0.5950589", "0.59498525", "0.59394217", "0.5933413", "0.5887972", "0.5882497", "0.5872452", "0.5851379", "0.5830935", "0.58274496", "0.58193845", "0.58029133", "0.578282", "0.57777005", "0.5776377", "0.57672423", "0.5742333", "0.5741041", "0.5727344", "0.5725725", "0.57188976", "0.57155854", "0.5712074", "0.57012117", "0.5663273", "0.5639292", "0.5634073", "0.5632287", "0.56296474", "0.56211436", "0.56207424", "0.5613687", "0.5606415", "0.5601915", "0.56015646", "0.5598351", "0.5595645", "0.55956423", "0.55949473", "0.5590507", "0.5588707", "0.55758095", "0.55674577", "0.5566323", "0.5554227", "0.5552388", "0.55494875", "0.5548822", "0.55477256", "0.55459344", "0.5537913", "0.55299956", "0.5519214", "0.5510912", "0.5507939", "0.5507355", "0.55018806", "0.55012697", "0.5499195", "0.54953915", "0.5492249", "0.549214", "0.5489646", "0.5485685", "0.5481316", "0.5480609", "0.5480369", "0.54786587", "0.5472925", "0.5470742", "0.54682314", "0.54605305", "0.5457337", "0.54537505", "0.5452589", "0.5452366", "0.5440128", "0.5437967", "0.5437282", "0.5436863", "0.5425645", "0.5423494", "0.54230016", "0.5421871", "0.54190874", "0.541239", "0.54093456", "0.5408418", "0.54079056" ]
0.6189703
8
Unit test for the extension to the renew command and response.
public void testDomainRenew() { EPPCodecTst.printStart("testDomainRenew"); // Create Command Calendar theCal = Calendar.getInstance(); theCal.setTimeZone(TimeZone.getTimeZone("UTC")); theCal.set(2000, 4, 03, 0, 0, 0); theCal.set(Calendar.MILLISECOND, 0); Date theDate = theCal.getTime(); EPPDomainRenewCmd theCommand = new EPPDomainRenewCmd("ABC-12345", "example.com", theDate, new EPPDomainPeriod(5)); EPPFeeRenew theRenewExt = new EPPFeeRenew(new EPPFeeValue( new BigDecimal("5.00"))); theCommand.addExtension(theRenewExt); EPPEncodeDecodeStats commandStats = EPPCodecTst .testEncodeDecode(theCommand); System.out.println(commandStats); // Create Response EPPDomainRenewResp theResponse; EPPTransId respTransId = new EPPTransId(theCommand.getTransId(), "54321-XYZ"); theResponse = new EPPDomainRenewResp(respTransId, "example.com", new GregorianCalendar(2000, 4, 3).getTime()); theResponse.setResult(EPPResult.SUCCESS); EPPFeeRenData theRespExt = new EPPFeeRenData("USD", new EPPFeeValue( new BigDecimal("5.00"))); theResponse.addExtension(theRespExt); commandStats = EPPCodecTst.testEncodeDecode(theResponse); System.out.println(commandStats); respTransId = new EPPTransId(theCommand.getTransId(), "54321-XYZ"); theResponse = new EPPDomainRenewResp(respTransId, "example.com", new GregorianCalendar(2000, 4, 3).getTime()); theResponse.setResult(EPPResult.SUCCESS); theRespExt = new EPPFeeRenData(); theRespExt.setCurrency("USD"); theRespExt.addFee(new EPPFeeValue(new BigDecimal("5.00"), null, true, "P5D", EPPFeeValue.APPLIED_IMMEDIATE)); theRespExt.setBalance(new BigDecimal("1000.00")); theResponse.addExtension(theRespExt); commandStats = EPPCodecTst.testEncodeDecode(theResponse); System.out.println(commandStats); EPPCodecTst.printEnd("testDomainRenew"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void updateDecline() throws Exception {\n }", "public void requestLicenseRenewal(boolean pExitProgramOnFail)\n{\n\n //create a random number which can be relayed to the technician - the\n //technician must supply a matching answer value\n\n //try random numbers until one above 1000 is generated to ensure 4 digit\n //code\n int cipher = 0;\n while (cipher < 1000) {cipher = (int)(Math.random() * 10000);}\n\n //NOTE: createRenewalCode function is called for testing only - the\n // programmer can set a breakpoint to catch the generated code and\n // feed it back into the License Renewal window. The user cannot view\n // or access the code.\n\n createRenewalCode(cipher, 12);\n\n String renewalCode = (String)JOptionPane.showInputDialog(mainFrame,\n \"Call manufacturer for assistance with Code: \"\n + cipher +\n \" Enter response code from technician into the box below and click OK.\",\n \"Message L9000\", JOptionPane.INFORMATION_MESSAGE);\n\n long renewalDate = -1;\n\n if ((renewalCode != null) && (renewalCode.length() > 0)) {\n renewalDate = verifyRenewalCode(cipher, renewalCode);\n }\n\n if (renewalDate == -1){\n\n //if flag set, exit program on fail\n if (pExitProgramOnFail) {\n mainFrame.dispatchEvent(\n new WindowEvent(mainFrame, WindowEvent.WINDOW_CLOSING));\n }\n\n return; //exit on failure no matter what - don't save license file\n }\n\n //if user entered a valid code, save the new expiration date\n saveLicenseFile(renewalDate, false);\n\n}", "protected void testUncancelReal() {\n\n log.info(\"Starting testUncancel\");\n\n try {\n\n String prod = \"Shotgun\";\n BillingPeriod term = BillingPeriod.MONTHLY;\n String planSet = IPriceListSet.DEFAULT_PRICELIST_NAME;\n\n // CREATE\n Subscription subscription = createSubscription(prod, term, planSet);\n IPlanPhase trialPhase = subscription.getCurrentPhase();\n assertEquals(trialPhase.getPhaseType(), PhaseType.TRIAL);\n\n // NEXT PHASE\n DateTime expectedPhaseTrialChange = Clock.addDuration(subscription.getStartDate(), trialPhase.getDuration());\n checkNextPhaseChange(subscription, 1, expectedPhaseTrialChange);\n\n // MOVE TO NEXT PHASE\n testListener.pushExpectedEvent(NextEvent.PHASE);\n clock.setDeltaFromReality(trialPhase.getDuration(), DAY_IN_MS);\n assertTrue(testListener.isCompleted(2000));\n IPlanPhase currentPhase = subscription.getCurrentPhase();\n assertEquals(currentPhase.getPhaseType(), PhaseType.EVERGREEN);\n\n // SET CTD + RE READ SUBSCRIPTION + CHANGE PLAN\n IDuration ctd = getDurationMonth(1);\n DateTime newChargedThroughDate = Clock.addDuration(expectedPhaseTrialChange, ctd);\n billingApi.setChargedThroughDate(subscription.getId(), newChargedThroughDate);\n subscription = (Subscription) entitlementApi.getSubscriptionFromId(subscription.getId());\n\n testListener.pushExpectedEvent(NextEvent.CANCEL);\n\n // CANCEL\n subscription.cancel(clock.getUTCNow(), false);\n assertFalse(testListener.isCompleted(2000));\n\n subscription.uncancel();\n\n // MOVE TO EOT + RECHECK\n clock.addDeltaFromReality(ctd);\n DateTime future = clock.getUTCNow();\n assertFalse(testListener.isCompleted(2000));\n\n IPlan currentPlan = subscription.getCurrentPlan();\n assertEquals(currentPlan.getProduct().getName(), prod);\n currentPhase = subscription.getCurrentPhase();\n assertEquals(currentPhase.getPhaseType(), PhaseType.EVERGREEN);\n\n } catch (EntitlementUserApiException e) {\n Assert.fail(e.getMessage());\n }\n }", "@Test\r\n\tpublic void debitarRechazado() {\r\n\t}", "@Test(dependsOnMethods = \"testUpdateCertificate\")\n public void testUpdateCertificateVersion() {\n throw new SkipException(\"bug in requirements for function\");\n }", "@Test(dependsOnMethods = { \"testCreateReminderWithMandatoryParameters\" },\n description = \"podio {createReminder} integration test with negative case.\")\n public void testCreateReminderWithNegativeCase() throws IOException, JSONException, InterruptedException {\n \n Thread.sleep(timeOut);\n esbRequestHeadersMap.put(\"Action\", \"urn:createReminder\");\n \n String apiEndPoint = apiUrl + \"/reminder/task/Invalid\";\n \n RestResponse<JSONObject> apiRestResponse =\n sendJsonRestRequest(apiEndPoint, \"PUT\", apiRequestHeadersMap, \"api_createReminder_negative.json\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createReminder_negative.json\");\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"error\"), apiRestResponse.getBody().getString(\"error\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"error_description\"), apiRestResponse.getBody()\n .getString(\"error_description\"));\n }", "@Test\n public void test01ConfRespSignedByRecepient() throws Exception {\n log.trace(\">test01ConfRespSignedByRecepient\");\n\n this.cmpConfiguration.setResponseProtection(cmpAlias, \"signature\");\n this.cmpConfiguration.setCMPDefaultCA(cmpAlias, \"\");\n this.globalConfigurationSession.saveConfiguration(ADMIN, this.cmpConfiguration);\n\n byte[] nonce = CmpMessageHelper.createSenderNonce();\n byte[] transid = CmpMessageHelper.createSenderNonce();\n\n // Send a confirm message to the CA\n String hash = \"foo123\";\n PKIMessage confirm = genCertConfirm(userDN, this.cacert, nonce, transid, hash, 0, null);\n assertNotNull(confirm);\n ByteArrayOutputStream bao = new ByteArrayOutputStream();\n ASN1OutputStream dOut = ASN1OutputStream.create(bao, ASN1Encoding.DER);\n dOut.writeObject(confirm);\n byte[] ba = bao.toByteArray();\n // Send request and receive response\n byte[] resp = sendCmpHttp(ba, 200, cmpAlias);\n checkCmpResponseGeneral(resp, this.testx509ca.getSubjectDN(), userDN, this.cacert, nonce, transid, true, null, PKCSObjectIdentifiers.sha256WithRSAEncryption.getId());\n checkCmpPKIConfirmMessage(userDN, this.cacert, resp);\n\n log.trace(\"<test01ConfRespSignedByRecepient\");\n }", "@Test\n\tpublic void savePasswordReplayAttackTest() throws RemoteException, NoSuchAlgorithmException, InvalidKeySpecException, IOException, InvalidKeyException, SignatureException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, UnrecoverableKeyException, KeyStoreException, CertificateException {\n\t\tPasswordManager pm = new PasswordManager(8080);\n\t\tString responseRegister = pm.registerUser(byteToString(cliPubKey.getEncoded()), \n\t\t\t\tDigitalSignature.getSignature(cliPubKey.getEncoded(),cliPrivKey));\n\n\t\t// Set global variables for Secret Key and Server Public Key based on the register\n\t\tbyte[] secretKeyByte = RSAMethods.decipher(responseRegister.split(\"-\")[2], cliPrivKey);\n\t\tString secretKeyStr = new String(secretKeyByte, \"UTF-8\");\n\t\tsecretKey = new SecretKeySpec(stringToByte(secretKeyStr), 0, stringToByte(secretKeyStr).length, \"HmacMD5\");\n\t\tservPubKey = getServerPublicKey(responseRegister.split(\"-\")[0]);\n\t\t\n\t\t// Simulate the request from client\n\t\tString domain = \"facebook\";\n\t\tString username = \"test\";\n\t\tString password = \"123aBc456\";\n\t\tint seqNum = 0;\n\t\tString msg = messageToSend(domain,username,password,\"0\",seqNum);\n\t\t\n\t\t// Simulate a Replay Attack by sending the same message twice\n\t\tpm.savePassword(msg);\n\t\tString saveResponse2 = pm.savePassword(msg.toString()); // Replay attack by sending msg twice\n\t\t\n\t\t// Check the way server deals with freshness of messages\n\t\tbyte[] responseTest = RSAMethods.decipher(saveResponse2.split(\"-\")[0],cliPrivKey);\n\t\tString responseTestStr = new String(responseTest, \"UTF-8\");\n\t\tAssert.assertEquals(\"Error\", responseTestStr);\n\t}", "@Test\n void renewSessionLock() {\n // Arrange\n final Instant instant = Instant.ofEpochSecond(1587997482L);\n final Date expirationDate = Date.from(instant);\n final String sessionId = \"A session-id\";\n\n final Map<String, Object> responseBody = new HashMap<>();\n responseBody.put(ManagementConstants.EXPIRATION, expirationDate);\n responseMessage.setBody(new AmqpValue(responseBody));\n\n // Act & Assert\n StepVerifier.create(managementChannel.renewSessionLock(sessionId, LINK_NAME))\n .assertNext(expiration -> assertEquals(instant.atOffset(ZoneOffset.UTC), expiration))\n .verifyComplete();\n\n verify(requestResponseChannel).sendWithAck(messageCaptor.capture(), isNull());\n\n final Message sentMessage = messageCaptor.getValue();\n assertTrue(sentMessage.getBody() instanceof AmqpValue);\n\n final AmqpValue amqpValue = (AmqpValue) sentMessage.getBody();\n\n @SuppressWarnings(\"unchecked\") final Map<String, Object> hashMap = (Map<String, Object>) amqpValue.getValue();\n assertEquals(sessionId, hashMap.get(ManagementConstants.SESSION_ID));\n\n // Assert application properties\n final Map<String, Object> applicationProperties = sentMessage.getApplicationProperties().getValue();\n assertEquals(OPERATION_RENEW_SESSION_LOCK, applicationProperties.get(MANAGEMENT_OPERATION_KEY));\n }", "@Test\n\tpublic void retrievePasswordReplayAttackTest() throws RemoteException, NoSuchAlgorithmException, InvalidKeySpecException, IOException, InvalidKeyException, SignatureException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, UnrecoverableKeyException, KeyStoreException, CertificateException {\n\t\tPasswordManager pm = new PasswordManager(8080);\n\t\tString responseRegister = pm.registerUser(byteToString(cliPubKey.getEncoded()), \n\t\t\t\tDigitalSignature.getSignature(cliPubKey.getEncoded(),cliPrivKey));\n\n\t\t// Set global variables for Secret Key and Server Public Key based on the register\n\t\tbyte[] secretKeyByte = RSAMethods.decipher(responseRegister.split(\"-\")[2], cliPrivKey);\n\t\tString secretKeyStr = new String(secretKeyByte, \"UTF-8\");\n\t\tsecretKey = new SecretKeySpec(stringToByte(secretKeyStr), 0, stringToByte(secretKeyStr).length, \"HmacMD5\");\n\t\tservPubKey = getServerPublicKey(responseRegister.split(\"-\")[0]);\n\t\t\n\t\t// Simulate the save request from client\n\t\tString domain = \"facebook\";\n\t\tString username = \"test\";\n\t\tString password = \"123aBc456\";\n\t\tint seqNum = 0;\n\t\tString msg = messageToSend(domain,username,password,\"0\",seqNum);\n\n\t\t// Call savePassword method on server\n\t\tpm.savePassword(msg);\n\n\t\t// Simulate the retrieve request from client\n\t\tseqNum = 1;\n\t\tmsg = messageToSend(domain,username,\"\",\"1\",seqNum);\n\n\t\t// Simulate a Replay Attack by sending the same message twice\n\t\tpm.retrievePassword(msg);\n\t\tString retrieveResponse2 = pm.retrievePassword(msg);\n\t\t\n\t\t// Check the way server deals with freshness of messages\n\t\tbyte[] responseTest = RSAMethods.decipher(retrieveResponse2.split(\"-\")[0],cliPrivKey);\n\t\tString responseTestStr = new String(responseTest, \"UTF-8\");\n\t\tAssert.assertEquals(\"Error\", responseTestStr);\n\t}", "@Test(groups = \"his.wardadmission.test\", dependsOnMethods = { \"addWardTestCase\" })\n\tpublic void updateDischargeSignTestCase() throws IOException, JSONException {\n\n\t\tJSONObject jsonRequestObject = new JSONObject(RequestUtil\n\t\t\t\t.requestByID(TestCaseConstants.UPDATE_DISCHARGE_SIGN));\n\t\t\n\t\tArrayList<String> resArrayList = getHTTPResponse(\n\t\t\t\tproperties\n\t\t\t\t\t\t.getProperty(TestCaseConstants.URL_APPEND_UPDATE_DISCHARGE_SIGN),\n\t\t\t\tTestCaseConstants.HTTP_POST, jsonRequestObject.toString());\n\n\t\tSystem.out.println(\"message :\"+resArrayList.get(0));\n\n\t\tAssert.assertEquals(Integer.parseInt(resArrayList.get(1)),\n\t\t\t\tSUCCESS_STATUS_CODE);\n\t\t\n\t}", "public void resendOTP() {\n ApiInterface apiInterface = RestClient.getApiInterface();\n apiInterface.userResendOTP(\"bearer\" + \" \" + CommonData.getAccessToken())\n .enqueue(new ResponseResolver<CommonResponse>(OtpActivity.this, true, true) {\n @Override\n public void success(final CommonResponse commonResponse) {\n Log.d(\"debug\", commonResponse.getMessage());\n Toast.makeText(OtpActivity.this, \"New OTP Sent\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void failure(final APIError error) {\n Log.d(\"debug\", error.getMessage());\n\n }\n });\n\n\n }", "@Test\n public void testRepeatRegistration(){\n UserRegisterKYC userRegister = new UserRegisterKYC(\"hello\", validId2, \"26/02/1995\",\"738583\");\n int requestResponse = userRegister.sendRegisterRequest();\n requestResponse = userRegister.sendRegisterRequest();\n assertEquals(500,requestResponse);\n }", "@Test(dependsOnMethods = { \"testCreateReminderWithNegativeCase\" },\n description = \"podio {getReminder} integration test with mandatory parameters.\")\n public void testGetReminderWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:getReminder\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getReminder_mandatory.json\");\n \n String apiEndPoint = apiUrl + \"/reminder/task/\" + connectorProperties.getProperty(\"taskId\");\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getHttpStatusCode(), 200);\n Assert.assertEquals(esbRestResponse.getBody().getString(\"remind_delta\"),\n apiRestResponse.getBody().getString(\"remind_delta\"));\n }", "@Test\n void checkTheManagerGetAlertAfterOwnerChangeTheBid() {\n String guest= tradingSystem.ConnectSystem().returnConnID();\n tradingSystem.Register(guest, \"Manager2\", \"123\");\n Response res= tradingSystem.Login(guest, \"Manager2\", \"123\");\n tradingSystem.AddNewManager(EuserId,EconnID,storeID,res.returnUserID());\n tradingSystem.subscriberBidding(NofetID,NconnID,storeID,4,20,2);\n store.changeSubmissionBid(EuserId,NofetID,4,30,1);\n }", "@Test\n @MediumTest\n @DisabledTest(message = \"crbug.com/1182234\")\n @Feature({\"Payments\"})\n public void testRetryAndPayerDetailChangeEvent() throws TimeoutException {\n mPaymentRequestTestRule.triggerUIAndWait(\"buy\", mPaymentRequestTestRule.getReadyForInput());\n mPaymentRequestTestRule.clickAndWait(\n R.id.button_primary, mPaymentRequestTestRule.getReadyForUnmaskInput());\n mPaymentRequestTestRule.setTextInCardUnmaskDialogAndWait(\n R.id.card_unmask_input, \"123\", mPaymentRequestTestRule.getReadyToUnmask());\n mPaymentRequestTestRule.clickCardUnmaskButtonAndWait(\n ModalDialogProperties.ButtonType.POSITIVE,\n mPaymentRequestTestRule.getPaymentResponseReady());\n\n mPaymentRequestTestRule.retryPaymentRequest(\"{}\", mPaymentRequestTestRule.getReadyToPay());\n\n mPaymentRequestTestRule.clickInContactInfoAndWait(\n R.id.payments_section, mPaymentRequestTestRule.getReadyForInput());\n mPaymentRequestTestRule.clickInContactInfoAndWait(\n R.id.payments_open_editor_pencil_button, mPaymentRequestTestRule.getReadyToEdit());\n mPaymentRequestTestRule.setTextInEditorAndWait(\n new String[] {\"Jane Doe\", \"650-253-0000\", \"[email protected]\"},\n mPaymentRequestTestRule.getEditorTextUpdate());\n mPaymentRequestTestRule.clickInEditorAndWait(\n R.id.editor_dialog_done_button, mPaymentRequestTestRule.getReadyToPay());\n\n mPaymentRequestTestRule.clickAndWait(\n R.id.button_primary, mPaymentRequestTestRule.getReadyForUnmaskInput());\n mPaymentRequestTestRule.setTextInCardUnmaskDialogAndWait(\n R.id.card_unmask_input, \"123\", mPaymentRequestTestRule.getReadyToUnmask());\n mPaymentRequestTestRule.clickCardUnmaskButtonAndWait(\n ModalDialogProperties.ButtonType.POSITIVE, mPaymentRequestTestRule.getDismissed());\n\n mPaymentRequestTestRule.expectResultContains(\n new String[] {\"Jane Doe\", \"6502530000\", \"[email protected]\"});\n }", "@Test\n void renewSessionLockNoSessionId() {\n // Act & Assert\n StepVerifier.create(managementChannel.renewSessionLock(null, LINK_NAME))\n .verifyError(NullPointerException.class);\n\n StepVerifier.create(managementChannel.renewSessionLock(\"\", LINK_NAME))\n .verifyError(IllegalArgumentException.class);\n\n verifyNoInteractions(requestResponseChannel);\n }", "@Test\n public void testLiveLoginResponse() {\n\n // Create test data\n String username = \"geoff\";\n char[] password = {'p', 'a', 's'};\n int[] indecies = {0, 1, 2};\n\n\n // Create delegate to get response\n LoginDelegate delegate = new LoginDelegate() {\n @Override\n public void loginPassed(User user) {\n\n assertNotNull(user);\n }\n\n @Override\n public void loginFailed(String errMessage) {\n\n fail(errMessage);\n }\n };\n\n testConnector.login(username, password, indecies, delegate);\n\n // Test the token\n String token = DataStore.sharedInstance().getToken();\n assertEquals(token, \"Ppx9BeXdbotVtfxQJ5H3v0bEl9kFtciZ1pLcCgRP2GbGvPVX4LgVFKEB98IgflkZ\");\n\n\n // Test the user\n User user = DataStore.sharedInstance().getCurrentUser();\n assertNotNull(user);\n\n\n List<Product> products = DataStore.sharedInstance().getProducts();\n List<Product> newProds = DataStore.sharedInstance().getNewProducts();\n List<Reward> rewards = DataStore.sharedInstance().getRewards();\n\n\n // Test Products\n assertEquals(products.size(), 3);\n assertEquals(1, products.get(0).getId());\n assertEquals(\"Savings Account\", products.get(0).getTitle());\n assertNotNull(products.get(0).getContent());\n\n\n // Test New Products\n assertEquals(1, newProds.size());\n assertEquals(3, newProds.get(0).getId());\n\n\n // Test Rewards\n assertEquals(rewards.size(), 2);\n assertEquals(rewards.get(0).getId(), 1);\n assertEquals(rewards.get(0).getName(), \"Cinema Tickets\");\n assertEquals(rewards.get(0).getCost(), 300);\n assertNotNull(rewards.get(0).getDescription());\n\n\n // Test the User's properties\n assertEquals(2, user.getId());\n assertEquals(\"geoff\", user.getUsername());\n assertEquals(\"Geoff\", user.getFirstName());\n assertEquals(\"Butcher\", user.getLastName());\n assertEquals(3, user.getNumberOfSpins());\n assertEquals(450, user.getPoints());\n assertEquals(2, user.getNumNewPayments());\n\n assertEquals(2, user.getAccounts().size());\n assertEquals(2, user.getAllGroups().size());\n assertEquals(2, user.getRecentPoints().size());\n assertEquals(1, user.getRecentRewards().size());\n\n\n // Test An Account\n Account account = user.getAccounts().get(0);\n assertEquals(7, account.getId());\n assertEquals(\"Student Account\", account.getName());\n assertEquals(131.97, account.getBalance(), 0.0001);\n assertNotNull(account.getFirstTransaction());\n assertNotNull(account.getProduct());\n assertEquals(2, account.getProduct().getId());\n\n\n // Test A Group\n BudgetGroup testGroup = user.getAllGroups().get(0);\n assertNotNull(testGroup);\n assertEquals(3, testGroup.getId());\n assertEquals(\"Bills\", testGroup.getName());\n assertEquals(2, testGroup.getCategories().size());\n\n // Test A Category\n BudgetCategory testCat = testGroup.getCategories().get(0);\n assertEquals(7, testCat.getId());\n assertEquals(\"Rent\", testCat.getName());\n assertEquals(500.0, testCat.getBudgeted(), 0.1);\n assertEquals(450.0, testCat.getSpent(), 0.1);\n\n // Test a PointGain\n PointGain testGain = user.getRecentPoints().get(0);\n assertEquals(3, testGain.getId());\n assertEquals(\"Spin Reward\", testGain.getName());\n assertEquals(25, testGain.getPoints());\n assertNotNull(testGain.getDescription());\n\n // Test a RewardTaken\n RewardTaken testTaken = user.getRecentRewards().get(0);\n assertEquals(2, testTaken.getId());\n assertNotNull(testTaken.getReward());\n }", "@Test\n public void updateAccept() throws Exception {\n\n }", "@Test( groups ={\"PaymentMethodValidation\"})\r\n\t\r\n\tpublic static void PayLaterOption(){\r\n\r\n\t\ttry {\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\tPaymentMethod PaymentMethodObj \t= \tnew PaymentMethod() ;\r\n\t\t\t\r\n\t\t\tPaymentMethodObj.setPaymentMethod(\"PayLater\");\r\n\t\t\t\r\n\t\t\tCommonTestLibrary.launchDefaultProduct() ;\r\n\r\n\t\t\tAssert.assertEquals(CommonTestLibrary.purchaseProduct(\tTestApplicationParams.getDefaultUser(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTestApplicationParams.getDefaultShippingAddress(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTestApplicationParams.getDefaultBillingAddress(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttrue, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPaymentMethodObj,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTestApplicationParams.getDefaultDiscount(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Address\"), true) ;\r\n\t\t\t\r\n\t\t\tWaitUtil.waitFor(Driver,\"THREAD_SLEEP\", (long)200);\t\r\n\t\t\tAssert.assertEquals(new FrontEndCommonPage(Driver).logout(),true) ;\t\t\r\n\t\t\t\r\n\t\t} \r\n\t\tcatch ( TestException Te)\r\n\t\t{\r\n\t\t\tTestLog.logTestStep(\"Error/Exception : \" + Te.getExceptionName());\r\n\t\t\tTe.printException();\r\n\t\t\tassert(false);\r\n\t\t}\t\t\r\n\t\tcatch (InterruptedException e){\r\n\t\t\t//do nothing\t\t\r\n\t\t}\r\n\t\tcatch ( Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tTestLog.logTestStep(\"Error/Exception \" + e.getMessage());\r\n\t\t\tassert(false) ;\r\n\t\t}\r\n\t\t\r\n\t}", "@Test(groups = \"his.wardadmission.test\", dependsOnMethods = { \"addWardTestCase\" })\n\tpublic void updateDischargeTestCase() throws IOException, JSONException {\n\n\t\tJSONObject jsonRequestObject = new JSONObject(RequestUtil\n\t\t\t\t.requestByID(TestCaseConstants.UPDATE_DISCHARGE));\n\t\t\n\t\tArrayList<String> resArrayList = getHTTPResponse(\n\t\t\t\tproperties\n\t\t\t\t\t\t.getProperty(TestCaseConstants.URL_APPEND_UPDATE_DISCHARGE),\n\t\t\t\tTestCaseConstants.HTTP_PUT, jsonRequestObject.toString());\n\n\t\tSystem.out.println(\"message :\"+resArrayList.get(0));\n\t\t\n\t\tAssert.assertEquals(Integer.parseInt(resArrayList.get(1)),\n\t\t\t\tSUCCESS_STATUS_CODE);\n\t\t\n\t}", "@Test(dependsOnMethods = { \"testGetReminderWithMandatoryParameters\" },\n description = \"podio {getReminder} integration test with negative case.\")\n public void testGetReminderWithNegativeCase() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:getReminder\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getReminder_negative.json\");\n \n String apiEndPoint = apiUrl + \"/reminder/task/Invalid\";\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"error\"), apiRestResponse.getBody().getString(\"error\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"error_description\"), apiRestResponse.getBody()\n .getString(\"error_description\"));\n }", "@Test\n public void testResetAndCanRetry() {\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n rc.reset();\n\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertFalse(rc.attempt());\n assertFalse(rc.attempt());\n assertFalse(rc.attempt());\n }", "@Test\n public void withRightDates() {\n Assert.assertEquals(createUserChecking.creationChecking(randomLogin,email, By.xpath(\"//div[@align='center']\")),\"Created user \"+randomLogin+\" with an access level of reporter\\n[ Proceed ]\");\n log.info(\"login \"+randomLogin+\" and email \"+email+\" were typed\");\n\n passConfirm=mailRuReader.letterActivation();\n String randomPassword=random.getNewRandomName();\n Assert.assertEquals(passConfirm.passwordEntering(randomPassword),\"Password successfully updated\\n\" +\"Operation successful.\\n\" + \"[ Proceed ]\");\n log.info(\"Password \"+randomPassword+ \" was successfully typed and user was created correctly\");\n mailRuReader.letterDeleting();\n\n }", "@Test\n public void oldNotUpdateSuccessExchangeWithdraw() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(0);\n InitExchangeBeforeSameTokenNameActive();\n long exchangeId = 1;\n String firstTokenId = \"abc\";\n long firstTokenQuant = 100000000L;\n String secondTokenId = \"def\";\n long secondTokenQuant = 200000000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_FIRST);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n Map<String, Long> assetMap = accountCapsule.getAssetMap();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(null, assetMap.get(firstTokenId));\n Assert.assertEquals(null, assetMap.get(secondTokenId));\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_FIRST, exchangeId, String.valueOf(1), firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(1);\n try {\n actuator.validate();\n actuator.execute(ret);\n Assert.assertEquals(ret.getInstance().getRet(), code.SUCESS);\n long id = 1;\n //V1 not update\n ExchangeCapsule exchangeCapsule = dbManager.getExchangeStore().get(ByteArray.fromLong(id));\n Assert.assertNotNull(exchangeCapsule);\n Assert.assertEquals(ByteString.copyFrom(ownerAddress), exchangeCapsule.getCreatorAddress());\n Assert.assertEquals(id, exchangeCapsule.getID());\n Assert.assertEquals(1000000, exchangeCapsule.getCreateTime());\n Assert.assertTrue(Arrays.equals(firstTokenId.getBytes(), exchangeCapsule.getFirstTokenId()));\n Assert.assertEquals(firstTokenId, ByteArray.toStr(exchangeCapsule.getFirstTokenId()));\n Assert.assertEquals(secondTokenId, ByteArray.toStr(exchangeCapsule.getSecondTokenId()));\n Assert.assertNotEquals(0L, exchangeCapsule.getFirstTokenBalance());\n Assert.assertNotEquals(0L, exchangeCapsule.getSecondTokenBalance());\n //V2\n ExchangeCapsule exchangeCapsule2 = dbManager.getExchangeV2Store().get(ByteArray.fromLong(id));\n Assert.assertNotNull(exchangeCapsule2);\n Assert.assertEquals(ByteString.copyFrom(ownerAddress), exchangeCapsule2.getCreatorAddress());\n Assert.assertEquals(id, exchangeCapsule2.getID());\n Assert.assertEquals(1000000, exchangeCapsule2.getCreateTime());\n Assert.assertEquals(0L, exchangeCapsule2.getFirstTokenBalance());\n Assert.assertEquals(0L, exchangeCapsule2.getSecondTokenBalance());\n\n accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n assetMap = accountCapsule.getAssetMapV2();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(firstTokenQuant, assetMap.get(String.valueOf(1)).longValue());\n Assert.assertEquals(secondTokenQuant, assetMap.get(String.valueOf(2)).longValue());\n\n Assert.assertEquals(secondTokenQuant, ret.getExchangeWithdrawAnotherAmount());\n\n } catch (ContractValidateException e) {\n logger.info(e.getMessage());\n Assert.assertFalse(e instanceof ContractValidateException);\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } catch (ItemNotFoundException e) {\n Assert.assertFalse(e instanceof ItemNotFoundException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }", "@Test\n public void testRevokePropagatedOnUpgradeNewToNewModel_part2() throws Exception {\n assertPermissionsGrantState(new String[] {Manifest.permission.READ_CALENDAR},\n PackageManager.PERMISSION_GRANTED);\n // Also make sure one of the not granted permissions is still not granted\n assertPermissionsGrantState(new String[] {Manifest.permission.READ_EXTERNAL_STORAGE},\n PackageManager.PERMISSION_DENIED);\n }", "@Test\n public void SameTokenNameOpenSuccessExchangeWithdraw() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(1);\n InitExchangeSameTokenNameActive();\n long exchangeId = 1;\n String firstTokenId = \"123\";\n long firstTokenQuant = 100000000L;\n String secondTokenId = \"456\";\n long secondTokenQuant = 200000000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_FIRST);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n Map<String, Long> assetV2Map = accountCapsule.getAssetMapV2();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(null, assetV2Map.get(firstTokenId));\n Assert.assertEquals(null, assetV2Map.get(secondTokenId));\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_FIRST, exchangeId, firstTokenId, firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n Assert.assertEquals(ret.getInstance().getRet(), code.SUCESS);\n // V1,Data is no longer update\n Assert.assertFalse(dbManager.getExchangeStore().has(ByteArray.fromLong(exchangeId)));\n //V2\n ExchangeCapsule exchangeCapsuleV2 =\n dbManager.getExchangeV2Store().get(ByteArray.fromLong(exchangeId));\n Assert.assertNotNull(exchangeCapsuleV2);\n Assert.assertEquals(ByteString.copyFrom(ownerAddress), exchangeCapsuleV2.getCreatorAddress());\n Assert.assertEquals(exchangeId, exchangeCapsuleV2.getID());\n Assert.assertEquals(1000000, exchangeCapsuleV2.getCreateTime());\n Assert\n .assertTrue(Arrays.equals(firstTokenId.getBytes(), exchangeCapsuleV2.getFirstTokenId()));\n Assert.assertEquals(firstTokenId, ByteArray.toStr(exchangeCapsuleV2.getFirstTokenId()));\n Assert.assertEquals(0L, exchangeCapsuleV2.getFirstTokenBalance());\n Assert.assertEquals(secondTokenId, ByteArray.toStr(exchangeCapsuleV2.getSecondTokenId()));\n Assert.assertEquals(0L, exchangeCapsuleV2.getSecondTokenBalance());\n\n accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n assetV2Map = accountCapsule.getAssetMapV2();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(firstTokenQuant, assetV2Map.get(firstTokenId).longValue());\n Assert.assertEquals(secondTokenQuant, assetV2Map.get(secondTokenId).longValue());\n\n } catch (ContractValidateException e) {\n logger.info(e.getMessage());\n Assert.assertFalse(e instanceof ContractValidateException);\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } catch (ItemNotFoundException e) {\n Assert.assertFalse(e instanceof ItemNotFoundException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }", "@Override\n\tpublic boolean renew() {\n\t\treturn false;\n\t}", "@Test\n public void SameTokenNameOpenSuccessExchangeWithdraw2() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(1);\n InitExchangeSameTokenNameActive();\n long exchangeId = 2;\n String firstTokenId = \"_\";\n long firstTokenQuant = 1_000_000_000000L;\n String secondTokenId = \"456\";\n long secondTokenQuant = 4_000_000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_FIRST);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n Map<String, Long> assetV2Map = accountCapsule.getAssetMapV2();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(null, assetV2Map.get(secondTokenId));\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_FIRST, exchangeId, firstTokenId, firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n Assert.assertEquals(ret.getInstance().getRet(), code.SUCESS);\n // V1,Data is no longer update\n Assert.assertFalse(dbManager.getExchangeStore().has(ByteArray.fromLong(exchangeId)));\n //V2\n ExchangeCapsule exchangeCapsuleV2 = dbManager.getExchangeV2Store()\n .get(ByteArray.fromLong(exchangeId));\n Assert.assertNotNull(exchangeCapsuleV2);\n Assert.assertEquals(ByteString.copyFrom(ownerAddress), exchangeCapsuleV2.getCreatorAddress());\n Assert.assertEquals(exchangeId, exchangeCapsuleV2.getID());\n Assert.assertEquals(1000000, exchangeCapsuleV2.getCreateTime());\n Assert\n .assertTrue(Arrays.equals(firstTokenId.getBytes(), exchangeCapsuleV2.getFirstTokenId()));\n Assert.assertEquals(firstTokenId, ByteArray.toStr(exchangeCapsuleV2.getFirstTokenId()));\n Assert.assertEquals(0L, exchangeCapsuleV2.getFirstTokenBalance());\n Assert.assertEquals(secondTokenId, ByteArray.toStr(exchangeCapsuleV2.getSecondTokenId()));\n Assert.assertEquals(0L, exchangeCapsuleV2.getSecondTokenBalance());\n\n accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n assetV2Map = accountCapsule.getAssetMapV2();\n Assert.assertEquals(firstTokenQuant + 10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(10_000_000L, assetV2Map.get(secondTokenId).longValue());\n\n } catch (ContractValidateException e) {\n logger.info(e.getMessage());\n Assert.assertFalse(e instanceof ContractValidateException);\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } catch (ItemNotFoundException e) {\n Assert.assertFalse(e instanceof ItemNotFoundException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }", "@Test\n public void issuerTest() {\n // TODO: test issuer\n }", "@Test\n public void testNewPaymentsResponse() {\n\n // Setup test data\n Account a = new Account(7, \"Account\", 100, 200);\n DataStore.sharedInstance().getCurrentUser().getAccounts().add(a);\n\n\n // Create a delegate to test response\n NewPaymentsDelegate delegate = new NewPaymentsDelegate() {\n @Override\n public void newPaymentsLoaded(List<Transaction> transactions) {\n\n assertNotNull(transactions);\n assertEquals(3, transactions.size());\n\n Transaction tran = transactions.get(0);\n assertEquals(8, tran.getId());\n }\n\n @Override\n public void newPaymentsLoadFailed(String errMessage) {\n\n fail(errMessage);\n }\n };\n\n\n // Call the method\n testConnector.loadNewPaymentsForUser(delegate);\n }", "@FXML\n\t private void loadrenew(ActionEvent event) {\n\t \tif (!isReadyForSubmission) {\n\t Alert alert = new Alert(Alert.AlertType.ERROR);\n\t alert.setTitle(\"Failed\");\n\t alert.setHeaderText(null);\n\t alert.setContentText(\"Please select a book to renew\");\n\t alert.showAndWait();\n\t return;\n\t }\n\n\t Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n\t alert.setTitle(\"Confirm Renew Operation\");\n\t alert.setHeaderText(null);\n\t alert.setContentText(\"Are you sure want to renew the book ?\");\n\n\t Optional<ButtonType> response = alert.showAndWait();\n\t if (response.get() == ButtonType.OK) {\n\t String ac = \"UPDATE ISSUE_LMS SET issueTime = CURRENT_TIMESTAMP, renew_count = renew_count+1 WHERE BOOKID = '\" + Bookid.getText() + \"'\";\n\t System.out.println(ac);\n\t if (dbhandler.execAction(ac)) {\n\t Alert alert1 = new Alert(Alert.AlertType.INFORMATION);\n\t alert1.setTitle(\"Success\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Book Has Been Renewed\");\n\t alert1.showAndWait();\n\t } else {\n\t Alert alert1 = new Alert(Alert.AlertType.ERROR);\n\t alert1.setTitle(\"Failed\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Renew Has Been Failed\");\n\t alert1.showAndWait();\n\t }\n\t } else {\n\t Alert alert1 = new Alert(Alert.AlertType.INFORMATION);\n\t alert1.setTitle(\"Cancelled\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Renew Operation cancelled\");\n\t alert1.showAndWait();\n\t }\n\t }", "public void testService() {\n\n\t\ttry {\n\t\t\tString nextAction = \"next action\";\n\t\t\trequest.setAttribute(\"NEXT_ACTION\", nextAction);\n\t\t\tString nextPublisher = \"next publisher\";\n\t\t\trequest.setAttribute(\"NEXT_PUBLISHER\", nextPublisher);\n\t\t\tString expertQueryDisplayed = \"expert query displayed\";\n\t\t\trequest.setAttribute(\"expertDisplayedForUpdate\", expertQueryDisplayed);\n\t\t\tupdateFieldsForResumeAction.service(request, response);\n\t\t\tassertEquals(nextAction, response.getAttribute(\"NEXT_ACTION\"));\t\t\n\t\t\tassertEquals(nextPublisher, response.getAttribute(\"NEXT_PUBLISHER\"));\n\t\t\tassertEquals(expertQueryDisplayed, singleDataMartWizardObj.getExpertQueryDisplayed());\n\t\t\t\n\t\t} catch (SourceBeanException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Unaspected exception occurred!\");\n\t\t}\n\t\t\n\t}", "@RequestMapping(value = \"/renew\", method = RequestMethod.PATCH)\n public void renew(@RequestHeader(\"X-CS-Auth\") String auth,\n @RequestHeader(\"X-CS-Session\") String sessionId) {\n sessionService.renew();\n }", "@Test\n void testDoPaymentInitiationRequest() {\n String PIS_BASE = \"https://api-sandbox.rabobank.nl/openapi/sandbox/payments/payment-initiation/pis/v1\";\n raboUtilUnderTest.doPaymentInitiationRequest(PIS_BASE, \"/payments/sepa-credit-transfers\", \"token\", \"payload\", \"redirect\");\n\n // Verify the results\n verify(webClient).post(anyString(),any(),any());\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 public void testRevokePropagatedOnUpgradeNewToNewModel_part1() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n\n // Request the permission and allow it\n BasePermissionActivity.Result thirdResult = requestPermissions(new String[] {\n Manifest.permission.READ_CALENDAR}, REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Make sure the permission is granted\n assertPermissionRequestResult(thirdResult, REQUEST_CODE_PERMISSIONS,\n new String[] {Manifest.permission.READ_CALENDAR}, new boolean[] {true});\n }", "@Test\r\n\tpublic void eac_infoTest_13() throws IOException, URISyntaxException,\r\n\t\t\tGeneralSecurityException {\r\n\t\tfinal TestSpy spy = new TestSpy();\r\n\r\n\t\tfinal URL tcTokenURL = new URL(serviceURL);\r\n\r\n\t\tMockUp<EAC_Info> mockUp = new MockUp<EAC_Info>() {\r\n\t\t\t@Mock\r\n\t\t\tpublic Date getExpirationDate(mockit.Invocation inv) {\r\n\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tfinal Date expirationDate = inv.proceed();\r\n\t\t\t\t\tassertNotNull(\"expirationDate is null.\", expirationDate);\r\n\t\t\t\t\treturn expirationDate;\r\n\r\n\t\t\t\t} catch (final AssertionError ae) {\r\n\t\t\t\t\tspy.setStringValue(ae.getMessage());\r\n\t\t\t\t\tthrow new AssertionError(ae.getMessage(), ae);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfinal String refreshURL = ECardWorker.start(tcTokenURL);\r\n\t\tassertNotNull(\"no refresh URL\", refreshURL);\r\n\r\n\t\tif (spy.getStringValue() != null\r\n\t\t\t\t&& !spy.getStringValue().trim().isEmpty()) {\r\n\t\t\tmockUp.tearDown();\r\n\t\t\tfail(spy.getStringValue());\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"refreshURL: \" + refreshURL);\r\n\t\tconnectToRefreshURL(refreshURL, true);\r\n\t\tmockUp.tearDown();\r\n\r\n\t}", "@ParameterizedTest(name = \"[{index}] first digit: {0}\")\n @ValueSource(strings = {\"0\"})\n void resetRequest_PaymentResponseWithDelay(int lastDigit) {\n\n Map<String, ContractProperty> contractProperties = new HashMap<>();\n contractProperties.put(\"delay\", new ContractProperty(\"true\"));\n\n // given: the payment request containing the magic amount and a contractConfiguration\n ResetRequest request = MockUtils.aResetRequestBuilder()\n .withAmount(new Amount(new BigInteger(\"6000\" + lastDigit), Currency.getInstance(\"EUR\")))\n .withContractConfiguration(new ContractConfiguration(\"Sandbox APM\", contractProperties))\n .build();\n\n long startTime = System.currentTimeMillis();\n\n // when: calling the method paymentRequest\n ResetResponse response = service.resetRequest(request);\n\n long endTime = System.currentTimeMillis();\n\n long duration = (endTime - startTime);\n\n // then: the response is a success\n assertEquals(ResetResponseSuccess.class, response.getClass());\n assertTrue(duration > 2000);\n }", "@Test\n\tpublic void testUpdatePoStatusErrorListenerSuccesTest() {\n\t\ttry{\n\t\t\t//Is used in soap request preparation because value is used in reply soap header.\n\t\t\t final String callbackRefMockUri = mockOsbBusinessService(\n\t\t\t //\"SalesOrderErrorListener/operations/receiveSalesOrderLineErrorMessage/business-service/SalesOrderServiceCallback\",\n\t\t\t PATH_UPDATE_STATUS_CALLBACK,\n\t\t\t updatePoStatusCallbackPortMock);\t\n\t\t\t \n\t\t\t mockOsbBusinessService(\n\t\t\t PATH_RESPONSE_RETRY_WRAPPER,\n\t\t\t responseRetryWrapperMock);\n\t\n\t\t\tfinal String requestString = new ParameterReplacer(readClasspathFile(\"Request_UpdatePOStatusErrorListener.xml\"))\n\t\t\t\t\t.replace(REPLACE_PARAM_CORRELATION_ID, randomCorrelationId)\n\t\t\t\t\t.replace(REPLACE_PARAM_PURCHASE_ORDER_NUMBER, randomPoNumber)\n\t\t\t\t\t.replace(REPLACE_PARAM_COMBOX_ID, randomCoboxId)\n\t\t\t\t\t.replace(REPLY_TO, callbackRefMockUri)\n\t\t\t\t\t.replace(MESSAGE_ID, randomMessageId).build();\n\t\t\t\t\t\n\t\n\t\t\tLOGGER.info(\"+++ request \" + requestString);\n\t\n\t\t\tinvokeOsbProxyService(PATH_SERVICE, requestString);\n\t\n\t\t\t// P1002-ORDER-SENT-ERR must be written once to BAL\n\t\t\tassertThat(\"BAL not written for P1002-ORDER-SENT-ERR\",\n\t\t\t\t\t\t\tgetOtmDao().query(createBALQuery(\"P1002-ORDER-SENT-ERR\",randomCorrelationId)).size() == 1);\n\t\t\t// P1002-ORDER-SENT-ERR must be written once to OTM PO\n\t\t\tassertThat(\"OTM PO not written for P1002-ORDER-SENT-ERR\",\n\t\t\t\t\tgetOtmDao().query(createOSMPOQuery(\"P1002-ORDER-SENT-ERR\",randomCorrelationId)).size() == 1);\n\t\n\t\n\t\t\t\n\t\t\tassertThat(\"updatePoStatusCallbackPortMock is not invocked!\",updatePoStatusCallbackPortMock.hasBeenInvoked());\n\t\t\t//This should not be invoked\n\t\t\tassertThat(\"responseRetryWrapperMock should not be invocked!\",!responseRetryWrapperMock.hasBeenInvoked());\n\t\n\t\t\t\n\t\t\t//Get message from process as it is\n\t\t\tString updatePoStatusCallbackPortMockMsg = updatePoStatusCallbackPortMock.getLastReceivedRequest();\n\t\t\t\n\t\t\t//Get example message and change dynamic used values.\n\t\t\tString updatePoStatusCallbackPortMockMsgExpected = new ParameterReplacer(readClasspathFile(\"Callback_UpdatePOStatusErrorListener.xml\")).replace(REPLACE_PARAM_CORRELATION_ID, randomCorrelationId)\n\t\t\t\t\t.replace(REPLACE_PARAM_PURCHASE_ORDER_NUMBER, randomPoNumber)\n\t\t\t\t\t.replace(REPLACE_PARAM_COMBOX_ID, randomCoboxId)\n\t\t\t\t\t.replace(REPLY_TO, callbackRefMockUri)\n\t\t\t\t\t.replace(MESSAGE_ID, randomMessageId).build();\n\t\t\t\t\t\n\t\t\t\n\t\t\tassertXmlEquals(updatePoStatusCallbackPortMockMsgExpected,\tupdatePoStatusCallbackPortMockMsg);\n\t\t}catch(ServiceException e) {\n\t\t\tfail();\n\t\t}\n\n\t}", "@Test\n\tpublic void testRemindCommand() {\n\t\tString label = \"TEST\";\n\t\ttestData.getTaskMap().put(label, new ArrayList<Task>());\n\t\ttestData.addTask(new Task(1, label , \"Task 1\",\n\t\t\t\tnew TDTDateAndTime(), false));\n\t\ttestData.addTask(new Task(2, label, \"Task 2\",\n\t\t\t\tnew TDTDateAndTime(), false));\n\t\ttestData.addTask(new Task(3, label, \"Task 3\",\n\t\t\t\tnew TDTDateAndTime(), false));\n\n\t\tRemindCommand comd = new RemindCommand(label, 2, \"25/12/2014 12pm\");\n\t\tassertEquals(String.format(RemindCommand.MESSAGE_REMIND_FEEDBACK, \"25/12/2014 12:00\"),\n\t\t\t\tcomd.execute(testData));\n\t\tArrayList<Task> taskList = testData.getTaskListFromLabel(label);\n\t\tassertEquals(\"25/12/2014 12:00\", taskList.get(1).getRemindDateTime());\n\t\tassertTrue(taskList.get(1).hasReminder());\n\t\t\n\t\tcomd = new RemindCommand(label, 2, \"\");\n\t\tassertEquals(String.format(RemindCommand.MESSAGE__REMOVE_REMIND_FEEDBACK, \"25/12/2014 12:00\"),\n\t\t\t\tcomd.execute(testData));\n\t\tassertFalse(taskList.get(1).hasReminder());\n\t}", "@Test\n\tpublic void testUpdateTicketOk() {\n\t}", "@Test\n public void testResetJadler() throws IOException {\n initJadler();\n\n try {\n onRequest().respond().withStatus(EXPECTED_STATUS);\n assertExpectedStatus();\n\n resetJadler();\n\n onRequest().respond().withStatus(201);\n assertExpectedStatus(201);\n }\n finally {\n closeJadler();\n }\n }", "@Test\n\tpublic void testResponse() {\n\t\tquestions.setResponse(\"No\");\n\t\tassertEquals(\"No\",questions.getResponse());\n\t}", "@Test\n public void edit() throws RazorpayException{\n JSONObject request = new JSONObject(\"\" +\n \"{\\\"notes\\\":\" +\n \"{\\\"notes_key_1\\\":\\\"BeammeupScotty.\\\",\" +\n \"\\\"notes_key_2\\\":\\\"Engage\\\"}}\");\n\n String mockedResponseJson = \"{\\n\" +\n \" \\\"id\\\": \"+REFUND_ID+\",\\n\" +\n \" \\\"entity\\\": \\\"refund\\\",\\n\" +\n \" \\\"amount\\\": 300100,\\n\" +\n \" \\\"currency\\\": \\\"INR\\\",\\n\" +\n \" \\\"payment_id\\\": \\\"pay_FIKOnlyii5QGNx\\\",\\n\" +\n \" \\\"notes\\\": {\\n\" +\n \" \\\"notes_key_1\\\": \\\"Beam me up Scotty.\\\",\\n\" +\n \" \\\"notes_key_2\\\": \\\"Engage\\\"\\n\" +\n \" },\\n\" +\n \" \\\"receipt\\\": null,\\n\" +\n \" \\\"acquirer_data\\\": {\\n\" +\n \" \\\"arn\\\": \\\"10000000000000\\\"\\n\" +\n \" },\\n\" +\n \" \\\"created_at\\\": 1597078124,\\n\" +\n \" \\\"batch_id\\\": null,\\n\" +\n \" \\\"status\\\": \\\"processed\\\",\\n\" +\n \" \\\"speed_processed\\\": \\\"normal\\\",\\n\" +\n \" \\\"speed_requested\\\": \\\"optimum\\\"\\n\" +\n \"}\";\n\n try {\n mockResponseFromExternalClient(mockedResponseJson);\n mockResponseHTTPCodeFromExternalClient(200);\n Refund fetch = refundClient.edit(REFUND_ID, request);\n assertNotNull(fetch);\n assertEquals(REFUND_ID,fetch.get(\"id\"));\n assertEquals(\"refund\",fetch.get(\"entity\"));\n assertEquals(300100,(int)fetch.get(\"amount\"));\n assertEquals(\"INR\",fetch.get(\"currency\"));\n String editRequest = getHost(String.format(Constants.REFUND,REFUND_ID));\n verifySentRequest(true, request.toString(), editRequest);\n } catch (IOException e) {\n assertTrue(false);\n }\n }", "@Test\n public void SameTokenNameCloseSuccessExchangeWithdraw2() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(0);\n InitExchangeBeforeSameTokenNameActive();\n long exchangeId = 2;\n String firstTokenId = \"_\";\n long firstTokenQuant = 1_000_000_000000L;\n String secondTokenId = \"def\";\n long secondTokenQuant = 4_000_000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_FIRST);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n Map<String, Long> assetMap = accountCapsule.getAssetMap();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(null, assetMap.get(secondTokenId));\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_FIRST, exchangeId, firstTokenId, firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n Assert.assertEquals(ret.getInstance().getRet(), code.SUCESS);\n //V1\n ExchangeCapsule exchangeCapsule = dbManager.getExchangeStore()\n .get(ByteArray.fromLong(exchangeId));\n Assert.assertNotNull(exchangeCapsule);\n Assert.assertEquals(ByteString.copyFrom(ownerAddress), exchangeCapsule.getCreatorAddress());\n Assert.assertEquals(exchangeId, exchangeCapsule.getID());\n Assert.assertEquals(1000000, exchangeCapsule.getCreateTime());\n Assert.assertTrue(Arrays.equals(firstTokenId.getBytes(), exchangeCapsule.getFirstTokenId()));\n Assert.assertEquals(firstTokenId, ByteArray.toStr(exchangeCapsule.getFirstTokenId()));\n Assert.assertEquals(0L, exchangeCapsule.getFirstTokenBalance());\n Assert.assertEquals(secondTokenId, ByteArray.toStr(exchangeCapsule.getSecondTokenId()));\n Assert.assertEquals(0L, exchangeCapsule.getSecondTokenBalance());\n //V2\n ExchangeCapsule exchangeCapsule2 = dbManager.getExchangeStore()\n .get(ByteArray.fromLong(exchangeId));\n Assert.assertNotNull(exchangeCapsule2);\n Assert.assertEquals(ByteString.copyFrom(ownerAddress), exchangeCapsule2.getCreatorAddress());\n Assert.assertEquals(exchangeId, exchangeCapsule2.getID());\n Assert.assertEquals(1000000, exchangeCapsule2.getCreateTime());\n// Assert.assertTrue(Arrays.equals(firstTokenId.getBytes(), exchangeCapsule2.getFirstTokenId()));\n// Assert.assertEquals(firstTokenId, ByteArray.toStr(exchangeCapsule2.getFirstTokenId()));\n Assert.assertEquals(0L, exchangeCapsule2.getFirstTokenBalance());\n// Assert.assertEquals(secondTokenId, ByteArray.toStr(exchangeCapsule2.getSecondTokenId()));\n Assert.assertEquals(0L, exchangeCapsule2.getSecondTokenBalance());\n\n accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n assetMap = accountCapsule.getAssetMap();\n Assert.assertEquals(firstTokenQuant + 10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(10_000_000L, assetMap.get(secondTokenId).longValue());\n\n } catch (ContractValidateException e) {\n logger.info(e.getMessage());\n Assert.assertFalse(e instanceof ContractValidateException);\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } catch (ItemNotFoundException e) {\n Assert.assertFalse(e instanceof ItemNotFoundException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }", "public void testDomainUpdate() {\n\n\t\tEPPCodecTst.printStart(\"testDomainUpdate\");\n\n\t\t// Create Command\n\t\tEPPDomainAddRemove theChange = new EPPDomainAddRemove();\n\t\ttheChange.setRegistrant(\"sh8013\");\n\t\tEPPDomainUpdateCmd theCommand = new EPPDomainUpdateCmd(\"ABC-12345\",\n\t\t\t\t\"example.com\", null, null, theChange);\n\n\t\tEPPFeeUpdate theUpdateExt = new EPPFeeUpdate(new EPPFeeValue(\n\t\t\t\tnew BigDecimal(\"5.00\")));\n\t\ttheUpdateExt.setCurrency(\"USD\");\n\n\t\ttheCommand.addExtension(theUpdateExt);\n\n\t\tEPPEncodeDecodeStats commandStats = EPPCodecTst\n\t\t\t\t.testEncodeDecode(theCommand);\n\t\tSystem.out.println(commandStats);\n\n\t\t// Create Response\n\t\tEPPResponse theResponse;\n\n\t\tEPPTransId respTransId = new EPPTransId(theCommand.getTransId(),\n\t\t\t\t\"54321-XYZ\");\n\t\ttheResponse = new EPPResponse(respTransId);\n\t\ttheResponse.setResult(EPPResult.SUCCESS);\n\n\t\tEPPFeeUpdData theRespExt = new EPPFeeUpdData(\"USD\", new EPPFeeValue(\n\t\t\t\tnew BigDecimal(\"5.00\")));\n\n\t\ttheResponse.addExtension(theRespExt);\n\n\t\tcommandStats = EPPCodecTst.testEncodeDecode(theResponse);\n\t\tSystem.out.println(commandStats);\n\n\t\trespTransId = new EPPTransId(theCommand.getTransId(), \"54321-XYZ\");\n\t\ttheResponse = new EPPResponse(respTransId);\n\t\ttheResponse.setResult(EPPResult.SUCCESS);\n\n\t\ttheRespExt = new EPPFeeUpdData();\n\t\ttheRespExt.setCurrency(\"USD\");\n\t\ttheRespExt.addFee(new EPPFeeValue(new BigDecimal(\"5.00\"), null, true,\n\t\t\t\t\"P5D\", EPPFeeValue.APPLIED_IMMEDIATE));\n\t\ttheRespExt.setBalance(new BigDecimal(\"1000.00\"));\n\n\t\ttheResponse.addExtension(theRespExt);\n\n\t\tcommandStats = EPPCodecTst.testEncodeDecode(theResponse);\n\t\tSystem.out.println(commandStats);\n\n\t\tEPPCodecTst.printEnd(\"testDomainUpdate\");\n\t}", "@Test\n public void testRollbackExpiresAfterLifetime() throws Exception {\n long expirationTime = TimeUnit.SECONDS.toMillis(30);\n long defaultExpirationTime = TimeUnit.HOURS.toMillis(48);\n RollbackManager rm = RollbackTestUtils.getRollbackManager();\n\n try {\n RollbackTestUtils.adoptShellPermissionIdentity(\n Manifest.permission.INSTALL_PACKAGES,\n Manifest.permission.DELETE_PACKAGES,\n Manifest.permission.TEST_MANAGE_ROLLBACKS,\n Manifest.permission.WRITE_DEVICE_CONFIG);\n\n DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ROLLBACK_BOOT,\n RollbackManager.PROPERTY_ROLLBACK_LIFETIME_MILLIS,\n Long.toString(expirationTime), false /* makeDefault*/);\n\n // Pull the new expiration time from DeviceConfig\n rm.reloadPersistedData();\n\n // Uninstall TEST_APP_A\n RollbackTestUtils.uninstall(TEST_APP_A);\n assertEquals(-1, RollbackTestUtils.getInstalledVersion(TEST_APP_A));\n\n // Install v1 of the app (without rollbacks enabled).\n RollbackTestUtils.install(\"RollbackTestAppAv1.apk\", false);\n assertEquals(1, RollbackTestUtils.getInstalledVersion(TEST_APP_A));\n\n // Upgrade from v1 to v2, with rollbacks enabled.\n RollbackTestUtils.install(\"RollbackTestAppAv2.apk\", true);\n assertEquals(2, RollbackTestUtils.getInstalledVersion(TEST_APP_A));\n\n // Check that the rollback data has not expired\n Thread.sleep(1000);\n RollbackInfo rollback = getUniqueRollbackInfoForPackage(\n rm.getAvailableRollbacks(), TEST_APP_A);\n assertRollbackInfoEquals(TEST_APP_A, 2, 1, rollback);\n\n // Give it a little more time, but still not the long enough to expire\n Thread.sleep(expirationTime / 2);\n rollback = getUniqueRollbackInfoForPackage(\n rm.getAvailableRollbacks(), TEST_APP_A);\n assertRollbackInfoEquals(TEST_APP_A, 2, 1, rollback);\n\n // Check that the data has expired after the expiration time (with a buffer of 1 second)\n Thread.sleep(expirationTime / 2);\n assertNull(getUniqueRollbackInfoForPackage(rm.getAvailableRollbacks(), TEST_APP_A));\n\n } finally {\n DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ROLLBACK_BOOT,\n RollbackManager.PROPERTY_ROLLBACK_LIFETIME_MILLIS,\n Long.toString(defaultExpirationTime), false /* makeDefault*/);\n RollbackTestUtils.dropShellPermissionIdentity();\n }\n }", "@Test\n public void initiatePayloadSuccess() throws Exception {\n // Arrange\n TestSubscriber<Void> subscriber = new TestSubscriber<>();\n doAnswer(invocation -> {\n ((PayloadManager.InitiatePayloadListener) invocation.getArguments()[3]).onInitSuccess();\n return null;\n }).when(mPayloadManager).initiatePayload(\n anyString(), anyString(), any(CharSequenceX.class), any(PayloadManager.InitiatePayloadListener.class));\n // Act\n mSubject.updatePayload(\"1234567890\", \"1234567890\", new CharSequenceX(\"1234567890\")).toBlocking().subscribe(subscriber);\n // Assert\n verify(mPayloadManager).setTempPassword(any(CharSequenceX.class));\n subscriber.assertCompleted();\n subscriber.assertNoErrors();\n }", "void runLeaseRenewer() throws DependencyException, InvalidStateException;", "@Test\n\tpublic void testRespondible1(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(2));\n\t\tassertTrue(ej1.sePuedeResponder());\n\t}", "@Test\n public void whenClientEntersLegalCommandDownloadThenRequestToServerIsFormed() throws IOException {\n this.testClientInput(\n Joiner.on(LN).join(\n \"File is downloaded.\",\n \"\",\n \"\",\n \"\"\n ),\n Joiner.on(LN).join(\n String.format(\"DOWNLOAD File %1$s%2$sEXIT %3$s\",\n Paths.get(new File(\".\").getAbsolutePath()).normalize(),\n LN,\n Paths.get(new File(\".\").getAbsolutePath()).normalize()),\n \"\"\n ),\n Joiner.on(LN).join(\n \"DOWNLOAD File\",\n \"EXIT\"\n ),\n NetFileManagerClientTest.SERVER_OUTPUT_STUB\n );\n }", "@Test\n\tpublic void testRespondible2(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.minusDays(2));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}", "@Test\n public void SameTokenNameCloseSuccessExchangeWithdraw() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(0);\n InitExchangeBeforeSameTokenNameActive();\n long exchangeId = 1;\n String firstTokenId = \"abc\";\n long firstTokenQuant = 100000000L;\n String secondTokenId = \"def\";\n long secondTokenQuant = 200000000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_FIRST);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n Map<String, Long> assetMap = accountCapsule.getAssetMap();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(null, assetMap.get(firstTokenId));\n Assert.assertEquals(null, assetMap.get(secondTokenId));\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_FIRST, exchangeId, firstTokenId, firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n Assert.assertEquals(ret.getInstance().getRet(), code.SUCESS);\n long id = 1;\n //V1\n ExchangeCapsule exchangeCapsule = dbManager.getExchangeStore().get(ByteArray.fromLong(id));\n Assert.assertNotNull(exchangeCapsule);\n Assert.assertEquals(ByteString.copyFrom(ownerAddress), exchangeCapsule.getCreatorAddress());\n Assert.assertEquals(id, exchangeCapsule.getID());\n Assert.assertEquals(1000000, exchangeCapsule.getCreateTime());\n Assert.assertTrue(Arrays.equals(firstTokenId.getBytes(), exchangeCapsule.getFirstTokenId()));\n Assert.assertEquals(firstTokenId, ByteArray.toStr(exchangeCapsule.getFirstTokenId()));\n Assert.assertEquals(0L, exchangeCapsule.getFirstTokenBalance());\n Assert.assertEquals(secondTokenId, ByteArray.toStr(exchangeCapsule.getSecondTokenId()));\n Assert.assertEquals(0L, exchangeCapsule.getSecondTokenBalance());\n //V2\n ExchangeCapsule exchangeCapsule2 = dbManager.getExchangeV2Store().get(ByteArray.fromLong(id));\n Assert.assertNotNull(exchangeCapsule2);\n Assert.assertEquals(ByteString.copyFrom(ownerAddress), exchangeCapsule2.getCreatorAddress());\n Assert.assertEquals(id, exchangeCapsule2.getID());\n Assert.assertEquals(1000000, exchangeCapsule2.getCreateTime());\n Assert.assertEquals(0L, exchangeCapsule2.getFirstTokenBalance());\n Assert.assertEquals(0L, exchangeCapsule2.getSecondTokenBalance());\n\n accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n assetMap = accountCapsule.getAssetMap();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(firstTokenQuant, assetMap.get(firstTokenId).longValue());\n Assert.assertEquals(secondTokenQuant, assetMap.get(secondTokenId).longValue());\n\n Assert.assertEquals(secondTokenQuant, ret.getExchangeWithdrawAnotherAmount());\n\n } catch (ContractValidateException e) {\n logger.info(e.getMessage());\n Assert.assertFalse(e instanceof ContractValidateException);\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } catch (ItemNotFoundException e) {\n Assert.assertFalse(e instanceof ItemNotFoundException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }", "@ParameterizedTest(name = \"[{index}] first digit: {0}\")\n @ValueSource(strings = {\"0\", \"1\"})\n void resetRequest_ResetResponseSuccess(int lastDigit) {\n // given: the payment request containing the magic amount\n ResetRequest request = MockUtils.aResetRequestBuilder()\n .withAmount(\n new Amount(new BigInteger(\"6000\" + lastDigit), Currency.getInstance(\"EUR\"))\n )\n .build();\n\n // when: calling the method paymentRequest\n ResetResponse response = service.resetRequest(request);\n\n // then: the response is a success\n assertEquals(ResetResponseSuccess.class, response.getClass());\n }", "@Test\n\n public void updateWebHook() {\n }", "@Test\n\tpublic void test04_RefuseARequest(){\n\t\tinfo(\"Test 04: Refuse a request\");\n\t\tinfo(\"prepare data\");\n\t\t/*Create data test*/\n\t\tString username1 = txData.getContentByArrayTypeRandom(4) + getRandomString();\n\t\tString password1 = username1;\n\t\tString email1 = username1 + mailSuffixData.getMailSuffixRandom();\n\n\t\tString username2 = txData.getContentByArrayTypeRandom(4) + getRandomString();\n\t\tString password2 = username2;\n\t\tString email2= username2 + mailSuffixData.getMailSuffixRandom();\n\n\t\tinfo(\"Add new user\");\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tnavToolBar.goToAddUser();\n\t\taddUserPage.addUser(username1, password1, email1, username1, username1);\n\t\taddUserPage.addUser(username2, password2, email2, username2, username2);\n\n\t\t//createRequestsConnections();\n\t\t/*Step Number: 1\n\t\t *Step Name: Refuse a request\n\t\t *Step Description: \n\t\t\t- Login as mary\n\t\t\t- Open intranet homepage\n\t\t\t- On this gadget, mouse over an invitation of Jack(demo)\n\t\t\t- Click on Refuse icon\n\t\t *Input Data: \n\n\t\t *Expected Outcome: \n\t\t\t- Invitations of root, james are displayed on Invitation gadget\n\t\t\t- The Accept and Refuse button are displayed.\n\t\t\t- The invitation of jack fades out and is permanently removed from the list\n\t\t\t- Requests of James is moved to the top of the gadget*/\n\t\tinfo(\"Sign in with mary account\");\n\t\tmagAc.signIn(username1, password1);\n\t\thp.goToConnections();\n\t\tconnMg.connectToAUser(DATA_USER1);\n\n\t\tinfo(\"--Send request 2 to John\");\n\t\tmagAc.signIn(username2, password2);\n\t\thp.goToConnections();\n\t\tconnMg.connectToAUser(DATA_USER1);\n\n\t\tinfo(\"Sign in with john account\");\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tmouseOver(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username2),true);\n\t\tUtils.pause(2000);\n\t\tclick(hp.ELEMENT_INVITATIONS_PEOPLE_REFUSE_BTN.replace(\"${name}\",username2), 2,true);\n\t\twaitForElementNotPresent(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username2));\n\t\twaitForAndGetElement(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username1));\n\n\t\tinfo(\"Clear Data\");\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tnavToolBar.goToUsersAndGroupsManagement();\n\t\tuserAndGroup.deleteUser(username1);\n\t\tuserAndGroup.deleteUser(username2);\n\t}", "public void testReinstall() throws Exception {\n\t\tBundle tb1 = getContext().installBundle(\n\t\t\t\tgetWebServer() + \"classpath.tb3.jar\");\n\t\tBundle tb2 = getContext().installBundle(\n\t\t\t\tgetWebServer() + \"classpath.tb3.jar\");\n\t\ttry {\n\t\t\tassertEquals(\"They are not the same\", tb1, tb2);\n\t\t}\n\t\tfinally {\n\t\t\ttb1.uninstall();\n\t\t}\n\t}", "@Test\n public void buy() {\n System.out.println(client.purchase(1, 0, 1));\n }", "@Test\n void executeMoneyTransfer() throws ParseException, JsonProcessingException {\n\n String idAccount = \"14537780\";\n String receiverName = \"Receiver Name\";\n String description = \"description text\";\n String currency = \"EUR\";\n String amount = \"100\";\n String executionDate = \"2020-12-12\";\n MoneyTransfer moneyTransfer = Utils.fillMoneyTransfer(idAccount, receiverName, description, currency, amount, executionDate);\n\n Response response = greetingWebClient.executeMoneyTransfer(moneyTransfer, idAccount);\n assertTrue(response.getStatus().equals(\"KO\"));\n\n\n }", "@Test\n public void getSecretsRequest() {\n assertThat(this.secretRepository.count()).isEqualTo(2);\n final Resource request = new ClassPathResource(\"test-requests/getSecrets.xml\");\n final Resource expectedResponse = new ClassPathResource(\"test-responses/getSecrets.xml\");\n try {\n this.mockWebServiceClient.sendRequest(withPayload(request)).andExpect(\n (request2, response) -> {\n OutputStream outStream = new ByteArrayOutputStream();\n response.writeTo(outStream);\n String outputString = outStream.toString();\n assertThat(outputString.contains(\"<ns2:Result>OK</ns2:Result>\")).isTrue();\n assertThat(outputString.contains(\"E_METER_AUTHENTICATION\")).isTrue();\n assertThat(outputString.contains(\"E_METER_ENCRYPTION_KEY_UNICAST\")).isTrue();\n\n });\n } catch (final Exception exc) {\n Assertions.fail(\"Error\", exc);\n }\n }", "public void testCheckAndRestoreIfNeeded_failure()\n {\n // SETUP\n String host = \"localhost\";\n int port = 1234;\n String service = \"doesn'texist\";\n MockCacheEventLogger cacheEventLogger = new MockCacheEventLogger();\n\n RegistryKeepAliveRunner runner = new RegistryKeepAliveRunner( host, port, service );\n runner.setCacheEventLogger( cacheEventLogger );\n\n // DO WORK\n runner.checkAndRestoreIfNeeded();\n\n // VERIFY\n // 1 for the lookup, one for the rebind since the server isn't created yet\n assertEquals( \"error tally\", 2, cacheEventLogger.errorEventCalls );\n //System.out.println( cacheEventLogger.errorMessages );\n }", "public void testaReclamacao() {\n\t}", "@Test\n public void testRollbackExpiration() throws Exception {\n try {\n RollbackTestUtils.adoptShellPermissionIdentity(\n Manifest.permission.INSTALL_PACKAGES,\n Manifest.permission.DELETE_PACKAGES,\n Manifest.permission.TEST_MANAGE_ROLLBACKS);\n\n RollbackManager rm = RollbackTestUtils.getRollbackManager();\n RollbackTestUtils.uninstall(TEST_APP_A);\n RollbackTestUtils.install(\"RollbackTestAppAv1.apk\", false);\n RollbackTestUtils.install(\"RollbackTestAppAv2.apk\", true);\n assertEquals(2, RollbackTestUtils.getInstalledVersion(TEST_APP_A));\n\n // The app should now be available for rollback.\n RollbackInfo rollback = getUniqueRollbackInfoForPackage(\n rm.getAvailableRollbacks(), TEST_APP_A);\n assertRollbackInfoEquals(TEST_APP_A, 2, 1, rollback);\n\n // Expire the rollback.\n rm.expireRollbackForPackage(TEST_APP_A);\n\n // The rollback should no longer be available.\n assertNull(getUniqueRollbackInfoForPackage(\n rm.getAvailableRollbacks(), TEST_APP_A));\n } finally {\n RollbackTestUtils.dropShellPermissionIdentity();\n }\n }", "@Test\n public void successful_resign() {\n Player p1 = new Player(\"Player\");\n playerLobby.getGameCenter().newGame(p1, new Player(\"Opp\"));\n\n Map<String, Object> vm = new HashMap<String, Object>();\n vm.put(\"isGameOver\", true);\n vm.put(\"gameOverMessage\", p1.getName() + \" has resigned from the game. You are the winner!\");\n\n when(session.attribute(\"player\")).thenReturn(new Player(\"Player\"));\n\n CuT.handle(request, response);\n assertTrue(playerLobby.getGameCenter().justEnded(p1));\n assertEquals(new Gson().toJson(vm), playerLobby.getGame(p1).getMap().get(\"modeOptionsAsJSON\"));\n\n ResponseMessage message = new ResponseMessage();\n message.setType(ResponseMessage.MessageType.INFO);\n message.setText(\"You can not resign in the state you are in.\");\n }", "@Test(groups ={Slingshot,Regression,CsaAgent})\t\n\t\t\t\tpublic void verifyPasswordResetLink() throws Exception {\n\t\t\t\t\tReport.createTestLogHeader(\"CSA Journey\", \"To verify the Password Reset functionality\");\n\t\t\t\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"PSABroker\");\n\t\t\t\t\t//deregisterinBgbonline(userProfile); \n\t\t\t\t\t//Register a user \n\t\t\t\t\t/*new PartnerServiceAgentAction()\n\t\t\t\t\t.navigateToPSARegistration()\n\t\t\t\t\t.clickRegisteraUser(userProfile);\n\t\t\t\t\tnew SapCrmAction()\n\t\t\t\t\t .loginDetails(crmuserProfile)\n\t\t\t\t\t .searchByAccountId(crmuserProfile, userProfile);\n\t\t\t\t\tnew RegistrationAction()\n\t\t\t\t\t.openEncryptURL(userProfile)\n\t\t\t\t\t.fillRegistrationDetails(userProfile)\n\t\t\t\t\t.verifyThankYouPage()\n\t\t\t\t\t.clickLoginLink()\n\t\t\t\t\t.verifyAuditEntry(userProfile)\n\t\t\t\t\t.verifyEmailIdInDb(userProfile);*/\n\t\t\t\t\t//verify Lookup User functionality\n\t\t\t\t\tnew PartnerServiceAgentAction()\n\t\t\t\t\t.navigateToPSARegistration()\n\t\t\t\t\t.verifyFindUser(userProfile)\n\t\t\t\t\t.verifyPasswordLink(userProfile);\t \n\t\t\t\t}", "@Test\n public void testTimeChangeDoesNotAffectLifetime() throws Exception {\n long expirationTime = TimeUnit.SECONDS.toMillis(30);\n long defaultExpirationTime = TimeUnit.HOURS.toMillis(48);\n RollbackManager rm = RollbackTestUtils.getRollbackManager();\n\n try {\n RollbackTestUtils.adoptShellPermissionIdentity(\n Manifest.permission.INSTALL_PACKAGES,\n Manifest.permission.DELETE_PACKAGES,\n Manifest.permission.TEST_MANAGE_ROLLBACKS,\n Manifest.permission.WRITE_DEVICE_CONFIG,\n Manifest.permission.SET_TIME);\n\n DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ROLLBACK_BOOT,\n RollbackManager.PROPERTY_ROLLBACK_LIFETIME_MILLIS,\n Long.toString(expirationTime), false /* makeDefault*/);\n\n // Pull the new expiration time from DeviceConfig\n rm.reloadPersistedData();\n\n // Install app A with rollback enabled\n RollbackTestUtils.uninstall(TEST_APP_A);\n RollbackTestUtils.install(\"RollbackTestAppAv1.apk\", false);\n RollbackTestUtils.install(\"RollbackTestAppAv2.apk\", true);\n assertEquals(2, RollbackTestUtils.getInstalledVersion(TEST_APP_A));\n\n Thread.sleep(expirationTime / 2);\n\n // Install app B with rollback enabled\n RollbackTestUtils.uninstall(TEST_APP_B);\n RollbackTestUtils.install(\"RollbackTestAppBv1.apk\", false);\n RollbackTestUtils.install(\"RollbackTestAppBv2.apk\", true);\n assertEquals(2, RollbackTestUtils.getInstalledVersion(TEST_APP_B));\n // 1 second buffer\n Thread.sleep(1000);\n\n try {\n // Change the time\n RollbackTestUtils.forwardTimeBy(expirationTime);\n\n // 1 second buffer to allow Rollback Manager to handle time change before loading\n // persisted data\n Thread.sleep(1000);\n\n // Load timestamps from storage\n rm.reloadPersistedData();\n\n // Wait until rollback for app A has expired\n // This will trigger an expiration run that should expire app A but not B\n Thread.sleep(expirationTime / 2);\n assertNull(getUniqueRollbackInfoForPackage(rm.getAvailableRollbacks(), TEST_APP_A));\n\n // Rollback for app B should not be expired\n RollbackInfo rollback = getUniqueRollbackInfoForPackage(\n rm.getAvailableRollbacks(), TEST_APP_B);\n assertRollbackInfoEquals(TEST_APP_B, 2, 1, rollback);\n\n // Wait until rollback for app B has expired\n Thread.sleep(expirationTime / 2);\n assertNull(getUniqueRollbackInfoForPackage(rm.getAvailableRollbacks(), TEST_APP_B));\n } finally {\n RollbackTestUtils.forwardTimeBy(-expirationTime);\n }\n } finally {\n DeviceConfig.setProperty(DeviceConfig.NAMESPACE_ROLLBACK_BOOT,\n RollbackManager.PROPERTY_ROLLBACK_LIFETIME_MILLIS,\n Long.toString(defaultExpirationTime), false /* makeDefault*/);\n RollbackTestUtils.dropShellPermissionIdentity();\n }\n }", "@Test\n public void testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part2() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n\n // Request the permission and allow it\n BasePermissionActivity.Result thirdResult = requestPermissions(new String[] {\n Manifest.permission.READ_CALENDAR}, REQUEST_CODE_PERMISSIONS + 2,\n BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Make sure the permission is granted\n assertPermissionRequestResult(thirdResult, REQUEST_CODE_PERMISSIONS + 2,\n new String[] {Manifest.permission.READ_CALENDAR}, new boolean[] {true});\n }", "@Test\n public void testSuccessDecryption() throws NoSuchAlgorithmException, ComponentInitializationException {\n action = new PopulateOIDCEncryptionParameters();\n action.setForDecryption(true);\n action.setEncryptionParametersResolver(new MockEncryptionParametersResolver());\n action.initialize();\n\n ActionTestingSupport.assertProceedEvent(action.execute(requestCtx));\n Assert.assertNotNull(profileRequestCtx.getSubcontext(RelyingPartyContext.class)\n .getSubcontext(EncryptionContext.class).getAttributeEncryptionParameters());\n }", "@Test(dependsOnMethods = { \"testListTasksWithNegativeCase\" },\n description = \"podio {createReminder} integration test with mandatory parameters.\")\n public void testCreateReminderWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createReminder\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createReminder_mandatory.json\");\n Assert.assertEquals(esbRestResponse.getHttpStatusCode(), 204);\n String taskId = connectorProperties.getProperty(\"taskId\");\n String apiEndPoint = apiUrl + \"/task/\" + taskId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(connectorProperties.getProperty(\"remindDelta\"),\n apiRestResponse.getBody().getJSONObject(\"reminder\").getString(\"remind_delta\"));\n Assert.assertEquals(connectorProperties.getProperty(\"taskId\"), apiRestResponse.getBody().getString(\"task_id\"));\n }", "@Test\n\tpublic void testRespondible3(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(20));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}", "@Test\n public void testAddDemotivatorPageRequiresAuthentication(){\n \tResponse response = GET(\"/add\");\n \n assertNotNull(response);\n assertStatus(302, response);\n \n assertHeaderEquals(\"Location\", \"/secure/login\", response);\n }", "@Test\n public void recycle_ReleasesResourcesOfEachManager() {\n mDiffRequestManagerHolder.recycle();\n\n // Then\n then(mDiffRequestManager).should().releaseResources();\n }", "@Test\n public void checkoutTest() {\n when(retroLibrary.getBooks()).thenReturn(Observable.just(getFakeBooks()));\n\n // Manually launch activity\n mActivityTestRule.launchActivity(new Intent());\n\n onView(withId(R.id.books_list)).perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));\n\n ViewInteraction floatingActionButton = onView(allOf(withId(R.id.fab_checkout), isDisplayed()));\n\n floatingActionButton.perform(click());\n\n ViewInteraction appCompatEditText = onView(allOf(withId(android.R.id.input), isDisplayed()));\n\n appCompatEditText.perform(replaceText(\"Chet\"), closeSoftKeyboard());\n\n ViewInteraction mDButton = onView(\n allOf(withId(R.id.buttonDefaultPositive), withText(\"OK\"), isDisplayed()));\n mDButton.perform(click());\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "@Test\n public void storeSecretsRequest() {\n assertThat(this.secretRepository.count()).isEqualTo(2);\n\n final Resource request = new ClassPathResource(\"test-requests/storeSecrets.xml\");\n final Resource expectedResponse = new ClassPathResource(\"test-responses/storeSecrets.xml\");\n try {\n this.mockWebServiceClient.sendRequest(withPayload(request)).andExpect(ResponseMatchers.noFault()).andExpect(\n ResponseMatchers.payload(expectedResponse));\n } catch (final Exception exc) {\n Assertions.fail(\"Error\", exc);\n }\n\n //test the effects by looking in the repositories\n assertThat(this.secretRepository.count()).isEqualTo(4);\n }", "@Test\n public void trackingEnabled_packageUpdate_sameTokenReplayFails() throws Exception {\n // Set up device configuration.\n configureTrackingEnabled();\n configureReliabilityConfigSettingsOk();\n configureValidApplications();\n\n // Initialize the package tracker.\n assertTrue(mPackageTracker.start());\n\n // Check the intent helper is properly configured.\n checkIntentHelperInitializedAndReliabilityTrackingEnabled();\n\n // Check the initial storage state.\n checkPackageStorageStatusIsInitialOrReset();\n\n // Simulate package installation.\n PackageVersions packageVersions1 =\n new PackageVersions(2 /* updateAppPackageVersion */, 3 /* dataAppPackageVersion */);\n simulatePackageInstallation(packageVersions1);\n\n // Confirm an update was triggered.\n checkUpdateCheckTriggered(packageVersions1);\n\n // Get the first token.\n CheckToken token1 = mFakeIntentHelper.captureAndResetLastToken();\n assertEquals(packageVersions1, token1.mPackageVersions);\n\n // token1 should be accepted.\n mPackageTracker.recordCheckResult(token1, true /* success */);\n\n // Check storage and reliability triggering state.\n checkUpdateCheckSuccessful(packageVersions1);\n\n // Apply token1 again.\n mPackageTracker.recordCheckResult(token1, true /* success */);\n\n // Check the expected storage state. No real way to tell if it has been updated, but\n // we can check the final state is still what it should be.\n checkPackageStorageStatus(PackageStatus.CHECK_COMPLETED_SUCCESS, packageVersions1);\n\n // Under the covers we expect it to fail to update because the storage should recognize that\n // the token is no longer valid.\n mFakeIntentHelper.assertReliabilityTriggerScheduled();\n\n // Peek inside the package tracker to make sure it is tracking failure counts properly.\n assertEquals(1, mPackageTracker.getCheckFailureCountForTests());\n }", "@Test(expected = ResourceAccessException.class)\n public void testReturnBookTransaction(){\n HttpEntity<Object> transaction = getHttpEntity(\n \"\");\n\n ResponseEntity<Transaction> response = template.exchange(\n \"/api/transaction/6/return\", HttpMethod.PATCH,transaction,Transaction.class);\n\n\n Assert.assertEquals(200,response.getStatusCode().value());\n\n }", "@Test\n public void eciTest() {\n assertEquals(\"0\", authResponse.getEci());\n }", "@Test\n @MediumTest\n @DisabledTest(message = \"crbug.com/1182234\")\n @Feature({\"Payments\", \"RenderTest\"})\n public void testRetryWithPayerErrors() throws Throwable {\n mPaymentRequestTestRule.triggerUIAndWait(\"buy\", mPaymentRequestTestRule.getReadyForInput());\n mPaymentRequestTestRule.clickAndWait(\n R.id.button_primary, mPaymentRequestTestRule.getReadyForUnmaskInput());\n mPaymentRequestTestRule.setTextInCardUnmaskDialogAndWait(\n R.id.card_unmask_input, \"123\", mPaymentRequestTestRule.getReadyToUnmask());\n mPaymentRequestTestRule.clickCardUnmaskButtonAndWait(\n ModalDialogProperties.ButtonType.POSITIVE,\n mPaymentRequestTestRule.getPaymentResponseReady());\n\n mPaymentRequestTestRule.retryPaymentRequest(\"{\"\n + \" payer: {\"\n + \" email: 'EMAIL ERROR',\"\n + \" name: 'NAME ERROR',\"\n + \" phone: 'PHONE ERROR'\"\n + \" }\"\n + \"}\",\n mPaymentRequestTestRule.getEditorValidationError());\n\n mPaymentRequestTestRule.clickInEditorAndWait(\n R.id.editor_dialog_done_button, mPaymentRequestTestRule.getReadyToEdit());\n\n mPaymentRequestTestRule.getKeyboardDelegate().hideKeyboard(\n mPaymentRequestTestRule.getEditorDialogView());\n\n ChromeRenderTestRule.sanitize(mPaymentRequestTestRule.getEditorDialogView());\n mRenderTestRule.render(\n mPaymentRequestTestRule.getEditorDialogView(), \"retry_with_payer_errors\");\n\n mPaymentRequestTestRule.setTextInEditorAndWait(\n new String[] {\"Jane Doe\", \"650-253-0000\", \"[email protected]\"},\n mPaymentRequestTestRule.getEditorTextUpdate());\n mPaymentRequestTestRule.clickInEditorAndWait(\n R.id.editor_dialog_done_button, mPaymentRequestTestRule.getReadyToPay());\n }", "@Test\n\tpublic void testRespondible4(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(20));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}", "@Test\n public final void test_interval_normal() {\n String addbody = \"&username=account2&password=dummypassword\";\n\n // Authentication failed.\n PersoniumResponse res = requesttoAuthz(addbody);\n assertThat(res.getStatusCode()).isEqualTo(HttpStatus.SC_SEE_OTHER);\n assertTrue(res.getFirstHeader(HttpHeaders.LOCATION).startsWith(\n UrlUtils.cellRoot(Setup.TEST_CELL1) + \"__authz?\"));\n assertTrue(UrlUtils.parseFragment(res.getFirstHeader(HttpHeaders.LOCATION)).isEmpty());\n Map<String, String> queryMap = UrlUtils.parseQuery(res.getFirstHeader(HttpHeaders.LOCATION));\n assertThat(queryMap.get(OAuth2Helper.Key.CODE), is(\"PS-AU-0004\"));\n\n // Make enough intervals.\n try {\n Thread.sleep(1000 * TEST_ACCOUNT_VALID_AUTHN_INTERVAL);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // authorization\n addbody = \"&username=account2&password=password2\";\n res = requesttoAuthz(addbody);\n assertEquals(HttpStatus.SC_SEE_OTHER, res.getStatusCode());\n\n Map<String, String> response = UrlUtils.parseFragment(res.getFirstHeader(HttpHeaders.LOCATION));\n try {\n ResidentLocalAccessToken aToken = ResidentLocalAccessToken.parse(response.get(OAuth2Helper.Key.ACCESS_TOKEN),\n UrlUtils.cellRoot(Setup.TEST_CELL1));\n assertNotNull(\"access token parse error.\", aToken);\n assertEquals(OAuth2Helper.Scheme.BEARER, response.get(OAuth2Helper.Key.TOKEN_TYPE));\n assertEquals(\"3600\", response.get(OAuth2Helper.Key.EXPIRES_IN));\n assertEquals(DEFAULT_STATE, response.get(OAuth2Helper.Key.STATE));\n } catch (TokenParseException e) {\n fail(e.getMessage());\n e.printStackTrace();\n }\n }", "@ParameterizedTest(name = \"[{index}] first digit: {0}\")\n @ValueSource(strings = {\"0\", \"1\"})\n void resetRequest_otherServiceTested(int lastDigit) {\n // given: the payment request containing the magic amount\n ResetRequest request = MockUtils.aResetRequestBuilder()\n .withAmount(\n new Amount(new BigInteger(\"6010\" + lastDigit), Currency.getInstance(\"EUR\"))\n )\n .build();\n\n // when: calling the method paymentRequest\n ResetResponse response = service.resetRequest(request);\n\n // then: the response is a success\n assertEquals(ResetResponseFailure.class, response.getClass());\n }", "@Test\r\n public void testAdminSaveSubscriptionAuthorized() throws Exception {\r\n saveJoePublisher();\r\n saveSamSyndicator();\r\n DatatypeFactory fac = DatatypeFactory.newInstance();\r\n List<Subscription> subs = new ArrayList<Subscription>();\r\n Subscription s = new Subscription();\r\n\r\n s.setMaxEntities(10);\r\n s.setBrief(false);\r\n GregorianCalendar gcal = new GregorianCalendar();\r\n gcal.setTimeInMillis(System.currentTimeMillis());\r\n gcal.add(Calendar.HOUR, 1);\r\n s.setExpiresAfter(fac.newXMLGregorianCalendar(gcal));\r\n s.setSubscriptionFilter(new SubscriptionFilter());\r\n s.getSubscriptionFilter().setFindBusiness(new FindBusiness());\r\n s.getSubscriptionFilter().getFindBusiness().setFindQualifiers(new FindQualifiers());\r\n s.getSubscriptionFilter().getFindBusiness().getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);\r\n s.getSubscriptionFilter().getFindBusiness().getName().add(new Name(UDDIConstants.WILDCARD, null));\r\n subs.add(s);\r\n Holder<List<Subscription>> items = new Holder<List<Subscription>>();\r\n items.value = subs;\r\n publisher.adminSaveSubscription(authInfoJoe(), TckPublisher.getSamPublisherId(), items);\r\n for (int i = 0; i < items.value.size(); i++) {\r\n tckSubscription.deleteSubscription(authInfoSam(), items.value.get(i).getSubscriptionKey());\r\n }\r\n\r\n deleteJoePublisher();\r\n deleteSamSyndicator();\r\n\r\n }", "@Test\n public void testQueRequests() {\n PaymentMethodViewModel viewModel = new PaymentMethodViewModel(\n getAvailablePaymentMethods\n );\n\n // And I don't have internet connection\n viewModel.setIsNetworkAvailable(false);\n\n // When I request payment methods\n viewModel.getAvailablePaymentMethods();\n\n // Then I should not request the payment method list\n Mockito.verify(getAvailablePaymentMethods, Mockito.times(0)).execute(\n Mockito.any()\n );\n\n // And failures should be NetworkFailure\n assertThat(viewModel.getFailureLiveData().getValue())\n .isInstanceOf(CheckoutFailure.ConnectivityError.class);\n\n // When I get internet connectivity\n viewModel.setIsNetworkAvailable(true);\n\n // Then I should request payment methods automatically\n Mockito.verify(getAvailablePaymentMethods, Mockito.times(1))\n .execute(Mockito.any());\n }", "@Test\n public void testRedeployAfterExpiredValidationOverride() {\n ManualClock clock = new ManualClock(\"2016-10-09T00:00:00\");\n List<ModelFactory> modelFactories = List.of(createHostedModelFactory(clock),\n createFailingModelFactory(Version.fromString(\"1.0.0\"))); // older than default\n DeployTester tester = new DeployTester.Builder(temporaryFolder).modelFactories(modelFactories)\n .build();\n tester.deployApp(\"src/test/apps/validationOverride/\");\n\n // Redeployment from local active works\n {\n Optional<com.yahoo.config.provision.Deployment> deployment = tester.redeployFromLocalActive();\n assertTrue(deployment.isPresent());\n deployment.get().activate();\n }\n\n clock.advance(Duration.ofDays(2)); // validation override expires\n\n // Redeployment from local active also works after the validation override expires\n {\n Optional<com.yahoo.config.provision.Deployment> deployment = tester.redeployFromLocalActive();\n assertTrue(deployment.isPresent());\n deployment.get().activate();\n }\n\n // However, redeployment from the outside fails after this date\n {\n try {\n tester.deployApp(\"src/test/apps/validationOverride/\", \"myApp\");\n fail(\"Expected redeployment to fail\");\n }\n catch (Exception expected) {\n // success\n }\n }\n }", "@Override\n protected Object execute0() throws Exception {\n String msg = \"requestor \" + name;\n\n String conf = Base64.encodeToString(X509Util.parseCert(IoUtil.read(certFile)).getEncoded());\n\n try {\n caManager.changeRequestor(name, RequestorEntry.TYPE_CERT, conf);\n println(\"updated \" + msg);\n return null;\n } catch (CaMgmtException ex) {\n throw new CmdFailure(\"could not update \" + msg + \", error: \" + ex.getMessage(), ex);\n }\n }", "@Test\n public void test() {\n XssPayload payload = XssPayload.genDoubleQuoteAttributePayload(\"input\", true);\n helper.requireLoginAdmin();\n orderId = helper.createDummyOrder(payload.toString(), \"dummy\");\n helper.get(ProcedureHelper.ORDERS_EDIT_URL(orderId));\n assertPayloadNextTo(payload, \"clientName\");\n }", "@Test\n public void testWithRightPathRightApiKey() throws Exception {\n final Http2Client client = Http2Client.getInstance();\n final CountDownLatch latch = new CountDownLatch(1);\n final ClientConnection connection;\n try {\n connection = client.connect(new URI(\"http://localhost:17352\"), Http2Client.WORKER, Http2Client.SSL, Http2Client.BUFFER_POOL, OptionMap.EMPTY).get();\n } catch (Exception e) {\n throw new ClientException(e);\n }\n final AtomicReference<ClientResponse> reference = new AtomicReference<>();\n try {\n ClientRequest request = new ClientRequest().setPath(\"/test1\").setMethod(Methods.GET);\n request.getRequestHeaders().put(Headers.HOST, \"localhost\");\n request.getRequestHeaders().put(new HttpString(\"x-gateway-apikey\"), \"abcdefg\");\n connection.sendRequest(request, client.createClientCallback(reference, latch));\n latch.await();\n } catch (Exception e) {\n logger.error(\"Exception: \", e);\n throw new ClientException(e);\n } finally {\n IoUtils.safeClose(connection);\n }\n int statusCode = reference.get().getResponseCode();\n String responseBody = reference.get().getAttachment(Http2Client.RESPONSE_BODY);\n Assert.assertEquals(200, statusCode);\n Assert.assertEquals(\"OK\", responseBody);\n }", "@Override\n @Test(description = \"Configure a NRP on a dvs by a user \"\n + \"having DVSwitch.ResourceManagement privilege\")\n public void test()\n throws Exception\n {\n // update nrp\n idvs.updateNetworkResourcePool(dvsMor,\n new DVSNetworkResourcePoolConfigSpec[] { nrpConfigSpec });\n\n // verify with the dvs\n Assert.assertTrue(NetworkResourcePoolHelper.verifyNrpFromDvs(connectAnchor,\n dvsMor, nrpConfigSpec), \"NRP verified from dvs\",\n \"NRP not matching with DVS nrp\");\n }", "@Test\n public void testLifeCycle() {\n NewServerResponse serverResponse = connection.createServer(\n \"test.ivan.api.com\", \"lenny\", \"MIRO1B\");\n Server server = serverResponse.getServer();\n // Now we have the server, lets restart it\n assertNotNull(server.getId());\n ServerInfo serverInfo = connection.restartServer(server.getId());\n\n // Should be running now.\n assertEquals(serverInfo.getState(), RunningState.RUNNING);\n assertEquals(server.getName(), \"test.ivan.api.com\");\n assertEquals(server.getImageId(), \"lenny\");\n connection.destroyServer(server.getId());\n }", "public void autoPay() {}", "@Test\n public void testThing(ClientStore clientStore) throws Exception {\n JSONObject request = new JSONObject();\n JSONObject requestContent = new JSONObject();\n\n OA2ClientProvider clientProvider = new OA2ClientProvider(new OA4MPIdentifierProvider(OA4MPIdentifierProvider.CLIENT_ID));\n OA2ClientConverter converter = new OA2ClientConverter(clientProvider);\n JSONObject jsonClient = new JSONObject();\n converter.toJSON(getOa2Client(clientStore), jsonClient);\n requestContent.put(KEYS_SUBJECT, jsonClient);\n JSONObject action = new JSONObject();\n action.put(\"type\", \"client\");\n action.put(\"method\", ACTION_APPROVE);\n requestContent.put(KEYS_ACTION, action);\n\n JSONObject jsonClient2 = new JSONObject();\n converter.toJSON(getOa2Client(clientStore), jsonClient2);\n\n requestContent.put(KEYS_TARGET, jsonClient2);\n\n request.put(KEYS_API, requestContent);\n\n System.out.println(SATFactory.getSubject(request));\n System.out.println(SATFactory.getMethod(request));\n System.out.println(SATFactory.getType(request));\n System.out.println(SATFactory.getTarget(request));\n System.out.println(SATFactory.getContent(request));\n\n }", "@Test\n public void startPollingAuthStatusAccessRequired() throws Exception {\n // Arrange\n TestSubscriber<String> subscriber = new TestSubscriber<>();\n when(mAccess.getSessionId(anyString())).thenReturn(STRING_TO_RETURN);\n when(mAccess.getEncryptedPayload(anyString(), anyString())).thenReturn(Access.KEY_AUTH_REQUIRED);\n // Act\n mSubject.startPollingAuthStatus(\"1234567890\").take(1, TimeUnit.SECONDS).toBlocking().subscribe(subscriber);\n // Assert\n subscriber.assertCompleted();\n subscriber.assertNoValues();\n subscriber.assertNoErrors();\n }", "@Test\n public void refresh() throws Exception {\n }", "@Test\n void testGetRequest() {\n String OAUTH_BASE = \"https://api-sandbox.rabobank.nl/openapi/sandbox/oauth2\";\n raboUtilUnderTest.get(OAUTH_BASE, \"/token\", \"payload\");\n\n // Verify the results\n verify(webClient).get(anyString(),any());\n }", "@Test\n public void SameTokenNameOpenNotPreciseEnough2() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(1);\n InitExchangeSameTokenNameActive();\n long exchangeId = 3;\n String firstTokenId = \"123\";\n long quant = 1L;\n String secondTokenId = \"456\";\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_FIRST, exchangeId, firstTokenId, quant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n fail();\n } catch (ContractValidateException e) {\n Assert.assertTrue(e instanceof ContractValidateException);\n Assert.assertEquals(\"withdraw another token quant must greater than zero\",\n e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n }\n\n quant = 11;\n actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_FIRST, exchangeId, secondTokenId, quant),\n dbManager);\n ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n Assert.assertEquals(ret.getInstance().getRet(), code.SUCESS);\n } catch (ContractValidateException e) {\n Assert.assertTrue(e instanceof ContractValidateException);\n Assert.assertEquals(\"Not precise enough\",\n e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n\n }", "@Test\n public void testModificarLibro() {\n System.out.println(\"ModificarLibro\");\n Libro libro = new LibrosList().getLibros().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Libro expResult = new LibrosList().getLibros().get(0);\n Libro result = instance.ModificarLibro(libro);\n assertEquals(expResult, result);\n System.out.println(\"Libro modificado\\ntitulo:\" + result.getTitulo() + \"\\nISBN: \" + result.getIsbn());\n }", "@Test\n public void testGiveChange() throws Exception {\n System.out.println(\"giveChange\");\n //CashRegister instance = new CashRegister();\n assertEquals(0.0, instance.giveChange(), EPSILON);\n instance.scanItem(0.55);\n instance.scanItem(1.27);\n double expResult = 0.18;\n instance.collectPayment(Money.QUARTER, 8);\n double result = instance.giveChange();\n assertEquals(expResult, result, EPSILON);\n \n }", "@Test\n\tpublic void ExpireTest() throws ExpiratorBusyException, InterruptedException {\n\t\t\n\t\tSongValidator validator = new SongValidator(){\n\t\t\tpublic void noteExpired(NoteEvent event) {\n\t\t\t\t//Giving the expiration an acceptable error of +/- 3 milliseconds\n\t\t\t\t//This is due to Thread.sleep (2 should be the worst case scenario)\n\t\t\t\tassertTrue(\n\t\t\t\t\t\t(System.currentTimeMillis() - start) <103 &&\n\t\t\t\t\t\t(System.currentTimeMillis() - start) > 97\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t};\n\t\t\n\t\tThreadPool testThreadPool = new ThreadPool(validator,2,100);\n\t\tExpirator testExpirator = testThreadPool.getAvailableExpirator();\n\t\tstart = System.currentTimeMillis(); \n\t\ttestExpirator.expireNote(new NoteEvent(dummyNote,NoteAction.BEGIN,System.currentTimeMillis()));\n\t\tThread.sleep(200);//This is so we don't terminate before waiting for the expiration\n\t}" ]
[ "0.59801626", "0.5833132", "0.5623009", "0.5584607", "0.5499862", "0.54862857", "0.5462894", "0.5452047", "0.5448267", "0.5432442", "0.5410543", "0.5345345", "0.53305703", "0.5326425", "0.52743244", "0.5268364", "0.5263026", "0.52578783", "0.52555466", "0.5237967", "0.5227209", "0.5208295", "0.5180425", "0.51623625", "0.5161792", "0.5160024", "0.5159527", "0.5151649", "0.5148982", "0.51453424", "0.5140936", "0.5113925", "0.51096964", "0.5107471", "0.5080431", "0.5076536", "0.50704736", "0.5065562", "0.50612545", "0.50480956", "0.5046018", "0.5043815", "0.50437075", "0.50415516", "0.50390553", "0.50360644", "0.50348264", "0.50332946", "0.50118977", "0.50045586", "0.49979222", "0.49977183", "0.49928853", "0.49826947", "0.4974394", "0.49626678", "0.4962559", "0.49600723", "0.49552786", "0.49427104", "0.49337366", "0.49307212", "0.49299154", "0.49274984", "0.49221832", "0.49213213", "0.49187234", "0.49130443", "0.4896907", "0.489682", "0.48929128", "0.48925403", "0.48696262", "0.48686007", "0.48637754", "0.48584053", "0.4855573", "0.485514", "0.48518497", "0.48495921", "0.48476917", "0.48448256", "0.48430178", "0.48406798", "0.48405284", "0.4837916", "0.48367992", "0.4832296", "0.48311603", "0.4827916", "0.4825054", "0.4821947", "0.48211122", "0.482079", "0.4814862", "0.48017862", "0.47985747", "0.4794892", "0.4794125", "0.4792946" ]
0.6593943
0
Unit test for the extension to the update command and response.
public void testDomainUpdate() { EPPCodecTst.printStart("testDomainUpdate"); // Create Command EPPDomainAddRemove theChange = new EPPDomainAddRemove(); theChange.setRegistrant("sh8013"); EPPDomainUpdateCmd theCommand = new EPPDomainUpdateCmd("ABC-12345", "example.com", null, null, theChange); EPPFeeUpdate theUpdateExt = new EPPFeeUpdate(new EPPFeeValue( new BigDecimal("5.00"))); theUpdateExt.setCurrency("USD"); theCommand.addExtension(theUpdateExt); EPPEncodeDecodeStats commandStats = EPPCodecTst .testEncodeDecode(theCommand); System.out.println(commandStats); // Create Response EPPResponse theResponse; EPPTransId respTransId = new EPPTransId(theCommand.getTransId(), "54321-XYZ"); theResponse = new EPPResponse(respTransId); theResponse.setResult(EPPResult.SUCCESS); EPPFeeUpdData theRespExt = new EPPFeeUpdData("USD", new EPPFeeValue( new BigDecimal("5.00"))); theResponse.addExtension(theRespExt); commandStats = EPPCodecTst.testEncodeDecode(theResponse); System.out.println(commandStats); respTransId = new EPPTransId(theCommand.getTransId(), "54321-XYZ"); theResponse = new EPPResponse(respTransId); theResponse.setResult(EPPResult.SUCCESS); theRespExt = new EPPFeeUpdData(); theRespExt.setCurrency("USD"); theRespExt.addFee(new EPPFeeValue(new BigDecimal("5.00"), null, true, "P5D", EPPFeeValue.APPLIED_IMMEDIATE)); theRespExt.setBalance(new BigDecimal("1000.00")); theResponse.addExtension(theRespExt); commandStats = EPPCodecTst.testEncodeDecode(theResponse); System.out.println(commandStats); EPPCodecTst.printEnd("testDomainUpdate"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCmdUpdate() {\n\t\ttestCmdUpdate_taskID_field();\n\t\ttestCmdUpdate_taskName_field();\n\t\ttestCmdUpdate_time_field();\n\t\ttestCmdUpdate_priority_field();\n\t}", "@Test\n public void update() {\n }", "@Test\r\n public void testUpdate() {\r\n }", "@Test\n public void testUpdate() {\n\n }", "@Test\n public void testUpdateCallWithoutUpdate() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n updateEventAsOrganizer(deltaEvent);\n\n /*\n * Check that mails has been send (updates still needs to be propagated) without any description\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.EMPTY, 1);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertThat(\"Should have been no change\", change.getDiffDescription(), empty());\n }", "@Test\r\n\tpublic void updateUpdate() throws InterruptedException, ExecutionException {\r\n\t\tLOGGER.debugf(\"BEGINN\");\r\n\t\t\r\n\t\t// Given\r\n\t\tfinal Long zahlId = ZAHLUNGSINFORMATION_ID_UPDATE;\r\n \tfinal String neuerKontoinhaber = NEUER_KONTOINHABER;\r\n \tfinal String neuerKontoinhaber2 = NEUER_KONTOINHABER_2;\r\n\t\tfinal String username = USERNAME_ADMIN;\r\n\t\tfinal String password = PASSWORD_ADMIN;\r\n\t\t\r\n\t\t// When\r\n\t\tResponse response = given().header(ACCEPT, APPLICATION_JSON)\r\n\t\t\t\t .pathParameter(ZAHLUNGSINFORMATIONEN_ID_PATH_PARAM, zahlId)\r\n .get(ZAHLUNGSINFORMATIONEN_ID_PATH);\r\n\t\tJsonObject jsonObject;\r\n\t\ttry (final JsonReader jsonReader =\r\n\t\t\t\t getJsonReaderFactory().createReader(new StringReader(response.asString()))) {\r\n\t\t\tjsonObject = jsonReader.readObject();\r\n\t\t}\r\n\r\n \t// Konkurrierendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n \tfinal JsonObjectBuilder job2 = getJsonBuilderFactory().createObjectBuilder();\r\n \tSet<String> keys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob2.add(\"kontoinhaber\", neuerKontoinhaber2);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob2.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tfinal JsonObject jsonObject2 = job2.build();\r\n \tfinal ConcurrentUpdate concurrentUpdate = new ConcurrentUpdate(jsonObject2, ZAHLUNGSINFORMATIONEN_PATH,\r\n \t\t\t username, password);\r\n \tfinal ExecutorService executorService = Executors.newSingleThreadExecutor();\r\n\t\tfinal Future<Response> future = executorService.submit(concurrentUpdate);\r\n\t\tresponse = future.get(); // Warten bis der \"parallele\" Thread fertig ist\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_NO_CONTENT));\r\n\t\t\r\n \t// Fehlschlagendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n\t\tfinal JsonObjectBuilder job1 = getJsonBuilderFactory().createObjectBuilder();\r\n \tkeys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob1.add(\"kontoinhaber\", neuerKontoinhaber);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob1.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tjsonObject = job1.build();\r\n\t\tresponse = given().contentType(APPLICATION_JSON)\r\n\t\t\t\t .body(jsonObject.toString())\r\n\t\t .auth()\r\n\t\t .basic(username, password)\r\n\t\t .put(ZAHLUNGSINFORMATIONEN_PATH);\r\n \t\r\n\t\t// Then\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_CONFLICT));\r\n\t\t\r\n\t\tLOGGER.debugf(\"ENDE\");\r\n\t}", "@Test\r\n public void testUpdate() {\r\n assertTrue(false);\r\n }", "@Test\n public void updateDecline() throws Exception {\n }", "@Test\r\n public void testUpdate() {\r\n System.out.println(\"update\");\r\n String doc = \"\";\r\n String xml = \"\";\r\n IwRepoDAOMarkLogicImplStud instance = new IwRepoDAOMarkLogicImplStud();\r\n boolean expResult = false;\r\n boolean result = instance.update(doc, xml);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test @Ignore\n\tpublic void testUpdate() {\n\t\tlog.info(\"*** testUpdate ***\");\n\t}", "@Test\n\tpublic void testUpdateTicketOk() {\n\t}", "@Test\n\t@Override\n\tpublic void testUpdateObjectOKXml() throws Exception {\n\t}", "@Test\n public void updateAccept() throws Exception {\n\n }", "@Test\n void updateSuccess () {\n TestEntity testEntity = buildEntity();\n Api2 instance = new Api2();\n Long result = instance.save(testEntity);\n\n String name = \"Edited name\";\n boolean check = false;\n String description = \"edited description\";\n\n if (result != null) {\n testEntity.setName(name);\n testEntity.setCheck(check);\n testEntity.setDescription(description);\n instance.update(testEntity);\n\n Optional<TestEntity> optionalTestEntity = instance.getById(TestEntity.class, testEntity.getId());\n assertTrue(optionalTestEntity.isPresent());\n\n if (optionalTestEntity.isPresent()) {\n TestEntity entity = optionalTestEntity.get();\n\n assertEquals(entity.getName(), name);\n assertEquals(entity.getDescription(), description);\n assertEquals(entity.isCheck(), check);\n } else {\n fail();\n }\n } else {\n fail();\n }\n }", "@Test\n\n public void updateWebHook() {\n }", "@Test\n public void testExposesUpdate() throws Exception {\n Link customer = findCustomersLinks().iterator().next();\n byte[] bytes = Files.readAllBytes(Paths.get(\"src/test/resources/customer-update.txt\"));\n\n mockMvc\n .perform(put(customer.getHref())\n .contentType(MediaType.APPLICATION_JSON)\n .content(bytes))\n .andExpect(status().isNoContent());\n\n MockHttpServletResponse response2 = request(customer.getHref());\n\n assertThat(\"Firstname field was updated correctly\",\n JsonPath.read(response2.getContentAsString(), \"firstname\").toString(),\n is(\"Ralph\"));\n }", "@Test\n\t@Override\n\tpublic void testUpdateObjectOKJson() throws Exception {\n\t}", "public abstract void update(@Nonnull Response response);", "@Test\n public void updatePage() {\n }", "@Test\n void update() throws WriteFailedException {\n Config newData = new ConfigBuilder().addAugmentation(NiPfIfCiscoAug.class,\n new NiPfIfCiscoAugBuilder()\n .setInputServicePolicy(\"input-pol1\")\n .build())\n .build();\n\n this.writer.updateCurrentAttributes(iid, data, newData, context);\n\n Mockito.verify(cli, Mockito.times(1))\n .executeAndRead(response.capture());\n\n assertEquals(UPDATE_INPUT, response.getAllValues()\n .get(0)\n .getContent());\n }", "public abstract Response update(Request request, Response response);", "@Test\n public void testUpdateItem() throws Exception {\n\n Tracker tracker = new Tracker();\n\n String action = \"0\";\n String yes = \"y\";\n String no = \"n\";\n\n // add first item\n\n String name1 = \"task1\";\n String desc1 = \"desc1\";\n String create1 = \"3724\";\n\n Input input1 = new StubInput(new String[]{action, name1, desc1, create1, yes});\n new StartUI(input1).init(tracker);\n\n // add second item\n\n String name2 = \"task2\";\n String desc2 = \"desc2\";\n String create2 = \"97689\";\n\n Input input2 = new StubInput(new String[]{action, name2, desc2, create2, yes});\n new StartUI(input2).init(tracker);\n\n // get first item id\n\n String id = \"\";\n\n Filter filter = new FilterByName(name1);\n Item[] result = tracker.findBy(filter);\n for (Item item : result) {\n if(item != null && item.getName().equals(name1)) {\n id = item.getId();\n break;\n }\n }\n\n // update first item\n\n String action2 = \"1\";\n\n String name3 = \"updated task\";\n String desc3 = \"updated desc\";\n String create3 = \"46754\";\n\n Input input3 = new StubInput(new String[]{action2, id, name3, desc3, create3, yes});\n new StartUI(input3).init(tracker);\n\n Item foundedItem = tracker.findById(id);\n\n Assert.assertEquals(name3, foundedItem.getName());\n\n }", "@Test\n void testUpdateGoalie() {\n\n }", "@Test\n public void lastUpdateTest() {\n // TODO: test lastUpdate\n }", "@Test\n public void launchesEventhandlerUpdatelastmodificationTest() {\n // TODO: test launchesEventhandlerUpdatelastmodification\n }", "@Test\n\tpublic void update() throws Exception {\n\t\tMockito.when(productService.updateProductPriceInfo(Mockito.anyLong(), Mockito.anyFloat())).thenReturn(true);\n\t\tRequestBuilder requestBuilder = MockMvcRequestBuilders.put(\"/products/13860428\")\n\t\t\t\t.accept(MediaType.APPLICATION_JSON).content(expected).contentType(MediaType.APPLICATION_JSON);\n\t\tMvcResult result = mockMvc.perform(requestBuilder).andReturn();\n\n\t\tMockHttpServletResponse response = result.getResponse();\n\n\t\tassertEquals(HttpStatus.OK.value(), response.getStatus());\n\n\t}", "@Test\n\tpublic void updateTestPaperQuestion() throws Exception {\n\t}", "@Test\n public void oTAUpdateGETTest() throws ApiException {\n //UUID id = null;\n //OTAUpdateResponse response = api.oTAUpdateGET(id);\n // TODO: test validations\n }", "@Test\n\tpublic void testUpdateActionIsNotPerformedWhenPermissionInheritedAndRequestIsDevoidOfAuthInfos()\n\t\t\tthrows Throwable {\n\t\tcheck(null, new ResponseHandler() {\n\t\t\tpublic void handleResponse(HttpResponse response)\n\t\t\t\t\tthrows Throwable {\n\t\t\t\tassertIsUnauthorized(response);\n\t\t\t\tassertFirstErrorOfEntityEquals(response, ErrorCode.NO_PERM_UPDATE);\n\t\t\t}\n\t\t});\n\t}", "@Test \n\tpublic void testUpdateSetting() throws Exception\n\t{\n\t}", "@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 public void updateContact() {\n }", "public void receivedUpdateFromServer();", "@Test\n\tpublic void validateUpdateOperation() throws Exception {\n\t\tmockMvc.perform(\n\t\t\t\tget(\"/secure/user/{username}\", \"username1\").accept(\n\t\t\t\t\t\tMediaType.APPLICATION_JSON)).andDo(print())\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(content().contentType(\"application/json\"))\n\t\t\t\t.andExpect(jsonPath(\"firstName\").value(\"updatedFirstName\"));\n\n\t}", "public void test_02() {\n\n\t\tResponse reponse = given().\n\t\t\t\tbody(\"{\\\"first_name\\\": \\\"updated by PATCH Rahaman\\\"}\").\n\t\t\t\twhen().\n\t\t\t\tcontentType(ContentType.JSON).\n\t\t\t\tpatch(\"http://localhost:3000/posts/05\");\n\n\t\tSystem.out.println(\"updated response data \"+ reponse.asString());\t\t\t\n\t}", "@Test\n\tpublic void testUpdateTask() {\n\t}", "@Override\n\tpublic void updateRequest(TestExec testExec, Request request) {\n\t\tthis.updateRequest(request);\n\t}", "@Test\n\tpublic void testUpdateEvent() {\n\t\t\n\t\tEvent event = new Event();\n\t\tint status=0;\n\t\ttry {\n\t\t\trequest = new MockHttpServletRequest(\"GET\", \"/updateEvent.htm\");\n\t\t\trequest.setParameter(\"eventId\",\"1003\");\n\t\t\trequest.setParameter(\"sessionId\",\"10003\");\n\t\t\trequest.setParameter(\"eventName\",\"New name\");\n\t\t\trequest.setParameter(\"desc\",\"new desc\");\n\t\t\trequest.setParameter(\"place\",\"new place\");\n\t\t\trequest.setParameter(\"duration\",\"new duration\");\n\t\t\trequest.setParameter(\"eventType\",\"new e_type\");\n\t\t\trequest.setParameter(\"ticket\",\"123\");\n\t\t\trequest.setParameter(\"isAdd\",\"false\");\t\n\t\t\tcontroller.updateEvent(request, response);\n\t\t\t\n\t\t\tevent = eventDao.getEvent(1003, 10003);\n\t\t\t\n\t\t} catch (Exception exception) {\t\t\t\n\t\t\tfail(exception.getMessage());\n\t\t}\n\t\tassertEquals(\"New name\",event.getName());\n\t}", "@Test\n final void testUpdateDevice() {\n when(deviceDao.findDevice(user, DeviceFixture.SERIAL_NUMBER))\n .thenReturn(Optional.of(deviceDTO));\n deviceModel.setStatus(\"Stopped\");\n when(deviceMapper.toDto(deviceModel)).thenReturn(deviceDTO);\n when(deviceDao.save(user, deviceDTO)).thenReturn(deviceDTO);\n when(deviceMapper.toModel(deviceDTO)).thenReturn(deviceModel);\n ResponseEntity<DeviceModel> response = deviceController.updateDevice(deviceModel);\n\n assertEquals(200, response.getStatusCodeValue());\n assertNotNull(response.getBody());\n assertEquals(\"Stopped\", response.getBody().getStatus());\n }", "@Test\n\tpublic void testUpdateStatusbarValue() {\n\t}", "@Test\n\tpublic void testUpdateUser() {\n\t\tLogin login = new Login(\"unique_username_4324321\", \"password\");\n\t\t//login is encrypted in createUser method\n\t\tResponse response = createUser(login);\n\t\t//printResponse(response);\n\t\tassertEquals(Status.OK.getStatusCode(), response.getStatus());\n\t\t\n\t\t//update the user\n\t\tLogin update = new Login(\"unique_username_53428971\", \"a_different_password\");\n\t\tupdate.encryptPassword(passwordEncryptionKey);\n\t\tString resource = \"update_user\";\n\t\tString requestType = \"POST\";\n\t\tList<Login> updateLogins = Arrays.asList(login, update);\n\t\t\n\t\tresponse = sendRequest(resource, requestType, Entity.entity(updateLogins, MediaType.APPLICATION_JSON));\n\t\t//printResponse(response);\n\t\tassertEquals(Status.OK.getStatusCode(), response.getStatus());\n\t}", "@Test(groups = \"his.wardadmission.test\", dependsOnMethods = { \"addWardTestCase\" })\n\tpublic void updateDischargeTestCase() throws IOException, JSONException {\n\n\t\tJSONObject jsonRequestObject = new JSONObject(RequestUtil\n\t\t\t\t.requestByID(TestCaseConstants.UPDATE_DISCHARGE));\n\t\t\n\t\tArrayList<String> resArrayList = getHTTPResponse(\n\t\t\t\tproperties\n\t\t\t\t\t\t.getProperty(TestCaseConstants.URL_APPEND_UPDATE_DISCHARGE),\n\t\t\t\tTestCaseConstants.HTTP_PUT, jsonRequestObject.toString());\n\n\t\tSystem.out.println(\"message :\"+resArrayList.get(0));\n\t\t\n\t\tAssert.assertEquals(Integer.parseInt(resArrayList.get(1)),\n\t\t\t\tSUCCESS_STATUS_CODE);\n\t\t\n\t}", "@Test\n public void testUpdateAccount() {\n for (int i = 0; i < 10; i++) {\n presenter.onUpdateAccount();\n }\n Assert.assertEquals(10, view.getManageUpdateAccountClicks());\n }", "public void testUpdate() {\n TUpdate_Input[] PriceLists_update_in = new TUpdate_Input[] { PriceList_update };\n TUpdate_Return[] PriceLists_update_out = priceListService.update(PriceLists_update_in);\n // test if update was successful\n assertEquals(\"update result set\", 1, PriceLists_update_out.length);\n\n TUpdate_Return PriceList_update_out = PriceLists_update_out[0];\n assertNoError(PriceList_update_out.getError());\n assertEquals(\"updated?\", true, PriceList_update_out.getUpdated());\n }", "@org.junit.Test\r\n public void testUpdatecon() {\r\n System.out.println(\"updatecon\");\r\n ContactRequest Urequest = new ContactRequest(\"DN Verma1\",\"[email protected]\",\"9006847351\",\"DBG\");\r\n ContactDao instance = new ContactDao();\r\n List<ContactResponse> expResult = new ArrayList<ContactResponse>();\r\n ContactResponse c = new ContactResponse(\"Contact Updated\");\r\n expResult.add(c);\r\n List<ContactResponse> result = instance.updatecon(Urequest);\r\n String s=\"No such ID exsits\";\r\n if(!result.get(0).getMessage().equals(s))\r\n assertEquals(expResult.get(0).getMessage(), result.get(0).getMessage());\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Test(expected = Exception.class)\n public void shouldInformTheClientWithAnExceptionIfTheUpdateCausesAnException()\n\t throws Exception {\n\n\tfinal ArrayList<String> newValidValues = Lists.newArrayList(\"Hilton\",\n\t\t\"Hamburg\", \"2\", \"N\", \"12\", \"12.02.2007\", \"\");\n\n\tfinal UpdateRoomCommand command = new UpdateRoomCommand(newValidValues,\n\t\tvalidRoomOffer);\n\n\tfinal UrlyBirdRoomOfferService roomOfferService = new UrlyBirdRoomOfferService(\n\t\tdao, builder, null, null);\n\twhen(dao.read(validRoomOffer.getIndex())).thenReturn(validRoomOffer);\n\twhen(builder.createRoomOffer(newValidValues, validRoomOffer.getIndex()))\n\t\t.thenReturn(validRoomOffer);\n\tdoThrow(new RuntimeException()).when(dao).update(eq(validRoomOffer),\n\t\tanyLong());\n\n\troomOfferService.updateRoomOffer(command);\n\n\tverify(dao).lock(validRoomOffer.getIndex());\n\tverify(dao).unlock(eq(validRoomOffer.getIndex()), anyLong());\n\tverify(dao).update(eq(validRoomOffer), anyLong());\n }", "@Test\n public void testUpdateCar() {\n\n }", "@Test\n public void testUpdateWordList() throws Exception {\n System.out.println(\"updateWordList\");\n\n String newDescription = \"Changed the description.\";\n String newName = \"TEST LIST NEW NAME\";\n\n testList.setDescription(newDescription);\n testList.setName(newName);\n testList.setType(ListType.PRIVATE);\n WordListApi.updateWordList(token, testList);\n\n // check that the list has 2 items\n WordList result = WordListApi.getWordList(token, testList.getPermalink());\n assertEquals(result.getDescription(), newDescription);\n assertEquals(result.getName(), newName);\n assertEquals(result.getType(), ListType.PRIVATE);\n assertEquals(result.getId(), testList.getId());\n assertEquals(result.getNumberWordsInList(), testList.getNumberWordsInList());\n assertEquals(result.getPermalink(), testList.getPermalink());\n assertEquals(result.getUserId(), testList.getUserId());\n assertEquals(result.getUsername(), testList.getUsername());\n assertFalse(result.getUpdatedAt().equals(testList.getUpdatedAt()));\n }", "public void assertUpdateChangesMessage() {\r\n\t\tprint(\"Assert Updates Changes Confirmation Message\");\r\n\t\tlocator = Locator.MyTrader.Updated_Changes_Messages.value;\r\n\t\tAssert.assertTrue(isElementPresent(locator));\r\n\t}", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {updateTask} integration test with optional parameters.\", dependsOnMethods = { \"testCreateTaskWithOptionalParameters\" })\n public void testUpdateTaskWithOptionalParameters() throws IOException, JSONException {\n esbRequestHeadersMap.put(\"Action\", \"urn:updateTask\");\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/tasks/\"\n + connectorProperties.getProperty(\"taskIdOptional\");\n RestResponse<JSONObject> apiRestResponseBefore = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_updateTask_optional.json\");\n \n RestResponse<JSONObject> apiRestResponseAfter = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertNotEquals(apiRestResponseBefore.getBody().getString(\"text\"), apiRestResponseAfter.getBody()\n .getString(\"text\"));\n Assert.assertNotEquals(apiRestResponseBefore.getBody().getString(\"status\"), apiRestResponseAfter.getBody()\n .getString(\"status\"));\n \n Assert.assertEquals(connectorProperties.getProperty(\"textTaskUpdated\"), apiRestResponseAfter.getBody()\n .getString(\"text\"));\n Assert.assertEquals(connectorProperties.getProperty(\"statusUpdated\"), apiRestResponseAfter.getBody().getString(\n \"status\"));\n }", "@Test\n public void updateAll_501() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n addMOToDb(3);\n\n Workflow mo = new Workflow();\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.PUT, \"/mo/\", mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(501, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n\n }", "@SmallTest\n public void testUpdate() {\n int result = -1;\n if (this.entity != null) {\n Settings settings = SettingsUtils.generateRandom(this.ctx);\n settings.setId(this.entity.getId());\n\n result = (int) this.adapter.update(settings);\n\n Assert.assertTrue(result >= 0);\n }\n }", "@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}", "private static void checkUpdate() throws Exception {\n\t\tfinal Properties updateProperties = new CachedResource<Properties>(getApplicationProperty(\"update.url\"), Properties.class, CachedResource.ONE_DAY, 0, 0) {\n\n\t\t\t@Override\n\t\t\tpublic Properties process(ByteBuffer data) {\n\t\t\t\ttry {\n\t\t\t\t\tProperties properties = new Properties();\n\t\t\t\t\tNodeList fields = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new ByteBufferInputStream(data)).getFirstChild().getChildNodes();\n\t\t\t\t\tfor (int i = 0; i < fields.getLength(); i++) {\n\t\t\t\t\t\tproperties.setProperty(fields.item(i).getNodeName(), fields.item(i).getTextContent().trim());\n\t\t\t\t\t}\n\t\t\t\t\treturn properties;\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t}.get();\n\n\t\t// check if update is required\n\t\tint latestRev = Integer.parseInt(updateProperties.getProperty(\"revision\"));\n\t\tint currentRev = getApplicationRevisionNumber();\n\n\t\tif (latestRev > currentRev && currentRev > 0) {\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tfinal JDialog dialog = new JDialog(JFrame.getFrames()[0], updateProperties.getProperty(\"title\"), ModalityType.APPLICATION_MODAL);\n\t\t\t\t\tfinal JPanel pane = new JPanel(new MigLayout(\"fill, nogrid, insets dialog\"));\n\t\t\t\t\tdialog.setContentPane(pane);\n\n\t\t\t\t\tpane.add(new JLabel(ResourceManager.getIcon(\"window.icon.medium\")), \"aligny top\");\n\t\t\t\t\tpane.add(new JLabel(updateProperties.getProperty(\"message\")), \"gap 10, wrap paragraph:push\");\n\t\t\t\t\tpane.add(new JButton(new AbstractAction(\"Download\", ResourceManager.getIcon(\"dialog.continue\")) {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tDesktop.getDesktop().browse(URI.create(updateProperties.getProperty(\"download\")));\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\tdialog.setVisible(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}), \"tag ok\");\n\t\t\t\t\tpane.add(new JButton(new AbstractAction(\"Details\", ResourceManager.getIcon(\"action.report\")) {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tDesktop.getDesktop().browse(URI.create(updateProperties.getProperty(\"discussion\")));\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}), \"tag help2\");\n\t\t\t\t\tpane.add(new JButton(new AbstractAction(\"Ignore\", ResourceManager.getIcon(\"dialog.cancel\")) {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\t\t\t\tdialog.setVisible(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}), \"tag cancel\");\n\n\t\t\t\t\tdialog.pack();\n\t\t\t\t\tdialog.setLocation(getOffsetLocation(dialog.getOwner()));\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "@Override\n public MockResponse handleUpdate(RecordedRequest request) {\n return process(request, putHandler);\n }", "public void checkForUpdate();", "@Test\r\n public void testUpdate() {\r\n TestingTypeList test = new TestingTypeList();\r\n test.addTestingType(\"TestType\", \"test\");\r\n TestingType testValue = test.getTestingTypeAt(0);\r\n test.update(testValue, testValue);\r\n TestingType notInList = new TestingType(\"NotInList\", \"notinlist\", \"notinlist\");\r\n test.update(notInList, notInList);\r\n assertEquals(1, test.size());\r\n }", "@Test\r\n\tpublic void updateProductDetails() {\r\n\r\n\t\tRestAssured.baseURI = \"http://localhost:9000/products\";\r\n\t\tRequestSpecification request = RestAssured.given();\r\n\t\tJSONObject requestParams = new JSONObject();\r\n\t\trequestParams.put(\"name\", \"Banana\");\r\n\t\trequest.header(\"Content-Type\", \"application/json\");\r\n\t\trequest.body(requestParams.toString());\r\n\t\tResponse response = request.put(\"/5\");\r\n\t\tSystem.out.println(\"Update Responce Body ----->\" + response.asString());\r\n\t\tint statusCode = response.getStatusCode();\r\n\t\tAssert.assertEquals(statusCode, 200);\r\n\r\n\t}", "@Test\n public void testUpdateExample() throws Exception{\n MvcResult result = this.mockMvc.perform(get(\"/api/example/{id}\",50))\n .andExpect(status().is2xxSuccessful())\n .andReturn();\n\n // Parses it\n Example example = convertFromJson(result.getResponse().getContentAsString(), Example.class);\n \n // Change name value\n example.setName(\"Test 27\");\n\n // Updates it and checks if it was updated\n this.mockMvc.perform(put(\"/api/example\")\n .contentType(MediaType.APPLICATION_JSON)\n .content(convertToJson(example)))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.name\", equalTo(\"Test 27\")));\n }", "@Test\n @Ignore\n public void testUpdate() {\n System.out.println(\"update\");\n Index entity = null;\n IndexDaoImpl instance = null;\n Index expResult = null;\n Index result = instance.update(entity);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void trackingEnabled_packageUpdate_badUpdateAppManifestEntry() throws Exception {\n configureTrackingEnabled();\n configureReliabilityConfigSettingsOk();\n configureValidApplications();\n\n // Initialize the tracker.\n assertTrue(mPackageTracker.start());\n\n // Check the intent helper is properly configured.\n checkIntentHelperInitializedAndReliabilityTrackingEnabled();\n\n // Check the initial storage state.\n checkPackageStorageStatusIsInitialOrReset();\n\n // Configure a bad manifest for the update app. Should effectively turn off tracking.\n PackageVersions packageVersions =\n new PackageVersions(2 /* updateAppPackageVersion */, 3 /* dataAppPackageVersion */);\n configureUpdateAppManifestBad(UPDATE_APP_PACKAGE_NAME);\n configureDataAppManifestOk(DATA_APP_PACKAGE_NAME);\n configureUpdateAppPackageVersion(\n UPDATE_APP_PACKAGE_NAME, packageVersions.mUpdateAppVersion);\n configureDataAppPackageVersion(DATA_APP_PACKAGE_NAME, packageVersions.mDataAppVersion);\n // Simulate a tracked package being updated.\n mFakeIntentHelper.simulatePackageUpdatedEvent();\n\n // Assert the PackageTracker did not attempt to trigger an update.\n mFakeIntentHelper.assertUpdateNotTriggered();\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n\n // Assert the storage was not touched.\n checkPackageStorageStatusIsInitialOrReset();\n }", "public static void main(String[] args) {\n\t\t//if the first argument is \"-unittest\"\n\t\tif(args.length>0 && \"-unittest\".equalsIgnoreCase(args[0].trim())){\n\t\t\tinitSharedUpdater();\n\n\t\t\tLibraryUpdate.__testSharedUpdater();\n\t\t\ttry {\n\t\t\t\tLibraryUpdate.__testUpzipSkipPredicator();\n\t\t\t} catch (SeleniumPlusException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tLibraryUpdate._sharedUpdater.close();\n\t\t\treturn;\n\t\t}\n\n\t\tLibraryUpdate updater = null;\n\t\tint exitcode = 0;\n\t\ttry{\n\t\t\tupdater = new LibraryUpdate();\n\n\t\t\t//Sufficient valid args provided\n\t\t\tif(!updater.processArgs(args)){\n\t\t\t\tif(! updater.canceled){\n\t\t\t\t\tString message = \"Please provide all *required* parameters.\";\n\t\t\t\t\tupdater.console.println(message);\n\t\t\t\t\thelp(updater.console);\n\t\t\t\t\tif(!updater.isQuiet()) JOptionPane.showMessageDialog(null, message +\"\\n\"+ LibraryUpdate.HELP_STRING, updater.prompt, JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\texitcode = -1;\n\t\t\t\t}else{\n\t\t\t\t\tString message = \"\\nNo Download or Update will be attempted.\";\n\t\t\t\t\tupdater.console.println(message);\n\t\t\t\t\tif(!updater.isQuiet()) JOptionPane.showMessageDialog(null, message, updater.prompt, JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\texitcode = -1;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tString message = \"Modified \"+ updater.modifiedFiles +\", creating \"+ updater.backupFiles +\" backups.\";\n\t\t\t\tupdater.progressor.setProgressInfo(100,message);\n\t\t\t\tif(!updater.isQuiet()) JOptionPane.showMessageDialog(null, message, updater.prompt, JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\texitcode = updater.modifiedFiles;\n\t\t\t}\n\t\t}catch(Exception x){\n\t\t\tupdater.errors.println(x.getMessage());\n\t\t\thelp(updater.errors);\n\t\t\tupdater.progressor.setProgressInfo(100,x.getMessage(), LogConstants.ERROR);\n\t\t\tif(!updater.isQuiet()) JOptionPane.showMessageDialog(null, x.getMessage()+\"\\n\"+ LibraryUpdate.HELP_STRING, updater.prompt, JOptionPane.ERROR_MESSAGE);\n\t\t\texitcode = -2;\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\tString mainclass = org.safs.tools.MainClass.deduceMainClass();\n\t\t\t\tif( LibraryUpdate.class.getName().equals(mainclass) ||\n\t\t\t\t\t\tmainclass.endsWith(\"safsupdate.jar\")\t)\n\t\t\t\t\tSystem.exit(exitcode);\n\t\t\t}catch(Throwable ignore){}\n\t\t}\n\n\t}", "@Test\n public void passUpdateWrong () {\n //check the display name as expected\n onView(withId(R.id.username)).check(matches(isDisplayed()));\n //enter wrong past password\n onView(withId(R.id.oldPassword)).perform(typeText(\"serene88\"));\n //close keyboard\n closeSoftKeyboard();\n //enter new pass\n onView(withId(R.id.newPassword)).perform(typeText(\"serene99\"));\n //close keyboard\n closeSoftKeyboard();\n //reenter new pass\n onView(withId(R.id.reNewPassword)).perform(typeText(\"serene99\"));\n //close keyboard\n closeSoftKeyboard();\n //click the button\n onView(withId(R.id.save)).perform(click());\n // check toast visibility\n onView(withText(R.string.wrongPassword))\n .inRoot(new ToastMatcher())\n .check(matches(withText(R.string.wrongPassword)));\n //check activity still shown\n assertFalse(activityTestRule.getActivity().isFinishing());\n }", "@Test\n\tpublic void testValidateUpdateTargetWithValidQuery2() {\n\t\tupdates.add(mockAssetView(\"target\", DefaultRuleAssetValidator.SEARCH_PAGES));\n\t\twhen(repoItem.getPropertyValue(RuleProperty.QUERY)).thenReturn(\"validQuery\");\n\t\tdefaultRuleAssetValidator.validateUpdateAsset(editorInfo, updates, null);\n\t\tverify(assetService, never()).addError(anyString(), anyString());\t\t\n\t}", "@Override\n\tpublic int update(TestPoEntity entity) {\n\t\treturn 0;\n\t}", "@Test\n public void noUpdateWhenNotValidParams() {\n }", "@Test\n\tpublic void testLiveDatabaseUpdate_1()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\t\tOperationOptions aOptions = new OperationOptions();\n\n\t\tOperationResult result = fixture.liveDatabaseUpdate(aArguments, aOptions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\r\n public void testUpdateFile() {\r\n System.out.println(\"updateFile\");\r\n InparseManager instance = ((InparseManager) new ParserGenerator().getNewApplicationInparser());\r\n try {\r\n File file = File.createTempFile(\"TempInpFile\", null);\r\n instance.setlocalPath(file.getAbsolutePath());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ApplicationInparserTest.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n instance.updateFile();\r\n // no assertEquals needed because the method itself would throw an error\r\n // if an error occurs check your connection to the internet\r\n }", "@Test\n void testUpdateWhenLatestChanges() throws Exception {\n\n startMetadataTestServer(RC2);\n\n // Make the initial latestVersion call and validate the result\n\n assertInitialLatestVersionRequestPerformsUpdate(0, NANOSECONDS, VERSION_RC2, RC2_ETAG, false);\n\n // Now get the properties again and make sure we skip the zip download but still updated the latest version.\n // Note that the update is forced here because we used a zero frequency.\n\n LOG_RECORDER.clear();\n assertThat(meta.propertiesOf(latestVersion), is(not(nullValue())));\n assertLinesContainingAll(1, \"not modified\", RC2 + \"/\" + CLI_DATA_FILE_NAME);\n assertLinesContainingAll(1, \"updated\", RC2_LAST_UPDATE, \"etag \" + RC2_ETAG);\n assertLinesContainingAll(1, \"downloading\", LATEST_FILE_NAME);\n assertLinesContainingAll(1, \"connected\", LATEST_FILE_NAME);\n assertLinesContainingAll(1, \"wrote\", LATEST_FILE_NAME);\n\n // Now change the result of /latest and validate the result\n\n LOG_RECORDER.clear();\n Plugins.reset(true);\n testServer.latest(TestVersion.RC1);\n assertInitialLatestVersionRequestPerformsUpdate(0, NANOSECONDS, VERSION_RC1, RC1_ETAG, true);\n }", "@Test\n public void testUpdateApartmentStatus() {\n System.out.println(\"updateApartmentStatus\");\n String status = \"Unavailable\";\n int apartmentid = 2;\n ApartmentBLL instance = new ApartmentBLL();\n instance.updateApartmentStatus(status, apartmentid);\n }", "public void testUpdate() {\n Basket_up.setPath(BasketPath);\n TUpdate_Return[] Baskets_update_out = basketService.update(new TUpdate_Input[] { Basket_up });\n assertNoError(Baskets_update_out[0].getError());\n assertNull(\"No FormErrors\", Baskets_update_out[0].getFormErrors());\n assertTrue(\"updated?\", Baskets_update_out[0].getUpdated());\n }", "@Test\n public void addUpdateDeleteInformationalArtifactApi() throws Exception {\n ResourceReqDetails vfMetaData = createVFviaAPI();\n\n //Go to Catalog and find the created VF\n CatalogUIUtilitis.clickTopMenuButton(TopMenuButtonsEnum.CATALOG);\n GeneralUIUtils.findComponentAndClick(vfMetaData.getName());\n\n ResourceGeneralPage.getLeftMenu().moveToInformationalArtifactScreen();\n\n ArtifactInfo informationalArtifact = new ArtifactInfo(filePath, \"asc_heat 0 2.yaml\", \"kuku\", \"artifact1\", \"OTHER\");\n InformationalArtifactPage.clickAddNewArtifact();\n ArtifactUIUtils.fillAndAddNewArtifactParameters(informationalArtifact);\n\n AssertJUnit.assertTrue(\"artifact table does not contain artifacts uploaded\", InformationalArtifactPage.checkElementsCountInTable(1));\n\n String newDescription = \"new description\";\n InformationalArtifactPage.clickEditArtifact(informationalArtifact.getArtifactLabel());\n InformationalArtifactPage.artifactPopup().insertDescription(newDescription);\n InformationalArtifactPage.artifactPopup().clickDoneButton();\n String actualArtifactDescription = InformationalArtifactPage.getArtifactDescription(informationalArtifact.getArtifactLabel());\n AssertJUnit.assertTrue(\"artifact description is not updated\", newDescription.equals(actualArtifactDescription));\n\n InformationalArtifactPage.clickDeleteArtifact(informationalArtifact.getArtifactLabel());\n InformationalArtifactPage.clickOK();\n AssertJUnit.assertTrue(\"artifact \" + informationalArtifact.getArtifactLabel() + \"is not deleted\", InformationalArtifactPage.checkElementsCountInTable(0));\n }", "@Test\n public void trackingEnabled_packageUpdate_afterFailure() throws Exception {\n // Set up device configuration.\n configureTrackingEnabled();\n configureReliabilityConfigSettingsOk();\n configureValidApplications();\n\n // Initialize the tracker.\n assertTrue(mPackageTracker.start());\n\n // Check the intent helper is properly configured.\n checkIntentHelperInitializedAndReliabilityTrackingEnabled();\n\n // Check the initial storage state.\n checkPackageStorageStatusIsInitialOrReset();\n\n // Simulate package installation.\n PackageVersions packageVersions =\n new PackageVersions(2 /* updateAppPackageVersion */, 3 /* dataAppPackageVersion */);\n simulatePackageInstallation(packageVersions);\n\n // Confirm an update was triggered.\n checkUpdateCheckTriggered(packageVersions);\n\n // Get the first token.\n CheckToken token1 = mFakeIntentHelper.captureAndResetLastToken();\n assertEquals(packageVersions, token1.mPackageVersions);\n\n // Simulate an *unsuccessful* check.\n mPackageTracker.recordCheckResult(token1, false /* success */);\n\n // Check storage and reliability triggering state.\n checkUpdateCheckFailed(packageVersions);\n\n // Now generate another check, but without having updated the package. The\n // PackageTracker should recognize the last check failed and trigger again.\n simulatePackageInstallation(packageVersions);\n\n // Confirm an update was triggered.\n checkUpdateCheckTriggered(packageVersions);\n\n // Get the second token.\n CheckToken token2 = mFakeIntentHelper.captureAndResetLastToken();\n\n // Assert some things about the tokens.\n assertEquals(packageVersions, token2.mPackageVersions);\n assertTrue(token1.mOptimisticLockId != token2.mOptimisticLockId);\n\n // For completeness, now simulate this check was successful.\n mPackageTracker.recordCheckResult(token2, true /* success */);\n\n // Check storage and reliability triggering state.\n checkUpdateCheckSuccessful(packageVersions);\n }", "public void requestUpdate(){\n shouldUpdate = true;\n }", "@Test\n\t@Override\n\tpublic void testUpdateObjectNotFoundXml() throws Exception {\n\t}", "@Test\n public void testUpdateDescription() {\n LayersViewController instance = LayersViewController.getDefault().init(null);\n String description1 = \"Vertex Description\";\n int index1 = 2;\n Query query1 = new Query(GraphElementType.VERTEX, \"Type == 'Event'\");\n instance.getVxQueryCollection().getQuery(index1).setQuery(query1);\n instance.getTxQueryCollection().getQuery(index1).setQuery(null);\n\n instance.updateDescription(description1, index1);\n assertEquals(instance.getVxQueryCollection().getQuery(index1).getDescription(), description1);\n\n String description2 = \"Transaction Description\";\n int index2 = 3;\n Query query2 = new Query(GraphElementType.TRANSACTION, \"Type == 'Network'\");\n instance.getTxQueryCollection().getQuery(index2).setQuery(query2);\n instance.getVxQueryCollection().getQuery(index2).setQuery(null);\n\n instance.updateDescription(description2, index2);\n assertEquals(instance.getTxQueryCollection().getQuery(index2).getDescription(), description2);\n }", "@Test\n\tpublic void testUpdateUserPositive() {\n\t\tUser testUser = new User();\n\t\ttestUser.setUserEmail(TEST_EMAIL);\n\t\ttestUser.setUserPassword(TEST_PASSWORD);\n\t\ttestUser.setUserId(TEMP_Key);\n\t\tMockito.when(userService.persistUser((User) Matchers.anyObject()))\n\t\t.thenReturn(testUser);\n\t\t\n\t\t// create a simple user for persistent user return call\n\t\tUser resultUser = new User();\n\t\tresultUser.setUserEmail(TEST_EMAIL + \"Update\");\n\t\tresultUser.setUserPassword(TEST_PASSWORD);\n\t\tresultUser.setUserId(TEMP_Key);\n\t\tMockito.when(userService.updateUser((User) Matchers.anyObject()))\n\t\t\t\t.thenReturn(resultUser);\n\t\tMockito.when(userService.existsUserByEmail(TEST_EMAIL)).thenReturn(\n\t\t\t\tfalse);\n\n\t\tgiven().body(testUser).contentType(ContentType.JSON).when()\n\t\t\t\t.put(getBaseTestURI()).then()\n\t\t\t\t.statusCode(HttpServletResponse.SC_OK)\n\t\t\t\t.contentType(ContentType.JSON)\n\t\t\t\t.body(\"userEmail\", equalTo(TEST_EMAIL + \"Update\"));\n\t}", "@Override\n\tpublic void updateTestCase(TestCaseStatus testCaseStatus) {\n\t\t\n\t}", "@Test\n\tpublic void testModifyQuestion() {\n\t\tQnaQuestion question = questionLogic.getQuestionById(tdp.question1_location1.getId());\n\n\t\tquestion.setQuestionText(\"Testing update\");\n\n\t\t// Test with invalid permissions\n\t\ttry {\n\t\t\texternalLogicStub.currentUserId = USER_NO_UPDATE;\n\t\t\tquestionLogic.saveQuestion(question,LOCATION1_ID);\n\t\t\tAssert.fail(\"Should have thrown exception\");\n\t\t} catch (SecurityException e) {\n\t\t\tAssert.assertNotNull(e);\n\t\t} \n\n\t\t// Test with valid permission\n\t\ttry {\n\t\t\texternalLogicStub.currentUserId = USER_UPDATE;\n\t\t\tquestionLogic.saveQuestion(question,LOCATION1_ID);\n\t\t\tQnaQuestion changedQuestion = questionLogic.getQuestionById(tdp.question1_location1.getId());\n\t\t\tAssert.assertEquals(changedQuestion.getQuestionText(), \"Testing update\");\n\t\t} catch (Exception e) {\n\t\t\tAssert.fail(\"Should not have thrown exception\");\n\t\t}\n\t}", "public void update() {}", "public void testCmdUpdate_taskName_field() {\n\t\t// Initialize test variables\n\t\tCommandAction expectedCA;\n\t\tTask expectedTask;\n\t\tList<Task> expectedTaskList;\n\n\t\t/*\n\t\t * Test 2: Testing task name field (all ID are valid)\n\t\t */\n\t\tctf.initialize();\n\t\texpectedTaskList = null;\n\t\taddNewTask(TASK_NAME_1);\n\n\t\t// Test 2a: task name is null\n\t\t_testCmdUpdate = new CmdUpdate();\n\t\t_testCmdUpdate.setParameter(CmdParameters.PARAM_NAME_TASK_ID, VALID_TASKID + \"\");\n\t\texpectedCA = new CommandAction(MSG_TASKNOUPDATE, false, expectedTaskList);\n\t\tctf.assertCommandAction(expectedCA, _testCmdUpdate.execute());\n\n\t\t// Test 2b: task name is an empty String\n\t\t_testCmdUpdate = new CmdUpdate();\n\t\tsetParameters(VALID_TASKID + \"\", EMPTY_STRING, null, null, null);\n\t\texpectedCA = new CommandAction(MSG_TASKNOUPDATE, false, expectedTaskList);\n\t\tctf.assertCommandAction(expectedCA, _testCmdUpdate.execute());\n\n\t\t// Test 2c: new task name is same as current task name (no changes)\n\t\t_testCmdUpdate = new CmdUpdate();\n\t\tsetParameters(VALID_TASKID + \"\", TASK_NAME_1, null, null, null);\n\t\texpectedCA = new CommandAction(MSG_TASKNOUPDATE, false, expectedTaskList);\n\t\tctf.assertCommandAction(expectedCA, _testCmdUpdate.execute());\n\n\t\t// Test 2d: new task name is different from current task name (changes\n\t\t// made)\n\t\texpectedTaskList = new ArrayList<Task>();\n\t\t_testCmdUpdate = new CmdUpdate();\n\t\tsetParameters(VALID_TASKID + \"\", TASK_NAME_2, null, null, null);\n\t\texpectedTask = ctf.createExpectedTask(TASK_NAME_2, NO_TIME, NO_TIME, PRIORITY_TYPE.NORMAL);\n\t\texpectedTaskList.add(expectedTask);\n\t\texpectedCA = new CommandAction(String.format(MSG_TASKUPDATED, VALID_TASKID), true, expectedTaskList);\n\t\tctf.assertCommandAction(expectedCA, _testCmdUpdate.execute());\n\n\t}", "@Test\n\tpublic void updateTest() {\n\t\tEmployeeGroup employeeGroup = createMocKEmployeeGroup(\"1\" ,new Short((short)1) );\n\t\t// Recover this employeeGroup\n\t\tResponseEntity<EmployeeGroupResource> result = this.restTemplate.getForEntity(\"/employeeGroup/1/1\", EmployeeGroupResource.class);\n\t\t// The reponse can't be null\n\t\tassertThat(result).isNotNull();\n\t\t// The status code must be OK\n\t\tassertThat(result.getStatusCode()).isEqualTo(HttpStatus.OK);\n\t\t// Response body must not be null\n\t\tassertThat(result.getBody()).isNotNull();\n\t\t// Assert the Hateoas self link\n\t\tLink link = new Link(\"http://localhost:9999/employeeGroup/1/1\", Link.REL_SELF);\n\t\tassertThat(result.getBody().getId()).isEqualTo(link);\n\n\t\t// Change field value\n\t\t// Process update\n\t\tRequestEntity<EmployeeGroup> request = new RequestEntity<EmployeeGroup>(employeeGroup, HttpMethod.PUT, null);\n\t\tResponseEntity<Void> resultUpdate = this.restTemplate.exchange(\"/employeeGroup/1/1\", HttpMethod.PUT, request,\n\t\t\t\tgetTypeRefVoid());\n\t\t// The response can't be null\n\t\tassertThat(resultUpdate).isNotNull();\n\t\t// The status code must be OK\n\t\tassertThat(resultUpdate.getStatusCode()).isEqualTo(HttpStatus.OK);\n\n\t\t// Recover the employeeGroup and ensure field are correct\n\t\tresult = this.restTemplate.getForEntity(\"/employeeGroup/1/1\", EmployeeGroupResource.class);\n\t\t// The reponse can't be null\n\t\tassertThat(result).isNotNull();\n\t\t// The status code must be OK\n\t\tassertThat(result.getStatusCode()).isEqualTo(HttpStatus.OK);\n\t\t// Response body must not be null\n\t\tassertThat(result.getBody()).isNotNull();\n\t\t// Assert the Hateoas self link\n\t\tlink = new Link(\"http://localhost:9999/employeeGroup/1/1\", Link.REL_SELF);\n\t\tassertThat(result.getBody().getId()).isEqualTo(link);\n\t}", "public void testUpdate() {\n\t\ttry {\n\t\t\tServerParameterTDG.create();\n\n\t\t\tServerParameterTDG.insert(\"paramName\", \"A description\", \"A value\");\n\t\t\t\n\t\t\t// update\n\t\t\tassertEquals(1, ServerParameterTDG.update(\"paramName\", \"some description\", \"other value\"));\t\n\t\t\t\n\t\t\t// update again\n\t\t\tassertEquals(1, ServerParameterTDG.update(\"paramName\", \"some other description\", \"and another value\"));\t\n\t\t\t\n\t\t\t// delete\n\t\t\tassertEquals(1, ServerParameterTDG.delete(\"paramName\"));\t\n\t\t\t\n\t\t\tServerParameterTDG.drop();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\t\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tServerParameterTDG.drop();\n\t\t\t} catch (SQLException e) {\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testValidateUpdateTargetWithValidQuery1() {\n\t\tupdates.add(mockAssetView(\"target\", DefaultRuleAssetValidator.SEARCH_PAGES));\n\t\tupdates.add(mockAssetView(\"query\", \"validQuery\"));\t\t\n\t\tdefaultRuleAssetValidator.validateUpdateAsset(editorInfo, updates, null);\n\t\tverify(assetService, never()).addError(anyString(), anyString());\t\t\n\t}", "@Test\n\tpublic void testUpdateFile_2()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tString portletId = \"\";\n\t\tlong groupId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tString versionNumber = \"\";\n\t\tString sourceFileName = \"\";\n\t\tlong fileEntryId = 1L;\n\t\tString properties = \"\";\n\t\tDate modifiedDate = new Date();\n\t\tServiceContext serviceContext = new ServiceContext();\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.updateFile(companyId, portletId, groupId, repositoryId, fileName, fileExtension, validateFileExtension, versionNumber, sourceFileName, fileEntryId, properties, modifiedDate, serviceContext, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\npublic void testUpdateResult() throws Exception { \n//TODO: Test goes here... \n}", "Test update(TestData testData, Test test);", "@Test\n public void testUpdate() {\n System.out.println(\"update\");\n Address obj = null;\n AddressDAO instance = null;\n boolean expResult = false;\n boolean result = instance.update(obj);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testEdit() {\n lib.addDVD(dvd1);\n lib.addDVD(dvd2);\n \n dvd1.setTitle(\"Ghostbusters II\");\n lib.edit(dvd1);\n \n Assert.assertEquals(\"Ghostbusters II\", lib.getById(0).getTitle());\n }", "@Test\n public void testWithUserSelection() {\n TestUpdateSettings settings = new TestUpdateSettings(ChannelStatus.EAP);\n UpdateStrategyCustomization customization = new UpdateStrategyCustomization();\n UpdateStrategy strategy = new UpdateStrategy(9, BuildNumber.fromString(\"IU-95.429\"), InfoReader.read(\"idea-new9eap.xml\"), settings, customization);\n\n CheckForUpdateResult result = strategy.checkForUpdates();\n assertEquals(UpdateStrategy.State.LOADED, result.getState());\n BuildInfo update = result.getNewBuildInSelectedChannel();\n assertNotNull(update);\n assertEquals(\"95.627\", update.getNumber().toString());\n }", "public void updateManager();", "@Test\n\tpublic void testUpdateFile_1()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tString portletId = \"\";\n\t\tlong groupId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tString versionNumber = \"\";\n\t\tString sourceFileName = \"\";\n\t\tlong fileEntryId = 1L;\n\t\tString properties = \"\";\n\t\tDate modifiedDate = new Date();\n\t\tServiceContext serviceContext = new ServiceContext();\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.updateFile(companyId, portletId, groupId, repositoryId, fileName, fileExtension, validateFileExtension, versionNumber, sourceFileName, fileEntryId, properties, modifiedDate, serviceContext, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n void updateSuccess() {\n String newDescription = \"December X-Large T-Shirt\";\n Order orderToUpdate = dao.getById(3);\n orderToUpdate.setDescription(newDescription);\n dao.saveOrUpdate(orderToUpdate);\n Order retrievedOrder = dao.getById(3);\n assertEquals(newDescription, retrievedOrder.getDescription());\n\n String resetDescription = \"February Small Long-Sleeve\";\n Order orderToReset = dao.getById(3);\n orderToUpdate.setDescription(resetDescription);\n dao.saveOrUpdate(orderToReset);\n }", "private UpdateManager () {}", "@Test(groups = \"his.wardadmission.test\", dependsOnMethods = { \"addWardTestCase\" })\n\tpublic void updateAdmissionBedNoTestCase() throws IOException, JSONException {\n\n\t\tJSONObject jsonRequestObject = new JSONObject(RequestUtil\n\t\t\t\t.requestByID(TestCaseConstants.UPDATE_ADMISSION_BED_NO));\n\t\t\n\t\tArrayList<String> resArrayList = getHTTPResponse(\n\t\t\t\tproperties\n\t\t\t\t\t\t.getProperty(TestCaseConstants.URL_APPEND_UPDATE_ADMISSION_BED_NO),\n\t\t\t\tTestCaseConstants.HTTP_PUT, jsonRequestObject.toString());\n\n\t\tSystem.out.println(\"message :\"+resArrayList.get(0));\n\n\t\tAssert.assertEquals(Integer.parseInt(resArrayList.get(1)),\n\t\t\t\tSUCCESS_STATUS_CODE);\n\t\t\n\t}", "@Test\n public void test() throws Exception{\n update(\"update user set username=? where id=?\",\"wangjian\",\"4\");\n }", "JobResponse.Update update();", "interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithAutoShutdownProfile,\n UpdateStages.WithConnectionProfile,\n UpdateStages.WithVirtualMachineProfile,\n UpdateStages.WithSecurityProfile,\n UpdateStages.WithRosterProfile,\n UpdateStages.WithLabPlanId,\n UpdateStages.WithTitle,\n UpdateStages.WithDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Lab apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Lab apply(Context context);\n }", "@Test\n public void testUpdatePerson() {\n final AuthenticationToken myToken = login(\"[email protected]\", \"finland\");\n final Group memberGroup = findMemberGroup(myToken);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroup.getGroupId());\n groupRequest.setUsersToFetch(FetchGroupRequest.UserFetchType.ACTIVE);\n final FetchGroupResponse groupResponse1 = administration.fetchGroup(myToken, groupRequest);\n assertThat(groupResponse1.isOk(), is(true));\n assertThat(groupResponse1.getMembers().size(), is(1));\n\n // Now, let's update the Object, and send it into the IWS\n final User myself = groupResponse1.getMembers().get(0).getUser();\n final Person person = myself.getPerson();\n final Address address = new Address();\n address.setStreet1(\"Mainstreet 1\");\n address.setPostalCode(\"12345\");\n address.setCity(\"Cooltown\");\n address.setState(\"Coolstate\");\n person.setAddress(address);\n person.setFax(\"My fax\");\n person.setBirthday(new Date(\"01-JAN-1980\"));\n person.setMobile(\"+1 1234567890\");\n person.setGender(Gender.UNKNOWN);\n person.setPhone(\"+1 0987654321\");\n person.setUnderstoodPrivacySettings(true);\n person.setAcceptNewsletters(false);\n myself.setPerson(person);\n final UserRequest updateRequest = new UserRequest();\n updateRequest.setUser(myself);\n final Response updateResult = administration.controlUserAccount(myToken, updateRequest);\n assertThat(updateResult.isOk(), is(true));\n\n // Let's find the account again, and verify that the updates were applied\n final FetchUserRequest userRequest = new FetchUserRequest();\n userRequest.setUserId(myself.getUserId());\n final FetchUserResponse userResponse = administration.fetchUser(myToken, userRequest);\n assertThat(userResponse.isOk(), is(true));\n final User myUpdate = userResponse.getUser();\n final Person updatedPerson = myUpdate.getPerson();\n assertThat(updatedPerson.getAlternateEmail(), is(person.getAlternateEmail()));\n assertThat(updatedPerson.getBirthday(), is(person.getBirthday()));\n assertThat(updatedPerson.getFax(), is(person.getFax()));\n assertThat(updatedPerson.getGender(), is(person.getGender()));\n assertThat(updatedPerson.getMobile(), is(person.getMobile()));\n assertThat(updatedPerson.getPhone(), is(person.getPhone()));\n assertThat(updatedPerson.getUnderstoodPrivacySettings(), is(person.getUnderstoodPrivacySettings()));\n assertThat(updatedPerson.getAcceptNewsletters(), is(person.getAcceptNewsletters()));\n\n final Address updatedAddress = updatedPerson.getAddress();\n assertThat(updatedAddress.getStreet1(), is(address.getStreet1()));\n assertThat(updatedAddress.getStreet2(), is(address.getStreet2()));\n assertThat(updatedAddress.getPostalCode(), is(address.getPostalCode()));\n assertThat(updatedAddress.getCity(), is(address.getCity()));\n assertThat(updatedAddress.getState(), is(address.getState()));\n\n // Wrapup... logout\n logout(myToken);\n }", "public Boolean update(Test c) \n\t{\n\t\t\n\t\treturn true;\n\t}" ]
[ "0.7033726", "0.68667865", "0.66006356", "0.64605284", "0.63431835", "0.6333014", "0.6278641", "0.62524354", "0.6247963", "0.6247484", "0.6238299", "0.6178375", "0.6160747", "0.61287457", "0.61285704", "0.6116582", "0.61097497", "0.6081537", "0.6066681", "0.6019569", "0.59929717", "0.59626824", "0.5962184", "0.59574664", "0.5919781", "0.591807", "0.5912391", "0.5910502", "0.59010863", "0.58823514", "0.5875054", "0.5868322", "0.58639365", "0.583523", "0.5827273", "0.58242595", "0.5822311", "0.57873374", "0.57439035", "0.5739293", "0.5738613", "0.5723036", "0.5706386", "0.56940556", "0.56688815", "0.5668265", "0.565081", "0.5643253", "0.56386113", "0.56376344", "0.5634138", "0.56301826", "0.56285435", "0.55880606", "0.55832493", "0.5577809", "0.5571273", "0.5570852", "0.5566176", "0.55581945", "0.554944", "0.5546148", "0.5537367", "0.5527873", "0.551264", "0.55069494", "0.5496034", "0.54942536", "0.5492728", "0.54903805", "0.54782367", "0.5475818", "0.5473207", "0.5467734", "0.5466112", "0.54656637", "0.5463466", "0.5457992", "0.5456168", "0.54560107", "0.5455561", "0.5442816", "0.5438645", "0.5429089", "0.5427889", "0.5422564", "0.54218924", "0.5419535", "0.5415238", "0.54122907", "0.5410568", "0.5402658", "0.5395593", "0.5392081", "0.5387525", "0.5387503", "0.5384341", "0.5384028", "0.5382608", "0.5382172" ]
0.61820155
11
Unit test for the extension to the transfer request command and response.
public void testDomainTransfer() { EPPCodecTst.printStart("testDomainTransfer"); EPPDomainTransferCmd theCommand = new EPPDomainTransferCmd("ABC-12345", EPPCommand.OP_REQUEST, "example.com", new EPPAuthInfo("2fooBAR"), new EPPDomainPeriod(1)); EPPFeeTransfer theTransferExt = new EPPFeeTransfer( new EPPFeeValue(new BigDecimal("5.00"))); theCommand.addExtension(theTransferExt); EPPEncodeDecodeStats commandStats = EPPCodecTst .testEncodeDecode(theCommand); System.out.println(commandStats); // Create Response EPPDomainTransferResp theResponse; EPPEncodeDecodeStats responseStats; EPPTransId respTransId = new EPPTransId(theCommand.getTransId(), "54321-XYZ"); theResponse = new EPPDomainTransferResp(respTransId, "example.com"); theResponse.setResult(EPPResult.SUCCESS); theResponse.setRequestClient("ClientX"); theResponse.setActionClient("ClientY"); theResponse.setTransferStatus(EPPResponse.TRANSFER_PENDING); theResponse.setRequestDate(new GregorianCalendar(2000, 6, 8).getTime()); theResponse.setActionDate(new GregorianCalendar(2000, 6, 13).getTime()); theResponse.setExpirationDate(new GregorianCalendar(2002, 9, 8) .getTime()); EPPFeeTrnData theRespExt = new EPPFeeTrnData("USD", new EPPFeeValue( new BigDecimal("5.00"))); theResponse.addExtension(theRespExt); responseStats = EPPCodecTst.testEncodeDecode(theResponse); System.out.println(responseStats); // Transfer Query Response respTransId = new EPPTransId(theCommand.getTransId(), "54321-XYZ"); theResponse = new EPPDomainTransferResp(respTransId, "example.com"); theResponse.setResult(EPPResult.SUCCESS); theResponse.setRequestClient("ClientX"); theResponse.setActionClient("ClientY"); theResponse.setTransferStatus(EPPResponse.TRANSFER_PENDING); theResponse.setRequestDate(new GregorianCalendar(2000, 6, 8).getTime()); theResponse.setActionDate(new GregorianCalendar(2000, 6, 13).getTime()); theResponse.setExpirationDate(new GregorianCalendar(2002, 9, 8) .getTime()); theRespExt = new EPPFeeTrnData(); theRespExt.setCurrency("USD"); theRespExt.setPeriod(new EPPFeePeriod(1)); theRespExt.addFee(new EPPFeeValue(new BigDecimal("5.00"), null, true, "P5D", EPPFeeValue.APPLIED_IMMEDIATE)); theResponse.addExtension(theRespExt); responseStats = EPPCodecTst.testEncodeDecode(theResponse); System.out.println(responseStats); EPPCodecTst.printEnd("testDomainTransfer"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testGetPostTransferCommand() throws Exception {\n System.out.println(\"getPostTransferCommand\");\n \n String expResult = \"None\";\n String result = instance.getPostTransferCommand();\n assertEquals(expResult, result);\n \n }", "@Test\n\tpublic void moneyTrnasferSucess() {\n\t\t\n\t\tString accountNumberFrom = createAccount(\"krishna\",4000);\n\t\tString accountNumberTo = createAccount(\"ram\",2000);\n\t\tdouble amountToBeTranfered = 500.0;\n\t\tMoneyTransfer moneyTransfer = new MoneyTransfer();\n\t\tmoneyTransfer.setAccountNumberFrom(Integer.parseInt(accountNumberFrom));\n\t\tmoneyTransfer.setAccountNumberTo(Integer.parseInt(accountNumberTo));\n\t\tmoneyTransfer.setAmount(amountToBeTranfered);\n\t\t\n\t\tString requestBody = gson.toJson(moneyTransfer);\n\t\t\n\t\tRequestSpecification request = RestAssured.given();\n\t\trequest.body(requestBody);\n\t\tResponse response = request.put(\"/transfer\");\n\t\t\n\t\t// This logic is required due to response has been set as mix of Message and return data value. - START\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(amountToBeTranfered);\n\t\tsb.append(\" has been transferred to : \");\n\t\tsb.append(accountNumberTo);\n\t\t// This logic is required due to response has been set as mix of Message and return data value. - END\n\t\t\n\t\tAssertions.assertEquals(sb.toString(), response.asString());\n\t\t\n\t}", "@Test\n void executeMoneyTransfer() throws ParseException, JsonProcessingException {\n\n String idAccount = \"14537780\";\n String receiverName = \"Receiver Name\";\n String description = \"description text\";\n String currency = \"EUR\";\n String amount = \"100\";\n String executionDate = \"2020-12-12\";\n MoneyTransfer moneyTransfer = Utils.fillMoneyTransfer(idAccount, receiverName, description, currency, amount, executionDate);\n\n Response response = greetingWebClient.executeMoneyTransfer(moneyTransfer, idAccount);\n assertTrue(response.getStatus().equals(\"KO\"));\n\n\n }", "public void testGetPreTransferCommand() throws Exception {\n System.out.println(\"getPreTransferCommand\");\n \n String expResult = \"None\";\n String result = instance.getPreTransferCommand();\n assertEquals(expResult, result);\n \n }", "@Test\n\tpublic void testTransfer() {\n\t\tAccount acc1 = new Account(00000, \"acc1\", true, 1000.00, 0, false);\n\t\tAccount acc2 = new Account(00001, \"acc2\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\t\taccounts.add(acc2);\n\n\t\ttransactions.add(0, new Transaction(10, \"acc1\", 00000, 0, \"\"));\n\t\ttransactions.add(1, new Transaction(02, \"acc1\", 00000, 200.00, \"\"));\n\t\ttransactions.add(2, new Transaction(02, \"acc2\", 00001, 200.00, \"\"));\n\t\ttransactions.add(3, new Transaction(00, \"acc1\", 00000, 0, \"\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\t// ArrayList<Account> expected = new ArrayList();\n\t\t// expected.add(0, new Account(00000, \"acc1\", true, 949.90, 0002, false));\n\t\t// expected.add(1, new Account(00001, \"acc2\", true, 1050.00, 0002, false));\n\n\t\tif (outContent.toString().contains(\"Money Transfered\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"money not transfered\", testResult);\n\t}", "@Test\n\tpublic void execute() {\n\t\tcommand.execute(request);\n\t}", "@Override\n public ExtensionResult doTransferToAgent(ExtensionRequest extensionRequest) {\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(true);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(false);\n return extensionResult;\n }", "netty.framework.messages.TestMessage.TestRequest getRequest();", "public int cmdXfer(byte[] request, byte[] response) \n throws IOException {\n int bytes_read;\n \n if ((bytes_read = cmdXfer0(request, response)) < 0) {\n String err_msg = getErrorMessage0();\n if (err_msg != null)\n throw new IOException(err_msg);\n else\n throw new IOException(\"cmdXfer failed\");\n }\n return bytes_read;\n }", "@Test\n public void destiny2TransferItemTest() {\n InlineResponse20019 response = api.destiny2TransferItem();\n\n // TODO: test validations\n }", "public abstract Response makeTransfer(Transaction transaction) throws AccountNotFoundException, InsufficientFundsException;", "@Test\n public void testGetWriteRequest() {\n System.out.println(\"getWriteRequest\");\n Connection connection = null;\n IoGeneric instance = null;\n WriteRequest expResult = null;\n WriteRequest result = instance.getWriteRequest(connection);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n\tpublic void testValidationSuccess() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(VALID_SENDER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setReceiverAccount(VALID_RECEIVER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setTransferAmount(400.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t} catch (ValidationException e) {\r\n\t\t\tAssert.fail(\"Found_Exception\");\r\n\t\t}\r\n\t}", "@Test\n public void transferCheckingtoSavingsTest(){\n assertTrue(userC.transfer(150.00, userS));\n }", "@Test\n public void testGetRequest_1()\n throws Exception {\n Transaction fixture = new Transaction();\n fixture.setResponse(new Response());\n fixture.setRequest(new Request());\n\n Request result = fixture.getRequest();\n\n assertNotNull(result);\n assertEquals(null, result.getProtocol());\n assertEquals(null, result.getBody());\n assertEquals(null, result.getFirstLine());\n assertEquals(null, result.getBodyAsString());\n }", "@Path(\"transaction\")\n @Service({\"transaction\"})\n public ResponseMessage processTransfer(Transaction t) {\n return tsi.processTransfer(t);\n }", "private native int cmdXfer0(byte[] request, byte[] response);", "public void testFtpFileTransferNamesAndCommands() throws Exception {\n System.out.println(\"FtpFileTransferNamesAndCommands\");\n // abstract now \n /*\n assertNotNull(new FtpFileTransferNamesAndCommands(ftp));\n assertNotNull(new FtpFileTransferNamesAndCommands(new FtpFileTransferNamesAndCommands(ftp), new FtpFileConfiguration(ftp)));\n \n try {\n assertNotNull(new FtpFileTransferNamesAndCommands(null));\n fail(\"An exception is expected - invalid input\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n try {\n assertNotNull(new FtpFileTransferNamesAndCommands(null, null));\n fail(\"An exception is expected - invalid input\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n try {\n assertNotNull(new FtpFileTransferNamesAndCommands(null, new FtpFileConfiguration(ftp)));\n fail(\"An exception is expected - invalid input\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n try {\n assertNotNull(new FtpFileTransferNamesAndCommands(new FtpFileTransferNamesAndCommands(ftp), null));\n fail(\"An exception is expected - invalid input\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n */\n }", "TransactionResponseDTO transferTransaction(TransactionRequestDTO transactionRequestDTO);", "@Override\n public boolean transfer(int destination, byte type, int startAddress, byte[] contents, \n int offset, int size) {\n if (!Packet.isTransfer(type)) {\n throw new RuntimeException(\"(bugcheck): \" + type + \" is not a transfer type\");\n }\n Packet response = doTrip(destination, type, startAddress, size, contents, offset, size);\n if (response == null) return false;\n if (!Packet.isAck(response.getType())) {\n logger.error(\"no ack response received on transfer\");\n return false;\n }\n return true;\n }", "@Test\n public void testGetResponse_1()\n throws Exception {\n Transaction fixture = new Transaction();\n fixture.setResponse(new Response());\n fixture.setRequest(new Request());\n\n Response result = fixture.getResponse();\n\n assertNotNull(result);\n assertEquals(null, result.getBody());\n assertEquals(null, result.getFirstLine());\n assertEquals(null, result.getBodyAsString());\n assertEquals(\"\", result.extractContentType());\n }", "public void testValidSuccess() {\r\n assertNotNull(\"setup fails\", uploadRequestValidator);\r\n ResponseMessage responseMessage = new ResponseMessage(HANDLE_ID, REQUEST_ID);\r\n assertFalse(\"not type of RequestMessage, return false\", uploadRequestValidator.valid(responseMessage));\r\n RequestMessage requestMessage = new RequestMessage(HANDLE_ID, REQUEST_ID);\r\n assertFalse(\"RequestMessage's type is not MessageType.CHECK_UPLOAD_FILE, should return false\",\r\n uploadRequestValidator.valid(requestMessage));\r\n Object[] args = new Object[2];\r\n args[0] = \"FILEID\";\r\n args[1] = new Long(Long.MAX_VALUE);\r\n requestMessage = new RequestMessage(HANDLE_ID, REQUEST_ID, MessageType.CHECK_UPLOAD_FILE, args);\r\n assertFalse(\"not enough diskspace, should return false\", uploadRequestValidator.valid(requestMessage));\r\n args = new Object[2];\r\n args[0] = \"FILEID\";\r\n args[1] = new Long(1);\r\n requestMessage = new RequestMessage(HANDLE_ID, REQUEST_ID, MessageType.CHECK_UPLOAD_FILE, args);\r\n assertTrue(\"there is enough diskspace, should return true\", uploadRequestValidator.valid(requestMessage));\r\n }", "protected abstract void transfer(UUID[] players, String server, IntConsumer response);", "public interface Transferable {\n\n\n\n /**\n *\n * @throws Exception\n */\n void init() throws Exception;\n\n\n /**\n *\n * @throws Exception\n */\n void parseHeader() throws Exception;\n\n\n /**\n *\n * @throws Exception\n */\n void parseBody() throws Exception;\n\n\n /**\n *\n * @throws Exception\n */\n void finish() throws Exception;\n}", "public void testGetMessageSuccess() {\r\n assertNotNull(\"setup fails\", uploadRequestValidator);\r\n ResponseMessage responseMessage = new ResponseMessage(HANDLE_ID, REQUEST_ID);\r\n assertEquals(\"invalid return message\", \"the object is not type of RequestMessage\", uploadRequestValidator\r\n .getMessage(responseMessage));\r\n RequestMessage requestMessage = new RequestMessage(HANDLE_ID, REQUEST_ID);\r\n assertEquals(\"invalid return message\", \"the RequestMesage's type not equal with MessageType.CHECK_UPLOAD_FILE\",\r\n uploadRequestValidator.getMessage(requestMessage));\r\n Object[] args = new Object[2];\r\n args[0] = \"FILEID\";\r\n args[1] = new Long(Long.MAX_VALUE);\r\n requestMessage = new RequestMessage(HANDLE_ID, REQUEST_ID, MessageType.CHECK_UPLOAD_FILE, args);\r\n assertEquals(\"not enough diskspace, should return File size exceeds disk size message string\",\r\n \"File size exceeds disk size\", uploadRequestValidator.getMessage(requestMessage));\r\n args = new Object[2];\r\n args[0] = \"FILEID\";\r\n args[1] = new Long(1);\r\n requestMessage = new RequestMessage(HANDLE_ID, REQUEST_ID, MessageType.CHECK_UPLOAD_FILE, args);\r\n assertNull(\"there is enough diskspace, should return null\", uploadRequestValidator.getMessage(requestMessage));\r\n }", "@Test\n\tpublic void runSend(){\n\t\tstandard();\n\t}", "@Test\n public void doAction() throws ModelException {\n CommonTestMethods.gameInitOne(game);\n String response;\n CommonTestMethods.givePlayerLeaderCards(game.getCurrentPlayer(), game.getLeaderCards().get(2), game.getLeaderCards().get(1));\n\n actionController.getGame().getCurrentPlayer().addPossibleAction(BUY_CARD);\n actionController.getGame().getCurrentPlayer().addPossibleAction(ACTIVATE_LEADERCARD);\n\n response = card.doAction(actionController);\n assertEquals(\"Not enough resources to buy Card\", response);\n messageToClient = card.messagePrepare(actionController);\n\n assertTrue(messageToClient instanceof BuyCardMessage);\n assertEquals(ActionType.BUY_CARD, messageToClient.getActionDone());\n assertEquals(\"Not enough resources to buy Card\", messageToClient.getError());\n assertEquals(game.getCurrentPlayerNickname(), messageToClient.getPlayerNickname());\n assertEquals(ActionType.ACTIVATE_PRODUCTION, messageToClient.getPossibleActions().get(0));\n assertEquals(ActionType.BUY_CARD, messageToClient.getPossibleActions().get(1));\n assertEquals(ActionType.MARKET_CHOOSE_ROW, messageToClient.getPossibleActions().get(2));\n assertEquals(ActionType.ACTIVATE_LEADERCARD, messageToClient.getPossibleActions().get(3));\n\n\n ResourceStack stack = new ResourceStack(5,3,3,0);\n CommonTestMethods.giveResourcesToPlayer(game.getCurrentPlayer(), 1,12,1, ResourceType.SHIELDS, ResourceType.COINS, ResourceType.STONES, stack);\n BuyCard secondCard = new BuyCard(0,0);\n response = card.doAction(actionController);\n assertEquals(\"2 0 2 0\", game.getCurrentPlayer().getBoard().getResourceManager().getTemporaryResourcesToPay().toString());\n assertEquals(\"SUCCESS\", response);\n messageToClient = card.messagePrepare(actionController);\n\n assertTrue(messageToClient instanceof BuyCardMessage);\n assertEquals(ActionType.BUY_CARD, messageToClient.getActionDone());\n assertEquals(\"SUCCESS\", messageToClient.getError());\n assertEquals(game.getCurrentPlayerNickname(), messageToClient.getPlayerNickname());\n assertEquals(ActionType.PAY_RESOURCE_CARD, messageToClient.getPossibleActions().get(0));\n\n actionController.getGame().getCurrentPlayer().addPossibleAction(BUY_CARD);\n\n assertEquals(\"Card does not fit inside Personal Board\", secondCard.doAction(actionController));\n messageToClient = secondCard.messagePrepare(actionController);\n\n assertTrue(messageToClient instanceof BuyCardMessage);\n assertEquals(ActionType.BUY_CARD, messageToClient.getActionDone());\n assertEquals(\"Card does not fit inside Personal Board\", messageToClient.getError());\n assertEquals(game.getCurrentPlayerNickname(), messageToClient.getPlayerNickname());\n assertEquals(ActionType.ACTIVATE_PRODUCTION, messageToClient.getPossibleActions().get(0));\n assertEquals(ActionType.BUY_CARD, messageToClient.getPossibleActions().get(1));\n assertEquals(ActionType.MARKET_CHOOSE_ROW, messageToClient.getPossibleActions().get(2));\n assertEquals(ActionType.ACTIVATE_LEADERCARD, messageToClient.getPossibleActions().get(3));\n }", "@Test\n public void testControlResponses() throws Exception {\n createTethering(\"xyz\", NAMESPACES, REQUEST_TIME, DESCRIPTION);\n acceptTethering();\n TetheringControlResponseV2 expectedResponse =\n new TetheringControlResponseV2(Collections.emptyList(), TetheringStatus.ACCEPTED);\n\n expectTetheringControlResponse(\"xyz\", HttpResponseStatus.OK, GSON.toJson(expectedResponse));\n\n // Queue up a couple of messages for the peer\n MessagePublisher publisher =\n new MultiThreadMessagingContext(messagingService).getMessagePublisher();\n String topicPrefix = cConf.get(Constants.Tethering.CLIENT_TOPIC_PREFIX);\n String topic = topicPrefix + \"xyz\";\n TetheringLaunchMessage launchMessage =\n new TetheringLaunchMessage.Builder()\n .addFileNames(DistributedProgramRunner.LOGBACK_FILE_NAME)\n .addFileNames(DistributedProgramRunner.PROGRAM_OPTIONS_FILE_NAME)\n .addFileNames(DistributedProgramRunner.APP_SPEC_FILE_NAME)\n .addRuntimeNamespace(\"default\")\n .build();\n TetheringControlMessage message1 =\n new TetheringControlMessage(\n TetheringControlMessage.Type.START_PROGRAM, Bytes.toBytes(GSON.toJson(launchMessage)));\n publisher.publish(NamespaceId.SYSTEM.getNamespace(), topic, GSON.toJson(message1));\n ProgramRunInfo programRunInfo =\n new ProgramRunInfo.Builder()\n .setNamespace(\"ns\")\n .setApplication(\"app\")\n .setVersion(\"1.0\")\n .setProgramType(\"workflow\")\n .setProgram(\"program\")\n .setRun(\"runId\")\n .build();\n TetheringControlMessage message2 =\n new TetheringControlMessage(\n TetheringControlMessage.Type.STOP_PROGRAM, Bytes.toBytes(GSON.toJson(programRunInfo)));\n publisher.publish(NamespaceId.SYSTEM.getNamespace(), topic, GSON.toJson(message2));\n\n // Poll the server\n HttpRequest.Builder builder =\n HttpRequest.builder(HttpMethod.POST, config.resolveURL(\"tethering/channels/xyz\"))\n .withBody(GSON.toJson(new TetheringControlChannelRequest(null, null)));\n\n // Response should contain 2 messages\n HttpResponse response = HttpRequests.execute(builder.build());\n TetheringControlResponseV2 controlResponse =\n GSON.fromJson(response.getResponseBodyAsString(), TetheringControlResponseV2.class);\n List<TetheringControlMessageWithId> controlMessages = controlResponse.getControlMessages();\n\n Assert.assertEquals(HttpResponseStatus.OK.code(), response.getResponseCode());\n Assert.assertEquals(2, controlMessages.size());\n Assert.assertEquals(message1, controlMessages.get(0).getControlMessage());\n Assert.assertEquals(message2, controlMessages.get(1).getControlMessage());\n\n // Poll again with lastMessageId set to id of last message received from the server\n String lastMessageId = controlMessages.get(1).getMessageId();\n builder =\n HttpRequest.builder(HttpMethod.POST, config.resolveURL(\"tethering/channels/xyz\"))\n .withBody(GSON.toJson(new TetheringControlChannelRequest(lastMessageId, null)));\n\n // There should be no more messages queued up for this client\n response = HttpRequests.execute(builder.build());\n controlResponse =\n GSON.fromJson(response.getResponseBodyAsString(), TetheringControlResponseV2.class);\n Assert.assertEquals(HttpResponseStatus.OK.code(), response.getResponseCode());\n Assert.assertEquals(0, controlResponse.getControlMessages().size());\n }", "@Test\n\tpublic void moneyTrnasferExcetionInsufficientBalanceOfFromAccount() {\n\t\t\n\t\tString accountNumberFrom = createAccount(\"krishna\",4000);\n\t\tString accountNumberTo = createAccount(\"ram\",2000);\n\t\tdouble amountToBeTranfered = 40000.0;\n\t\tMoneyTransfer moneyTransfer = new MoneyTransfer();\n\t\tmoneyTransfer.setAccountNumberFrom(Integer.parseInt(accountNumberFrom));\n\t\tmoneyTransfer.setAccountNumberTo(Integer.parseInt(accountNumberTo));\n\t\tmoneyTransfer.setAmount(amountToBeTranfered);\n\t\t\n\t\tString requestBody = gson.toJson(moneyTransfer);\n\t\t\n\t\tRequestSpecification request = RestAssured.given();\n\t\trequest.body(requestBody);\n\t\tResponse response = request.put(\"/transfer\");\n\t\t\n\t\t// This logic is required due to response has been set as mix of Message and return data value. - START\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"Account Number - \");\n\t\tsb.append(accountNumberFrom);\n\t\tsb.append(\" do not have sufficient amout to transfer.\");\n\t\t// This logic is required due to response has been set as mix of Message and return data value. - END\n\t\t\n\t\tAssertions.assertEquals(sb.toString(), response.asString());\n\t\t\n\t}", "@Test\n public void testAcceptTether() throws IOException, InterruptedException {\n createTethering(\"xyz\", NAMESPACES, REQUEST_TIME, DESCRIPTION);\n // Tethering status should be PENDING\n expectTetheringStatus(\n \"xyz\",\n TetheringStatus.PENDING,\n NAMESPACES,\n REQUEST_TIME,\n DESCRIPTION,\n TetheringConnectionStatus.INACTIVE);\n\n // Duplicate tether initiation should be ignored\n createTethering(\"xyz\", NAMESPACES, REQUEST_TIME, DESCRIPTION);\n // Tethering status should be PENDING\n expectTetheringStatus(\n \"xyz\",\n TetheringStatus.PENDING,\n NAMESPACES,\n REQUEST_TIME,\n DESCRIPTION,\n TetheringConnectionStatus.INACTIVE);\n\n TetheringControlResponseV2 expectedResponse =\n new TetheringControlResponseV2(Collections.emptyList(), TetheringStatus.PENDING);\n // Tethering status on server side should be PENDING.\n expectTetheringControlResponse(\"xyz\", HttpResponseStatus.OK, GSON.toJson(expectedResponse));\n\n // User accepts tethering on the server\n acceptTethering();\n // Tethering status should become ACTIVE\n expectTetheringStatus(\n \"xyz\",\n TetheringStatus.ACCEPTED,\n NAMESPACES,\n REQUEST_TIME,\n DESCRIPTION,\n TetheringConnectionStatus.ACTIVE);\n\n // Duplicate accept tethering should fail\n TetheringActionRequest request = new TetheringActionRequest(\"accept\");\n HttpRequest.Builder builder =\n HttpRequest.builder(HttpMethod.POST, config.resolveURL(\"tethering/connections/xyz\"))\n .withBody(GSON.toJson(request));\n HttpResponse response = HttpRequests.execute(builder.build());\n Assert.assertEquals(HttpResponseStatus.BAD_REQUEST.code(), response.getResponseCode());\n\n // Wait until we don't receive any control messages from the peer for upto the timeout interval.\n Thread.sleep(cConf.getInt(Constants.Tethering.CONNECTION_TIMEOUT_SECONDS) * 1000);\n // Tethering connection status should become INACTIVE\n expectTetheringStatus(\n \"xyz\",\n TetheringStatus.ACCEPTED,\n NAMESPACES,\n REQUEST_TIME,\n DESCRIPTION,\n TetheringConnectionStatus.INACTIVE);\n }", "@Test\n public void updateAccept() throws Exception {\n\n }", "@Test\n\tpublic void test_001() {\n\t\tfinal String EXPECTED_RESPONSE = \"{\\\"hello\\\": \\\"world\\\"}\";\n\t\tJdProgramRequestParms.put(\"U$FUNZ\", new StringValue(\"URL\"));\n\t\tJdProgramRequestParms.put(\"U$METO\", new StringValue(\"HTTP\"));\n\t\tJdProgramRequestParms.put(\"U$SVARSK\", new StringValue(\"http://www.mocky.io/v2/5185415ba171ea3a00704eed\"));\n\n\t\tList<Value> responseParms = JdProgram.execute(javaSystemInterface, JdProgramRequestParms);\n\t\tassertTrue(responseParms.get(2).asString().getValue().equals(EXPECTED_RESPONSE));\n\t}", "public void run() {\n ClientConnection connection = null;\n try {\n connection = new ClientConnection(requestPacket);\n } catch (SocketException e1) {\n e1.printStackTrace();\n return;\n }\n \n PacketPrinter.print(requestPacket);\n \n TransferState transferState = new TransferStateBuilder()\n .connection(connection)\n .build();\n \n ROP<Request, TransferState, IrrecoverableError> rop = new ROP<>();\n \n Result<TransferState, IrrecoverableError> result =\n LocalOperations.parseRequest\n .andThen(rop.bind((request) -> {\n TransferState state = TransferStateBuilder.clone(transferState)\n .request(request)\n .build();\n \n if (request.type() == RequestType.READ) {\n // initiate ReadRequest\n logger.logAlways(\"Received ReadRequest, initiating file transfer.\");\n TftpReadTransfer.start(state);\n } else if (request.type() == RequestType.WRITE) {\n // initiate WriteRequest\n logger.logAlways(\"Received WriteRequest, initiating file transfer.\");\n TftpWriteTransfer.start(state);\n } else {\n // should never really get here\n logger.logError(\"Could not identify request type, but it was parsed.\");\n return Result.failure(new IrrecoverableError(\n ErrorCode.ILLEGAL_TFTP_OPERATION, \"Invalid Request. Not a RRQ or WRQ.\"));\n }\n \n return Result.success(state);\n }))\n .apply(requestPacket);\n \n \n if (result.FAILURE) {\n NetworkOperations.sendError.accept(transferState, result.failure);\n logger.logError(\"Error occured. Terminating connection thread.\");\n } else {\n logger.logAlways(\"Transfer has ended. Terminating connection thread.\");\n }\n }", "public static void transfer() {\n\t\ttry {\n\t\t\tif (!LoginMgr.isLoggedIn()) {\n\t\t\t\tthrow new NotLoggedInException();\n\t\t\t}\n\n\t\t\t// Scanner s = new Scanner(System.in);\n\t\t\tSystem.out.println(\"Enter account number to transfer to: \");\n\t\t\tString accNum = \"\";\n\t\t\tif (Quinterac.s.hasNextLine())\n\t\t\t\taccNum = Quinterac.s.nextLine();\n\n\t\t\tif (!ValidAccListMgr.checkAccNumExist(accNum)) {\n\t\t\t\tSystem.out.println(\"Please enter a valid account number\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Enter account number to transfer from: \");\n\t\t\tString accNumB = \"\";\n\t\t\tif (Quinterac.s.hasNextLine())\n\t\t\t\taccNumB = Quinterac.s.nextLine();\n\n\t\t\tif (!ValidAccListMgr.checkAccNumExist(accNumB)) {\n\t\t\t\tSystem.out.println(\"Please enter a valid account number\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Enter the amount of money to transfer in cents: \");\n\t\t\tint amount = 0;\n\t\t\tif (Quinterac.s.hasNextInt())\n\t\t\t\tamount = Integer.parseInt(Quinterac.s.nextLine());\n\n\t\t\tString modeName = LoginMgr.checkMode();\n\t\t\tif (modeName.equals(\"machine\")) {\n\t\t\t\tatmCheckTransferValid(accNum, amount, accNumB);\n\t\t\t} else if (modeName.equals(\"agent\")) {\n\t\t\t\tagentCheckTransferValid(accNum, amount, accNumB);\n\t\t\t}\n\n\t\t} catch (NotLoggedInException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}", "private void testCommand(String cmdName, Map<String, String> kwargs, InputStream inputStream,\n String authInfo,\n Map<String, String> expectedHeaders, int expectedStatusCode,\n Field... fields) throws IOException, InterruptedException {\n ZooKeeperServer zks = serverFactory.getZooKeeperServer();\n final CommandResponse commandResponse = inputStream == null\n ? Commands.runGetCommand(cmdName, zks, kwargs, authInfo, null) : Commands.runPostCommand(cmdName, zks, inputStream, authInfo, null);\n assertNotNull(commandResponse);\n assertEquals(expectedStatusCode, commandResponse.getStatusCode());\n try (final InputStream responseStream = commandResponse.getInputStream()) {\n if (Boolean.parseBoolean(kwargs.getOrDefault(REQUEST_QUERY_PARAM_STREAMING, \"false\"))) {\n assertNotNull(responseStream, \"InputStream in the response of command \" + cmdName + \" should not be null\");\n } else {\n Map<String, Object> result = commandResponse.toMap();\n assertTrue(result.containsKey(\"command\"));\n // This is only true because we're setting cmdName to the primary name\n assertEquals(cmdName, result.remove(\"command\"));\n assertTrue(result.containsKey(\"error\"));\n assertNull(result.remove(\"error\"), \"error: \" + result.get(\"error\"));\n\n for (Field field : fields) {\n String k = field.key;\n assertTrue(result.containsKey(k),\n \"Result from command \" + cmdName + \" missing field \\\"\" + k + \"\\\"\" + \"\\n\" + result);\n Class<?> t = field.type;\n Object v = result.remove(k);\n assertTrue(t.isAssignableFrom(v.getClass()),\n \"\\\"\" + k + \"\\\" field from command \" + cmdName\n + \" should be of type \" + t + \", is actually of type \" + v.getClass());\n }\n\n assertTrue(result.isEmpty(), \"Result from command \" + cmdName + \" contains extra fields: \" + result);\n }\n }\n assertEquals(expectedHeaders, commandResponse.getHeaders());\n }", "private void doTransfer(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tLOG.info(\"LOGIN: \" + req.getSession().getAttribute(\"login\") + \" Start doing transfer.\");\r\n\t\tString page = null;\r\n\t\tTransferCommand command = new TransferCommand();\r\n\t\tpage = command.execute(req, resp);\r\n\t\tif (page.equals(\"/jsp/transfer_error.jspx\")) {\r\n\t\t\tRequestDispatcher dispatcher = getServletContext().getRequestDispatcher(page);\r\n\t\t\tdispatcher.forward(req, resp);\r\n\t\t\tLOG.info(\"LOGIN: \" + req.getSession().getAttribute(\"login\") + \" Transfer was failed.\");\r\n\t\t} else {\r\n\t\t\tresp.sendRedirect(page);\r\n\t\t\tLOG.info(\"LOGIN: \" + req.getSession().getAttribute(\"login\") + \" Transfer succesfull.\");\r\n\t\t}\r\n\t}", "@Override\n public void doInUI(Response response, Integer transfer) {\n if (response.isSuccess()) {\n Intent it = getIntent();\n setResult(Activity.RESULT_OK, it);\n finish();\n }\n }", "@Override\n public void doInUI(Response response, Integer transfer) {\n if (response.isSuccess()) {\n Intent it = getIntent();\n setResult(Activity.RESULT_OK, it);\n finish();\n }\n }", "public void testReceiver() throws Exception\n {\n }", "public interface IFileTransferListener {\n\n /** String that will be used in onComplete if transfer finished without error. */\n public static final String STATUS_PASS = \"pass\";\n /** String that will be used in onComplete if transfer finished due to an error. */\n public static final String STATUS_FAIL = \"fail\";\n\n /**\n * Called when the file has been transferred. Refer to <a\n * href=\"http://developers.box.net/w/page/12923951/ApiFunction_Upload-and-Download\">ApiFunction_Upload-and-Download</a> for details.\n * \n * @param status\n * status string indicating completion status(pass, fail...)\n */\n void onComplete(String status);\n\n /**\n * Called when the file transfer was canceled.\n */\n void onCanceled();\n\n /**\n * Called periodically during the download. You can use this to monitor transfer progress. Refer to <a\n * href=\"http://developers.box.net/w/page/12923951/ApiFunction_Upload-and-Download\">ApiFunction_Upload-and-Download</a> for details.\n * \n * @param bytesTransferred\n * bytes transferred for now\n */\n void onProgress(long bytesTransferred);\n\n /**\n * Called when IOException is thrown.\n * \n * @param e\n * exception\n */\n void onIOException(final IOException e);\n}", "@Test\n\tpublic void moneyTrnasferExcetionAccountNumberWrong() {\n\t\t\n\t\tint accountNumberNotExist = 1820;\n\t\tString accountNumberTo = createAccount(\"ram\",2000);\n\t\tdouble amountToBeTranfered = 40000.0;\n\t\tMoneyTransfer moneyTransfer = new MoneyTransfer();\n\t\tmoneyTransfer.setAccountNumberFrom(accountNumberNotExist);\n\t\tmoneyTransfer.setAccountNumberTo(Integer.parseInt(accountNumberTo));\n\t\tmoneyTransfer.setAmount(amountToBeTranfered);\n\t\t\n\t\tString requestBody = gson.toJson(moneyTransfer);\n\t\t\n\t\tRequestSpecification request = RestAssured.given();\n\t\trequest.body(requestBody);\n\t\tResponse response = request.put(\"/transfer\");\n\t\t\n\t\t// This logic is required due to response has been set as mix of Message and return data value. - START\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"Account not found with Account Number : \");\n\t\tsb.append(accountNumberNotExist);\n\t\t// This logic is required due to response has been set as mix of Message and return data value. - END\n\t\t\n\t\tAssertions.assertEquals(sb.toString(), response.asString());\n\t\t\n\t}", "SerialResponse transfer(PinTransferPost pinTransferPost);", "@Test\r\n\tpublic void testSenderAndReceiverAccountNumberSame() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(\"123456\");\r\n\t\taccountTransferRequest.setReceiverAccount(\"123456\");\r\n\t\taccountTransferRequest.setTransferAmount(400.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"Invalid_Sender_And_Receiver_AccountNumber\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "public void testSendRequest() {\n\t\ttry {\n\t\t\tRequest invite = createTiInviteRequest(null, null, null);\n\t\t\tRequestEvent receivedRequestEvent = null;\n\t\t\tClientTransaction tran = null;\n\t\t\ttry {\n\t\t\t\ttran = tiSipProvider.getNewClientTransaction(invite);\n\t\t\t\teventCollector.collectRequestEvent(riSipProvider);\n\t\t\t\ttran.sendRequest();\n\t\t\t\twaitForMessage();\n\t\t\t\treceivedRequestEvent =\n\t\t\t\t\teventCollector.extractCollectedRequestEvent();\n\t\t\t\tassertNotNull(\n\t\t\t\t\t\"The sent request was not received by the RI!\",\n\t\t\t\t\treceivedRequestEvent);\n\t\t\t\tassertNotNull(\n\t\t\t\t\t\"The sent request was not received by the RI!\",\n\t\t\t\t\treceivedRequestEvent.getRequest());\n\t\t\t} catch (TransactionUnavailableException exc) {\n\t\t\t\tthrow new TiUnexpectedError(\n\t\t\t\t\t\"A TransactionUnavailableException was thrown while trying to \"\n\t\t\t\t\t\t+ \"create a new client transaction\",\n\t\t\t\t\texc);\n\t\t\t} catch (SipException exc) {\n\t\t\t\texc.printStackTrace();\n\t\t\t\tfail(\"The SipException was thrown while trying to send the request.\");\n\t\t\t} catch (TooManyListenersException exc) {\n\t\t\t\tthrow new TckInternalError(\n\t\t\t\t\t\"A TooManyListenersException was thrown while trying \"\n\t\t\t\t\t\t+ \"to add a SipListener to an RI SipProvider\",\n\t\t\t\t\texc);\n\t\t\t}\n\t\t} catch (Throwable exc) {\n\t\t\texc.printStackTrace();\n\t\t\tfail(exc.getClass().getName() + \": \" + exc.getMessage());\n\t\t}\n\n\t\tassertTrue(new Exception().getStackTrace()[0].toString(), true);\n\n\t}", "@Test\n void sendPostRequest() {\n try {\n LoginPacket packet = new LoginPacket(\"testUser\", \"testPassword\");\n String response = HttpUtils.sendPost(\"\", WriteJSON.writePacket(packet));\n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n }", "@Test\n public void getSecretsRequest() {\n assertThat(this.secretRepository.count()).isEqualTo(2);\n final Resource request = new ClassPathResource(\"test-requests/getSecrets.xml\");\n final Resource expectedResponse = new ClassPathResource(\"test-responses/getSecrets.xml\");\n try {\n this.mockWebServiceClient.sendRequest(withPayload(request)).andExpect(\n (request2, response) -> {\n OutputStream outStream = new ByteArrayOutputStream();\n response.writeTo(outStream);\n String outputString = outStream.toString();\n assertThat(outputString.contains(\"<ns2:Result>OK</ns2:Result>\")).isTrue();\n assertThat(outputString.contains(\"E_METER_AUTHENTICATION\")).isTrue();\n assertThat(outputString.contains(\"E_METER_ENCRYPTION_KEY_UNICAST\")).isTrue();\n\n });\n } catch (final Exception exc) {\n Assertions.fail(\"Error\", exc);\n }\n }", "@Test\n public void testDeployCommand() {\n d_gameData.getD_playerList().get(0).setD_noOfArmies(10);\n d_orderProcessor.processOrder(\"deploy india 6\", d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n boolean l_check = l_order.executeOrder();\n assertEquals(true, l_check);\n int l_countryArmies = d_gameData.getD_playerList().get(0).getD_ownedCountries().get(0).getD_noOfArmies();\n assertEquals(6, l_countryArmies);\n int l_actualArmiesInPlayer = d_gameData.getD_playerList().get(0).getD_noOfArmies();\n assertEquals(4, l_actualArmiesInPlayer);\n }", "private LoanProtocol ProcessTransferRequest(LoanProtocol protocol)\n\t{\n\t\t// only change the type of the protocol to answer\n\t\tprotocol.setType(messageType.TransferAnswer);\n\t\treturn protocol;\n\t}", "public void testResolvePreTransfer() throws Exception {\n System.out.println(\"resolvePreTransfer\");\n \n instance.resolvePreTransfer();\n \n }", "public abstract void echo2(\n com.google.protobuf.RpcController controller,\n org.apache.hadoop.ipc.protobuf.TestProtos.EchoRequestProto request,\n com.google.protobuf.RpcCallback<org.apache.hadoop.ipc.protobuf.TestProtos.EchoResponseProto> done);", "@Test\n public void testGetIt() {\n String responseMsg = target.path(\"service/servertest\").request().get(String.class);\n assertEquals(\"Got it!\", responseMsg);\n }", "@Test\n\tpublic void testSayMessageOnRequest(){\n\t\tSystem.out.println(\"\\nMensajes aleatorios al aparecer el Meesek:\\n\");\n\t\tMrMe.sayMessageOnRequest();\n\t\tMrMe.sayMessageOnRequest();\n\t\tMrMe.sayMessageOnRequest();\n\t}", "void sendRequest(IRequest request)\n throws ConnectionFailedException;", "public void request() {\n }", "public abstract void echo2(\n com.google.protobuf.RpcController controller,\n org.apache.hadoop.ipc.protobuf.TestProtos.EchoRequestProto request,\n com.google.protobuf.RpcCallback<org.apache.hadoop.ipc.protobuf.TestProtos.EchoResponseProto> done);", "TransferInitiateResponse initiateConsumerRequest(DataRequest dataRequest);", "public void testResolvePostTransfer() throws Exception {\n System.out.println(\"resolvePostTransfer\");\n \n instance.resolvePostTransfer();\n \n }", "@Test\n public void testSend() throws Exception {\n//TODO: Test goes here...\n message.send(\"hello\", \"Bob\");\n }", "@Test\n public void testClient(){\n received=false;\n uut=new ChatMessageRequest(\"test\",\"test2\",\"test\",MessageTypes.MATCH);\n uut.clientHandle(null,new TestUtilizer());\n assertTrue(received);\n }", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "@Test\n public void testSendSetupRequest() {\n String expected = \"SETUP rtsp://172.10.20.30:554/d3abaaa7-65f2-42b4-\" + (((((\"8d6b-379f492fcf0f RTSP/1.0\\r\\n\" + \"transport: MP2T/DVBC/UDP;unicast;client=01234567;\") + \"source=172.10.20.30;\") + \"destination=1.1.1.1;client_port=6922\\r\\n\") + \"cseq: 1\\r\\n\") + \"\\r\\n\");\n HttpRequest request = new io.netty.handler.codec.http.DefaultHttpRequest(RTSP_1_0, SETUP, \"rtsp://172.10.20.30:554/d3abaaa7-65f2-42b4-8d6b-379f492fcf0f\");\n request.headers().add(TRANSPORT, (\"MP2T/DVBC/UDP;unicast;client=01234567;source=172.10.20.30;\" + \"destination=1.1.1.1;client_port=6922\"));\n request.headers().add(CSEQ, \"1\");\n EmbeddedChannel ch = new EmbeddedChannel(new RtspEncoder());\n ch.writeOutbound(request);\n ByteBuf buf = ch.readOutbound();\n String actual = buf.toString(UTF_8);\n buf.release();\n Assert.assertEquals(expected, actual);\n }", "@Override\n public void setUp() throws Exception {\n transport = new TFramedTransport(new TSocket(\"123.56.206.195\", 1982));\n\n\n\n TProtocol protocol = new TBinaryProtocol(transport);\n client = new SubjectServ.Client(protocol);\n transport.open();\n }", "public SingleOperationMarshallingTest() {\n }", "@Test\n public void DrugInteractionsShouldSendDrugInteractionsRequest() throws IOException {\n Response mockResponse = mock(Response.class);\n //mock of the underlying classes not visible from source code\n Call mockCall = mock(Call.class);\n ResponseBody mockResponseBody = mock(ResponseBody.class);\n //set behaviours\n when(mockClient.newCall(any(Request.class))).thenReturn(mockCall);\n when(mockCall.execute()).thenReturn(mockResponse);\n when(mockResponse.body()).thenReturn(mockResponseBody);\n when(mockResponseBody.string()).thenReturn(\"test body\");\n String result = requester.getDrugInteractions(\"Panadol\", \"Tramadol\");\n\n verify(mockCall, times(1)).execute();\n assert (result.equals(\"test body\"));\n }", "@Test\n public void testSend() throws Exception {\n System.out.println(\"send\");\n Sendable s = sendAMessage();\n }", "protected void send(O operation)\n {\n }", "int libusb_control_transfer(DeviceHandle dev_handle, short bmRequestType, short bRequest, int wValue, int wIndex,\r\n String data, int wLength, int timeout);", "@Test\n public final void testAfterSend() throws Exception {\n ChannelController.getInstance().getLocalChannelId(channelId);\n\n final TestChannel channel = new TestChannel();\n\n channel.setChannelId(channelId);\n channel.setServerId(serverId);\n channel.setEnabled(true);\n\n channel.setPreProcessor(new TestPreProcessor());\n channel.setPostProcessor(new TestPostProcessor());\n\n final TestSourceConnector sourceConnector = (TestSourceConnector) TestUtils.createDefaultSourceConnector();\n sourceConnector.setChannel(channel);\n channel.setSourceConnector(sourceConnector);\n channel.setSourceFilterTransformer(TestUtils.createDefaultFilterTransformerExecutor());\n\n final ConnectorProperties connectorProperties = new TestDispatcherProperties();\n ((TestDispatcherProperties) connectorProperties).getQueueConnectorProperties().setQueueEnabled(true);\n ((TestDispatcherProperties) connectorProperties).getQueueConnectorProperties().setSendFirst(true);\n ((TestDispatcherProperties) connectorProperties).getQueueConnectorProperties().setRegenerateTemplate(true);\n\n final DestinationConnector destinationConnector = new TestDispatcher();\n TestUtils.initDefaultDestinationConnector(destinationConnector, connectorProperties);\n destinationConnector.setChannelId(channelId);\n ((TestDispatcher) destinationConnector).setReturnStatus(Status.SENT);\n\n class BlockingTestResponseTransformer extends TestResponseTransformer {\n public volatile boolean waiting = true;\n\n @Override\n public String doTransform(Response response, ConnectorMessage connectorMessage) throws DonkeyException, InterruptedException {\n while (waiting) {\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n return super.doTransform(response, connectorMessage);\n }\n }\n final BlockingTestResponseTransformer responseTransformer = new BlockingTestResponseTransformer();\n \n destinationConnector.setResponseTransformerExecutor(TestUtils.createDefaultResponseTransformerExecutor());\n destinationConnector.getResponseTransformerExecutor().setResponseTransformer(responseTransformer);\n\n DestinationChain chain = new DestinationChain();\n chain.setChannelId(channelId);\n chain.setMetaDataReplacer(sourceConnector.getMetaDataReplacer());\n chain.setMetaDataColumns(channel.getMetaDataColumns());\n chain.addDestination(1, TestUtils.createDefaultFilterTransformerExecutor(), destinationConnector);\n channel.addDestinationChain(chain);\n\n if (ChannelController.getInstance().channelExists(channelId)) {\n ChannelController.getInstance().deleteAllMessages(channelId);\n }\n \n channel.deploy();\n channel.start();\n\n class TempClass {\n public long messageId;\n }\n final TempClass tempClass = new TempClass();\n\n for (int i = 1; i <= TEST_SIZE; i++) {\n responseTransformer.waiting = true;\n\n Thread thread = new Thread() {\n @Override\n public void run() {\n ConnectorMessage sourceMessage = TestUtils.createAndStoreNewMessage(new RawMessage(testMessage), channel.getChannelId(), channel.getServerId()).getConnectorMessages().get(0);\n tempClass.messageId = sourceMessage.getMessageId();\n\n try {\n channel.process(sourceMessage, false);\n } catch (InterruptedException e) {\n throw new AssertionError(e);\n }\n }\n };\n thread.start();\n\n Thread.sleep(100);\n // Assert that the response content was stored\n Connection connection = null;\n PreparedStatement statement = null;\n ResultSet result = null;\n \n try {\n connection = TestUtils.getConnection();\n long localChannelId = ChannelController.getInstance().getLocalChannelId(channelId);\n statement = connection.prepareStatement(\"SELECT * FROM d_mc\" + localChannelId + \" WHERE message_id = ? AND metadata_id = ? AND content_type = ?\");\n statement.setLong(1, tempClass.messageId);\n statement.setInt(2, 1);\n statement.setInt(3, ContentType.SENT.getContentTypeCode());\n result = statement.executeQuery();\n assertTrue(result.next());\n result.close();\n statement.close();\n \n // Assert that the message status was updated to PENDING\n statement = connection.prepareStatement(\"SELECT * FROM d_mm\" + localChannelId + \" WHERE message_id = ? AND id = ? AND status = ?\");\n statement.setLong(1, tempClass.messageId);\n statement.setInt(2, 1);\n statement.setString(3, String.valueOf(Status.PENDING.getStatusCode()));\n result = statement.executeQuery();\n assertTrue(result.next());\n result.close();\n statement.close();\n \n responseTransformer.waiting = false;\n thread.join();\n \n // Assert that the response transformer was run\n assertTrue(responseTransformer.isTransformed());\n \n // Assert that the message status was updated to SENT\n statement = connection.prepareStatement(\"SELECT * FROM d_mm\" + localChannelId + \" WHERE message_id = ? AND id = ? AND status = ?\");\n statement.setLong(1, tempClass.messageId);\n statement.setInt(2, 1);\n statement.setString(3, String.valueOf(Status.SENT.getStatusCode()));\n result = statement.executeQuery();\n assertTrue(result.next());\n result.close();\n statement.close();\n } finally {\n TestUtils.close(result);\n TestUtils.close(statement);\n TestUtils.close(connection);\n }\n }\n\n channel.stop();\n channel.undeploy();\n //ChannelController.getInstance().removeChannel(channel.getChannelId());\n }", "@Test\n public void destiny2InsertSocketPlugTest() {\n InlineResponse20045 response = api.destiny2InsertSocketPlug();\n\n // TODO: test validations\n }", "private void transfer(Transfer associatedUpload) throws IOException {\n \t\ttry {\n \t\t\t_started = System.currentTimeMillis();\n \t\t\tif (_mode == 'A') {\n \t\t\t\t_out = new AddAsciiOutputStream(_out);\n \t\t\t}\n \n \t\t\tbyte[] buff = new byte[Math.max(_slave.getBufferSize(), 65535)];\n \t\t\tint count;\n \t\t\tlong currentTime = System.currentTimeMillis();\n \n \t\t\ttry {\n \t\t\t\twhile (true) {\n \t\t\t\t\tif (_abortReason != null) {\n \t\t\t\t\t\tthrow new TransferFailedException(\n \t\t\t\t\t\t\t\t\"Transfer was aborted - \" + _abortReason,\n \t\t\t\t\t\t\t\tgetTransferStatus());\n \t\t\t\t\t}\n \t\t\t\t\tcount = _in.read(buff);\n \t\t\t\t\tif (count == -1) {\n \t\t\t\t\t\tif (associatedUpload == null) {\n \t\t\t\t\t\t\tbreak; // done transferring\n \t\t\t\t\t\t}\n \t\t\t\t\t\tif (associatedUpload.getTransferStatus().isFinished()) {\n \t\t\t\t\t\t\tbreak; // done transferring\n \t\t\t\t\t\t}\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tThread.sleep(500);\n \t\t\t\t\t\t} catch (InterruptedException e) {\n \t\t\t\t\t\t}\n \t\t\t\t\t\tcontinue; // waiting for upload to catch up\n \t\t\t\t\t}\n \t\t\t\t\t// count != -1\n \t\t\t\t\tif ((System.currentTimeMillis() - currentTime) >= 1000) {\n \t\t\t\t\t\tTransferStatus ts = getTransferStatus();\n \t\t\t\t\t\tif (ts.isFinished()) {\n \t\t\t\t\t\t\tthrow new TransferFailedException(\n \t\t\t\t\t\t\t\t\t\"Transfer was aborted - \" + _abortReason,\n \t\t\t\t\t\t\t\t\tts);\n \t\t\t\t\t\t}\n \t\t\t\t\t\t_slave\n \t\t\t\t\t\t\t\t.sendResponse(new AsyncResponseTransferStatus(\n \t\t\t\t\t\t\t\t\t\tts));\n \t\t\t\t\t\tcurrentTime = System.currentTimeMillis();\n \t\t\t\t\t}\n \t\t\t\t\t_transfered += count;\n \t\t\t\t\t_out.write(buff, 0, count);\n \t\t\t\t}\n \n \t\t\t\t_out.flush();\n \t\t\t} catch (IOException e) {\n \t\t\t\tthrow new TransferFailedException(e, getTransferStatus());\n \t\t\t}\n \t\t} finally {\n \t\t\t_finished = System.currentTimeMillis();\n \t\t\t_slave.removeTransfer(this); // transfers are added in setting up\n \t\t\t\t\t\t\t\t\t\t\t// the transfer,\n \t\t\t\t\t\t\t\t\t\t\t// issueListenToSlave()/issueConnectToSlave()\n \t\t}\n \t}", "@Test\n public void transStatusTest() {\n assertEquals(\"P\", authResponse.getTransStatus());\n }", "@Test\n\tpublic void test03_AcceptARequest(){\n\t\tinfo(\"Test03: Accept a Request\");\n\t\tinfo(\"prepare data\");\n\t\t/*Create data test*/\n\t\tString username1 = txData.getContentByArrayTypeRandom(4) + getRandomString();\n\t\tString password1 = username1;\n\t\tString email1 = username1 + mailSuffixData.getMailSuffixRandom();\n\n\t\tString username2 = txData.getContentByArrayTypeRandom(4) + getRandomString();\n\t\tString password2 = username2;\n\t\tString email2= username2 + mailSuffixData.getMailSuffixRandom();\n\n\t\tinfo(\"Add new user\");\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tnavToolBar.goToAddUser();\n\t\taddUserPage.addUser(username1, password1, email1, username1, username1);\n\t\taddUserPage.addUser(username2, password2, email2, username2, username2);\n\n\t\t/*Step Number: 1\n\t\t *Step Name: Accept a request\n\t\t *Step Description: \n\t\t\t- Login as John\n\t\t\t- Open intranet homepage\n\t\t\t- On this gadget, mouse over an invitation of mary\n\t\t\t- Click on Accept button\n\t\t *Input Data: \n\t\t/*Expected Outcome: \n\t\t\t- The invitation of root, mary is shown on the invitation gadget\n\t\t\t- The Accept and Refuse button are displayed.\n\t\t\t- John is connected to mary and the invitation fades out and is permanently removed from the list\n\t\t\t- Request of root are moving to the top of the gadget if needed*/ \n\t\tinfo(\"Sign in with mary account\");\n\t\tmagAc.signIn(username1, password1);\n\t\thp.goToConnections();\n\t\tconnMg.connectToAUser(DATA_USER1);\n\n\t\tinfo(\"--Send request 2 to John\");\n\t\tmagAc.signIn(username2, password2);\n\t\thp.goToConnections();\n\t\tconnMg.connectToAUser(DATA_USER1);\n\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tmouseOver(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username2),true);\n\t\tclick(hp.ELEMENT_INVITATIONS_PEOPLE_ACCEPT_BTN.replace(\"${name}\",username2), 2,true);\n\t\twaitForElementNotPresent(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username2));\n\t\twaitForAndGetElement(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username1));\n\n\t\tinfo(\"Clear Data\");\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tnavToolBar.goToUsersAndGroupsManagement();\n\t\tuserAndGroup.deleteUser(username1);\n\t\tuserAndGroup.deleteUser(username2);\n\t}", "@Test\r\n public void testGetCommandName() {\r\n assertEquals(\"curl\", curl.getCommandName());\r\n }", "@Test\n public void testExecute() throws Exception {\n ((FakeTransportHandler) tlsContext.getTransportHandler())\n .setFetchableByte(new byte[] { 0x15, 0x03, 0x02, 0x01 });\n\n action.execute(state);\n assertTrue(action.isExecuted());\n }", "MovilizerRequest prepareUploadRequest(Long systemId, String password, MovilizerRequest request);", "public void testExecuteInOnlyExchangeCase1() {\n System.out.println(\"Testing in-only message exchange case 1...\");\n \n ExecInput execInput = new ExecInput();\n ExecMessage execMessage = new ExecMessage();\n ExecAddress execAddress = new ExecAddress();\n msgExchange = mock(InOnly.class);\n\n execAddress.setHostName(\"localhost\");\n \n deliveryChannel.expects(atLeastOnce()).method(\"createExchangeFactory\").will(returnValue(msgExchangeFactory.proxy()));\n msgExchangeFactory.expects(atLeastOnce()).method(\"createInOnlyExchange\").will(returnValue((InOnly)msgExchange.proxy()));\n componentContext.expects(atLeastOnce()).method(\"getEndpoint\").with(eq(THE_SERVICE), eq(THE_ENDPOINT)).will(returnValue((ServiceEndpoint)serviceEndpoint.proxy()));\n msgExchange.expects(atLeastOnce()).method(\"getExchangeId\");\n normalizer.expects(atLeastOnce()).method(\"normalize\").withAnyArguments().will(returnValue((NormalizedMessage)normalizedMsg.proxy()));\n msgExchange.expects(once()).method(\"setEndpoint\").with(isA(ServiceEndpoint.class));\n msgExchange.expects(once()).method(\"setOperation\").with(eq(THE_OPERATION));\n msgExchange.expects(once()).method(\"setMessage\").with(eq(normalizedMsg.proxy()), eq(\"in\"));\n \n deliveryChannel.expects(once()).method(\"send\").with(eq(msgExchange.proxy()));\n endpoint.expects(atLeastOnce()).method(\"getServiceName\").will(returnValue(THE_SERVICE));\n endpoint.expects(atLeastOnce()).method(\"getEndpointName\").will(returnValue(THE_ENDPOINT));\n endpoint.expects(once()).method(\"getEndpointStatus\").will(returnValue(endpointStatus.proxy()));\n endpointStatus.expects(once()).method(\"incrementSentRequests\");\n \n try {\n instance.addWorker(worker = new IBExecWorker(instance, \"inonly\", execMessage));\n worker.setNormalizer((ExecNormalizer)normalizer.proxy());\n instance.setStopped(true); // let the worker loop once and quit\n String command;\n String os = System.getProperty(\"os.name\");\n if (os != null) {\n os = os.toLowerCase();\n }\n if (os != null && os.startsWith(\"windows\")) {\n command = \"hostname\";\n } else if (os != null && os.startsWith(\"mac os\")) {\n command = \"vm_stat\";\n } else {\n //Assume UNIX\n command = \"vmstat\";\n }\n execInput.setExecMessage(execMessage);\n instance.ensureExchangeFactoryAndEndPoint();\n instance.execute(\"inonly\", command, execInput, execAddress);\n instance.startWorkers(\"inonly\", execInput);\n Thread.sleep(1000);\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"Failed to test InOnly exchanges due to: \" + e.getMessage());\n }\n msgExchange.verify();\n msgExchangeFactory.verify();\n componentContext.verify();\n endpointStatus.verify();\n deliveryChannel.verify();\n\n System.out.println(\"Successfully tested in-only message exchange case 1\");\n }", "@Test\n public void customerCanPerformTransferBetweenAccounts() {\n String ownerId = \"ownerId\";\n Account accountFrom = AccountFactory.createAccount(AccountFactory.AccountType.SAVINGS, ownerId);\n Account accountTo = AccountFactory.createAccount(AccountFactory.AccountType.SAVINGS, ownerId);\n\n // Put some money in the from account\n Transaction transaction = new Transaction.Builder().setDescription(\"Test\").setAmount(DollarAmount.fromInt(100)).setType(Transaction.Type.DEPOSIT).build();\n accountFrom.applyTransaction(transaction);\n assertEquals(accountFrom.getAccountBalance(), DollarAmount.fromInt(100));\n\n // Attempt transfer\n Account.transfer(accountFrom, accountTo, DollarAmount.fromInt(30));\n\n // Assert transfer was successful\n assertEquals(DollarAmount.fromInt(70), accountFrom.getAccountBalance());\n assertEquals(DollarAmount.fromInt(30), accountTo.getAccountBalance());\n }", "@Test\n public void testSuccessTransferFundSufficientFund() throws IOException, URISyntaxException {\n URI uri = builder.setPath(\"/transfers\").build();\n BigDecimal amount = new BigDecimal(10).setScale(4, RoundingMode.HALF_EVEN);\n\n HttpPost request = new HttpPost(uri);\n request.setHeader(\"Content-type\", \"application/json\");\n request.setEntity(new StringEntity(mapper.writeValueAsString(new MoneyTransfer(amount, 1L, 4L))));\n HttpResponse response = client.execute(request);\n\n int statusCode = response.getStatusLine().getStatusCode();\n assertTrue(statusCode == 200);\n }", "@Test\r\n\tpublic void testTransferAmountNegative() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(\"123456\");\r\n\t\taccountTransferRequest.setReceiverAccount(\"123456\");\r\n\t\taccountTransferRequest.setTransferAmount(-100.0);\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"transferAmount_Cannot_Be_Negative_Or_Zero\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "public void testService() {\n\n\t\ttry {\n\t\t\tString nextAction = \"next action\";\n\t\t\trequest.setAttribute(\"NEXT_ACTION\", nextAction);\n\t\t\tString nextPublisher = \"next publisher\";\n\t\t\trequest.setAttribute(\"NEXT_PUBLISHER\", nextPublisher);\n\t\t\tString expertQueryDisplayed = \"expert query displayed\";\n\t\t\trequest.setAttribute(\"expertDisplayedForUpdate\", expertQueryDisplayed);\n\t\t\tupdateFieldsForResumeAction.service(request, response);\n\t\t\tassertEquals(nextAction, response.getAttribute(\"NEXT_ACTION\"));\t\t\n\t\t\tassertEquals(nextPublisher, response.getAttribute(\"NEXT_PUBLISHER\"));\n\t\t\tassertEquals(expertQueryDisplayed, singleDataMartWizardObj.getExpertQueryDisplayed());\n\t\t\t\n\t\t} catch (SourceBeanException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Unaspected exception occurred!\");\n\t\t}\n\t\t\n\t}", "@Test\n public void request() throws Exception {\n\n\n }", "@Test\n public void handleCompositeCommand1() {\n }", "public boolean isTransferRequestValid(Customer fromCustomer,Customer toCustomer,RewardCurrency fromRewardCurrency, RewardCurrency toRewardCurrency,TransferPointSetting transferPointSetting) throws InspireNetzException {\n\n MessageWrapper messageWrapper = generalUtils.getMessageWrapperObject(\"\",fromCustomer.getCusLoyaltyId(),\"\",\"\",\"\",fromCustomer.getCusMerchantNo(),new HashMap<String, String>(0),MessageSpielChannel.ALL,IndicatorStatus.YES);\n\n // Check if the customer status is active\n if ( fromCustomer.getCusStatus() != CustomerStatus.ACTIVE ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> The fromCustomer account is not active\");\n\n messageWrapper.setSpielName(MessageSpielValue.TRANSFER_POINT_FROM_CUSTOMER_INACTIVE);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(), CustomerActivityType.TRANSFER_POINT, \"Failed , source customer not active\", fromCustomer.getCusMerchantNo(), \"\");\n\n // throw exception\n throw new InspireNetzException(APIErrorCode.ERR_PARTY_NOT_ACTIVE);\n\n }\n\n\n // Check if the toCustomer is active\n if ( toCustomer.getCusStatus() != CustomerStatus.ACTIVE ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> The toCustomer account is not active\");\n\n messageWrapper.setSpielName(MessageSpielValue.TRANSFER_POINT_TO_CUSTOMER_INACTIVE);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(),CustomerActivityType.TRANSFER_POINT,\"Failed , destination customer not active\",fromCustomer.getCusMerchantNo(),\"\");\n\n // throw exception\n throw new InspireNetzException(APIErrorCode.ERR_PARTY_NOT_ACTIVE);\n\n }\n\n\n // Check if the both fromCustomer and toCustomer are same\n if ( fromCustomer.getCusCustomerNo().longValue() == toCustomer.getCusCustomerNo().longValue() ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> sourceCustomer and destCustomer cannot be same\");\n\n messageWrapper.setSpielName(MessageSpielValue.TRANSFER_POINT_CUSTOMERS_SAME);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(),CustomerActivityType.TRANSFER_POINT,\"Failed , source and destination customers are same\",fromCustomer.getCusMerchantNo(),\"\");\n\n // throw exception\n throw new InspireNetzException(APIErrorCode.ERR_OPERATION_NOT_ALLOWED);\n\n }\n\n\n // Check if the transferPointSetting is valid\n if ( transferPointSetting == null ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> No TransferPointSetting object found\");\n\n messageWrapper.setSpielName(MessageSpielValue.GENERAL_ERROR_MESSAGE);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(),CustomerActivityType.TRANSFER_POINT,\"Failed , no transfer point setting found\",fromCustomer.getCusMerchantNo(),\"\");\n\n // throw exception\n throw new InspireNetzException(APIErrorCode.ERR_OPERATION_FAILED);\n\n }\n\n\n // Check the validity for the location compatibility\n if ( fromCustomer.getCusLocation().longValue() != toCustomer.getCusLocation().longValue() &&\n transferPointSetting.getTpsTransferCompatibility() != TransferPointSettingCompatibility.ACROSS_LOCATIONS ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> Transfer request across locations are not allowed\");\n\n messageWrapper.setSpielName(MessageSpielValue.TRANSFER_POINT_ACROSS_LOCATION);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(),CustomerActivityType.TRANSFER_POINT,\"Failed , transfer request across mega brands not allowed\",fromCustomer.getCusMerchantNo(),\"\");\n\n // return false\n throw new InspireNetzException(APIErrorCode.ERR_OPERATION_NOT_ALLOWED);\n\n\n }\n\n\n // check if the customer tier is valid\n boolean isTierValid = isCustomerTierValid(fromCustomer);\n\n // If not valid, then throw exception\n if ( !isTierValid ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> Customer tier does not allow transfer\");\n\n messageWrapper.setSpielName(MessageSpielValue.TRANSFER_POINT_CUSTOMER_TIER_NOT_VALID);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(),CustomerActivityType.TRANSFER_POINT,\"Failed , customer tier doesn't allow transfer \",fromCustomer.getCusMerchantNo(),\"\");\n\n // return false\n throw new InspireNetzException(APIErrorCode.ERR_TRANSFER_REQUEST_TIER_NOT_VALID);\n\n }\n\n\n\n\n // Check if the customer has reached max transfer limit\n boolean isMaxTransferValid = isMaxTransfersValid(fromCustomer,transferPointSetting);\n\n // Check if the max transfer condition is valid\n if ( !isMaxTransferValid ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> Customer exceeded maximum limit\");\n\n messageWrapper.setSpielName(MessageSpielValue.TRANSFER_POINT_MAX_TRANSFER_LIMIT_REACHED);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(),CustomerActivityType.TRANSFER_POINT,\"Failed , customer exceeded maximum transfer limit \",fromCustomer.getCusMerchantNo(),\"\");\n\n // return false\n throw new InspireNetzException(APIErrorCode.ERR_MAX_TRANSFER_POINT_COUNT_EXCEEDED);\n\n }\n\n\n // Check if the parties involved are part of a linking\n boolean isPartOfLinking = isCustomersLinked(fromCustomer, toCustomer);\n\n // Check if the customers are part of linking\n if ( isPartOfLinking ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> From customer and to customer are linked\");\n\n messageWrapper.setSpielName(MessageSpielValue.TRANSFER_POINT_CUSTOMER_LINKED);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(),CustomerActivityType.TRANSFER_POINT,\"Failed , source and destination customers are linked \",fromCustomer.getCusMerchantNo(),\"\");\n\n // return false\n throw new InspireNetzException(APIErrorCode.ERR_TRANSFER_PARTIES_LINKED);\n\n }\n\n\n // Check if the customer\n return true;\n\n }", "void transferHunger(int transfer, ItemStack stack, ProcessType process);", "public interface Transport {\r\n /**\r\n * Prepares connection to server and returns connection output stream.\r\n * \r\n * @param info\r\n * connection information object containing target URL, content encoding, etc.\r\n * @return connection output stream\r\n * @throws TransportException\r\n */\r\n OutputStream prepare(ConnectionInfo info) throws TransportException;\r\n \r\n \r\n // this method used for wsg request -- by felix\r\n /**\r\n * Prepares connection to server and returns connection output stream.\r\n * \r\n * @param info\r\n * connection information object containing target URL, content encoding, etc.\r\n * @return connection output stream\r\n * @throws TransportException\r\n */\r\n void prepare(ConnectionInfo info,byte[] reqXml) throws TransportException;\r\n\tpublic InputStream configPrepare(ConnectionInfo info) throws TransportException;\r\n public InputStream prepareAndConnect(ConnectionInfo info) throws TransportException ;\r\n public void prepareWsgPost(ConnectionInfo info,byte[] reqXml) throws TransportException ;\r\n \r\n\r\n /**\r\n * Sends request to server and receives a response.\r\n * <em>{@link #prepare(ConnectionInfo)} should be called prior to performing an exchange.</em>\r\n * \r\n * @return input stream containing server response\r\n * \r\n * @throws TransportException\r\n */\r\n InputStream exchange() throws TransportException;\r\n\r\n /**\r\n * Closes any pending connections and frees transport resources.\r\n */\r\n void close();\r\n}", "@Test\n public void testSetRequest_1()\n throws Exception {\n Transaction fixture = new Transaction();\n fixture.setResponse(new Response());\n fixture.setRequest(new Request());\n Request request = new Request();\n\n fixture.setRequest(request);\n\n }", "@Override\n\tpublic void receiveRequest() {\n\n\t}", "@Test\r\n\tpublic void testSenderAccountNumberLength() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(\"1234567\");\r\n\t\taccountTransferRequest.setReceiverAccount(VALID_RECEIVER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setTransferAmount(400.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"Invalid_Sender_And_Receiver_AccountNumber\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "@Before\n\tpublic void setup() {\n\t\tthis.messaging.receive(\"output\", 100, TimeUnit.MILLISECONDS);\n\t}", "public void handleResponse(byte[] result, Command originalCommand);", "@Test\n public void testSuccessTransferFundDifferentCcy() throws IOException, URISyntaxException {\n URI uri = builder.setPath(\"/transfers\").build();\n BigDecimal amount = new BigDecimal(100).setScale(4, RoundingMode.HALF_EVEN);\n\n HttpPost request = new HttpPost(uri);\n request.setHeader(\"Content-type\", \"application/json\");\n request.setEntity(new StringEntity(mapper.writeValueAsString(new MoneyTransfer(amount, 1L, 2L))));\n HttpResponse response = client.execute(request);\n\n assertTrue(response.getStatusLine().getStatusCode() == 200);\n }", "public interface IDelivery {\n /**\n * Distribution request response result\n * \n * @param request\n * @param response\n */\n public void postRequestResponse(Request<?> request, Response<?> response);\n\n /**\n * Distribute Failure events\n * \n * @param request\n * @param error\n */\n public void postError(Request<?> request, HttpException error);\n\n /**\n * Distribution to read the cached results response\n * @param request\n * @param cacheData\n */\n public <T>void postCacheResponse(Request<?> request, T cacheData);\n \n /**\n * Prepare events at the start of the request\n * @param request\n */\n public void postRequestPrepare(Request<?> request);\n \n /**\n * Distribution to retry event\n * @param request\n * @param previousError An exception before\n */\n public void postRequestRetry(Request<?> request, int currentRetryCount, HttpException previousError);\n \n /**\n * Delivered current progress for request\n * @param request\n * @param transferredBytesSize\n * @param totalSize\n */\n public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);\n \n /**\n * Delivered upload progress for request\n * @param request\n * @param transferredBytesSize\n * @param totalSize\n * @param currentFileIndex The subscript is currently being uploaded file\n * @param currentFile Is currently being uploaded files\n */\n\tpublic void postRequestUploadProgress(Request<?> request, long transferredBytesSize, long totalSize, int currentFileIndex, File currentFile);\n\n}", "@Test\n public void proveraTransfera() {\n Account ivana = mobi.openAccount(\"Ivana\");\n Account pera = mobi.openAccount(\"Pera\");\n\n mobi.payInMoney(ivana.getNumber(), 5000.0);\n mobi.transferMoney(ivana.getNumber(), pera.getNumber(), 2000.0);\n //ocekujemo da nakon ovoga ivana ima 3000, a pera 2000\n\n SoftAssert sa = new SoftAssert();\n sa.assertEquals(ivana.getAmount(), 3000.0);\n sa.assertEquals(pera.getAmount(), 2000.0);\n\n sa.assertAll();\n }", "public boolean transfer(double total, String sender, String receiver) {\n\n }", "private void setUpMockObjects() {\n this.request = new CustomMockHttpServletRequest();\n byte[] content = { 4, 6, 7 };\n ServletInputStream inputStream = new DelegatingServletInputStream(\n new ByteArrayInputStream(content));\n this.request.inputStream = inputStream;\n\n this.response = new MockHttpServletResponse();\n\n this.setUpXmlRpcElementFactory();\n this.setUpXmlRpcRequestParser();\n this.setUpXmlRpcResponseWriter();\n this.setUpXmlRpcServiceExporterMap();\n }", "@Test\n public void Upload()\n {\n }", "public abstract void echo(\n com.google.protobuf.RpcController controller,\n org.apache.hadoop.ipc.protobuf.TestProtos.EchoRequestProto request,\n com.google.protobuf.RpcCallback<org.apache.hadoop.ipc.protobuf.TestProtos.EchoResponseProto> done);", "@Test(priority = 1, dataProvider = \"verifytxTestData\")\r\n\tpublic void testResponseCode(HashMap<String, String> hm) {\r\n\r\n\t\t// Checking execution flag\r\n\t\tif (hm.get(\"ExecuteFlag\").trim().equalsIgnoreCase(\"No\"))\r\n\t\t\tthrow new SkipException(\"Skipping the test ---->> As per excel entry\");\r\n\t\t\r\n\t\t\tappURL = globalConfig.getString(\"VERIFYTX_API_CONFIG\");\r\n\r\n\r\n\t\t System.out.println(\"URL:\"+ appURL);\r\n\t\t\t\r\n\r\n\t\tHashMap<String, String> headerParameters = new HashMap<String, String>();\r\n\t\t\r\n\t\t\t\r\n\t\t\theaderParameters.put(\"txid\", hm.get(\"I_txid\"));\t\t\r\n\t\t\t\r\n\t\t\theaderParameters.put(\"txbytes\", hm.get(\"I_txbytes\"));\r\n\t\r\n\t\t\r\n\r\n\t\tint responseCode = 0;\r\n\t\tlogger.debug(\"requestURL is getting sent as {}\", appURL.toString());\r\n\r\n\t\ttry {\r\n\t\t\tresponseCode = HTTPUtil.sendGet(appURL, headerParameters);\r\n\r\n\t\t\tSystem.out.println(\"Response Code:\" +responseCode);\r\n\r\n\t\t\tif ((responseCode == 200) || (responseCode == 404)) {\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tString filePathOfJsonResponse = HelperUtil.createOutputDir(this.getClass().getSimpleName())\r\n\t\t\t\t\t\t\t+ File.separator + this.getClass().getSimpleName() + hm.get(\"SerialNo\") + \".json\";\r\n\r\n\t\t\t\t\tHTTPUtil.writeResponseToFile(filePathOfJsonResponse);\r\n\r\n\t\t\t\t} catch (UnsupportedOperationException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception :\" + e.getMessage());\r\n\t\t\t\t\tAssertJUnit.fail(\"Caught Exception ...\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception :\" + e.getMessage());\r\n\t\t\tAssertJUnit.fail(\"Caught Exception ...\" + e.getMessage());\r\n\t\t}\r\n\r\n\t\tlogger.debug(\"The response code is {}\", Integer.valueOf(responseCode).toString());\r\n\t\tPreconditions.checkArgument(!hm.get(\"httpstatus\").equals(null), \"String httpstatus in excel must not be null\");\r\n\r\n\t\t// Verify response code\r\n\t\tif (responseCode==200) {\r\n\t\t\treporter.writeLog(\"PASS\", \"Status should be \" + hm.get(\"httpstatus\"), \"Status is \" + responseCode);\r\n\t\t\tAssertJUnit.assertEquals(responseCode, 200);\r\n\t\t} else {\r\n\t\t\treporter.writeLog(\"FAIL\", \"Status should be \" + hm.get(\"httpstatus\"), \"Status is \" + responseCode);\r\n\t\t\tAssertJUnit.assertEquals(responseCode, Integer.parseInt(hm.get(\"httpstatus\")));\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"-------------------------------------------\");\r\n\t}", "@Test\n void updateDispositionWithTransaction() {\n // Arrange\n final String associatedLinkName = \"associatedLinkName\";\n final String txnIdString = \"Transaction-ID\";\n final DeadLetterOptions options = new DeadLetterOptions()\n .setDeadLetterErrorDescription(\"dlq-description\")\n .setDeadLetterReason(\"dlq-reason\");\n\n final UUID lockToken = UUID.randomUUID();\n final ServiceBusTransactionContext mockTransaction = mock(ServiceBusTransactionContext.class);\n when(mockTransaction.getTransactionId()).thenReturn(ByteBuffer.wrap(txnIdString.getBytes()));\n when(requestResponseChannel.sendWithAck(any(Message.class), any(DeliveryState.class)))\n .thenReturn(Mono.just(responseMessage));\n\n // Act & Assert\n StepVerifier.create(managementChannel.updateDisposition(lockToken.toString(), DispositionStatus.SUSPENDED,\n options.getDeadLetterReason(), options.getDeadLetterErrorDescription(), options.getPropertiesToModify(),\n null, associatedLinkName, mockTransaction))\n .verifyComplete();\n\n // Verify the contents of our request to make sure the correct properties were given.\n verify(requestResponseChannel).sendWithAck(any(Message.class), amqpDeliveryStateCaptor.capture());\n\n final DeliveryState delivery = amqpDeliveryStateCaptor.getValue();\n Assertions.assertNotNull(delivery);\n Assertions.assertTrue(delivery instanceof TransactionalState);\n Assertions.assertEquals(txnIdString, ((TransactionalState) delivery).getTxnId().toString());\n }", "abstract void request() throws IOException;" ]
[ "0.67097247", "0.6200085", "0.61226314", "0.60266924", "0.60069275", "0.58959806", "0.58832175", "0.586673", "0.58622444", "0.5839139", "0.5728645", "0.56730443", "0.56655043", "0.565487", "0.56357366", "0.5576404", "0.55740565", "0.555738", "0.5549178", "0.5549029", "0.55193067", "0.55109507", "0.54640824", "0.54623646", "0.5459739", "0.54567426", "0.5446353", "0.5434487", "0.542033", "0.5390331", "0.5380934", "0.5375857", "0.5365744", "0.5341081", "0.53175575", "0.52983725", "0.5291461", "0.5291461", "0.5282365", "0.52772015", "0.52765995", "0.5257447", "0.5250771", "0.52370286", "0.52235156", "0.5223101", "0.5219969", "0.52109003", "0.5210649", "0.5203932", "0.5199726", "0.5199714", "0.51977456", "0.5169165", "0.5166155", "0.5162553", "0.51580215", "0.5153918", "0.5150252", "0.5147845", "0.5146442", "0.51382405", "0.5135237", "0.51320153", "0.5130774", "0.5128233", "0.51012325", "0.5099661", "0.5099435", "0.50969213", "0.50950176", "0.50831914", "0.5082186", "0.5073372", "0.50721323", "0.5061179", "0.5038972", "0.5033616", "0.50295144", "0.50262475", "0.5005281", "0.50035316", "0.49901706", "0.49861842", "0.49821988", "0.49768695", "0.49730337", "0.49656326", "0.49635258", "0.49633142", "0.49599373", "0.4957831", "0.49509263", "0.49488652", "0.49447113", "0.4943945", "0.49280244", "0.4925441", "0.4920761", "0.49198905" ]
0.62483215
1
Unit test for the extension to the delete response.
public void testDomainDelete() { EPPCodecTst.printStart("testDomainDelete"); // Create Response EPPResponse theResponse; EPPTransId respTransId = new EPPTransId("ABC-12345", "54321-XYZ"); theResponse = new EPPResponse(respTransId); EPPFeeDelData theRespExt = new EPPFeeDelData("USD", new EPPFeeCredit( new BigDecimal("-5.00"), "AGP Credit")); theRespExt.setBalance(new BigDecimal("1005.00")); theResponse.addExtension(theRespExt); EPPEncodeDecodeStats commandStats = EPPCodecTst .testEncodeDecode(theResponse); System.out.println(commandStats); EPPCodecTst.printEnd("testDomainDelete"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void deleteTest() {\n URI uri = URI.create(endBody + \"/delete\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.delete(uri);\n\n assertEquals(200, response.statusCode());\n }", "public abstract Response delete(Request request, Response response);", "@Test\n public void delete01() {\n Response responseGet = given().\n spec(spec03).\n when().\n get(\"/3\");\n responseGet.prettyPrint();\n\n Response responseDel = given().\n spec(spec03).\n when().\n delete(\"/3\");\n responseDel.prettyPrint();\n\n\n // responseDel yazdirildiginda not found cevabi gelirse status code 404 ile test edilir.\n // Eger bos bir satir donerse status code 200 ile test edilir.\n\n responseDel.\n then().\n statusCode(200);\n\n\n // hard assert\n\n assertTrue(responseDel.getBody().asString().contains(\" \"));\n\n // soft assertion\n\n SoftAssert softAssert = new SoftAssert();\n softAssert.assertTrue(responseDel.getBody().asString().contains(\" \"));\n softAssert.assertAll();\n }", "@Test\n public void delete01(){\n Response responseGet=given().\n spec(spec03).\n when().\n get(\"/198\");\n responseGet.prettyPrint();\n //delete islemi\n Response responseDel =given().\n spec(spec03).\n when().\n delete(\"/198\");\n responseDel.prettyPrint();\n //responseDel yazdirildiginda \"Not Found\" cevabi gelirse status code 404 ile test edilir. Eger bos bir\n // satir donerse Ststus code 200 ile test edilir.\n responseDel.then().assertThat().statusCode(200);\n // Hard assert\n assertTrue(responseDel.getBody().asString().contains(\"\"));\n //softAssertion\n SoftAssert softAssert = new SoftAssert();\n softAssert.assertTrue(responseDel.getBody().asString().contains(\"\"));\n softAssert.assertAll();\n\n\n }", "public void deleteRequest() {\n assertTrue(true);\n }", "@Test\n\t@Override\n\tpublic void testDeleteObjectOKJson() throws Exception {\n\t}", "@Override\n\tpublic void doDelete(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "public void test_03() {\n\n\t\tResponse reponse = given().\n\t\t\t\twhen().\n\t\t\t\tdelete(\"http://localhost:3000/posts/_3cYk0W\");\n\n\t\tSystem.out.println(\"updated response data \"+ reponse.asString());\t\t\n\t}", "@Test\n public void n4_testDelete() throws Exception {\n mockMvc.perform(delete(API_PATH + \"/TestDataType/\" + lkUUID)\n .accept(APPLICATION_JSON))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(content()\n .json(\"{'bool':false,'text':'lk','domain1':{},'numberDouble':0,'numberLong':100, 'date':''}\", false)); // TODO need strict true\n mockMvc.perform(get(API_PATH + \"/TestDataType/lk\")\n .accept(APPLICATION_JSON))\n .andExpect(status().is4xxClientError());\n mockMvc.perform(get(API_PATH + \"/TestDataType/\" + lkUUID)\n .accept(APPLICATION_JSON))\n .andExpect(status().is4xxClientError());\n }", "public ResponseTranslator delete() {\n setMethod(\"DELETE\");\n return doRequest();\n }", "@Test\n public void testDelete() throws Exception {\n // pretend the entity was deleted\n doNothing().when(Service).deleteCitation(any(String.class));\n\n // call delete\n ModelAndView mav = Controller.delete(\"\");\n\n // test to see that the correct view is returned\n Assert.assertEquals(\"result\", mav.getViewName());\n\n // test to see that Json is formated properly\n Map<String, Object> map = mav.getModel();\n String result = (String) map.get(\"message\");\n\n Assert.assertEquals(\"{\\\"result\\\":\\\"deleted\\\"}\", result);\n }", "@Test\n public void testAccountDelete() {\n Response response = webTarget\n .path(\"account/1\")\n .request(APPLICATION_JSON)\n .delete();\n assertThat(response.getStatus(), anyOf(is(200), is(202), is(204)));\n }", "public void testDelete() {\n TDelete_Return[] PriceLists_delete_out = priceListService.delete(new String[] { path + alias });\n\n // test if deletion was successful\n assertEquals(\"delete result set\", 1, PriceLists_delete_out.length);\n\n TDelete_Return PriceList_delete_out = PriceLists_delete_out[0];\n\n assertNoError(PriceList_delete_out.getError());\n\n assertEquals(\"deleted?\", true, PriceList_delete_out.getDeleted());\n }", "@Test(dataProvider = \"DataForDelete\")\n public void testDelete(int id) throws JsonProcessingException {\n\n JSONObject jsonResult = new JSONObject();\n jsonResult.put(\"id\", id);\n\n given()\n .header(\"Content-Type\", \"application/json\")\n .contentType(ContentType.JSON)\n .accept(ContentType.JSON)\n .body(jsonResult)\n .when()\n .delete(\"https://reqres.in/api/users/2\")\n .then()\n .statusCode(204);\n }", "@Test\n void incorrectDeletePathTest() {\n URI uri = URI.create(endBody + \"/dummy\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.delete(uri);\n\n // it should receive 404\n assertNotEquals(200, response.statusCode());\n assertEquals(404, response.statusCode());\n }", "@Test\n\t@Override\n\tpublic void testDeleteObjectOKXml() throws Exception {\n\t}", "@org.junit.Test\r\n public void testDelete() {\r\n System.out.println(\"delete\");\r\n String emailid = \"[email protected]\";\r\n ContactDao instance = new ContactDao();\r\n List<ContactResponse> expResult = new ArrayList<ContactResponse>();\r\n ContactResponse c = new ContactResponse(\"Contact Deleted\");\r\n expResult.add(c);\r\n List<ContactResponse> result = instance.delete(emailid);\r\n String s=\"No such contact ID found\";\r\n if(!result.get(0).getMessage().equals(s))\r\n assertEquals(expResult.get(0).getMessage(), result.get(0).getMessage());\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Test\n public void deleteTest(){\n given().pathParam(\"id\",1)\n .when().delete(\"/posts/{id}\")\n .then().statusCode(200);\n }", "void deleteByIdWithResponse(String id, Context context);", "void deleteByIdWithResponse(String id, Context context);", "void deleteByIdWithResponse(String id, Context context);", "void deleteByIdWithResponse(String id, Context context);", "void deleteByIdWithResponse(String id, Context context);", "@Override\r\n @Test(expected = UnsupportedOperationException.class)\r\n public void testDelete() throws NetInfCheckedException {\n super.testDelete();\r\n }", "@Test\n public void deleteOrderTest() {\n Long orderId = 10L;\n api.deleteOrder(orderId);\n\n verify(exactly(1), deleteRequestedFor(urlEqualTo(\"/store/order/10\")));\n }", "@Test\r\n public void testDelete() {\r\n assertTrue(false);\r\n }", "@Test\n public void shouldDeletePayment() throws Exception {\n ResponseEntity<String> response = postTestPaymentAndGetResponse();\n String location = getLocationHeader(response);\n\n //when: the payment is deleted:\n ResponseEntity<String> deleteResponse = restTemplate.exchange(location, HttpMethod.DELETE, null, String.class);\n //then: the response should be 'no content'\n assertEquals(HttpStatus.NO_CONTENT, deleteResponse.getStatusCode());\n\n //when: an attempt is made to retrieve the deleted payment:\n ResponseEntity<String> getResponse = restTemplate.getForEntity(location, String.class);\n //then: the status code should be 404 not found:\n assertEquals(HttpStatus.NOT_FOUND, getResponse.getStatusCode());\n }", "void delete( int nIdFormResponse, Plugin plugin );", "@DELETE\n\tResponse delete();", "@Test\n public void testUserDelete() {\n Response response = webTarget\n .path(\"user/1\")\n .request(APPLICATION_JSON)\n .delete();\n assertThat(response.getStatus(), anyOf(is(200), is(202), is(204)));\n }", "@Test()\n public void testDeleteInvalidResource() throws Exception {\n if (!deleteSupported) {\n return;\n }\n\n FHIRResponse response = client.delete(MedicationAdministration.class.getSimpleName(), \"invalid-resource-id-testDeleteInvalidResource\");\n assertNotNull(response);\n assertResponse(response.getResponse(), Response.Status.OK.getStatusCode());\n }", "@Test\n public void testDeleteProductShouldCorrect() throws Exception {\n // Mock method\n when(productRepository.findOne(product.getId())).thenReturn(product);\n doNothing().when(productRepository).delete(product);\n\n testResponseData(RequestInfo.builder()\n .request(delete(PRODUCT_DETAIL_ENDPOINT, product.getId()))\n .token(adminToken)\n .httpStatus(HttpStatus.OK)\n .build());\n }", "private MockHttpServletResponse deleteHttpServletResponse(String url, ResultMatcher status) throws Exception {\n\t\treturn httpServletResponse(HttpMethod.DELETE, url, null, status);\n\t}", "@Test\n public void testExposesDelete() throws Exception {\n List<Link> customers = findCustomersLinks();\n assertThat(\"Customers exist to work with\",\n customers.size(),\n greaterThan(0));\n\n Link customer = customers.get(customers.size() - 1);\n\n mockMvc\n .perform(delete(customer.getHref()))\n .andExpect(status().isNoContent());\n\n mockMvc\n .perform(get(customer.getHref()))\n .andExpect(status().isNotFound());\n }", "private void discoverDelete(RoutingContext rctx) {\n rctx.response().end(new ObjectBuilder().build());\n }", "@Test\n public void delete() {\n auctionService.restTemplate = mockRestTemplate;\n auctionService.delete(1);\n verify(mockRestTemplate).delete(testOneUrl);\n }", "@Test\n\tpublic void testDelete(){\n\t}", "@Test\n\tpublic void testDeleteCorrectParamNoDeletePb() {\n\t\tfinal String owner = \"1\";\n\t\tfinal Long piiUniqueId = (long) 12345789;\n\t\t\n\t\tPiiDeleteRequest piiRequest = new PiiDeleteRequest();\n\t\tpiiRequest.setOwner(owner);\n\t\tpiiRequest.setPiiUniqueId(piiUniqueId);\n\t\t\n\t\tPiiDeleteResponse piiDeleteResponse = new PiiDeleteResponse();\n\t\tpiiDeleteResponse.setDeleted(true);\n\t\twhen(mPiiService.delete(piiRequest)).thenReturn(piiDeleteResponse);\n\t\t\n\t\tResponse response = piiController.delete(piiRequest);\n\t\t\n\t\tverify(mPiiService).delete(piiRequest);\n\t\tverifyZeroInteractions(mPuidDao);\n\t\tassertEquals(200, response.getStatus());\n\t\t\n\t\tPiiDeleteResponse returnedResponse = (PiiDeleteResponse) response.getEntity();\n\t\tassertTrue(returnedResponse.isDeleted());\n\t}", "@Test\n final void testDeleteDevice() {\n when(deviceDao.deleteDevice(user, DeviceFixture.SERIAL_NUMBER)).thenReturn(Long.valueOf(1));\n ResponseEntity<String> response = deviceController.deleteDevice(DeviceFixture.SERIAL_NUMBER);\n assertEquals(200, response.getStatusCodeValue());\n assertEquals(\"Device with serial number 1 deleted\", response.getBody());\n }", "@Override\n protected Response doDelete(Long id) {\n return null;\n }", "@Override\n protected Response doDelete(Long id) {\n return null;\n }", "private void deleteOrder(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "@Test\n\t@Override\n\tpublic void testDeleteObjectNotFoundJson() throws Exception {\n\t}", "public void testDelete() {\n TDelete_Return[] Basket_delete_out = basketService.delete(new String[] { BasketPath });\n assertNoError(Basket_delete_out[0].getError());\n }", "@Test\n public void test_getMethodWithDataAfterDeletion() {\n util.create(\"abcdefghijklmnopqrFsstuvwxyzABCF\",\n \"{\\r\\n\" + \" \\\"array\\\": [\\r\\n\" + \" 1,\\r\\n\" + \" 2,\\r\\n\" + \" 3\\r\\n\" + \" ],\\r\\n\"\n + \" \\\"boolean\\\": true,\\r\\n\" + \" \\\"color\\\": \\\"#82b92c\\\",\\r\\n\" + \" \\\"null\\\": null,\\r\\n\"\n + \" \\\"number\\\": 123,\\r\\n\" + \" \\\"object\\\": {\\r\\n\" + \" \\\"a\\\": \\\"b\\\",\\r\\n\"\n + \" \\\"c\\\": \\\"d\\\",\\r\\n\" + \" \\\"e\\\": \\\"f\\\"\\r\\n\" + \" },\\r\\n\"\n + \" \\\"string\\\": \\\"Hello World\\\"\\r\\n\" + \"}\");\n util.delete(\"abcdefghijklmnopqrFsstuvwxyzABCF\");\n DataStoreResponse response = util.get(\"abcdefghijklmnopqrFsstuvwxyzABCF\");\n assertEquals(true, response.hasActionError);\n assertEquals(DataStoreConstants.DATA_NOT_FOUND, response.message);\n }", "@Test\n public void testDeleteDietStatus() throws Exception{\n \tString URI = \"/healthreminder/delete_dietstatus_by_id/{patientId}\"; \n \tFollowUpDietStatusInfo followUpDietStatusInfo = new FollowUpDietStatusInfo();\n followUpDietStatusInfo.setPatientId(1);\n followUpDietStatusInfo.setDietStatus(true);\n\n Mockito.when(followUpDietStatusInfoServices.findDietStatusById(Mockito.anyInt())).thenReturn(followUpDietStatusInfo);\n Mockito.when(followUpDietStatusInfoServices.deleteDietStatus(Mockito.any())).thenReturn(true);\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.delete(URI,1).accept(MediaType.\n \t\tAPPLICATION_JSON)).andReturn();\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\n\n Assert.assertEquals(HttpStatus.OK.value(), mockHttpServletResponse.getStatus());\n\n }", "@SmallTest\n public void testDelete() {\n int result = -1;\n if (this.entity != null) {\n result = (int) this.adapter.remove(this.entity.getId());\n Assert.assertTrue(result >= 0);\n }\n }", "@Test\n void delete() {\n }", "@Test\n void delete() {\n }", "@Test\n public void test_checkin_delete() throws OAuthUnauthorizedException {\n Response response1 = getTrakt().checkin().deleteActiveCheckin();\n assertThat(response1.getStatus()).isEqualTo(204);\n }", "@Test\r\n\tpublic void deleteProductDetails() {\r\n\t\tRestAssured.baseURI = \"http://localhost:9000/products\";\r\n\t\tRequestSpecification request = RestAssured.given();\r\n\t\tJSONObject requestParams = new JSONObject();\r\n\t\trequestParams.put(\"name\", \"Almond\");\r\n\t\trequest.header(\"Content-Type\", \"application/json\");\r\n\t\trequest.body(requestParams.toString());\r\n\t\tResponse response = request.delete(\"/7\");\r\n\t\tSystem.out.println(\"DELETE Responce Body ----->\" + response.asString());\r\n\t\tint statusCode = response.getStatusCode();\r\n\t\tAssert.assertEquals(statusCode, 200);\r\n\r\n\t}", "String delete(String request) throws RemoteException;", "@Test\n\tpublic void testDeleteCorrectParamDeletePb() {\n\t\tfinal String owner = \"1\";\n\t\tfinal Long piiUniqueId = (long) 12345789;\n\t\t\n\t\tPiiDeleteRequest piiRequest = new PiiDeleteRequest();\n\t\tpiiRequest.setOwner(owner);\n\t\tpiiRequest.setPiiUniqueId(piiUniqueId);\n\t\t\n\t\tPiiDeleteResponse piiDeleteResponse = new PiiDeleteResponse();\n\t\tpiiDeleteResponse.setDeleted(false);\n\t\twhen(mPiiService.delete(piiRequest)).thenReturn(piiDeleteResponse);\n\t\t\n\t\tResponse response = piiController.delete(piiRequest);\n\t\t\n\t\tverify(mPiiService).delete(piiRequest);\n\t\tverifyZeroInteractions(mPuidDao);\n\t\tassertEquals(200, response.getStatus());\n\t\t\n\t\tPiiDeleteResponse returnedResponse = (PiiDeleteResponse) response.getEntity();\n\t\tassertFalse(returnedResponse.isDeleted());\n\t}", "@Override\n\tprotected Response doDelete(Long id) {\n\t\treturn null;\n\t}", "LinkedService deleteByIdWithResponse(String id, Context context);", "@Test\n\tpublic void testDeleteIncorrectParam() {\n\n\t\tResponse response = piiController.delete(null);\n\t\t\n\t\tverifyZeroInteractions(mPiiService);\n\t\tverifyZeroInteractions(mPuidDao);\n\t\tassertEquals(400, response.getStatus());\n\t\t\n\t\tObject entity = response.getEntity();\n\t\tassertNull(entity);\n\t}", "@Test\n public void testDeleteFileFound() throws IOException{\n ExcelFile testFile = new ExcelFile();\n Mockito.when(excelService.deleteFile(anyString())).thenReturn(testFile);\n given().accept(\"application/json\").delete(\"/excel/0\").peek().\n then().assertThat()\n .statusCode(200);\n }", "@Test\n public void testFDoTest14973() throws Exception {\n final HttpURLConnection hc = createConnection(\"/ws/dal/Product/1000004\", \"DELETE\");\n hc.connect();\n assertEquals(500, hc.getResponseCode());\n }", "@Test\n public void testDeleteShoppinglistsIdEntriesEntryIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.deleteShoppinglistsIdEntriesEntryIdAction(\"{id}\", \"{entryId}\");\n List<Integer> expectedResults = Arrays.asList(204, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }", "@Test\r\n public void testDelete() {\r\n System.out.println(\"delete\");\r\n String doc = \"\";\r\n IwRepoDAOMarkLogicImplStud instance = new IwRepoDAOMarkLogicImplStud();\r\n boolean expResult = false;\r\n boolean result = instance.delete(doc);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "void deleteByIdWithResponse(String id, UUID clientRequestId, Context context);", "@Test\n public void testDeleteShoppinglistsIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.deleteShoppinglistsIdAction(\"{id}\");\n List<Integer> expectedResults = Arrays.asList(204, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }", "@Test\n\tpublic void testdeleteUser() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tHttpEntity<String> entity = new HttpEntity<String>(null, headers);\n\t\tResponseEntity<String> response = restTemplate.exchange(getRootUrl() + \"/delete-user?id=4\",HttpMethod.GET, entity, String.class);\n\t\tassertEquals(200,response.getStatusCodeValue());\n\t}", "protected abstract void doDelete();", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(2));\n assertNull(dao.getById(2));\n }", "private Delete() {}", "private Delete() {}", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(3));\n assertNull(dao.getById(3));\n }", "@Test\n public void iTestDeleteUser() {\n given()\n .header(\"X-Authorization\", token)\n .delete(\"/users\")\n .then()\n .statusCode(200);\n }", "<K, V, R extends IResponse> R delete(IDeletionRequest<K, V> deletionRequest);", "@Test\n public void testDeleteUser() {\n User testUser = new User();\n testUser.setUserEmail(TEST_EMAIL);\n testUser.setUserPassword(TEST_PASSWORD);\n \n Mockito.doNothing().when(userService).deleteUser((User) Matchers.anyObject());\n \n given().body(testUser).contentType(ContentType.JSON).when()\n .delete(URLPREFIX + \"delete\").then()\n .statusCode(HttpServletResponse.SC_OK)\n .contentType(ContentType.JSON).body(equalTo(\"true\"));\n }", "public void delete()\n {\n call(\"Delete\");\n }", "void deleteByIdWithResponse(String id, Boolean force, Boolean retain, Context context);", "@Override\r\n @Test(expected = UnsupportedOperationException.class)\r\n public void testDeleteVersioned() {\n super.testDeleteVersioned();\r\n }", "@Test\n\tpublic void deleteBook() {\n\t\tRestAssured.baseURI = \"http://216.10.245.166\";\n\t\t given().log().all().queryParam(\"ID\", \"321wergt\")\n\t\t\t\t.header(\"Content-Type\", \"application/json\").when()\n\t\t\t\t.delete(\"/Library/DeleteBook.php\").then().log().all()\n\t\t\t\t.assertThat().statusCode(200);\n\n\t\n\t /*JsonPath js = new JsonPath(response); \n\t String id = js.get(\"ID\");\n\t System.out.println(id);*/\n\t \n\t }", "@Override\n\tpublic ResponseEntity<?> delete(Long id) {\n\t\treturn null;\n\t}", "@Exclude\n public abstract void delete();", "public DeleteItemOutcome deleteItem(DeleteItemSpec spec);", "@Test\n\tpublic void test_delete_user_success(){\n template.delete(REST_SERVICE_URI + \"/\" + getLastUser().getId() + ACCESS_TOKEN + token);\n }", "void deleteByIdWithResponse(String id, Boolean force, Context context);", "@Test\r\n public void testDelete() throws Exception {\r\n bank.removePerson(p2);\r\n assertEquals(bank.viewAllPersons().size(), 1);\r\n assertEquals(bank.viewAllAccounts().size(), 1);\r\n }", "@Test (groups = \"create_post\")\n public void LTest_Delete_Post_success(){\n\n System.out.println(\"Delete PostID# \"+ createdPost);\n System.out.println(\"Request to: \" + resourcePath + \"/\" + createdPost);\n\n given()\n .spec(RequestSpecs.generateToken())\n //.body(testPost)\n .when()\n .delete(resourcePath + \"/\" + createdPost)\n .then()\n .body(\"message\", equalTo(\"Post deleted\"))\n .and()\n .statusCode(200)\n .spec(ResponseSpecs.defaultSpec());\n }", "ResponseEntity deleteById(UUID id);", "void onDELETEFinish(String result, int requestCode, boolean isSuccess);", "@Override\n public DataObjectResponse<T> handleDELETE(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateDELETE(request);\n try\n {\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n if(request.getId() != null)\n {\n T object = objectPersister.retrieve(request.getId());\n if(object != null)\n {\n if(! visibilityFilterMap.get(VisibilityMethod.DELETE).isVisible(request, object))\n return new DefaultDataObjectResponse<>(\n ErrorResponseFactory.unauthorized(\n String.format(AUTHORIZATION_EXCEPTION, object.getCustomerId()), request.getCID()));\n\n objectPersister.delete(request.getId());\n response.add(object);\n }\n }\n return response;\n }\n catch(PersistenceException e)\n {\n return new DefaultDataObjectResponse<>(ErrorResponseFactory.badRequest(\n new BadRequestException(String.format(UNABLE_TO_DELETE_EXCEPTION, request.getId()), e), request.getCID()));\n }\n }", "@Test\n public void hTestDeletePlaylist() {\n given()\n .header(\"X-Authorization\", token)\n .delete(\"/playlists/\" + playlistId)\n .then()\n .statusCode(200);\n }", "public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}", "void deleteByIdWithResponse(String id, String referer, Context context);", "@Test\n @OperateOnDeployment(\"server\")\n public void shouldFailToGetResourceWhenIncorrectScopeForEndpoint() {\n given().header(\"Authorization\", \"Bearer access_token\").expect().statusCode(403).when().delete(\n getBaseTestUrl() + \"/1/category/delete/json/1\");\n }", "@Override\n\tpublic void delete(String id) throws Exception {\n\n\t}", "public void deleteMessageTest(){\n\t\tint messageId = 102;\n\t\tgiven()\n\t\t\t.pathParam(\"messageId\", messageId)\n\t\t.when()\n\t\t\t.delete(\"/message/{messageId}\")\n\t\t.then()\n\t\t\t.statusCode(200)\n\t\t\t.body(\"message\", is(\"Message Deleted \"+messageId));\n\t}", "@DELETE\n @Path(\"/remove\")\n public void delete() {\n System.out.println(\"DELETE invoked\");\n }", "void delete(UnsubscribeRequest request, ResultCapture<Void> extractor);", "@Test\n public void deletePerson_ShouldReturnUpdatedRecordAnd_NO_CONTENT() {\n ResponseEntity<Person> response = personController.deletePerson(3L);\n\n //assert\n Mockito.verify(personService).deletePerson(3L);\n assertEquals(null, response.getBody());\n assertEquals(HttpStatus.NO_CONTENT, response.getStatusCode());\n }", "@Test\n void deleteItem() {\n }", "void doDelete(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Test \n public void testReperimentoNumeroInesistente() {\n Response rDelete = rubrica.path(nome+cognome).path(nome+cognome).request().delete();\n \n // Verifica che la risposta sia 404 Not Found\n assertEquals(Response.Status.NOT_FOUND.getStatusCode(),rDelete.getStatus());\n }", "private void assertRemoved()\n\t{\n\t\ttry\n\t\t{\n\t\t\ttestController.getContentTypeDefinitionVOWithId(testDefinition.getId());\n\t\t\tfail(\"The ContentTypeDefinition was not deleted\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{ /* expected */ }\n\t}", "@After\n public void tearDown() throws IOException {\n HttpRequest.Builder builder =\n HttpRequest.builder(HttpMethod.DELETE, config.resolveURL(\"tethering/connections/xyz\"));\n\n HttpResponse response = HttpRequests.execute(builder.build());\n int responseCode = response.getResponseCode();\n Assert.assertTrue(\n responseCode == HttpResponseStatus.OK.code()\n || responseCode == HttpResponseStatus.NOT_FOUND.code());\n }", "void delete() throws ClientException;" ]
[ "0.7789594", "0.76098746", "0.75940865", "0.7566125", "0.7532109", "0.7277919", "0.724506", "0.7177871", "0.7175375", "0.71524704", "0.708374", "0.703148", "0.7012429", "0.6920875", "0.6853547", "0.6832759", "0.68249345", "0.6806977", "0.6806615", "0.6806615", "0.6806615", "0.6806615", "0.6806615", "0.67974716", "0.6764722", "0.67581236", "0.6747387", "0.6743678", "0.6742011", "0.6735089", "0.67284214", "0.6724765", "0.6689682", "0.668827", "0.66599506", "0.6657508", "0.66561186", "0.66351944", "0.6609559", "0.65837", "0.65837", "0.6579252", "0.6570906", "0.65630805", "0.6552157", "0.6525693", "0.6518402", "0.6506287", "0.6506287", "0.6499523", "0.6498736", "0.6486982", "0.6486882", "0.6485843", "0.64753115", "0.6469778", "0.6462456", "0.646072", "0.6459634", "0.6446414", "0.64442873", "0.6442237", "0.64331365", "0.64290655", "0.64209163", "0.6414429", "0.6414429", "0.6411205", "0.64094895", "0.6401248", "0.63899785", "0.6389104", "0.6388717", "0.6386849", "0.6384188", "0.63831294", "0.6380341", "0.6367087", "0.63620436", "0.63611484", "0.636108", "0.6346929", "0.63444793", "0.6343323", "0.63390744", "0.63239276", "0.63207793", "0.631058", "0.6306654", "0.6301399", "0.62962025", "0.62939614", "0.6292905", "0.62925667", "0.62912315", "0.62906337", "0.62652934", "0.6249949", "0.6249406", "0.6248657" ]
0.67448723
27
JUNIT setUp method, which sets the default client Id to "theRegistrar" and initializes the EPPNamestoreExtMapFactory with the EPPCodec.
protected void setUp() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setUp() {\n try {\n generator = PrefixedIdentifierGenerator.getInstance();\n } catch (NoSuchAlgorithmException e) {\n fail(e.toString());\n }\n }", "@Override\r\n protected void setUp() throws Exception {\r\n super.setUp();\r\n\r\n userClientPK = new UserClientPK();\r\n }", "protected void setUp() {\n //Clear all namespace in the ConfigManager\n TestHelper.resetConfig();\n }", "protected void setUp()\r\n {\r\n /* Add any necessary initialization code here (e.g., open a socket). */\r\n }", "protected void setUp()\n {\n /* Add any necessary initialization code here (e.g., open a socket). */\n }", "protected void setUp() throws Exception {\n super.setUp();\n this.XmlRpcServiceRouter = new XmlRpcServiceRouter();\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\tif (broker == null) {\r\n\t\t\tbroker = new PSBrokerBuilder().build();\r\n\t\t\tintSub = new IntegerSubscriber();\r\n\t\t\tunreadSub = new UnreadMessageSubscriber();\r\n\t\t\tpIntSub = new PredicatedIntegerSubscriber();\r\n\t\t}\r\n\t}", "public void setUp()\n {\n empl = new SalariedEmployee(\"romeo\", 25.0);\n }", "protected void setUp() throws Exception {\n\n super.setUp();\n OpenXpertya.startup(true);\n }", "protected void setUp() throws Exception {\r\n TestHelper.loadConfig();\r\n manager = new AuctionManagerImpl();\r\n session.getServletContext().setAttribute(KeyConstants.AUCTION_MANAGER_KEY, manager);\r\n handler = new LeadingBidsHandler(\"aid\", \"key\");\r\n }", "@BeforeEach\n\tpublic void setup() throws Exception {\n\t\tGDACoreActivator activator = new GDACoreActivator(); // Make an instance to call method that sets static field!\n\t\tactivator.start(mockContext); // Inject the mock\n\n\t\tosgiServiceBeanHandler = new OsgiServiceBeanHandler();\n\t}", "protected void setUp()\n {\n typeResolver = new TypeResolver();\n }", "@BeforeEach\n void setUp() throws Exception {\n DataStoreContext dataStoreContext = new DataStoreContextImpl();\n dataBroker = dataStoreContext.getDataBroker();\n deviceTransactionManager = mock(DeviceTransactionManager.class);\n portMappingVersion121 = new PortMappingVersion121(dataBroker, deviceTransactionManager);\n }", "@Before\n public void initialize() throws BeansException, MalformedURLException {\n wsClient = EasyMock.createMock(CaAERSParticipantServiceWSClient.class);\n xsltTransformer = EasyMock.createMock(XSLTTransformer.class);\n caAERSRegistrationServiceInvocationStrategy = new CaAERSRegistrationServiceInvocationStrategy(xsltTransformer,\n wsClient, RETRY_COUNT);\n caAERSUpdateRegistrationServiceInvocationStrategy = new CaAERSUpdateRegistrationServiceInvocationStrategy(\n xsltTransformer, wsClient, RETRY_COUNT);\n }", "@Before\n public void setup() {\n endpoint = new Endpoint();\n endpoint.setKey(1);\n endpoint.setUrl(URI.create(\"http://localhost/nmr\"));\n\n // Installation, synchronized against\n installation = new Installation();\n installation.setType(InstallationType.TAPIR_INSTALLATION);\n installation.addEndpoint(endpoint);\n\n // Populated Dataset\n dataset = prepareDataset();\n\n // RegistryUpdater, using mocked web service client implementation\n updater = new RegistryUpdater(datasetService, metasyncHistoryService);\n }", "@Before\n public void setUp() throws Exception\n {\n Configuration config = ConfigurationTest.getTestConfiguration();\n populateSia1Surveys(config);\n configRegistry.switchConfiguration(config, false);\n }", "protected void setUp() throws Exception {\r\n super.setUp();\r\n\r\n FailureTestHelper.clearNamespaces();\r\n ConfigManager.getInstance().add(\"DBConnectionFactory_Config.xml\");\r\n\r\n // TODO If real provided should load namespace.\r\n dbConnectionFactory = new DBConnectionFactoryImpl(\"com.topcoder.db.connectionfactory.DBConnectionFactoryImpl\");\r\n\r\n connName = \"informix\";\r\n\r\n idGen = \"DbCompanyDAO\";\r\n\r\n contactManager = (ContactManager) mock(ContactManager.class).proxy();\r\n contactManagerNamspace = ContactManager.class.getName();\r\n addressManager = (AddressManager) mock(AddressManager.class).proxy();\r\n addressManagerNamspace = AddressManager.class.getName();\r\n auditManager = (AuditManager) mock(AuditManager.class).proxy();\r\n auditManagerNamspace = AuditManager.class.getName();\r\n\r\n dbCompanyDAO = new DbCompanyDAO(dbConnectionFactory, connName, idGen, contactManager, addressManager,\r\n auditManager);\r\n }", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "@BeforeEach\n void setupBeforeEach() {\n this.registry = new SimplePacketRegistry();\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tsubGen = new SubsetGenerator();\n\t}", "public void setUp() {\n\n\t}", "protected void setUp() {\n config = new ContestConfig();\n }", "@Before\n\tpublic void setup() {\n\n\t\tclient = ClientBuilder.newClient();\n\n\t}", "@Override\n public void setUp() {\n try {\n testEngine = MockupSAMLEngine.getInstance();\n } catch (SAMLEngineException e) {\n e.log();\n fail(e.toString());\n }\n }", "@Before\r\n public void setUp() {\r\n clientAuthenticated = new MockMainServerForClient();\r\n }", "@Before\n\tpublic void setUp() {\n\t\tgateInfoDatabase = new GateInfoDatabase();\t\t\n\t}", "protected void setUp()\n {\n }", "protected void setUp()\n {\n }", "public void setUp() {\n _notifier = new EventNotifier();\n _doc = new DefinitionsDocument(_notifier);\n }", "@Before\n\tpublic void setUp() throws Exception {\n\n\t\tnew StrictExpectations() {{\n\t\t\tnew UDDINaming(anyString);\n\n\t\t\tuddi.list(\"UpaTransporter%\");\n\t\t\tresult = _endpoints;\n\n\t\t\tnew TransporterClient(\"Broker\");\n\n\t\t\tclient.connectToTransporterByURI(anyString);\n\t\t\tclient.ping();\n\t\t\tresult = \"UpaTransporter1\";\n\t\t}};\n\n\t\tbroker = new BrokerPort();\n\t}", "@BeforeClass\n public static void classSetUp() {\n printTestClassHeader();\n uri = Const.ActionURIs.ADMIN_INSTRUCTORACCOUNT_ADD;\n // removeAndRestoreTypicalDataInDatastore();\n }", "@Override\n public void setUp() {\n }", "@BeforeMethod\n void setup() throws Exception {\n bkEnsemble = new LocalBookkeeperEnsemble(3, 0, () -> 0);\n bkEnsemble.start();\n // Start broker\n ServiceConfiguration config = new ServiceConfiguration();\n config.setLoadManagerClassName(ModularLoadManagerImpl.class.getName());\n config.setClusterName(\"use\");\n config.setWebServicePort(Optional.of(0));\n config.setMetadataStoreUrl(\"zk:127.0.0.1:\" + bkEnsemble.getZookeeperPort());\n\n config.setAdvertisedAddress(\"localhost\");\n config.setBrokerShutdownTimeoutMs(0L);\n config.setLoadBalancerOverrideBrokerNicSpeedGbps(Optional.of(1.0d));\n config.setBrokerServicePort(Optional.of(0));\n config.setBrokerServicePortTls(Optional.of(0));\n config.setWebServicePortTls(Optional.of(0));\n pulsar = new PulsarService(config);\n pulsar.start();\n }", "@Override\n public void setUp() throws Exception {\n super.setUp();\n _xmlFactory = new XmlFactory();\n }", "@Before\n public void setUp() throws Exception {\n runtimeFeature.registerHandler(deployHandler);\n // wait indexing of /default-domain as we need to delete it in setUpData\n waitForIndexing();\n setUpBinding(coreSession);\n setUpData(coreSession);\n waitForIndexing();\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\t/*\n\t\t * AbstractApplicationContext root = new ClassPathXmlApplicationContext(\n\t\t * \"classpath*:stc/protocol/mixedCodec.xml\"); tlvBeanDecoder =\n\t\t * (BeanMixedTLVDecoder) root.getBean(\"tlvBeanDecoder\"); tlvBeanEncoder\n\t\t * = (BeanMixedTLVEncoder) root.getBean(\"tlvBeanEncoder\");\n\t\t */\n\n\t}", "@Override\n public void setUp() throws Exception {}", "protected void setUp() {\n\t\tif (!Message.configure(\"wordsweeper.xsd\")) {\r\n\t\t\tfail (\"unable to configure protocol\");\r\n\t\t}\r\n\t\t\r\n\t\t// prepare client and connect to server.\r\n\t\tmodel = new Model();\r\n\t\t\r\n\t\t\r\n\t\tclient = new Application (model);\r\n\t\tclient.setVisible(true);\r\n\t\t\r\n\t\t// Create mockServer to simulate server, and install 'obvious' handler\r\n\t\t// that simply dumps to the screen the responses.\r\n\t\tmockServer = new MockServerAccess(\"localhost\");\r\n\t\t\r\n\t\t// as far as the client is concerned, it gets a real object with which\r\n\t\t// to communicate.\r\n\t\tclient.setServerAccess(mockServer);\r\n\t}", "protected void setUp() throws Exception {\n super.setUp();\n clientAddress = getNonAnonymousClientAddress();\n responseProcessor = Endpoint.create(new NonAnonymousRespProcessor(respMsgExchanger));\n responseProcessor.publish(clientAddress);\n }", "@Before\n public void startUp() {\n registry = new DeserializerRegistryImpl();\n registry.init();\n }", "protected void setUp() {\n\n }", "protected void setUp() throws Exception {\r\n super.setUp();\r\n UnitTestHelper.addConfig(CONFIG_FILE);\r\n\r\n defaultDBUserRetrieval = new MockDBUserRetrieval(NAMESPACE);\r\n defaultDBProjectRetrieval = new MockDBProjectRetrieval(NAMESPACE);\r\n\r\n // Retrieves DBConnectionFactory.\r\n defaultConnection = ((MockDBUserRetrieval) defaultDBUserRetrieval).getConnection();\r\n\r\n cleanupDatabase();\r\n\r\n // Inserts.\r\n UnitTestHelper.insertIntoComponentCataLog(defaultConnection);\r\n UnitTestHelper.insertIntoComponentVersions(defaultConnection);\r\n UnitTestHelper.insertIntoCompForumXref(defaultConnection);\r\n UnitTestHelper.insertIntoTechnologyTypes(defaultConnection);\r\n UnitTestHelper.associateComponentTechnologies(defaultConnection);\r\n\r\n UnitTestHelper.insertIntoEmail(defaultConnection);\r\n UnitTestHelper.insertIntoUser(defaultConnection);\r\n UnitTestHelper.insertIntoUserRating(defaultConnection);\r\n UnitTestHelper.insertIntoUserReliability(defaultConnection);\r\n }", "@SuppressWarnings(\"serial\")\n @Before\n public void setUp() throws Exception {\n testInstance = new ClientsPrepopulatingBaseAction() {\n };\n }", "protected void setUp() throws Exception {\n TestHelper.loadSingleXMLConfig(TestHelper.NAMESPACE, TestHelper.CONFIG_FILE);\n propertiesPanel = new PropertiesPanel(new UMLModelManager());\n\n panel = new ConcurrencyPropertyPanel(propertiesPanel);\n }", "public void setUp() {\n entity = new Entity(BaseCareerSet.FIGHTER);\n }", "protected void setUp() throws Exception {\r\n super.setUp();\r\n FailureTestHelper.loadConfig();\r\n handler = new UnlockedDomainsHandler(\"id1\", \"id2\");\r\n }", "@Override\r\n\tpublic void setUp() {\n\r\n\t}", "@Before\n public void setUp()\n {\n clientIn1 = new ClientInformation();\n clientIn1.setReaderToArray();\n clientIn1.printClientList();\n clientIn1.setAlphabetically();\n }", "@BeforeEach\n public void setUp() {\n messageBus = MessageBusImpl.getInstance();\n broadcastReceiver = new MSreceiver(\"broadcastReceiver\", true);\n broadcastSender = new MSsender(\"broadcastSender\", new String[]{\"broadcast\"});\n eventReceiver1 = new MSreceiver(\"eventReceiver1\", false);\n eventReceiver2 = new MSreceiver(\"eventReceiver2\", false);\n eventSender = new MSsender(\"eventSender\", new String[]{\"event\"});\n broadcastSender.initialize();\n broadcastReceiver.initialize();\n eventSender.initialize();\n eventReceiver1.initialize();\n eventReceiver2.initialize();\n\n }", "@Before\r\n\tpublic void setUp() {\r\n\t\t//client = new HttpSolrServer(\"http://127.0.0.1:8983/solr/biblo\");\r\n\t\tclient = new HttpSolrServer(\"http://192.168.1.34:8983/solr/collection3_shard1_replica1\");\r\n\t}", "@Before\n\t public void setUp() {\n\t }", "@BeforeEach\n\tvoid setUp() throws Exception {\n\t\tnameLib = new LibraryGeneric<String>();\n\t\tnameLib.add(9780374292799L, \"Thomas L. Friedman\", \"The World is Flat\");\n\t\tnameLib.add(9780330351690L, \"Jon Krakauer\", \"Into the Wild\");\n\t\tnameLib.add(9780446580342L, \"David Baldacci\", \"Simple Genius\");\n\n\t\tphoneLib = new LibraryGeneric<PhoneNumber>();\n\t\tphoneLib.add(9780374292799L, \"Thomas L. Friedman\", \"The World is Flat\");\n\t\tphoneLib.add(9780330351690L, \"Jon Krakauer\", \"Into the Wild\");\n\t\tphoneLib.add(9780446580342L, \"David Baldacci\", \"Simple Genius\");\n\t}", "protected void setUp() throws Exception {\r\n super.setUp();\r\n this.testedInstances = new AbstractPhaseHandlerSubclass[1];\r\n this.testedInstances[0] = new AbstractPhaseHandlerSubclass(TestDataFactory.NAMESPACE);\r\n }", "@Before\n public void setup() throws Exception {\n mTestUtil.overrideAllowlists(true);\n // We need to turn the Consent Manager into debug mode\n mTestUtil.overrideConsentManagerDebugMode(true);\n mTestUtil.overrideMeasurementKillSwitches(true);\n mTestUtil.overrideAdIdKillSwitch(true);\n mTestUtil.overrideDisableMeasurementEnrollmentCheck(\"1\");\n mMeasurementManager =\n MeasurementManagerFutures.from(ApplicationProvider.getApplicationContext());\n\n // Put in a short sleep to make sure the updated config propagates\n // before starting the tests\n Thread.sleep(100);\n }", "protected void setUp() throws Exception {\n super.setUp();\n\n TestHelper.loadConfiguration(\"config-InvoiceManagerDelegate.xml\");\n\n MockContextFactory.setAsInitial();\n\n context = new InitialContext();\n\n // creates an instance of the MockContainer\n MockContainer mockContainer = new MockContainer(context);\n\n MockUserTransaction mockTransaction = new MockUserTransaction();\n context.rebind(\"javax.transaction.UserTransaction\", mockTransaction);\n\n // creates deployment descriptor of our sample bean. MockEjb does not support XML descriptors.\n SessionBeanDescriptor invoiceManagerLocalDescriptor =\n new SessionBeanDescriptor(\"invoiceSessionBean\", InvoiceManagerLocalHome.class,\n InvoiceManagerLocal.class, InvoiceSessionBean.class);\n // Deploy operation simply creates Home and binds it to JNDI\n mockContainer.deploy(invoiceManagerLocalDescriptor);\n\n InvoiceManagerLocalHome sampleHome = (InvoiceManagerLocalHome) context.lookup(\"invoiceSessionBean\");\n\n InvoiceManagerLocal sampleService = sampleHome.create();\n\n invoiceSessionBean = (InvoiceSessionBean) ((EjbBeanAccess) sampleService).getBean();\n\n }", "@Override\r\n\tprotected void setUp() throws Exception {\n\t\tsuper.setUp();\r\n\t\timpl=new ProductDAOImpl();\r\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t\tcatalogTestPersister = persisterFactory.getCatalogTestPersister();\n\t\tsettingsTestPersister = persisterFactory.getSettingsTestPersister();\n\t\ttaxCode = persisterFactory.getTaxTestPersister().getTaxCode(TaxTestPersister.TAX_CODE_GOODS);\n\t}", "@Override\n protected void setUp() throws Exception {\n brokerService = new BrokerService();\n LevelDBStore adaptor = new LevelDBStore();\n brokerService.setPersistenceAdapter(adaptor);\n brokerService.deleteAllMessages();\n\n // A small max page size makes this issue occur faster.\n PolicyMap policyMap = new PolicyMap();\n PolicyEntry pe = new PolicyEntry();\n pe.setMaxPageSize(1);\n policyMap.put(new ActiveMQQueue(\">\"), pe);\n brokerService.setDestinationPolicy(policyMap);\n\n brokerService.addConnector(ACTIVEMQ_BROKER_BIND);\n brokerService.start();\n\n ACTIVEMQ_BROKER_URI = brokerService.getTransportConnectors().get(0).getPublishableConnectString();\n destination = new ActiveMQQueue(getName());\n }", "protected void setUp() throws Exception {\n super.setUp();\n }", "protected void setUp() throws Exception {\n }", "protected void setUp() throws Exception {\n \n }", "@Before\n public void initTest() {\n AccountCapsule ownerAccountFirstCapsule =\n new AccountCapsule(\n ByteString.copyFromUtf8(ACCOUNT_NAME_FIRST),\n ByteString.copyFrom(ByteArray.fromHexString(OWNER_ADDRESS_FIRST)),\n AccountType.Normal,\n 10000_000_000L);\n AccountCapsule ownerAccountSecondCapsule =\n new AccountCapsule(\n ByteString.copyFromUtf8(ACCOUNT_NAME_SECOND),\n ByteString.copyFrom(ByteArray.fromHexString(OWNER_ADDRESS_SECOND)),\n AccountType.Normal,\n 20000_000_000L);\n\n dbManager.getAccountStore()\n .put(ownerAccountFirstCapsule.getAddress().toByteArray(), ownerAccountFirstCapsule);\n dbManager.getAccountStore()\n .put(ownerAccountSecondCapsule.getAddress().toByteArray(), ownerAccountSecondCapsule);\n\n dbManager.getDynamicPropertiesStore().saveLatestBlockHeaderTimestamp(1000000);\n dbManager.getDynamicPropertiesStore().saveLatestBlockHeaderNumber(10);\n dbManager.getDynamicPropertiesStore().saveNextMaintenanceTime(2000000);\n }", "protected void setUp() throws Exception {\n encoder = new MD5Encoder();\n }", "protected void setUp() throws Exception {\n }", "@Before\n public void setUp() {\n \tserver = super.populateTest();\n }", "@BeforeClass\n\tpublic static void oneTimeSetUp() {\n\t\tjv1.setCompanyName(\"UpaTransporter1\");\n\t\tString identifier = \"Lisboa\" + \"T\" + \"Leiria\" + \"ID\" + \"1\";\n\t\tjv1.setJobIdentifier(identifier);\n\t\tjv1.setJobOrigin(\"Leiria\");\n\t\tjv1.setJobDestination(\"Lisboa\");\n\t\tjv1.setJobPrice(50);\n\t\tjv1.setJobState(JobStateView.PROPOSED);\n\n\t\tjv2.setCompanyName(\"UpaTransporter1\");\n\t\tString identifier1 = \"Leiria\" + \"T\" + \"Coimbra\" + \"ID\" + \"2\";\n\t\tjv2.setJobIdentifier(identifier1);\n\t\tjv2.setJobOrigin(\"Leiria\");\n\t\tjv2.setJobDestination(\"Coimbra\");\n\t\tjv2.setJobPrice(15);\n\t\tjv2.setJobState(JobStateView.PROPOSED);\n\n\t\t_endpoints.add(\"String for first transporter\");\n\t}", "@Before\r\n\tpublic void setup() {\r\n\t\t\r\n\t\tcustFact = new CustomerFactory();\t\t\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t}", "@BeforeEach\n void setUp() {\n ramenMapService = new RamenMapService();\n ramenMapService.save(Ramen.builder().id(OWNERID).build());\n }", "@BeforeClass\n\tpublic static void setUpBeforeClass() throws Exception {\n\t\tmapGraph = new MapGraph();\n\t}", "@BeforeEach\n public void setUp() throws Exception {\n this.mapping = new ObjectMapping();\n }", "@Before\n public void init() throws MxException {\n InjectorContainer.get().injectMembers( this );\n InjectorContainer.set( iInjector );\n testTaskDefinitionResource.setEJBContext( ejbContext );\n\n setAuthorizedUser( AUTHORIZED );\n setUnauthorizedUser( UNAUTHORIZED );\n\n initializeTest();\n\n Mockito.when( ejbContext.getCallerPrincipal() ).thenReturn( principal );\n Mockito.when( principal.getName() ).thenReturn( AUTHORIZED );\n constructTaskDefinitions();\n }", "@Before\n\t@SuppressWarnings(\"unchecked\")\n\tpublic void setUp() {\n\t\tfactoryBean = new Neo4jRepositoryFactoryBean(ContactRepository.class);\n\t\tfactoryBean.setSession(session);\n\t\tfactoryBean.setMappingContext(context);\n\t}", "@Before\n\tpublic void setUp() {\n\t\tm=new MoteurRPN();\n\t}", "@Before\n\tpublic void setUp() {\n\n\t\t/*\n\t\t * Set up the mapper test harness.\n\t\t */\n\t\tHealthExpendituresMapper mapper = new HealthExpendituresMapper();\n\t\tmapDriver = new MapDriver<LongWritable, Text, Text, Text>();\n\t\tmapDriver.setMapper(mapper);\n\n\t\t/*\n\t\t * Set up the reducer test harness.\n\t\t */\n\t\tHealthStatsReducer reducer = new HealthStatsReducer();\n\t\treduceDriver = new ReduceDriver<Text, Text, Text, Text>();\n\t\treduceDriver.setReducer(reducer);\n\n\t\t/*\n\t\t * Set up the mapper/reducer test harness.\n\t\t */\n\t\tmapReduceDriver = new MapReduceDriver<LongWritable, Text, Text, Text, Text, Text>();\n\t\tmapReduceDriver.setMapper(mapper);\n\t\tmapReduceDriver.setReducer(reducer);\n\t}", "@Before\n public void setUp() {\n start(fakeApplication(inMemoryDatabase(), fakeGlobal()));\n }", "@BeforeClass\n public static void setUpBeforeClass() {\n TestNetworkClient.reset();\n context = ApplicationProvider.getApplicationContext();\n dataStorage = TestDataStorage.getInstance(context);\n ApplicationSessionManager.getInstance().startSession();\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tscenario = getTac().useScenario(SimpleStoreScenario.class);\n\t\tcatalogPersister = getTac().getPersistersFactory().getCatalogTestPersister();\n\t\ttaxCode = getTac().getPersistersFactory().getTaxTestPersister().getTaxCode(TaxTestPersister.TAX_CODE_GOODS);\n\t}", "protected void setUp() throws Exception {\n super.setUp();\n FailureTestHelper.loadConfig();\n FailureTestHelper.loadData();\n dao = new SQLServerGameDataDAO(\"com.orpheus.game.persistence.SQLServerGameDataDAO\");\n }", "@Before\n\tpublic void init() {\n\t\tprofesseurServiceEmp = new ProfesseurServiceEmp();\n\t}", "@Override\r\n protected void setUp() {\r\n // nothing yet\r\n }", "@Before\n \tpublic void init() throws SimpleDBException {\n assertNotNull(applicationContext);\n handlerAdapter = applicationContext.getBean(\"handlerAdapter\", HandlerAdapter.class);\n this.testClient = this.createTestClient();\n \t\trefreshRequestAndResponse();\n \t}", "@BeforeClass\n\tpublic static void setUp() {\n\t\tsbu = Sbu.getUniqueSbu(\"SBU\");\n\t\tbiblio = new Biblioteca(\"Biblioteca\", \"viaBteca\", sbu);\n\t\tmanager = new ManagerSistema(\"codiceFiscaleManager\", \"NomeManager\", \"CognomeManager\", \n\t\t\t\t\"IndirizzoManager\", new Date(), \"34012899967\", \n\t\t\t\t\"[email protected]\", \"passwordM\", sbu);\n\t\tbibliotecario = new Bibliotecario(\"codiceFiscaleB1\", \"nomeB1\", \"cognomeB1\", \"indirizzoB1\", \n\t\t\t\tnew Date(), \"340609797\", \"[email protected]\", \n\t\t\t\t\"passwordB1\", biblio);\n\t}", "protected void setUp() throws Exception {\n\t\tDummyListener.BIND_CALLS = 0;\r\n\t\tDummyListener.UNBIND_CALLS = 0;\r\n\r\n\t\tDummyListenerServiceSignature.BIND_CALLS = 0;\r\n\t\tDummyListenerServiceSignature.UNBIND_CALLS = 0;\r\n\r\n\t\tDummyListenerServiceSignature2.BIND_CALLS = 0;\r\n\t\tDummyListenerServiceSignature2.UNBIND_CALLS = 0;\r\n\r\n\t\tBundleContext bundleContext = new MockBundleContext() {\r\n\t\t\t// service reference already registered\r\n\t\t\tpublic ServiceReference[] getServiceReferences(String clazz, String filter) throws InvalidSyntaxException {\r\n\t\t\t\treturn new ServiceReference[] { new MockServiceReference(new String[] { Cloneable.class.getName() }) };\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tappContext = new GenericApplicationContext();\r\n\t\tappContext.getBeanFactory().addBeanPostProcessor(new BundleContextAwareProcessor(bundleContext));\r\n\t\tappContext.setClassLoader(getClass().getClassLoader());\r\n\r\n\t\tXmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(appContext);\r\n\t\t// reader.setEventListener(this.listener);\r\n\t\treader.loadBeanDefinitions(new ClassPathResource(\"osgiReferenceNamespaceHandlerTests.xml\", getClass()));\r\n\t\tappContext.refresh();\r\n\t}", "@BeforeClass\n public static void setUp() {\n CustomRateProvider crp = new CustomRateProvider();\n CustomServiceProvider csp = new CustomServiceProvider(crp);\n Bootstrap.init(csp);\n }", "@Before\r\n public void setUp() throws Exception {\n externalService = new HelloWorldServiceLauncher();\r\n externalService.createService();\r\n \r\n // Start the SCA contribution\r\n node = NodeFactory.newInstance().createNode(new Contribution(\"java-first\", \"../contribution-callback-promotion/target/itest-ws-contribution-callback-promotion.jar\"));\r\n node.start();\r\n \r\n // start the external client\r\n try {\r\n externalClient = new HelloWorldClientLauncher();\r\n externalClient.createClient();\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n throw ex;\r\n }\r\n }", "@BeforeClass\n public static void setUp() {\n revContent = RevContent.builder().build();\n Token token = new Token();\n token.setAccessToken(\"fd2fbd63435b7f80fb1d7d5f1b1841c16fe70d2c\");\n auth = new Authentication(null, token);\n objectMapper = SerializationMapperCreator.createObjectMapper(new SerializationConfig());\n }", "@Override\n public void before() throws Exception {\n zkTestServer = new TestingServerStarter().start();\n String connectionString = zkTestServer.getConnectString();\n\n //Initialize ZK client\n if (sessionTimeoutMs == 0 && connectionTimeoutMs == 0) {\n client = CuratorFrameworkFactory.newClient(connectionString, retryPolicy);\n } else {\n client = CuratorFrameworkFactory.newClient(connectionString, sessionTimeoutMs, connectionTimeoutMs, retryPolicy);\n }\n client.start();\n storeClient = StoreClientFactory.createZKStoreClient(client);\n }", "@BeforeClass\r\n\tpublic static void setUp() {\n\t\tboard = Board.getInstance();\r\n\t\t// set the file names to use my config files\r\n\t\tboard.setConfigFiles(\"Board_Layout.csv\", \"ClueRooms.txt\", \"players_test.txt\", \"cards.txt\");\t\t\r\n\t\t// Initialize will load BOTH config files \r\n\t\tboard.initialize();\r\n\t}", "@BeforeClass\r\n public static void classSetUp() {\r\n sdebug(TEST_NAME, \"In setup\");\r\n initialEmf = lookupEntityManagerFactory(TEST_NAME, PERSISTENCE_UNIT_UNDER_TEST, ctx);\r\n sdebug(TEST_NAME, \"Got EMF - \" + initialEmf);\r\n emfb = lookupEntityManagerFactoryBuilder(TEST_NAME, PERSISTENCE_UNIT_UNDER_TEST, ctx);\r\n sdebug(TEST_NAME, \"Got EMFBuilder - \" + emfb);\r\n }", "@Before\n public void setUp()\n {\n m_instance = ConversationRepository.getInstance();\n m_fileSystem = FileSystem.getInstance();\n }", "@Before\r\n\t public void setUp(){\n\t }", "protected void setUp() throws Exception {\r\n FailureHelper.loadConfigs();\r\n searcher = new RegexGroupSearcher(FailureHelper.getFileSystemXMLRegistry());\r\n }", "@Before\n public void setUp() {\n e1 = new Employee(\"Pepper Potts\", 16.0, 152);\n e2 = new Employee(\"Nancy Clementine\", 22.0, 140);\n\n }", "@Before\n public void init(){\n mockClient = MockWebServiceClient.createClient(applicationContext);\n }", "@Before\n public void init(){\n mockClient = MockWebServiceClient.createClient(applicationContext);\n }", "@Override\n @Before\n protected void setUp() {\n lexicon = new XMLLexicon();\n this.phraseFactory = new NLGFactory(this.lexicon);\n this.realiser = new Realiser();\n }", "@Before\n\tpublic void setUp() {\n\t}", "@Override\r\n\tprotected void setup() {\n\t\tgetContentManager().registerLanguage(codec);\r\n\t\tgetContentManager().registerOntology(ontology);\r\n\t\t\r\n\t\tObject[] args = getArguments();\r\n\t\tif(args != null && args.length > 0) {\r\n\t\t\tbroker = (Broker)args[0];\r\n\t\t} else {\r\n\t\t\tbroker = new Broker(\"Broker\");\r\n\t\t}\r\n\t\t\r\n\t\tProgramGUI.getInstance().printToLog(broker.hashCode(), getLocalName(), \"created\", Color.GREEN.darker());\r\n\t\t\r\n\t\t// Register in the DF\r\n\t\tDFRegistry.register(this, BROKER_AGENT);\r\n\t\t\r\n\t\tsubscribeToRetailers();\r\n\t\tquery();\r\n\t\tpurchase();\r\n\t}", "@BeforeClass\n\t\tpublic static void setUp() {\n\t\t\tboard = Board.getInstance();\n\t\t\t// set the file names to use my config files\n\t\t\tboard.setConfigFiles(\"ourConfigFiles/GameBoard.csv\", \"ourConfigFiles/Rooms.txt\");\t\t\n\t\t\t// Initialize will load BOTH config files \n\t\t\tboard.setCardFiles(\"ourConfigFiles/Players.txt\", \"ourConfigFiles/Weapons.txt\");\t\t\n\t\t\t// Initialize will load BOTH config files \n\t\t\tboard.initialize();\n\t\t}", "@Before public void setUp() { }" ]
[ "0.65902925", "0.64822274", "0.6407881", "0.6405681", "0.6368009", "0.6337052", "0.6265793", "0.62432915", "0.61996305", "0.61894387", "0.6172135", "0.6118771", "0.61075616", "0.6095369", "0.6090246", "0.6083787", "0.608233", "0.6068306", "0.6060615", "0.6042498", "0.602499", "0.60165155", "0.6002005", "0.59973526", "0.59964734", "0.5991095", "0.597646", "0.597646", "0.59727335", "0.59637004", "0.59539354", "0.59531444", "0.59468347", "0.5946788", "0.5945758", "0.5944069", "0.5942343", "0.59376407", "0.5937409", "0.59351754", "0.5934781", "0.5931113", "0.5928519", "0.5922553", "0.59170187", "0.591426", "0.5892912", "0.5890458", "0.58829606", "0.5882827", "0.5875902", "0.58698785", "0.5865549", "0.58648145", "0.5854384", "0.5847169", "0.58467287", "0.5839941", "0.58374244", "0.58270895", "0.58251065", "0.5816126", "0.5808249", "0.58075005", "0.57876563", "0.57858735", "0.57805413", "0.5778123", "0.5775179", "0.57730126", "0.5767553", "0.57498795", "0.5739184", "0.5736234", "0.57329696", "0.57312566", "0.5722337", "0.57222426", "0.5703339", "0.5696752", "0.5692019", "0.5691093", "0.56873107", "0.56836194", "0.56736887", "0.56701475", "0.5670032", "0.5668598", "0.5667907", "0.5666782", "0.5664315", "0.5664305", "0.566207", "0.5660812", "0.5660812", "0.5659786", "0.5659567", "0.56583744", "0.56562644", "0.56544983" ]
0.6220438
8
JUNIT tearDown, which currently does nothing.
protected void tearDown() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void tearDown() {\n // empty\n }", "protected void tearDown()\r\n {\r\n /* Add any necessary cleanup code here (e.g., close a socket). */\r\n }", "protected void tearDown()\n {\n }", "protected void tearDown()\n {\n }", "public void tearDown() {\n }", "protected void tearDown()\n {\n /* Add any necessary cleanup code here (e.g., close a socket). */\n }", "public void tearDown() {\n tearDown(true);\n }", "@Override\n public void tearDown() {\n // No action required\n }", "@Override\n\tpublic void tearDown() {\n\t}", "public abstract void tearDown();", "@Override\r\n protected void tearDown() {\r\n // nothing yet\r\n }", "void tearDown();", "void tearDown();", "@Override\n\tpublic void teardown() {\n\t}", "protected void tearDown() throws Exception {\n }", "@Override\n public void teardown() {\n }", "@After\n\t\t public void tearDown() throws Exception {\n\t\t\t testHelper.tearDown();\n\t\t }", "@After\n\tpublic void tearDown() {}", "public void tearDown() throws Exception {\n TestHelper.clearTemp();\n super.tearDown();\n }", "@Override\n public void tearDown() {\n }", "@Override\n public void tearDown() {\n }", "@Override\n public void tearDown() {\n }", "@Override\n protected void tearDown() {\n }", "protected void tearDown() throws Exception {\r\n super.tearDown();\r\n }", "@After\n\tpublic void tearDown() throws Exception{\n\t\t// Don't need to do anything here.\n\t}", "@After\r\n\tpublic void tearDown() {\n\t}", "void teardown();", "void teardown();", "@After\n public final void tearDown() throws Exception\n {\n // Empty\n }", "protected void tearDown() throws Exception {\n super.tearDown();\n }", "protected void tearDown() {\n testEnv.close();\n }", "protected void tearDown() throws Exception {\r\n super.tearDown();\r\n TestHelper.clearNamespaces();\r\n }", "@After\n\tpublic void tearDown() {\n\n\t}", "@Override\n public void tearDown() throws Exception {}", "@After\r\n\tpublic void tearDown() throws Exception {\r\n\t\t//System.out.println( this.getClass().getSimpleName() + \".tearDown() called.\" );\r\n\t}", "@After\n\tpublic void tearDown() throws Exception {\n\t\t//System.out.println( this.getClass().getSimpleName() + \".tearDown() called.\" );\n\t}", "protected void tearDown() throws Exception {\n\t\tsuper.tearDown();\r\n\t}", "@After\n\tpublic void tearDown() throws Exception {\n\t\t\n\t}", "@Override\n public void tearDown() {\n testEngine = null;\n }", "@After\r\n\tpublic void tearDown() throws Exception {\n\t}", "@Override\n\tprotected void tearDown() throws Exception\n\t{\n\t\tsuper.tearDown();\n\t}", "protected void tearDown() {\n config = null;\n }", "@Override\r\n protected void tearDown()\r\n throws Exception\r\n {\r\n // Included only for Javadoc purposes--implementation adds nothing.\r\n super.tearDown();\r\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t}", "@After\n\tpublic void tearDown() throws Exception {\n\t}", "protected void tearDown() \n\t{\n\t\tif (container != null) \n\t\t{\n\t\t\tcontainer.dispose();\n\t\t}\n\t\tcontainer = null;\n\t}", "protected void tearDown() throws Exception {\r\n this.testedInstances = null;\r\n super.tearDown();\r\n }", "protected void tearDown() throws Exception {\r\n this.testedInstances = null;\r\n super.tearDown();\r\n }", "protected void tearDown() throws Exception {\n TestHelper.clearConfig();\n super.tearDown();\n }", "@Override\n protected void tearDown() throws Exception {\n\n }", "protected void tearDown() throws Exception {\r\n validator = null;\r\n bundle = null;\r\n TestHelper.clearConfiguration();\r\n }", "@After\r\n public void tearDown() throws Exception {\n }", "@After\r\n public void tearDown() throws Exception {\n }", "@AfterClass\n public static void tearDownClass() {\n }", "@AfterClass\n public static void tearDownClass() {\n }", "protected void tearDown() throws Exception {\r\n \t\tarchetype = null;\r\n \t}", "@Override\n public void tearDown() {\n generator = null;\n }", "public void tearDown() {\n this._getOpt = null;\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "protected void tearDown() throws Exception {\n\t\tthis.tmpDir.clear();\r\n\t}", "@Override\n\tprotected void tearDown() throws Exception {\n\t\tsuper.tearDown();\n\t\tmCore.destroy();\n\t\tmCore=null;\n\t}", "@After\r\n public void tearDown() throws Exception {\r\n super.tearDown();\r\n TestHelper.cleanupEnvironment();\r\n instance = null;\r\n }", "@Override\n public void tearDown(){\n }", "@Override\n public void tearDown() {\n setName(caseLabel + '-' + getName());\n\n if (env != null) {\n try {\n closeAll();\n } catch (Throwable e) {\n System.out.println(\"During tearDown: \" + e);\n }\n }\n envHome = null;\n env = null;\n store = null;\n caseCls = null;\n caseObj = null;\n caseLabel = null;\n\n /* Do not delete log files so they can be used by 2nd phase of test. */\n }", "protected void tearDown() throws Exception {\n actionManager = null;\n TestHelper.clearConfig();\n super.tearDown();\n }", "@AfterSuite\r\n\tpublic void tearDown() {\r\n\t\tSystem.out.println(\"Driver teared down\");\r\n\t}", "@AfterClass\n\tpublic static void teardown() {\n\t\tdataMunger = null;\n\n\t}", "@AfterTest\r\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n GWTMockUtilities.restore();\n }", "@After\n public void tearDown() {\n \n }", "@After\n public void tearDown() throws Exception {\n }", "abstract void tearDown() throws Exception;", "@After\n public void tearDown()\n {\n mockDependencies.verifyMocks();\n mockDependencies = null;\n assertNull(\"'mockDependencies' should be null at the end of teardown\", mockDependencies);\n\n parser = null;\n assertNull(\"'parser' should be null at the end of teardown\", parser);\n }", "public static void tearDown() {\n\t\tif (driver != null) {\n\t\t\tdriver.quit();\n\t\t}\n\t}", "@After\n\tpublic void tearDown() throws Exception {\n\t\tSystem.setOut(null);\n\t\tSystem.setErr(null);\n\n\t}", "@After\n public void tearDown () {\n }", "protected void tearDown() throws Exception {\r\n super.tearDown();\r\n FailureTestHelper.unloadConfig();\r\n }", "protected void tearDown() {\r\n instance = null;\r\n columnNames = null;\r\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }", "@After\n public void tearDown()\n {\n }" ]
[ "0.8820526", "0.8810043", "0.8795851", "0.8795851", "0.87941384", "0.87749505", "0.87690955", "0.8728194", "0.86736226", "0.86343336", "0.8610855", "0.8601984", "0.8601984", "0.8597118", "0.8577082", "0.8534721", "0.85328907", "0.8483686", "0.846408", "0.84459066", "0.84459066", "0.84459066", "0.84407026", "0.8439852", "0.84317845", "0.8419147", "0.8410774", "0.8410774", "0.84045726", "0.8403535", "0.83901554", "0.8376161", "0.8373219", "0.8361814", "0.8324938", "0.83232826", "0.8321233", "0.83122367", "0.83054113", "0.8284991", "0.82778186", "0.8272101", "0.8266006", "0.8265426", "0.8265426", "0.82424796", "0.8222496", "0.8222496", "0.8220948", "0.8203052", "0.82012385", "0.8199771", "0.8199771", "0.8196189", "0.8196189", "0.81855035", "0.81700563", "0.8167892", "0.81667215", "0.81667215", "0.81667215", "0.81667215", "0.81577855", "0.81566226", "0.81492615", "0.81460494", "0.81394106", "0.8128118", "0.8119348", "0.8118109", "0.81162995", "0.811625", "0.811625", "0.811625", "0.811625", "0.811625", "0.81051695", "0.80943686", "0.8093217", "0.80739707", "0.80731195", "0.8065309", "0.80613226", "0.80504197", "0.804293", "0.8042384", "0.80395776", "0.80395776", "0.80395776", "0.80395776", "0.80395776", "0.80395776", "0.80395776", "0.80395776", "0.80395776", "0.80395776", "0.80395776", "0.80395776", "0.80395776", "0.80395776" ]
0.90145767
0
JUNIT suite static method, which returns the tests associated with EPPFeeTst.
public static Test suite() { EPPCodecTst.initEnvironment(); TestSuite suite = new TestSuite(EPPFeeTst.class); // iterations Property String numIterProp = System.getProperty("iterations"); if (numIterProp != null) { numIterations = Integer.parseInt(numIterProp); } // Add the EPPNSProductExtFactory to the EPPCodec. try { EPPFactory.getInstance().addMapFactory( "com.verisign.epp.codec.host.EPPHostMapFactory"); EPPFactory.getInstance().addMapFactory( "com.verisign.epp.codec.domain.EPPDomainMapFactory"); EPPFactory.getInstance().addExtFactory( "com.verisign.epp.codec.fee.v08.EPPFeeExtFactory"); } catch (EPPCodecException e) { Assert.fail("EPPCodecException adding factories to EPPCodec: " + e); } return suite; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static junit.framework.Test suite() {\n\t return new junit.framework.JUnit4TestAdapter(PfcTest.class);\n }", "public static Test suite() {\n\t\treturn new AllTests();\n\t}", "public static Test suite()\r\n {\r\n return suite(com.redknee.app.crm.TestPackage.createDefaultContext());\r\n }", "public static Test suite() {\n TestSuite suite = new TestSuite(\"All hypertree Tests\");\n suite.addTest(TestHTModel.suite());\n suite.addTest(TestHTCoord.suite());\n return suite;\n }", "public static Test suite() {\n final TestSuite suite = new TestSuite();\n\n\n suite.addTestSuite(EntityNotFoundExceptionTest.class);\n suite.addTestSuite(DAOExceptionTest.class);\n suite.addTestSuite(DAOConfigurationExceptionTest.class);\n\n suite.addTestSuite(CompanyDAOBeanTest.class);\n suite.addTestSuite(ClientStatusDAOBeanTest.class);\n suite.addTestSuite(ProjectDAOBeanTest.class);\n suite.addTestSuite(ClientDAOBeanTest.class);\n suite.addTestSuite(ProjectStatusDAOBeanTest.class);\n suite.addTestSuite(HelperTest.class);\n\n suite.addTestSuite(ProjectStatusTest.class);\n suite.addTestSuite(CompanyTest.class);\n suite.addTestSuite(ClientStatusTest.class);\n suite.addTestSuite(ProjectTest.class);\n suite.addTestSuite(AuditableEntityTest.class);\n suite.addTestSuite(ClientTest.class);\n suite.addTestSuite(GenericEJB3DAOTest.class);\n suite.addTestSuite(SearchByFilterUtilityImplTest.class);\n return suite;\n }", "public static Test getTestSuite() {\n \t\tTestSuite testSuite = new TestSuite(\"TCF Launch tests\"); //$NON-NLS-1$\n \n \t\t// add ourself to the test suite\n \t\ttestSuite.addTestSuite(TcfLaunchTests.class);\n \n \t\treturn testSuite;\n \t}", "public static Test suite() {\n final TestSuite suite = new TestSuite();\n suite.addTest(ConfigurationExceptionAccuracyTest.suite());\n suite.addTest(DefaultManagersProviderAccuracyTest.suite());\n suite.addTest(DefaultUploadExternalServicesAccuracyTest.suite());\n suite.addTest(DefaultUploadServicesAccuracyTest.suite());\n suite.addTest(InvalidProjectExceptionAccuracyTest.suite());\n suite.addTest(InvalidProjectPhaseExceptionAccuracyTest.suite());\n suite.addTest(InvalidSubmissionExceptionAccuracyTest.suite());\n suite.addTest(InvalidSubmissionStatusExceptionAccuracyTest.suite());\n suite.addTest(InvalidUserExceptionAccuracyTest.suite());\n suite.addTest(PersistenceExceptionAccuracyTest.suite());\n suite.addTest(UploadServicesExceptionAccuracyTest.suite());\n return suite;\n }", "private Test createSuite()\n {\n //Let's discover what tests have been scheduled for execution.\n // (we expect a list of fully qualified test class names)\n String tests = System.getProperty(TEST_LIST_PROPERTY_NAME);\n if (tests == null || tests.trim().length() == 0)\n {\n tests = \"\";\n }\n logger.debug(\"specfied test list is: \" + tests);\n\n StringTokenizer st = new StringTokenizer(tests);\n String[] ids = new String[st.countTokens()];\n int n = 0;\n while (st.hasMoreTokens())\n {\n ids[n++] = st.nextToken().trim();\n }\n\n TestSuite suite = new TestSuite();\n for (int i=0; i<n; i++)\n {\n String testName = ids[i];\n if (testName != null && testName.trim().length() > 0)\n {\n try\n {\n Class<?> testClass = Class.forName(testName);\n if ((bc == null)\n && BundleActivator.class.isAssignableFrom(testClass))\n {\n logger.error(\"test \" + testName\n + \" skipped - it must run under felix\");\n }\n else\n {\n suite.addTest(new TestSuite(testClass));\n }\n }\n catch (ClassNotFoundException e)\n {\n logger.error(\"Failed to load standalone test \" + testName);\n }\n }\n }\n return suite;\n }", "public static junit.framework.Test suite() {\n return new JUnit4TestAdapter(DefaultProjectPaymentCalculatorFailureTest.class);\n }", "public static Test suite() {\r\n return new TestSuite(UserClientPKUnitTests.class);\r\n }", "public static Test suite() {\r\n final TestSuite suite = new TestSuite();\r\n\r\n suite.addTest(CategoryConfigurationUnitTest.suite());\r\n suite.addTest(CategoryTypeUnitTest.suite());\r\n suite.addTest(EntityTypeUnitTest.suite());\r\n suite.addTest(ForumEntityNotFoundExceptionUnitTest.suite());\r\n suite.addTest(JiveForumManagementExceptionUnitTest.suite());\r\n suite.addTest(JiveForumManagerUnitTest.suite());\r\n suite.addTest(UserNotFoundExceptionUnitTest.suite());\r\n suite.addTest(UserRoleUnitTest.suite());\r\n\r\n suite.addTest(HelperUnitTest.suite());\r\n suite.addTest(TCAuthTokenUnitTest.suite());\r\n\r\n suite.addTest(ServiceConfigurationExceptionUnitTest.suite());\r\n\r\n suite.addTest(JiveForumServiceBeanUnitTest.suite());\r\n\r\n suite.addTest(MockJiveForumServiceTest.suite());\r\n return suite;\r\n }", "public static Test suite() {\r\n final TestSuite suite = new TestSuite();\r\n\r\n suite.addTest(DatabaseReviewAuctionPersistenceAccuracyTests.suite());\r\n suite.addTest(DatabaseReviewApplicationPersistenceAccuracyTests.suite());\r\n\r\n suite.addTest(ReviewApplicationManagerImplAccuracyTests.suite());\r\n suite.addTest(ReviewAuctionManagerImplAccuracyTests.suite());\r\n\r\n suite.addTest(ReviewApplicationFilterBuilderAccuracyTests.suite());\r\n\r\n return suite;\r\n }", "public static Test suite() {\n return new TestSuite(NotificationConfigurationExceptionAccuracyTests.class);\n }", "public static Test suite() {\n final TestSuite suite = new TestSuite();\n\n suite.addTest(HelperTest.suite());\n suite.addTest(Demo.suite());\n suite.addTest(HelperTest.suite());\n suite.addTest(InstanceTest.suite());\n suite.addTest(InstanceAbstractImplTest.suite());\n suite.addTest(ObjectTest.suite());\n suite.addTest(ObjectImplTest.suite());\n suite.addTest(StimulusTest.suite());\n suite.addTest(StimulusImplTest.suite());\n suite.addTest(LinkTest.suite());\n suite.addTest(LinkEndTest.suite());\n suite.addTest(LinkEndImplTest.suite());\n suite.addTest(LinkImplTest.suite());\n suite.addTest(ProcedureTest.suite());\n suite.addTest(ProcedureImplTest.suite());\n\n return suite;\n }", "public static Test suite() {\r\n return new TestSuite(JPADigitalRunTrackStatusDAOTest.class);\r\n }", "public static Test suite() {\n\t\t// the type safe way is in SimpleTest\n\t\t// the dynamic way :\n\t\treturn new TestSuite(DSetOfActivitiesInSitesTest.class);\n\t}", "public static junit.framework.Test suite() {\n return new junit.framework.JUnit4TestAdapter(TestBetamon.class);\n }", "public static Test suite() {\n\n // Edit the name of the class in the parens to match the name\n // of this class.\n return new TestSuite(TestRevealEvaluator.class);\n }", "public static Test suite() {\r\n\t\treturn new JUnit4TestAdapter(AllTests.class);\r\n\t}", "public static TestSuite suite()\n {\n TestSuite result = new TestSuite();\n\n for (int i = 0; i < TESTS.length; i++) {\n result.addTest(new NumericConversionTest(TESTS[i][0],\n (Class) TESTS[i][1],\n TESTS[i][2],\n (TESTS[i].length > 3) ? ((Integer) TESTS[i][3]).intValue() : -1));\n }\n return result;\n }", "public static junit.framework.Test suite() {\r\n return new JUnit4TestAdapter(ProjectTermsOfUseDaoImplStressTests.class);\r\n }", "public static Test suite() {\n\t\treturn new TestSuite(ClientTransactionTest.class);\n\t}", "public static junit.framework.Test suite() {\r\n return new JUnit4TestAdapter(ProjectTermsOfUseDaoImplUnitTests.class);\r\n }", "public static Test suite() {\n return new TestSuite(InvoiceSessionBeanTest.class);\n }", "static public TestSuite suite() {\r\n return new TestIndividual( \"TestIndividual\" );\r\n }", "public static Test suite()\n {\n TestSuite suite = new TestSuite();\n suite.addTest(new PSJdbcTableSchemaTest(\"testDef\"));\n return suite;\n }", "public static Test suite() {\n\treturn TestAll.makeTestSuite(CompilerInterface.NONE);\n }", "public static Test suite() {\r\n return new TestSuite(DistributionScriptParserImplTest.class);\r\n }", "public static Test suite() {\n return new TestSuite(DefaultDetailWindowTest.class);\n }", "public static Test suite() {\n return new TestSuite(GeneralizationImplAccuracyTest.class);\n }", "public static Test suite() {\n TestSuite suite = new TestSuite(ContestEligibilityValidatorExceptionTests.class);\n return suite;\n }", "public static Test suite() {\n\n TestSuite suite = new TestSuite(FileChangeSetTest.class);\n return suite;\n }", "public static Test suite() {\n return new TestSuite(LNumberComparatorTest.class);\n }", "public static Test suite() {\r\n return new TestSuite(AccuracyTestReportCategory.class);\r\n }", "public static junit.framework.Test suite() throws Exception {\n\n junit.framework.TestSuite suite =\n new junit.framework.TestSuite(AllSystemTestsConfigQ.class\n .getName());\n\n suite.addTest(org.fcrepo.test.AllCommonSystemTests.suite());\n suite.addTest(org.fcrepo.test.api.TestAPIAConfigA.suite());\n suite.addTest(org.fcrepo.test.api.TestAPIALiteConfigA.suite());\n suite.addTest(org.fcrepo.test.api.TestHTTPStatusCodesConfigQ.suite());\n suite.addTest(org.fcrepo.test.api.TestManyDisseminations.suite());\n\n return suite;\n }", "public static Test suite() {\n return createModuleTest(WizardsTest.class);\n }", "public static junit.framework.Test suite() {\r\n return new JUnit4TestAdapter(HelperUnitTests.class);\r\n }", "public static TestSuite suite()\n\t{\n\t\tTestSuite suite = new TestSuite();\n\n\t\t//\n\t\t// Add one line per class in our test cases. These should be in order of\n\t\t// complexity.\n\n\t\t// ANTTest should be first as it ensures that test parameters are\n\t\t// being sent to the suite.\n\t\t//\n\t\tsuite.addTestSuite(ANTTest.class);\n\n\t\t// Basic Driver internals\n\t\tsuite.addTestSuite(DriverTest.class);\n\t\tsuite.addTestSuite(ConnectionTest.class);\n\t\tsuite.addTestSuite(DatabaseMetaDataTest.class);\n\t\tsuite.addTestSuite(DatabaseMetaDataPropertiesTest.class);\n\t\tsuite.addTestSuite(EncodingTest.class);\n\n\t\t// Connectivity/Protocols\n\n\t\t// ResultSet\n\t\tsuite.addTestSuite(ResultSetTest.class);\n\n\t\t// Time, Date, Timestamp\n\t\tsuite.addTestSuite(DateTest.class);\n\t\tsuite.addTestSuite(TimeTest.class);\n\t\tsuite.addTestSuite(TimestampTest.class);\n\n\t\t// PreparedStatement\n\t\tsuite.addTestSuite(PreparedStatementTest.class);\n\n\t\t// ServerSide Prepared Statements\n\t\tsuite.addTestSuite(ServerPreparedStmtTest.class);\n\n\t\t// BatchExecute\n\t\tsuite.addTestSuite(BatchExecuteTest.class);\n\n\n\t\t// Other misc tests, based on previous problems users have had or specific\n\t\t// features some applications require.\n\t\tsuite.addTestSuite(JBuilderTest.class);\n\t\tsuite.addTestSuite(MiscTest.class);\n\t\tsuite.addTestSuite(NotifyTest.class);\n\n\t\t// Fastpath/LargeObject\n\t\tsuite.addTestSuite(BlobTest.class);\n\t\tsuite.addTestSuite(OID74Test.class);\n\n\t\tsuite.addTestSuite(UpdateableResultTest.class );\n\n\t\tsuite.addTestSuite(CallableStmtTest.class );\n\t\tsuite.addTestSuite(CursorFetchTest.class);\n\t\tsuite.addTestSuite(ServerCursorTest.class);\n\n\t\t// That's all folks\n\t\treturn suite;\n\t}", "public static Test suite() {\r\n return new TestSuite(ContestManagerBeanFailureTest.class);\r\n }", "public static Test suite() {\n return new TestSuite(ConfigurationExceptionTest.class);\n }", "public static Test suite() {\r\n return new TestSuite(DefaultReviewApplicationProcessorAccuracyTest.class);\r\n }", "public static Test suite() {\n TestSuite suite = new TestSuite();\n Properties props = new Properties();\n int count = 1;\n String path;\n URL url;\n \n try {\n props.load(TestPluginTokenizer.class.getResourceAsStream(CONFIG_FILE));\n } catch (Exception ex) {\n throw new ExtRuntimeException(ex);\n }\n \n while ((path = props.getProperty(PROP_PATH + count)) != null) {\n if ((url = TestPluginTokenizer.class.getResource(path)) != null) {\n path = url.getFile();\n }\n suite.addTest(new TestPluginTokenizer(\"testContentsParsing\", path));\n suite.addTest(new TestPluginTokenizer(\"testContentsFormatting\", path));\n count++;\n }\n return suite;\n }", "public static Test suite() {\n return new TestSuite(ProjectManagerImplTest.class);\n }", "public static Test suite() {\n return new TestSuite(PersistenceExceptionTest.class);\n }", "public static Test suite()\n {\n return new TestSuite(BugFixesTest.class);\n }", "public static Test suite() {\r\n return new TestSuite(FileSystemPersistenceTestCase.class);\r\n }", "public static Test suite() {\n return new TestSuite(UserConstantsTest.class);\n }", "public static Test suite() {\n final TestSuite suite = new TestSuite();\n suite.addTest(ActorUtilTest.suite());\n suite.addTest(AddActionTest.suite());\n suite.addTest(AddActorActionTest.suite());\n suite.addTest(AddExtendActionTest.suite());\n suite.addTest(AddIncludeActionTest.suite());\n suite.addTest(AddSubsystemActionTest.suite());\n suite.addTest(AddUseCaseActionTest.suite());\n suite.addTest(CopyActionTest.suite());\n suite.addTest(CopyActorActionTest.suite());\n suite.addTest(CopyExtendActionTest.suite());\n suite.addTest(CopyIncludeActionTest.suite());\n suite.addTest(CopySubsystemActionTest.suite());\n suite.addTest(CopyUseCaseActionTest.suite());\n suite.addTest(CutActionTest.suite());\n suite.addTest(CutActorActionTest.suite());\n suite.addTest(CutExtendActionTest.suite());\n suite.addTest(CutIncludeActionTest.suite());\n suite.addTest(CutSubsystemActionTest.suite());\n suite.addTest(CutUseCaseActionTest.suite());\n suite.addTest(ExtendUtilTest.suite());\n suite.addTest(IncludeUtilTest.suite());\n suite.addTest(InvalidDataContentExceptionTest.suite());\n suite.addTest(ModelTransferTest.suite());\n suite.addTest(PasteActionTest.suite());\n suite.addTest(PasteActorActionTest.suite());\n suite.addTest(PasteExtendActionTest.suite());\n suite.addTest(PasteIncludeActionTest.suite());\n suite.addTest(PasteSubsystemActionTest.suite());\n suite.addTest(PasteUseCaseActionTest.suite());\n suite.addTest(RemoveActionTest.suite());\n suite.addTest(RemoveActorActionTest.suite());\n suite.addTest(RemoveExtendActionTest.suite());\n suite.addTest(RemoveIncludeActionTest.suite());\n suite.addTest(RemoveSubsystemActionTest.suite());\n suite.addTest(RemoveUseCaseActionTest.suite());\n suite.addTest(SubsystemUtilTest.suite());\n suite.addTest(UsecaseToolUtilTest.suite());\n suite.addTest(UsecaseUndoableActionTest.suite());\n suite.addTest(UseCaseUtilTest.suite());\n\n suite.addTest(Demo.suite());\n\n return suite;\n }", "public static Test suite() {\r\n return new TestSuite(TCAuthTokenUnitTest.class);\r\n }", "public static Test suite() {\n \t\treturn new TestSuite(ProjectPreferencesTest.class);\n \t\t//\t\tTestSuite suite = new TestSuite();\n \t\t//\t\tsuite.addTest(new ProjectPreferencesTest(\"testLoadIsImport\"));\n \t\t//\t\treturn suite;\n \t}", "public static junit.framework.Test suite() {\n return new JUnit4TestAdapter(HelperUtiliyTest.class);\n }", "public static Test suite() {\n TestSuite suite = new TestSuite();\n suite.addTest(new UDDIOperationInputTest(\"testGetterAndSetter\"));\n\n return suite;\n }", "public static Test suite()\r\n {\r\n return new TestSuite(UserTest.class);\r\n\t}", "public static Test suite() {\n return new TestSuite(ApplicationsManagerExceptionUnitTests.class);\n }", "public static Test suite() {\n\t\tTestSuite suite = new TestSuite(\"Test for Server\");\n\t\tsuite.addTestSuite(DatabaseTest.class);\n suite.addTest(SuiteTestMenu.suite());\n\t\tsuite.addTestSuite(ServerGameTest.class);\n\t\tsuite.addTestSuite(ManagedGameTest.class);\n\t\tsuite.addTestSuite(UserManagerTest.class);\n\t\tsuite.addTestSuite(SessionManagerTest.class);\n\t\treturn suite;\n\t}", "public static Test suite() {\n TestSuite suite = new TestSuite(BinaryOperationTest.class);\n\n return suite;\n }", "public static junit.framework.Test suite() {\n return new JUnit4TestAdapter(ClientsPrepopulatingBaseActionTest.class);\n }", "public static Test suite() {\r\n return new TestSuite(ExceptionTestCase.class);\r\n }", "public static Test suite() {\r\n return new TestSuite(UploadRequestValidatorTestCase.class);\r\n }", "public static junit.framework.Test suite() {\n TestSuite suite = new NbTestSuite();\n if (Utilities.isUnix()) return suite;\n String zipFile = \"C:\\\\Program Files\\\\Microsoft Visual Studio\\\\vss.zip\";\n if (!new File(zipFile).exists()) return suite; // This test suite can't run where zip with empty VSS repository is not prepared.\n suite.addTest(new RegularDevelopment(\"testCheckoutFile\"));\n suite.addTest(new RegularDevelopment(\"testModifyFile\"));\n suite.addTest(new RegularDevelopment(\"testViewDifferences\"));\n suite.addTest(new RegularDevelopment(\"testCheckinFile\"));\n suite.addTest(new RegularDevelopment(\"testViewHistory\"));\n suite.addTest(new RegularDevelopment(\"testGetMissingFile\"));\n suite.addTest(new RegularDevelopment(\"testUnlockFile\"));\n return suite;\n }", "public static junit.framework.Test suite() {\n\t\treturn new JUnit4TestAdapter(\n\t\t\t\tJDBCReviewFeedbackManagerStressUnitTests.class);\n\t}", "public static junit.framework.Test suite() {\r\n\t\treturn new JUnit4TestAdapter(SimpleTest.class);\r\n\t}", "public static Test suite() {\r\n final TestSuite suite = new TestSuite();\r\n\r\n suite.addTestSuite(ProjectServiceBeanTestsV11.class);\r\n\r\n /**\r\n * <p>\r\n * Setup the unit test.\r\n * </p>\r\n */\r\n TestSetup wrapper = new TestSetup(suite) {\r\n /**\r\n * <p>\r\n * Setup the EJB test.\r\n * </p>\r\n */\r\n @Override\r\n protected void setUp() throws Exception {\r\n deleteAllProjects();\r\n\r\n lookupProjectServiceRemoteWithUserRole();\r\n }\r\n\r\n /**\r\n * <p>\r\n * Tear down the EJB test.\r\n * </p>\r\n */\r\n @Override\r\n protected void tearDown() throws Exception {\r\n ctx = null;\r\n projectService = null;\r\n }\r\n };\r\n\r\n return wrapper;\r\n }", "public AllTests() {\n\t\taddTest(new TestSuite(TestSuiteTest.class));\n\t}", "public static Test suite() {\n return new TestSuite(Sun13AnalyzerAccuracyTests.class);\n }", "public static junit.framework.Test suite() {\n return new JUnit4TestAdapter(UserServiceImplUnitTests.class);\n }", "public static Test suite() {\n \t\treturn new TestSuite(ModelObjectReaderWriterTest.class);\n \t}", "public static Test suite()\n {\n TestSuite ts = new TestSuite(\"TestAPI\") ;\n\t\t\t\n // This test should run first, in order to enable the optimizer for subsequent tests\n\t\tts.addTest(new TestAPI(\"testOptimizerDisable\")) ;\n\t\tts.addTest(new TestAPI(\"testOptimizerEnable\")) ;\n\t\tts.addTest(new TestAPI(\"testExplain\")) ;\n\t\tts.addTest(new TestAPI(\"testIndex\")) ;\n\t\tts.addTest(new TestAPI(\"testProbability1\")) ;\n\t\tts.addTest(new TestAPI(\"testProbability2\")) ;\n\t\t\n // Wrapper for the test suite including the test cases which executes the setup only once\n\t\tTestSetup wrapper = new TestSetup(ts) \n\t\t{\n\t\t\tprotected void setUp() \n\t\t\t{\n\t\t\t\toneTimeSetUp();\n\t\t\t}\n\n\t\t\tprotected void tearDown() \n\t\t\t{\n\t\t\t\toneTimeTearDown();\n\t\t\t}\n\t\t};\n\t\t\n\t\treturn wrapper ;\n }", "public static junit.framework.Test suite() {\n return new JUnit4TestAdapter(UserUnitTests.class);\n }", "public static Test suite() {\n return new TestSuite(RenameConverterUnitTest.class);\n }", "public static Test suite() {\r\n\t\tHyadesTestSuite testTPBridgeClient = new HyadesTestSuite(\r\n\t\t\t\t\"TestTPBridgeClient\");\r\n\t\ttestTPBridgeClient.setArbiter(DefaultTestArbiter.INSTANCE).setId(\r\n\t\t\t\t\"F968DA8CBEFEFE1A799AE350F11611DB\");\r\n\t\r\n\t\ttestTPBridgeClient.addTest(new TestTPBridgeClient(\"testTPBridgeClient\")\r\n\t\t\t\t.setId(\"F968DA8CBEFEFE1AAC5A86B9F11611DB\").setTestInvocationId(\r\n\t\t\t\t\t\t\"F968DA8CBEFEFE1A34EBB2E0F11911DB\"));\r\n\t\treturn testTPBridgeClient;\r\n\t}", "public static Test suite() {\r\n\t\tTestSuite suite = new TestSuite(\"TestDateTimeAttributeTimeZone\");\r\n\t\t\r\n\t\tsuite.addTest(new TestDateTimeAttributeTimeZone(\"TestDateTimeAttributeTimeZone_Compare\"));\r\n\t\t\r\n\r\n\t\treturn suite;\r\n\t}", "public static Test suite() {\r\n return suite(ProjectServiceRemoteTests.class);\r\n }", "public EMFTestSuite() {\n\t\taddTest(new TestSuite(EMFTestCase.class));\n\t}", "public static Test suite() {\n return new TestSuite(LocaleConvertUtilsTestCase.class);\n }", "public static Test suite() {\n final TestSuite suite = new TestSuite();\n suite.addTest(FunctionalTests.suite());\n // functional tests\n suite.addTest(GUITests.suite());\n\n TestSetup wrapper = new TestSetup(suite) {\n protected void setUp() {\n Runnable r = new Runnable() {\n public void run() {\n com.topcoder.umltool.deploy.UMLToolDeploy.main(new String[0]);\n }\n };\n\n try {\n SwingUtilities.invokeAndWait(r);\n } catch (Exception e) {\n }\n }\n\n protected void tearDown() throws Exception {\n File generateCode = new File(TestHelper.getCodeGenBase() + \"/c\");\n if (generateCode.exists()) {\n //deleteFolder(generateCode);\n }\n generateCode = new File(TestHelper.getCodeGenBase() + \"/java\");\n if (generateCode.exists()) {\n //deleteFolder(generateCode);\n }\n }\n\n private void deleteFolder(File dir) {\n File filelist[] = dir.listFiles();\n int listlen = filelist.length;\n for (int i = 0; i < listlen; i++) {\n if (filelist[i].isDirectory()) {\n deleteFolder(filelist[i]);\n } else {\n filelist[i].delete();\n }\n }\n dir.delete();\n }\n };\n\n return wrapper;\n }", "public static Test suite() {\n \n TestSuite suite = new TestSuite(\"ImplementationSuite\");\n suite.addTest(org.mmbase.storage.search.implementation.BasicAggregatedFieldTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicCompareFieldsConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicCompositeConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldCompareConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldNullConstraintTest.suite());\n// yet to be implemented:\n// suite.addTest(org.mmbase.storage.search.implementation.BasicFieldValueBetweenConstraintTest.suite()); \n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldValueConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldValueInConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicLegacyConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicRelationStepTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicSearchQueryTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicSortOrderTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicStepTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicStepFieldTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicStringSearchConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.database.DatabaseSuite.suite());\n suite.addTest(org.mmbase.storage.search.implementation.ModifiableQueryTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.NodeSearchQueryTest.suite());\n //:JUNIT--\n //This value MUST ALWAYS be returned from this function.\n return suite;\n }", "public static Test suite() {\n return new TestSuite(TestLearningAPI.class);\n }", "public static Test suite() {\n\t\tTestSuite suite = new TestSuite();\n\n\t\texecuteScript(false, \"testdata/monitor-data.sql\");\n\n\t\t// run all tests\n\t\t// suite = new TestSuite(TestLogMessageService.class);\n\n\t\t// or a subset thereoff\n\t\tsuite.addTest(new TestLogMessageService(\"testGetLogMessages\"));\n\t\tsuite.addTest(new TestLogMessageService(\n\t\t\t\t\"testGetLogMessagesByApplicationType\"));\n\t\tsuite.addTest(new TestLogMessageService(\n\t\t\t\t\"testGetLogMessagesByDeviceIdentification\"));\n\t\tsuite.addTest(new TestLogMessageService(\n\t\t\t\t\"testGetLogMessagesByDeviceIdentifications\"));\n\t\tsuite\n\t\t\t\t.addTest(new TestLogMessageService(\n\t\t\t\t\t\t\"testGetLogMessagesByDeviceId\"));\n\t\tsuite\n\t\t\t\t.addTest(new TestLogMessageService(\n\t\t\t\t\t\t\"testGetLogMessagesByDeviceIds\"));\n\t\tsuite\n\t\t\t\t.addTest(new TestLogMessageService(\n\t\t\t\t\t\t\"testGetLogMessagesByHostName\"));\n\t\tsuite\n\t\t\t\t.addTest(new TestLogMessageService(\n\t\t\t\t\t\t\"testGetLogMessagesByHostNames\"));\n\t\tsuite.addTest(new TestLogMessageService(\"testGetLogMessagesByHostId\"));\n\t\tsuite.addTest(new TestLogMessageService(\"testGetLogMessagesByHostIds\"));\n\t\tsuite.addTest(new TestLogMessageService(\"testGetLogMessagesByService\"));\n\t\tsuite.addTest(new TestLogMessageService(\n\t\t\t\t\"testGetLogMessagesByServiceStatusId\"));\n\t\tsuite.addTest(new TestLogMessageService(\n\t\t\t\t\"testGetLogMessagesByHostGroupName\"));\n\t\t/*suite\n\t\t\t\t.addTest(new TestLogMessageService(\n\t\t\t\t\t\t\"testUnlinkLogMessagesFromHost\"));*/\n\t\tsuite.addTest(new TestLogMessageService(\"testHostStateTransitions\"));\n\t\t/*suite\n\t\t\t\t.addTest(new TestLogMessageService(\n\t\t\t\t\t\t\"testGetLogMessagesByCriteria\"));*/\n\t\t// suite.addTest(new\n\t\t// TestLogMessageService(\"testGetLogMessagesByHostGroupNames\"));\n\t\t// suite.addTest(new\n\t\t// TestLogMessageService(\"testGetLogMessagesByHostGroupId\"));\n\t\t// suite.addTest(new\n\t\t// TestLogMessageService(\"testGetLogMessagesByHostGroupIds\"));\n\t\t// suite.addTest(new TestLogMessageService(\"testGetLogMessageById\"));\n\t\t// suite.addTest(new\n\t\t// TestLogMessageService(\"testUnlinkLogMessagesFromService\"));\n\t\t// suite.addTest(new\n\t\t// TestLogMessageService(\"testDeleteLogMessagesForDevice\"));\n\t\t// suite.addTest(new\n\t\t// TestLogMessageService(\"testGetLogMessageForConsolidationCriteria\"));\n\t\t// suite.addTest(new TestLogMessageService(\"testSetIsStateChanged\"));\n\n suite.addTest(new TestLogMessageService(\"testSetDynamicProperty\"));\n\n\t\treturn suite;\n\t}", "public static junit.framework.Test suite() {\r\n return new JUnit4TestAdapter(LoggingWrapperUtilityUnitTests.class);\r\n }", "public static junit.framework.Test suite() {\n\t\treturn new JUnit4TestAdapter(TypeEmbedded.class);\n\t}", "public static Suite[] getSuites() {\n return Native.getSuiteList();\n }", "public static Test suite() {\n\n TestSuite suite = new TestSuite(BuildStatusTest.class);\n return suite;\n }", "public static InterfaceTestSuite isuite()\n {\n InterfaceTestSuite suite = new InterfaceTestSuite(ServiceContextExtCannedBenchmark.class);\n suite.setName(ServiceContextExt.class.getName());\n suite.addFactory(new CannedServiceContextExtTestFactory());\n return suite;\n }", "public static Test suite() {\n return new TestSuite(DefineVariableCommandTest.class);\n }", "public static Test suite() {\r\n\t\treturn new CanvasCCPTestSuite();\r\n\t}", "@SuppressWarnings({ \"rawtypes\" })\n\tpublic List<TestSuite> getSuites() {\n\t\tList<List> allSuites = DataManager.openCoverageData();\n\t\tCoverage coverage = new Coverage();\n\t\tList<TestSuite> suites = coverage.getSuiteList(allSuites);\n\t\treturn suites;\n\t}", "@Override\n public List<String> entryPoints() {\n return Lists.of(\"javatests.\" + this.testClassName + \"_AdapterSuite\");\n }", "public static Test suite() throws Exception\n {\n TestSuite suite = new TestSuite(); \n suite.addTest(new TestSuite(InternalNamingClassReplacementUnitTestCase.class));\n return suite;\n }", "public Instances getTesting()\n {\n return new Instances(mTesting);\n }", "public static Test suite()\n {\n return new TestSuite(PicTest.class);\n }", "public static Test suite(final Context context)\r\n {\r\n setParentContext(context);\r\n\r\n final TestSuite suite = new TestSuite(TestLanguageSupportServiceClient.class);\r\n\r\n return suite;\r\n }", "private Test emptyTest() {\n return new TestSuite();\n }", "private static List<TestSetup> getTests() {\n PivotPicker middlePiv = Quick::alwaysPickMiddle;\n\n // Pivot Pickers\n PivotPicker leftPiv = Quick::alwaysPickLeftmost;\n PivotPicker rightPiv = Quick::alwaysPickRightmost;\n PivotPicker motPiv = Quick::medianOfThree;\n PivotPicker[] pivots = {leftPiv, middlePiv, rightPiv, motPiv};\n String[] pivotNames = {\"Always Pick Leftmost\", \"Always Pick Middle\", \"Always Pick Rightmost\", \"Median Of Three\"};\n\n // Partitioning methods\n Partitioner jonPart = (array, left, right, pivot) -> partition_Jon(array, left, right, pivot);\n Partitioner lomutoPart = Quick::partition_Lomuto;\n Partitioner hoarePart = Quick::partition_Hoare;\n Partitioner[] partitioners = {lomutoPart, hoarePart};\n String[] partNames = {\"lomuto\", \"hoare\"};\n\n // Subsort methods and sizes\n Subsort insertionSub = Quick::insertionSort;\n Subsort[] subsorts = {insertionSub};\n String[] subsortNames = {\"insertion\"};\n List<Integer> sizes = new ArrayList<>();\n for (int i = 3; i < 128; i = 1 + (int) (i * 1.45)) {\n sizes.add(i);\n }\n Integer[] subsortSizes = sizes.toArray(new Integer[sizes.size()]);\n\n // Data generators\n Generator randomGen = (size) -> {\n return generateArray(100, 999, size);\n };\n Generator sortedGen = (size) -> {\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = i;\n }\n return arr;\n };\n Generator reversedGen = (size) -> {\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = arr.length - i;\n }\n return arr;\n };\n Generator[] generators = {\n randomGen,\n //sortedGen, reversedGen,\n //(size) -> { return generateArray(10000, 99999, size, 0xDEADBEEF); },\n //(size) -> { return generateArray(10000, 99999, size, 0xCAFEBABE); },\n //(size) -> { return generateArray(10000, 99999, size, 0xBAADF00D); },\n\n };\n String[] generatorNames = {\n \"Random\",\n //\"sorted\", \"reversed\",\n //\"Sequence:0xDEADBEEF\",\n //\"Sequence:0xCAFEBABE\",\n //\"Sequence:0xBAADF00D\",\n };\n\n // Default test data\n TestSetup defaultTest = new TestSetup(\"Default\", null, null, 0, null, null);\n\n List<TestSetup> tests = new ArrayList<>();\n tests.add(defaultTest);\n List<TestSetup> temp = new ArrayList<>();\n { // Block for creating partition method variants\n\n\n // Create variations of the test with different partitioning methods\n for (TestSetup setup : tests) {\n\n for (int i = 0; i < partitioners.length; i++) {\n TestSetup variant = new TestSetup(setup, partNames[i]);\n variant.part = partitioners[i];\n temp.add(variant);\n }\n }\n }\n\n // Swap arrays (don't want to add to a collection we're iterating)\n tests = temp;\n temp = new ArrayList<>();\n // Create variations of the test with different pivot picking methods\n for (TestSetup setup : tests) {\n //temp.add(setup);\n\n for (int i = 0; i < pivots.length; i++) {\n TestSetup variant = new TestSetup(setup, setup.name + \" + \" + pivotNames[i]);\n variant.pivp = pivots[i];\n temp.add(variant);\n }\n }\n\n { // Block for creating generator (dataset) variants\n // Swap arrays (don't want to add to a collection we're iterating)\n tests = temp;\n temp = new ArrayList<>();\n\n // Create variations of the test with different data generation methods\n for (TestSetup setup : tests) {\n //temp.add(setup);\n\n for (int i = 0; i < generators.length; i++) {\n TestSetup variant = new TestSetup(setup, setup.name + \" on \" + generatorNames[i] + \" data\");\n variant.gen = generators[i];\n temp.add(variant);\n }\n }\n }\n\n\n { // Block for creating subsort variants\n // Swap arrays (don't want to add to a collection we're iterating)\n tests = temp;\n temp = new ArrayList<>();\n\n // Create variations of the test with different subsort methods and thresholds\n for (TestSetup setup : tests) {\n temp.add(setup);\n\n for (int i = 0; i < subsorts.length; i++) {\n // And also one version for each size!\n for (int k = 0; k < subsortSizes.length; k++) {\n TestSetup variant = new TestSetup(setup, setup.name + \"+\" + subsortNames[i] + \" below \" + subsortSizes[k]);\n variant.sst = subsortSizes[k];\n variant.ssort = subsorts[i];\n //temp.add(variant);\n\n TestSetup variant_finalSort = new TestSetup(variant, variant.name + \" once at end\");\n variant_finalSort.sortFinal = true;\n temp.add(variant_finalSort);\n }\n }\n }\n }\n\n\n // Return completed variation list\n return temp;\n }", "public List<TestNG_Suite> getSuite() {\n\t\treturn suitesList;\n\t}", "public TestSuite getTS() {\r\n\t\treturn ts;\r\n\t}", "public static Test suite() {\n final TestSuite ts = new TestSuite();\n ts.addTestSuite(BuildAgentTest.class);\n return new DistributedMasterBuilderTest.LUSTestSetup(ts);\n }", "public static Test suite() {\n return new TestSuite(RectangleAnchorTest.class);\n }", "public static Test suite() {\r\n return new TestSuite(InputStreamBytesIteratorTestCase.class);\r\n }", "@Test\n void displayAllTasks() {\n }" ]
[ "0.7431735", "0.742565", "0.7278352", "0.726832", "0.7182531", "0.71598965", "0.70983356", "0.70122826", "0.7001384", "0.6969221", "0.6930149", "0.69216216", "0.69046515", "0.6855555", "0.6806076", "0.6790029", "0.67862743", "0.6768706", "0.6763986", "0.6749429", "0.6748339", "0.6743432", "0.67424506", "0.67387724", "0.6737642", "0.6734367", "0.6733251", "0.6712916", "0.6711144", "0.6679662", "0.66788024", "0.667825", "0.6657906", "0.66532147", "0.66498095", "0.664095", "0.6638395", "0.6633057", "0.66324925", "0.6632297", "0.6621103", "0.6615439", "0.6599272", "0.6589487", "0.6583595", "0.65711534", "0.65581423", "0.65377676", "0.653272", "0.6518425", "0.65133035", "0.65113634", "0.64928985", "0.64733255", "0.6468725", "0.64614904", "0.6455093", "0.6452963", "0.6438461", "0.6425046", "0.6422034", "0.6403574", "0.6383884", "0.63693744", "0.6368049", "0.63475794", "0.63418597", "0.63273114", "0.63262314", "0.6325905", "0.62620884", "0.6248775", "0.6243341", "0.62364185", "0.62362427", "0.62282", "0.6226808", "0.622418", "0.6223389", "0.62192464", "0.6191856", "0.6121338", "0.6112758", "0.61009324", "0.60612553", "0.60464054", "0.6042354", "0.5966756", "0.5957799", "0.5957181", "0.59527373", "0.5950239", "0.5947093", "0.5890857", "0.587494", "0.58731365", "0.5843899", "0.5798633", "0.5782305", "0.5734583" ]
0.8393047
0
Unit test main, which accepts the following system property options: iterations Number of unit test iterations to run validate Turn XML validation on (true) or off ( false). If validate is not specified, validation will be off.
public static void main(String[] args) { // Number of Threads int numThreads = 1; String threadsStr = System.getProperty("threads"); if (threadsStr != null) { numThreads = Integer.parseInt(threadsStr); } // Run test suite in multiple threads? if (numThreads > 1) { // Spawn each thread passing in the Test Suite for (int i = 0; i < numThreads; i++) { TestThread thread = new TestThread("EPPFeeTst Thread " + i, EPPFeeTst.suite()); thread.start(); } } else { // Single threaded mode. junit.textui.TestRunner.run(EPPFeeTst.suite()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tTestListener listener=new TestListener();\r\n\t\tXmlSuite suite=new XmlSuite();\r\n\t\tsuite.setName(\"Test Results\");\r\n\t\tsuite.setParallel(ParallelMode.METHODS);\r\n\t\tsuite.setThreadCount(Integer.parseInt(TestProperties.THREAD_COUNT.toString()));\r\n\t\tList<XmlSuite> suits=new ArrayList<XmlSuite>();\r\n\t\tsuits.add(suite);\r\n\r\n\r\n\t\tList<XmlPackage> xpackage=new ArrayList<XmlPackage>();\r\n\t\txpackage.add(new XmlPackage(TestProperties.TESTNG_PACKAGE.toString()));\r\n\r\n\t\t\r\n\t\tXmlTest test=new XmlTest(suite);\r\n\t\ttest.setPackages(xpackage);\r\n\t\tString groups=TestProperties.TESTNG_GROUP.toString();\r\n\t\tString groupArray[]=groups.split(\",\");\r\n\t\tList<String> includedGroups=new ArrayList<String>();\r\n\t\tincludedGroups.addAll(Arrays.asList(groupArray));\r\n\t\ttest.setIncludedGroups(includedGroups);\r\n\t\r\n\t\t\r\n\t\tTestNG tng=new TestNG();\r\n\t\ttng.setOutputDirectory(System.getProperty(\"user.dir\")+\"\\\\test-output\\\\\");\r\n\t\ttng.setXmlSuites(suits);\r\n\t\ttng.addListener((ITestNGListener) listener);\r\n\t\ttng.run();\r\n\t\tSystem.exit(0);\r\n\t}", "@Test\n public void run_main(){\n\n String resource_folder = (new File(\"src/test/resources/\")).getAbsolutePath()+ File.separator ;\n\n String[] args = new String[7];\n args[0] = \"-run\";\n args[1] = resource_folder + \"test_configs/line_ctm.xml\";\n args[2] = \"mytest\";\n args[3] = resource_folder+\"sample_output_request.xml\";\n args[4] = \"temp\";\n args[5] = \"0\";\n args[6] = \"100\";\n\n OTM.main(args);\n\n }", "public static void main(String[] args) throws Exception {\n\t\tLogger.getRootLogger().setLevel(Level.OFF);\n\t\tConfigurationLib configLib = new ConfigurationLib();\n\t\tString binPath = configLib.getTestSuitePath();\n\t\tTestNG testng = new TestNG();\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\n\t\tXmlSuite mySuite = new XmlSuite();\n\t\tList<XmlClass> xmlClasses = new ArrayList<XmlClass>();\n\t\tXmlTest test = null;\n\t\tString className = null;\n\t\tbinPath = binPath.replace(\"null\", \"\");\n\n\t\tFile dir = new File(binPath);\n\t\tList<File> files = (List<File>) FileUtils.listFiles(dir, TrueFileFilter.INSTANCE, TrueFileFilter.INSTANCE);\n\t\tfor (File f : files) {\n\t\t\ttest = new XmlTest(mySuite);\n\t\t\tclassName = ((f.getCanonicalPath().replace(configLib.getBinaryPath(), \"\")).replace(\"\\\\\", \".\"));\n\t\t\tclassName = StringUtils.removeEnd(className, \".class\");\n\t\t\ttest.setName(className);\n\t\t\txmlClasses.add(new XmlClass(Class.forName(className)));\n\t\t}\n\n\t\ttest.setXmlClasses(xmlClasses);\n\t\tAnnotationTransformerImpl myTransformer = new AnnotationTransformerImpl();\n\t\ttestng.addListener(myTransformer);\n\t\tAlterSuiteImpl alterSuite = new AlterSuiteImpl();\n\t\ttestng.addListener(alterSuite);\n\t\tsuites.add(mySuite);\n\t\ttestng.setXmlSuites(suites);\n\t\tsuiteExec = true;\n\t\ttestng.run();\n\t}", "public void runTest() throws Exception {\n\n System.out.println(schemaFile.getPath());\n \n\t\t\tDriver driver = new Driver();\t// generator instance.\n\t\t\t\t\n\t\t\t// parse parameters\n\t\t\tdriver.parseArguments(new String[]{\"-seed\",\"0\", \"-n\",\"30\", \"-quiet\"});\n\t\t\t\t\n\t\t\t// parse example documents\n Iterator itr = examples.iterator();\n\t\t\twhile( itr.hasNext() ) {\n\t\t\t\tFile example = (File)itr.next();\n \n reader.setContentHandler( new ExampleReader(driver.exampleTokens) );\n reader.parse( com.sun.msv.util.Util.getInputSource(example.getAbsolutePath()) );\n\t\t\t}\n\t\t\t\t\n\t\t\t// set the grammar\n\t\t\tISchema schema = validator.parseSchema(schemaFile);\n\t\t\tassertNotNull( \"failed to parse the schema\", schema );\n\t\t\tdriver.grammar = schema.asGrammar();\n\t\t\tdriver.outputName = \"NUL\";\n\t\t\t\t\n\t\t\t// run the test\n\t\t\tassertEquals( \"generator for \"+schemaFile.getName(), driver.run(System.out), 0 );\n\t\t\t\t\n\t\t\t\t\n\t\t\t// parse additional parameter\n\t\t\t// generally, calling the parseArguments method more than once\n\t\t\t// is not supported. So this is a hack.\n\t\t\tdriver.parseArguments(new String[]{\"-error\",\"10/100\"});\n\n\t\t\tassertEquals( \"generator for \"+schemaFile.getName(), driver.run(System.out), 0 );\n\t\t}", "public static void main(String[] args){\n new Testing().runTests();\r\n \r\n }", "public static void main(String[] args)\n {\n try\n {\n TestRunner.run(isuite());\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n try {\n assert false;\n System.out.println(\"Please use the -ea jvm-option. Ex: java -ea AXE170009.TestMain\");\n System.exit(0);\n }catch (AssertionError error){\n System.out.println(\"-ea option enabled good to go\");\n }\n TestMain tester = new TestMain();\n tester.testAdd();\n tester.testRemove();\n System.out.println(\"All Tests passed\");\n }", "public static void main(String[] args) {\n\t\tTestNG testNG = new TestNG();\n\t\tTestListenerAdapter adapter = new TestListenerAdapter();\n\t\tList<String> suites = new ArrayList<>();\n\t\ttestNG.addListener((ITestNGListener) adapter);\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/main_testng.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng1.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng2.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng3.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng4.xml\");\n\t\ttestNG.setTestSuites(suites);\n\t\ttestNG.setParallel(XmlSuite.ParallelMode.METHODS);\n\t\ttestNG.setPreserveOrder(true);\n\t\ttestNG.setSuiteThreadPoolSize(5);\n\t\ttestNG.setVerbose(0);\n\t\ttestNG.setOutputDirectory(\"test-output\");\n\t\ttestNG.run();\n\t}", "public static void UnitTests() {\n System.out.println(\"---\");\n\n int input = 0;\n boolean running = true;\n\n while(running) {\n System.out.println(\"1. Test Layer Class\\n2. Test NeuralNetwork Class\\n3. Go Back\\n\");\n input = getInput();\n switch (input) {\n case 1:\n UnitTests.testLayers();\n break;\n case 2:\n UnitTests.testNeuralNetwork();\n break;\n case 3:\n running = false;\n break;\n default:\n System.out.println(\"That's not an option.\");\n }\n }\n\n System.out.println(\"---\\n\");\n }", "public static void main(String[] args) {\n\t\tnew XmlContextApplicationStep22().doIt();\n\n\t}", "public static void main(String[] args) {\n // PUT YOUR TEST CODE HERE\n }", "@Test\n @Category(SlowTest.class)\n public void AppSmokeTest(){\n App.main(new String[]{TEST_PATH + \"input.dot\",\"1\"});\n }", "public static void main(String args[]){\n\t\tTestingUtils.runTests();\n\t\t\n\t}", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = new String[]{\"-i\", \"-p\", \"src/test/resources/problems_resp.xml\", \"src/test/resources/context.txt\"};\n PrintStream prev = System.out;\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(bos));\n XpathGenerator.main(args);\n System.setOut(prev);\n System.out.println(bos.toString());\n assertTrue(bos.toString().startsWith(\"/fhir:Bundle[1]\"));\n }", "@Test\n public void main() {\n MainApp.main(new String[] {});\n }", "@Test\n\tpublic void testMain() {\n\t\t// TODO: test output streams for various IO methods, emulating a user's\n\t\t// input - kinda like Joel did for CSSE2310\n\t\tAssert.fail();\n\t}", "public static void main (String [] args) {\r\n TestNG runner= new TestNG();\r\n suitefiles=new ArrayList<String>();\r\n checkarguments(args);\r\n //suitefiles.add(\"C:\\\\data\\\\workspace\\\\webauto\\\\Suites.xml\");\r\n runner.setTestSuites(suitefiles);\r\n runner.run();\r\n }", "@Test\n public void testMain() throws Exception {\n //main function cannot be tested as it is dependant on user input\n System.out.println(\"main\");\n }", "public static void main(String[] args) {\n\t\tResult result = runClasses(UserServiceTester.class, AnotherServiceTester.class);\n\t\t\n\t\t// print out failing tests\n\t\tfor (Failure failure : result.getFailures()) {\n\t\t\tSystem.out.println(failure.toString());\n\t\t}\n\t}", "public static void main(String args[])\n {\n junit.textui.TestRunner.run(suite());\n }", "@Test\n public void testFromXMLFile() {\n }", "public static void main(String[] args) {\n\t\t \n\t\tResult result1 = JUnitCore.runClasses(TestUnitForCreate.class);\n\t for (Failure failure : result1.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result1.wasSuccessful());\n\n\t Result result2 = JUnitCore.runClasses(TestUnitForReadByCalimNumber.class);\n\t for (Failure failure : result2.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result2.wasSuccessful());\n\t \n\t Result result3 = JUnitCore.runClasses(TestUnitForReadByLossDate.class);\n\t for (Failure failure : result3.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result3.wasSuccessful());\n\t \n\t\tResult result4 = JUnitCore.runClasses(TestUnitForUpdate.class);\n\t\tfor (Failure failure : result4.getFailures()) {\n\t\t\tSystem.out.println(failure.toString());\n\t\t}\n\t\tSystem.out.println(result4.wasSuccessful());\n\t \n\t Result result5 = JUnitCore.runClasses(TestUnitForReadVehicle.class);\n\t for (Failure failure : result5.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result5.wasSuccessful());\n \n\t Result result6 = JUnitCore.runClasses(TestUnitForDelete.class);\n\t for (Failure failure : result6.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result6.wasSuccessful());\n\t \n\t}", "public Minitest()\n {\n numTestCases = 5; // REPLACE_num\n testName = \"Minitest\";\n testComment = \"Minitest - developer check-in test for Xalan-J 2.x.\";\n }", "@Test\n\tpublic void testMain() {\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tglobalTest();\n//\t\ttimeTest();\n//\t\ttestPrefixSearch();\n//\t\ttestSearch();\n//\t\ttestPrediction();\n//\t\ttestTrieSearch();\n//\t\ttestRebuid();\n//\t\ttest13();\n//\t\ttest14();\n\t}", "public static void main (final String args[]) {\n \tJUnitCore.runClasses(TestAttribute.class);\n }", "public static void main(String[] args) {\n System.out.println(validateTask(true,6,5));\n\n }", "@org.junit.Test\n public void main() throws Exception {\n DosEquis.main(null);\n }", "@Test\n public void main() {\n run(\"TEST\");\n }", "public static void main(String[] args) {\n BatchTestRunner.run(GetObjectByIdNoValidationInstanceNotInDatastore.class);\n }", "public static void main(String[] args) {\r\n\t\tSystem.out.println(\"Testing Calculator\");\r\n\t\ttestConstructors();\r\n\t\ttestSetters();\r\n\t\ttestGetters();\r\n\t\ttestToString();\r\n\t}", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n Calculadora_teste.main(args);\n \n }", "public static void main(String[] args)\n throws org.apache.xmlbeans.XmlException, java.io.IOException\n {\n // all we're checking for is that the sample doesn't throw anything.\n // a real sample test might assert something more interesting.\n SampleTemplate sample = new SampleTemplate();\n sample.start(args);\n }", "public static void main(String[] args)\r\n\t{\r\n\t\t// create the suite of tests\r\n\t\t/*final TestSuite tSuite = new TestSuite();\r\n\t\ttSuite.addTest(new PersonDaoGenericTest(\"testSavePerson\"));\r\n\t\ttSuite.addTest(new PersonDaoGenericTest(\"testLoadPerson\"));\r\n\t\tTestRunner.run(tSuite);*/\r\n\t}", "public static void main(String[] args)\n {\n TestRunner.run(suite());\n }", "@Test\n\tpublic void testsoap() throws XmlException, IOException, SoapUIException {\n\t\tWsdlProject project = new WsdlProject(\n\t\t\t\t\"C:\\\\Users\\\\Lenovo\\\\Desktop\\\\Finistra\\\\AutomationSoup-soapui-project_extent.xml\");\n\t\tWsdlTestSuite testSuite = project.getTestSuiteByName(\"Testsuite_Auto\");\n\t\t//WsdlTestCase testCase = testSuite.getTestCaseByName(\"Script\");\n\t\t//TestRunner runner=testCase.run(new PropertiesMap(), false);\n\t\t//Assert.assertEquals(Status.FINISHED, runner.getStatus());\n\t\t\n\t\tSystem.out.println(\"TC count:\"+testSuite.getTestCaseCount());\n\t\t\n\t\tfor (int i = 0; i < testSuite.getTestCaseCount(); i++) {\n\t\t\tWsdlTestCase testCase = testSuite.getTestCaseAt(i);\n\t\t\tTestRunner runner=testCase.run(new PropertiesMap(), false);\n\t\t\tAssert.assertEquals(Status.FINISHED, runner.getStatus());\n\t\t}\n\t}", "public static void main(String[] args){\n for(String s : args){\n boolean a = validateGroup(\"team2\",s);\n boolean b = validateEIT(\"kate\",\"team2\",s);\n boolean c = validateFellow(\"kate\");\n boolean d = checkGroupSize(1);\n\n System.out.println(\"The validateGroup test (expecting false) \" + a);\n System.out.println(\"The validateEIT test (expecting false) \" + b);\n System.out.println(\"The validateFellow test (expecting false) \" + c);\n System.out.println(\"The checkGroupSize test (expecting false) \" + d);\n\n }\n }", "public static void main(String argv[]) {\n \r\n PolicyTest bmt = new PolicyTest();\r\n\r\n bmt.create_minibase();\r\n\r\n // run all the test cases\r\n System.out.println(\"\\n\" + \"Running \" + TEST_NAME + \"...\");\r\n boolean status = PASS;\r\n status &= bmt.test1();\r\n \r\n bmt = new PolicyTest();\r\n bmt.create_minibase();\r\n status &= bmt.test2();\r\n\r\n // display the final results\r\n System.out.println();\r\n if (status != PASS) {\r\n System.out.println(\"Error(s) encountered during \" + TEST_NAME + \".\");\r\n } else {\r\n System.out.println(\"All \" + TEST_NAME + \" completed successfully!\");\r\n }\r\n\r\n }", "public static void main(String[] args) {\n\t\tList<String> productionIssues = AllTestMethodNames.getTestSuiteProductionIssuesMethods(product);\n\t\tList<String> obsolete = AllTestMethodNames.getTestSuiteObsoleteMethods(product);\n\t\tproductionIssues.addAll(obsolete);\n\t\tList<String> productionIssuesAndObsoleteTestCases = productionIssues;\n\n\t\tList<String> logNew;\n\t\tList<String> logOld;\n\t\tLogAnalyzer tool;\n\n\t\tinitializeToolPaths();\n\t\tlogNew = LogAnalyzerReader.readJenkinsLogFromFile(LOG_ANALYZER_LOG_NEW);\n\t\tlogOld = LogAnalyzerReader.readJenkinsLogFromFile(LOG_ANALYZER_LOG_OLD);\n\t\ttool = new LogAnalyzer(logNew);\n\t\tcreateFullReport(tool, logOld, productionIssuesAndObsoleteTestCases);\n\n\t\t// generate xml file with test cases which were started during an automation run but never finished\n\t\t// createXMLWithUnfinishedTestCases(tool, productionIssuesAndObsoleteTestCases);\n\n\t\t// generate xml file with test cases which were not started at all because for instance test run failed before finishing. (eg Java Heap)\n\t\t// Place log contents of complete full recent run into C:\\Automation_artifacts\\LogAnalyzer\\LogAnalyzer-LogOld.log\n\t\t// createXMLWithTestCasesThatNeverStartedFromLog(tool, logOld, productionIssuesAndObsoleteTestCases);\n\n\t\t// Change to which group test cases belong to.\n\t\t// Options below will add additional group to the @Test(groups = {\"\"}) the test cases belong to or if non exist then it will add a new one. This will make the change in the\n\t\t// source code.\n\t\t// In the test case file each test case is separated by a new line, 2 test case file would be ex:\n\t\t// c158643\n\t\t// c256486\n\t\t// Uncomment the option you want below. Place testCaseList.txt file containing test cases needing update in C:\\Automation_artifacts\\LogAnalyzer\\ directory.\n\t\t// Update the product variable value above if its different than cpm\n\n\t\t// AllTestMethodNames.addTestCaseToObsoleteTestCasesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToProductionIssuesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToExternalExecGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToDateTimeChangeGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\",product);\n\t\t// AllTestMethodNames.addTestCaseToCustomGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", \"EnterCustomGroupNameHere\", product); // enter your custom group name as the 2nd parameter.\n\n\t\t// Remove to which group test cases belong to.\n\t\t// AllTestMethodNames.removeTestCaseFromObsoleteTestCasesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromProductionIssuesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromExternalExecGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromDateTimeChangeGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromCustomGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\",\"EnterCustomGroupNameHere\", product ); // enter your custom group name as the 2nd parameter.\n\n\t}", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n CashRegister.main(args);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "public static void main(String args[]) {\n\t\tSystem.out.println(\"\\r\\ngetGameSituationTest()\");\n\t\tgetGameSituationTest();\n\n\t\tSystem.out.println(\"\\r\\nstateCheckerboardConvertionTest()\");\n\t\tstateCheckerboardConvertionTest();\n\n\t\tSystem.out.println(\"\\r\\ngetValidActionsTest()\");\n\t\tgetValidActionsTest();\n\t}", "public static void main(String[] args) {\n\t\tdeferTest();\n\t}", "public static void main(String[] args) {\r\n TestRunner.run(MathUtilTest.class);\r\n }", "public static void main(String args[]) {\n junit.textui.TestRunner.run(suite());\n }", "public static void main(String[] args) {\n\t\t\r\n\t\thtmlReporter = new ExtentHtmlReporter(\"C:\\\\Users\\\\Suresh Mylam\\\\eclipse-workspace\\\\TestNG_Listners\\\\Reports\\\\TestReport.html\");\r\n\t\textent = new ExtentReports();\r\n\t\textent.attachReporter(htmlReporter);\r\n\t\ttest= extent.createTest(\"TEst123\");\r\n\t\ttest.pass(\"pass\");\r\n\t\ttest.fail(\"fail\");\r\n\t\ttest.info(\"info\");\r\n\t\textent.flush();\r\n\t\tSystem.out.println(\"Done\");\r\n\r\n\t}", "public void ExecuteTests() throws IOException{\r\n\t\t\r\n\t\tAutomationSuiteRunnerImpl testcaseinfo = new AutomationSuiteRunnerImpl();\r\n\t\ttestcaseinfo.GetTestCaseInformation();\r\n\t\tTestsBrowserList = testcaseinfo.getTestsBrowserList();\r\n\t\tTestsClassesList = testcaseinfo.getTestsClassesList();\r\n\t\tClassesMethodList = testcaseinfo.getClassesMethodList();\r\n\t\tTestsParamList = testcaseinfo.getTestsParamList();\r\n\t\tTestNGConfig = testcaseinfo.getTestNGConfig();\r\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\r\n\t\t\r\n\t\tlogger.info(\"Generating TestNG.xml file\");\r\n\t\t\r\n\t\t/**\r\n\t\t * The below code creates testNG xmlSuite and sets the configuration\r\n\t\t */\r\n\t\tXmlSuite suite = new XmlSuite();\r\n\t\tsuite.setName(TestNGConfig.get(\"AutomationSuiteName\"));\r\n\t\t\r\n\t\tif(TestNGConfig.get(\"ParallelMode\").toString().equalsIgnoreCase(\"True\")) {\r\n\t\t\tsuite.setParallel(XmlSuite.ParallelMode.TESTS);\r\n\t\t\tsuite.setThreadCount(Integer.parseInt(TestNGConfig.get(\"ThreadCount\")));\r\n\t\t}\r\n\t\telse {\r\n\r\n\t\t\tsuite.setParallel(XmlSuite.ParallelMode.NONE);\r\n\t\t}\r\n\t\t\r\n\t\tsuite.setVerbose(Integer.parseInt(TestNGConfig.get(\"Verbose\")));\r\n\t\tif(TestNGConfig.get(\"PreserveOrder\").toString().equalsIgnoreCase(\"True\"))\r\n\t\t\tsuite.setPreserveOrder(Boolean.TRUE);\r\n\t\telse \r\n\t\t\tsuite.setPreserveOrder(Boolean.FALSE);\r\n\t\t\r\n\t\t\r\n\t\t//suite.addListener(\"frameworkcore.ReportingClass.ListenersImpl\");\r\n\t\t\r\n\t\t/**\r\n\t\t * The below code assigns the Test classes/mathods/parameters to the TestNG Suite\r\n\t\t */\r\n\t\tfor (String key : TestsBrowserList.keySet()){\r\n\t\t\tArrayList<XmlClass> classes = new ArrayList<XmlClass>();\r\n\t\t\tXmlTest test = new XmlTest(suite);\r\n\t\t\ttest.setName(key.toString());\r\n\t\t\tHashMap<String,String> browserinfo = new HashMap<String,String>();\r\n\t\t\tbrowserinfo.put(\"BrowserName\", TestsBrowserList.get(key).toString());\r\n\t\t\ttest.setParameters(browserinfo);\r\n\t\t\tSetParameters(test);\r\n\t\t\tCollection<String> classvalues = TestsClassesList.get(key);\r\n\t\t\tfor(String testclass : classvalues){\r\n\t\t\t\tXmlClass testClass = new XmlClass();\r\n\t\t testClass.setName(testclass);\r\n\t\t Collection<String> methodvalues = ClassesMethodList.get(testclass);\r\n\t\t ArrayList<XmlInclude> methodsToRun = new ArrayList<XmlInclude>();\r\n\t\t for(String method: methodvalues){\r\n\t\t \tif(method.toLowerCase().contains(\"tag\")||method.toLowerCase().contains(\"ignore\"))\r\n\t\t \t\tlogger.info(\"Method \" + method + \" will not run\" );\r\n\t\t \telse\r\n\t\t \t\tmethodsToRun.add(new XmlInclude(method));\r\n\t\t }\r\n\t\t testClass.setIncludedMethods(methodsToRun);\r\n\t\t \r\n\t\t classes.add(testClass);\r\n\t\t\t}\r\n\t\t\ttest.setXmlClasses(classes);\r\n\t\t}\r\n\t\t\r\n\t\tsuites.add(suite);\r\n\t\t\r\n\t\t/**\r\n\t\t * Writing the TestNG.xml information to a file\r\n\t\t */\r\n\t\t FileWriter writer;\r\n\t\t File TestNGFile = new File(\"TestNG.xml\");\r\n\t\t if(TestNGFile.exists())\t\t\t\t\t\t// Delete TestNG if exists\r\n\t\t\t TestNGFile.delete();\r\n\t\t \r\n\t\t\twriter = new FileWriter(TestNGFile);\r\n\t\t\t writer.write(suite.toXml());\r\n\t\t writer.flush();\r\n\t\t writer.close();\r\n\t\t logger.info(\"TestNG file Generated Successfully\");\r\n\t\t\r\n\t\tTestNG tng = new TestNG();\r\n\t\ttng.setXmlSuites(suites);\r\n\t\ttng.run(); \r\n\t\t\r\n\t}", "private static void testgen(String[] args) {\n JSONParser parser = new JSONParser();\n TestgenOptions options = parseTestgenOptions(args);\n CLI.setVerbosity(options);\n if (options.numTasks < 1) {\n API.throwCLIError(\"Invalid number of tasks provided (-n): \" + options.numTasks);\n }\n\n Map<String, Object> objects;\n if (!options.inFile.isEmpty()) {\n objects = parser.parse(options.inFile, true);\n } else if (!options.inString.isEmpty()) {\n objects = parser.parse(options.inString, false);\n } else {\n API.throwCLIError(\"No input JSON provided (-i)\");\n return;\n }\n\n if (objects.get(\"initialState\") == null || objects.get(\"goalState\") == null) {\n API.throwCLIError(\"Both an initial state and a goal state must be provided.\");\n }\n\n TestCaseGenerator generator = new TestCaseGenerator(\n (SystemState) objects.get(\"initialState\"),\n (GoalState) objects.get(\"goalState\"),\n options.numTasks,\n options.optimalPlan,\n options.output\n );\n\n ArrayList<Task> tasks = generator.generateTestCase();\n ArrayList<Optimization> ops = generator.generateOptimizations();\n try{\n generator.testCaseToJSON(tasks, ops, options.perturbations);\n } catch (IOException e){\n API.throwCLIError(\"Failed to write testCase to JSON\");\n }\n\n }", "public static void main(String[] args) throws UnknownHostException, IOException, ParseException, InterruptedException, Exception {\n InputStream stream = null;\n if (args.length > 0) {\n File file = new File(args[0]);\n if (file.isFile()) {\n stream = new FileInputStream(file);\n TestcaseRunner tr = new TestcaseRunner(0, stream);\n } else if (file.isDirectory()) {\n File[] files = file.listFiles();\n for(int i = 0; i < files.length; i++) {\n File f = files[i];\n if(f.isFile()) {\n stream = new FileInputStream(f);\n TestcaseRunner tr = new TestcaseRunner(i, stream);\n }\n }\n } else {\n System.err.println(\"Argument needs to be a file or a folder\");\n System.exit(-1);\n }\n return;\n } else {\n stream = App.class.getClassLoader().getResourceAsStream(\"merge_testcase.csv\");\n }\n\n SettingsParser.parse();\n\n if (profilingRun) { // For profiling\n\n LogManager.getLogManager().reset();\n\n for (int i = 0; i < 1000; i++) {\n runTest();\n }\n\n } else {\n\n WSServer ws = new WSServer(parseInt(SettingsParser.settings.get(\"websocket_port\").toString()));\n ws.start();\n\n BufferedReader sysin = new BufferedReader(new InputStreamReader(System.in));\n printHelp();\n mainloop:\n while (true) {\n String in = sysin.readLine();\n switch (in) {\n case \"q\":\n case \"quit\":\n case \"e\":\n case \"exit\":\n ws.stop();\n break mainloop;\n case \"t\":\n case \"test\":\n ws.stop();\n runTest();\n break mainloop;\n case \"f\":\n ws.stop();\n TestcaseRunner tr = new TestcaseRunner(0, stream);\n break mainloop;\n case \"h\":\n case \"help\":\n printHelp();\n break;\n default:\n System.out.println(\"Unknown command (\" + in + \")\");\n printHelp();\n break;\n }\n }\n }\n }", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n GOL_Main.main(args);\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tnew CimXmlSerializerTest().testSerializer();\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 run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n LoginRegister.main(args);\n }", "private void testProXml(){\n\t}", "public static void main(String[] args) {\r\n junit.textui.TestRunner.run(suite());\r\n }", "public static void main(String[] args) throws Exception {\n\t\tLogConfig.execute();\n\t\tlogger.info(START);\n\t\tint endValue = 0;\n\t\ttry {\n\t\t\t//args check\n\t\t\targsValidation(args); \n\t\t\t//start logic\n\t\t\tendValue = SudokuFacade.build().executeSudokuValidation(new FileSystemContext(args[0]));\n\t\t} catch (Exception e) {\n\t\t\tendValue = 1;\n\t\t\tlogger.log(SEVERE, EXCEPTION, e);\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tlogger.info(END);\n\t\t\tlogger.info(endValue == 0 ? SUCCESS : FAIL );\n\t\t}\n\t}", "protected void setUp() throws Exception {\r\n bundle = new BundleInfo();\r\n bundle.setBundle(\"sun.security.util.Resources_zh_CN\");\r\n bundle.setDefaultMessage(\"some message.\");\r\n bundle.setMessageKey(\"key\");\r\n validator = new MemberNotTeamMemberForProjectValidator(bundle);\r\n TestHelper.clearConfiguration();\r\n TestHelper.loadConfiguration(\"test_files/failure/validconfig.xml\");\r\n validator.setRegistrationValidator(new DataValidationRegistrationValidator());\r\n }", "public static void main(String[] args) {\n new TSL2550Test();\n }", "public static void main(String[] args) throws IOException, JAXBException {\n Report.builder()\n .moduleList(System.getProperty(MODULES_PROPERTY_NAME, DEFAULT_MODULES_LIST))\n .inputFileDir(System.getProperty(INPUT_FILE_DIR_PROPERTY_NAME, DEFAULT_INPUT_FILE_DIR))\n .inputFileName(System.getProperty(INPUT_FILE_NAME_PROPERTY_NAME, DEFAULT_INPUT_FILE_NAME))\n .outputFileDir(System.getProperty(OUTPUT_FILE_DIR_PROPERTY_NAME, DEFAULT_OUTPUT_FILE_DIR))\n .outputFileName(System.getProperty(OUTPUT_FILE_NAME_PROPERTY_NAME, DEFAULT_OUTPUT_FILE_NAME))\n .build()\n .execute();\n }", "public static void main(String argv[])\n {\n\t\tX3DObject exampleObject = new HelloWorldProgramOutput().getX3dModel();\n\t\t\n\t\texampleObject.handleArguments(argv);\n\t\tSystem.out.print(\"HelloWorldProgramOutput self-validation test results: \");\n\t\tString validationResults = exampleObject.validationReport();\n\t\tSystem.out.println(validationResults);\n\t}", "public static void main(String [] args) {\n TestFListInteger test = new TestFListInteger();\n \n test.testIsEmpty();\n test.testGet();\n test.testSet();\n test.testSize();\n test.testToString();\n test.testEquals();\n \n test.summarize();\n \n }", "public static void main(String args[]) {\n\t\t JUnitCore junit = new JUnitCore();\n\t\t junit.addListener(new TextListener(System.out));\n\t\t Result result = junit.run(registration.class); // Replace \"SampleTest\" with the name of your class\n\t\t if (result.getFailureCount() > 0) {\n\t\t System.out.println(\"Test failed.\");\n\t\t System.exit(1);\n\t\t } else {\n\t\t System.out.println(\"Session Test finished successfully.\");\n\t\t System.exit(0);\n\t\t }\n\t}", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n SServer.main(args);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public static void main(String[] args) {\n\n\t\torg.junit.runner.JUnitCore.main(\"org.infy.idp.config.TokenControllerTest\");\n\t}", "public void runIndividualSpreadsheetTests() {\r\n\r\n\t\t// Make a list of files to be analyzed\r\n\t\tString[] inputFiles = new String[] {\r\n//\t\t\t\t\"salesforecast_TC_IBB.xml\",\r\n//\t\t\t\t\"salesforecast_TC_2Faults.xml\",\r\n//\t\t\t\t\t\t\t\"salesforecast_TC_2FaultsHeavy.xml\",\r\n\t\t\t\t\"SemUnitEx1_DJ.xml\",\r\n\t\t\t\t\"SemUnitEx2_1fault.xml\",\r\n\t\t\t\t\"SemUnitEx2_2fault.xml\",\r\n//\t\t\t\t\"VDEPPreserve_1fault.xml\",\r\n//\t\t\t\t\"VDEPPreserve_2fault.xml\",\r\n//\t\t\t\t\t\t\t\"VDEPPreserve_3fault.xml\",\r\n//\t\t\t\t\"AZA4.xml\",\r\n//\t\t\t\t\"Consultant_form.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation_v2.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation_C3.xml\",\r\n//\t\t\t\t\"11_or_12_diagnoses.xml\",\r\n//\t\t\t\t\"choco_loop.xml\",\r\n//\t\t\t\t\"Paper2.xml\",\r\n//\t\t\t\t\"Test_If.xml\",\r\n//\t\t\t\t\"Test_If2.xml\",\r\n\r\n\t\t};\r\n\r\n\t\tscenarios.add(new Scenario(executionMode.singlethreaded, pruningMode.on, PARALLEL_THREADS, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.levelparallel, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, PARALLEL_THREADS, true));\r\n//\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.levelparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic,pruningMode.on,PARALLEL_THREADS*2));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic,pruningMode.on,0));\r\n\r\n//\t\tinputFiles = new String[]{\"VDEPPreserve_3fault.xml\"};\r\n\r\n\r\n\t\t// Go through the files and run them in different scenarios\r\n\t\tfor (String inputfilename : inputFiles) {\r\n\t\t\trunScenarios(inputFileDirectory, inputfilename, logFileDirectory, scenarios);\r\n\t\t}\r\n\t}", "public static void main (String[] args)\r\n {\r\n /* junit.textui.TestRunner will write the test results to stdout. */\r\n junit.textui.TestRunner.run (TokenTest.class);\r\n\r\n /* junit.swingui.TestRunner will display the test results in JUnit's\r\n swing interface. */\r\n //junit.swingui.TestRunner.run (Project2Test.class);\r\n }", "public static void main(String[] args) {\n\t\trun();\n\t\t//runTest();\n\n\t}", "@Test\n\tpublic void testValidate_20()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tFile file = new File(\"\");\n\n\t\tfixture.validate(fileName, validateFileExtension, file);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "public static void main(String[] args) {\r\n System.out.println(runAllTests());\r\n }", "public static void main(String[] args) {\n testFactorial();\n testFibonacci();\n testMissing();\n testPrime();\n\n\n }", "@Test\n\tpublic void testValidate_11()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\n\t\tfixture.validate(fileName, validateFileExtension);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "public static void main(String[] args) {\n\n testWithNElementsParallel(1000);\n testWithNElementsParallel(10000);\n testWithNElementsParallel(100000);\n testWithNElementsParallel(1000000);\n testWithNElementsParallel(5000000);\n testWithNElementsParallel(10000000);\n }", "public static void main(String[] args) {\n\ttest(tests);\n }", "public static void main(String[] args) {\r\n \tScanner scan = new Scanner(System.in);\r\n \tint testCases = scan.nextInt();\r\n \tString[] str = new String[testCases];\r\n \tscan.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\r\n \t// first constraint\r\n \tif ((testCases >= 1) && (testCases <= 10)) {\r\n \t\tfor (int j = 0; j < testCases; j++) {\r\n \t\t\tstr[j] = scan.next();\r\n \t\t}\r\n \t\tfor (int k = 0; k < str.length; k++) {\r\n \t\t\ttest(str[k]);\r\n \t\t}\r\n \t} else {\r\n \t\tSystem.out.println(\"The number of test cases must be between 1 and 10.\");\r\n \t}\r\n \tscan.close();\r\n \t\r\n }", "@Test\r\n\tpublic void testSanity() {\n\t}", "@Test\n\tpublic void testValidate_10()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\n\t\tfixture.validate(fileName, validateFileExtension);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n\tpublic void testValidate_16()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = false;\n\n\t\tfixture.validate(fileName, validateFileExtension);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "public static void main(String[] args) throws Exception {\n \tString filename = null;\n \tboolean dtdValidate = false;\n \tboolean xsdValidate = false;\n \tString schemaSource = null;\n \t\n \targs[1] = \"/home/users/xblepa/git/labs/java/parser/src/test/data/personal-schema.xml\";\n \n boolean ignoreWhitespace = false;\n boolean ignoreComments = false;\n boolean putCDATAIntoText = false;\n boolean createEntityRefs = false;\n\n\t\t \n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t if (args[i].equals(\"-dtd\")) { \n\t\t \t\tdtdValidate = true;\n\t\t } \n\t\t else if (args[i].equals(\"-xsd\")) {\n\t\t \txsdValidate = true;\n\t\t } \n\t\t else if (args[i].equals(\"-xsdss\")) {\n\t\t if (i == args.length - 1) {\n\t\t usage();\n\t\t }\n\t\t xsdValidate = true;\n\t\t schemaSource = args[++i];\n\t\t }\n\t\t else if (args[i].equals(\"-ws\")) {\n\t ignoreWhitespace = true;\n\t } \n\t else if (args[i].startsWith(\"-co\")) {\n\t ignoreComments = true;\n\t }\n\t else if (args[i].startsWith(\"-cd\")) {\n\t putCDATAIntoText = true;\n\t } \n\t else if (args[i].startsWith(\"-e\")) {\n\t createEntityRefs = true;\n\t // ...\n\t } \n\t\t else {\n\t\t filename = args[i];\n\t\t if (i != args.length - 1) {\n\t\t usage();\n\t\t }\n\t\t }\n\t\t}\n\t\t\n\t\tif (filename == null) {\n\t\t usage();\n\t\t}\n\t \t\n // Next, add the following code to the main() method, to obtain an instance of a factory that can give us a document builder.\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \n dbf.setNamespaceAware(true);\n dbf.setValidating(dtdValidate || xsdValidate);\n \n // Now, add the following code to main() to get an instance of a builder, and use it to parse the specified file.\n DocumentBuilder db = dbf.newDocumentBuilder(); \n \n // The following code configures the document builder to use the error handler defined in Handle Errors. \n OutputStreamWriter errorWriter = new OutputStreamWriter(System.err,outputEncoding);\n db.setErrorHandler(new MyErrorHandler (new PrintWriter(errorWriter, true)));\n\n \n Document doc = db.parse(new File(filename)); \n \n }", "@Test\n\tpublic void testValidate_5()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\n\t\tfixture.validate(fileName, validateFileExtension);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "public static void main(String[] args) {\n\t\t\n\n\t\torg.junit.runner.JUnitCore.main(\"org.infy.idp.entities.jobs.ApplicationTest\");\n\t}", "@Test\r\n\tpublic void testCreateXml(){\n\t}", "public static void main(String[] args) {\r\n // 2. Call your method in various ways to test it here.\r\n }", "public static void main( String args[] ) {\n\n for ( int j = 0; j < TEST_COUNT; ++j ) {\n testSuite[j].execute();\n }\n }", "@Test\n\tpublic void testValidate_15()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\n\t\tfixture.validate(fileName, validateFileExtension);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n\tpublic void testValidate_51()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tString sourceFileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tInputStream is = null;\n\n\t\tfixture.validate(fileName, fileExtension, sourceFileName, validateFileExtension, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "public static void main(String[] args){\n boolean run = true;\n TestSlideLeft TSL = new TestSlideLeft();\n System.out.println(\"Test to start \"+\n TSL.TestStart(run).getResult());\n \n }", "public static void main(String[] args) {\n\n long startTime = System.currentTimeMillis();\n GenericSchemaValidator validator = new GenericSchemaValidator();\n\n // check if the required number of arguments where supplied\n if(args == null || args.length != 2) {\n printUsage();\n System.exit(1);\n }\n\n // Check schema file.\n URI schemaUri = null;\n\n // check if we can use the file location as given\n File schemaFile = new File(args[0]);\n if (schemaFile.exists()) {\n schemaUri = schemaFile.toURI();\n }\n\n // maybe the schema was provided in URL/URI form\n if (schemaUri == null ) {\n try {\n schemaUri = new URI(args[0]);\n } catch (URISyntaxException e) {\n System.err.println(\"\\nURI is not in a valid syntax! \" + args[0] + \"\\n\");\n System.exit(1);\n }\n }\n\n // a few checks on the URI \n if (schemaUri.isOpaque()) {\n System.err.println(\"\\nOpaque URIs are not supported! \" + args[0] + \"\\n\");\n System.exit(1);\n }\n if (!schemaUri.getPath().endsWith(\".xsd\")) {\n System.err.println(\"\\nWARNING: The specified URI does not seem to point to \" +\n \"a XML schema file (it should have the ending '.xsd')! Trying anyway...\");\n }\n\n boolean inputIsFolder = false;\n\n // Check input file or folder.\n File inputLocation = new File(args[1]);\n if(!inputLocation.exists()){\n System.err.println(\"\\nUnable to find the input you specified: '\" + args[1] + \"'!\\n\");\n System.exit(1);\n }\n if(inputLocation.isDirectory()) {\n inputIsFolder = true;\n } else if (inputLocation.isFile()) {\n inputIsFolder = false;\n } else {\n System.err.println(\"\\nThe input you specified (\" + args[1] + \") is not a folder nor a normal file!\\n\");\n System.exit(1);\n }\n\n\n try {\n // Set the schema.\n validator.setSchema(schemaUri);\n\n // accumulate the file(s) we are supposed to validate\n File[] inputFiles;\n if (inputIsFolder) {\n // the specified input is a directory, so we have to validate all XML files in that directory\n System.out.println(\"\\nRetrieving files from '\" + inputLocation.getAbsolutePath() + \"'...\");\n inputFiles = inputLocation.listFiles(new FilenameFilter() {\n public boolean accept(File dir, String name) {\n boolean result = false;\n if(name.toLowerCase().endsWith(\"mzml\") || name.toLowerCase().endsWith(\"xml\")) {\n result = true;\n }\n return result;\n }\n });\n } else {\n // the specified input is a file, so we only have to validate this file\n inputFiles = new File[1];\n inputFiles[0] = inputLocation;\n }\n\n System.out.println(\"Validating \" + inputFiles.length + \" input file(s)...\");\n for (File inputFile : inputFiles) {\n BufferedReader br = null;\n try{\n // set the suggested buffer size for the BufferedReader\n validator.setReadBufferSize(suggestBufferSize(inputFile));\n System.out.println(\"\\n\\n - Validating file '\" + inputFile.getAbsolutePath() + \"'...\");\n System.out.println(\" (using a buffer size (in bytes): \" + validator.getReadBufferSize());\n\n if (validator.getReadBufferSize() > 0) {\n // use user defined buffer size\n br = new BufferedReader(new FileReader(inputFile), validator.getReadBufferSize());\n } else {\n // use system default size for the buffer\n br = new BufferedReader(new FileReader(inputFile));\n }\n ErrorHandlerIface xveh = validator.validate(br);\n if (xveh.noErrors()) {\n System.out.println(\" File is valid!\");\n } else {\n System.out.println(\" * Errors detected: \");\n for (Object vMsg : xveh.getErrorMessages()) {\n System.out.println( vMsg.toString() );\n }\n }\n } finally {\n try {\n if(br != null) {\n br. close();\n }\n } catch(IOException ioe) {\n // Do nothing.\n }\n }\n }\n System.out.println(\"\\nAll done!\\n\");\n } catch(Exception e) {\n e.printStackTrace();\n }\n long stopTime = System.currentTimeMillis();\n\n System.out.println( \"Time for validation (in ms): \" + (stopTime - startTime) );\n }", "public static void main(String[] args) {\n\n\n for (int i = 0; i < 3; i++) {\n System.out.println(\"\\n********* TEST \" + (i+1) + \" *********\");\n experimentOne(false);\n experimentOne(true);\n\n experimentTwo(false);\n experimentTwo(true);\n\n experimentThree(false);\n experimentThree(true);\n }\n }", "public static void main(String[] args) {\n\t\t ExtentHtmlReporter htmlReporter = new Exte\r\n\t\t\t\t ntHtmlReporter(\"extent.html\");\r\n\t // create ExtentReports and attach reporter(s)\r\n\t ExtentReports extent = new ExtentReports();\r\n\t extent.attachReporter(htmlReporter);\r\n\t // creates a toggle for the given test, adds all log events under it \r\n ExtentTest MYTEST = extent.createTest(\"Google Search\", \"To validate the ggogle search functionality\"); \r\n System.setProperty(\"webdriver.gecko.driver\",\"C:\\\\Users\\\\ADMIN\\\\Downloads\\\\geckodriver.exe\");\r\n\t\t WebDriver driver=new FirefoxDriver();\r\n\t\t driver.get(\"https://google.com\");\r\n\t\t \r\n\t\t MYTEST.log(Status.INFO,\"starting my test case\");\r\n\t\t // driver.get(url);\r\n\t\t driver.findElement(By.name(\"q\")).sendKeys(\"selenium automation\");\r\n\t\t MYTEST.pass(\"entered text in search box\");\r\n\t\t //driver.findElement(By.name(\"btnK\")).sendKeys(Keys.RETURN);\r\n\t\t // MYTEST.pass(\"pressed the click button\");\r\n\t\t driver.close();\r\n\t\t driver.quit(); \r\n\t\t //MYTEST.pass(\"closed the browser\");\r\n\t\t MYTEST.pass(\"compoleted the test\");\r\n\t\t // calling flush writes everything to the log file\r\n\t\t extent.flush();\r\n\t\r\n\t}", "public static void main(String args[]) {\n org.junit.runner.JUnitCore.main(\"Problem3Tests\");\n }", "@Test\n void run() throws Exception {\n setupDefaultAsPerProperties();\n\n JUnitUI UI = new JUnitUI();\n DiskWorker worker = new DiskWorker(UI);\n\n assertTrue(worker.run());\n }", "public static void main(String[] args) {\n junit.textui.TestRunner.run(GeneratedTest1.class);\n }", "public static void main(String[] args) {\n final int t = SYS_IN.nextInt(); // total test cases\n SYS_IN.nextLine();\n for (int ti = 0; ti < t; ti++) {\n evaluateCase();\n }\n SYS_IN.close();\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n drunkardTest(TEST_STEP_TIMES_1, TEST_STEP_SIZE_1);\n drunkardTest(TEST_STEP_TIMES_2, TEST_STEP_SIZE_2);\n\t}", "public static void main(String[] args) {\n\t\tUtility utility = new Utility();\n\t\t\n\t\t// build trainingset\n\t\tSystem.out.println(\"Training System....\");\n\t\tArrayList<Student> trainingSet = utility.readStudentfile(\"porto_math_train.csv\");\n\t\tArrayList<Variable> variableSets = Student.getAllVar();\n\n\t\tTree tree = new Tree();\n\t\tNode decisionTree = tree.buildTree2(trainingSet, variableSets);\n\n\t\tutility .printNode(decisionTree);\n\n\t\t// testing DT\n\t\tSystem.out.println(\"\\tTesting System (trainingSet)....\");\n\t\tutility.testTree2(trainingSet, decisionTree);\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\tTesting System (testSet)....\");\n\t\tArrayList<Student> testSet = utility.readStudentfile(\"porto_math_test.csv\");\n\t\tutility.testTree2(testSet, decisionTree);\t\t\n\t}", "public static void runTests() {\n\t\tResult result = JUnitCore.runClasses(TestCalculator.class);\n\n\t}", "@Test\n\tpublic void testValidate_6()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\n\t\tfixture.validate(fileName, validateFileExtension);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\r\n public void testMain() {\r\n System.out.println(\"main\");\r\n String[] args = null;\r\n ChessMain.main(args);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "@Test\n public void testMetrics() throws Exception {\n wrapper.setMetricsConfig(\"metrics2\");\n \n String command = getCommandAllEnvVariables();\n FreeStyleBuild build = runBatchCommand(command);\n\n // Assert that the console log contains the output we expect\n checkBinUnset(build);\n checkMetricsSet(build, \n \"polyspace-results-repository -f -upload -server metrics2.com:32427\",\n \"metrics2.com\",\n \"32427\",\n \"metrics2.com\"); // the url does not contain the port as the port is used to upload only\n checkAccessUnset(build);\n }", "@Test\n\tpublic void testValidate_50()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tString sourceFileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tInputStream is = null;\n\n\t\tfixture.validate(fileName, fileExtension, sourceFileName, validateFileExtension, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "public static void main(String[] args) throws IOException {\n\t\t testType1();\n\n\t\t// testMatrix();\n//\t\ttestKening();\n\t\t\n//\t\ttestOutline();\n\t}" ]
[ "0.6756423", "0.6686263", "0.65390515", "0.6328607", "0.6099644", "0.6017537", "0.6000003", "0.59294325", "0.5927758", "0.59156615", "0.5914891", "0.5903264", "0.58532", "0.5843824", "0.5828576", "0.58199316", "0.5815197", "0.5766397", "0.57624656", "0.57558453", "0.57502943", "0.57390445", "0.5737182", "0.5734636", "0.57226175", "0.57120025", "0.5709827", "0.5700462", "0.5678626", "0.5663545", "0.56478775", "0.5645462", "0.5638329", "0.56360286", "0.5617968", "0.5610065", "0.56062794", "0.5604904", "0.5596302", "0.55848217", "0.55789727", "0.55656475", "0.5546785", "0.5546694", "0.55457157", "0.55445725", "0.5542308", "0.5539857", "0.5538313", "0.5537436", "0.5533606", "0.55249935", "0.55170745", "0.55124784", "0.5510549", "0.5506591", "0.5502638", "0.5500967", "0.54961807", "0.54955363", "0.54802424", "0.54801434", "0.54752046", "0.5472072", "0.5467506", "0.54595846", "0.5456149", "0.54530025", "0.54501414", "0.5440393", "0.5437573", "0.5436222", "0.5422408", "0.5417617", "0.5414", "0.540807", "0.5407021", "0.54050285", "0.54046637", "0.5399817", "0.53997844", "0.5395106", "0.53926784", "0.539137", "0.5389803", "0.53864896", "0.5384943", "0.5382335", "0.5379555", "0.53745824", "0.53733766", "0.53731525", "0.5368163", "0.5367862", "0.53666687", "0.53661036", "0.53600776", "0.5359896", "0.53578746", "0.5357365" ]
0.5550939
42
Sets the number of iterations to run per test.
public static void setNumIterations(long aNumIterations) { numIterations = aNumIterations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIterations(int iter) {\n\t\tnumIterations = iter;\n\t}", "public void setIterations(int iterations) {\r\n\t\tthis.iterations = iterations;\r\n\t}", "public void setIterations(int iterations) {\n\t\tthis.m_iterations = iterations;\n\t}", "public void setNumTests(int i){\n if (i <= 0){\n throw new ArithmeticException(\"Number of random GAM tests must be at least 1.\");\n }\n\n numTests = i;\n }", "public void setNbIterations(int nbIterations) {\n\t\tthis.nbIterations = nbIterations;\n\t}", "protected AbstractTest(int iterations) {\n\t\tthis.iterations = iterations;\n\t}", "public void setNumberTests(int numberTests) {\n this.numberTests = numberTests;\n }", "public Builder<V, E> setIterations(int iterations) {\n this.iterations = iterations;\n return this;\n }", "@Override\n public Builder iterations(int iterations) {\n super.iterations(iterations);\n return this;\n }", "public void incrementerTest() {\n\t\tthis.nbTests++;\n\t}", "void setNumberOfResults(int numberOfResults);", "public native void setIterations(int iterations) throws MagickException;", "public void setNumberOfSimulations(int nSimul){\n this.nMonteCarlo = nSimul;\n }", "public void setRuns(int runs);", "public void setIterationLimit(int limit) {\n\t\titerationLimit = limit;\n\t }", "void setSpikesPerChunk(VariableAmount count);", "public void setCount(int count)\r\n\t{\r\n\t}", "public void resetRunCount() {\n\n }", "default void setSpikesPerChunk(int count) {\n setSpikesPerChunk(VariableAmount.fixed(count));\n }", "boolean setMultiRun(int runs);", "public void setLoopCount(int loopCount) {\n\t\tthis.loopCount = loopCount;\n\t}", "public void setNumResults(int numResults) {\n mNumResults = numResults;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "@Before\n\tpublic void setUp() {\n\t\ttest_count++;\n\t\tSystem.out.println(\"Test \"+ test_count);\n\t}", "public static void incTestCount() {\n mTestCount++;\n }", "public void resetStepCount() {\r\n\t\tstepCount = 500;\r\n\t}", "public void setUpdateOften(int i){\n countNum = i;\n }", "public Builder setServerWorkIterations(int value) {\n \n serverWorkIterations_ = value;\n onChanged();\n return this;\n }", "public void incrementLoopCount() {\n this.loopCount++;\n }", "@Override\n\tpublic int getIterationsNumber() {\n\t\treturn 0;\n\t}", "public void setInputCount(final int i) {\n this.inputCount = i;\n\n }", "@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}", "public static void resetTestCount() {\n mTestCount = 0;\n }", "public void junitSuiteStarted(int numTests) { }", "public void junitSuiteStarted(int numTests) { }", "public void setIteraciones(int iteraciones) {\r\n this.iteraciones = iteraciones;\r\n }", "private void setBatchSize( int aValue ) {\n GlobalParametersFake lConfigParms = new GlobalParametersFake( ParmTypeEnum.LOGIC.name() );\n lConfigParms.setInteger( PARAMETER_NAME, aValue );\n GlobalParameters.setInstance( lConfigParms );\n }", "public void setCount(int count) {\r\n this.count = count;\r\n }", "public void setMaxIterations(int number) {\r\n if (number < CurrentIteration) {\r\n throw new Error(\"Cannot be lower than the current iteration.\");\r\n }\r\n MaxIteration = number;\r\n Candidates.ensureCapacity(MaxIteration);\r\n }", "public void setCount(final int count)\n {\n this.count = count;\n }", "public void setCount(int count)\r\n {\r\n this.count = count;\r\n }", "public static void setNumThreads(int newNumThreads) throws Exception \n { \n /** In case of incorrect input */\n if(newNumThreads < 0)\n throw new Exception(\"attepmt to create negative count of threads\");\n numThreads = newNumThreads; \n }", "public void setStepCount(long stepCount){\n steps = stepCount;\n }", "public void setCount(int count)\n {\n this.count = count;\n }", "public void setDesiredCount(Integer desiredCount) {\n this.desiredCount = desiredCount;\n }", "public void setNumTasks(int n) {\n if (latch != null && latch.getCount() > 0) {\n throw new IllegalStateException(\"Method called during wait period\");\n }\n\n latch = new CountDownLatch(n);\n }", "@Override\n public void setLoopCount(final int loop) {\n if (isPlayerOnPage(playerId)) {\n loopManager.setLoopCount(loop);\n } else {\n addToPlayerReadyCommandQueue(\"loopcount\", new Command() {\n\n @Override\n public void execute() {\n loopManager.setLoopCount(loop);\n }\n });\n }\n }", "public void setStepCount(long stepCount){\r\n\t\tsteps = stepCount;\r\n\t}", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public Builder setServerProcessingIterations(int value) {\n \n serverProcessingIterations_ = value;\n onChanged();\n return this;\n }", "public void run() {\n long millis;\n TestCaseImpl tc = _testCase;\n \n // Force GC and record current memory usage\n _memoryBean.gc();\n _heapBytes = _memoryBean.getHeapMemoryUsage().getUsed();\n \n // Get number of threads to adjust iterations\n int nOfThreads = tc.getIntParam(Constants.NUMBER_OF_THREADS);\n \n int runIterations = 0;\n String runTime = tc.getParam(Constants.RUN_TIME);\n if (runTime != null) {\n // Calculate end time\n long startTime = Util.currentTimeMillis();\n long endTime = startTime + Util.parseDuration(runTime);\n \n // Run phase\n do {\n run(tc); // Call run\n runIterations++;\n millis = Util.currentTimeMillis();\n } while (endTime >= millis);\n }\n else {\n // Adjust runIterations based on number of threads\n runIterations = tc.getIntParam(Constants.RUN_ITERATIONS) / nOfThreads;\n \n // Run phase\n for (int i = 0; i < runIterations; i++) {\n run(tc); // Call run\n }\n }\n \n // Accumulate actual number of iterations\n synchronized (tc) {\n int actualRunIterations = \n tc.hasParam(Constants.ACTUAL_RUN_ITERATIONS) ? \n tc.getIntParam(Constants.ACTUAL_RUN_ITERATIONS) : 0;\n tc.setIntParam(Constants.ACTUAL_RUN_ITERATIONS, \n actualRunIterations + runIterations);\n }\n }", "public void setCount(final int count) {\n this.count = count;\n }", "public static void setCount(int aCount) {\n count = aCount;\n }", "private void setIteration(final String iteration) {\n\n this.iteration = iteration;\n }", "@Override\n public Builder epochs(int numEpochs) {\n super.epochs(numEpochs);\n return this;\n }", "public void InitializeMaxNumInstances(int num) {\n }", "public void setCount(Integer count) {\r\n this.count = count;\r\n }", "public void testPut() {\n title();\n for (int i = 1; i <= TestEnv.parallelism; i++) {\n this.parallelism = i;\n super.testPut();\n }\n }", "public int getIterations() {\n return iterations;\n }", "public void incrNormalRunners() {\n this.runnerStats.incrNormalRunners();\n }", "protected void runTest(int iterations) {\n\t\tsteps = 0;\n\t\trunBeforeIterations();\n\t\tfor (iteration = 0; iteration < iterations; iteration++) {\n\t\t\trunBeforeIteration();\n\t\t\tstep = 0;\n\t\t\twhile (hasNextStep()) {\n\t\t\t\trunBeforeStep();\n\t\t\t\tresult = runStep();\n\t\t\t\trunAfterStep();\n\t\t\t\tstep++;\n\t\t\t\tsteps++;\n\t\t\t}\n\t\t\trunAfterIteration();\n\t\t}\n\t\trunAfterIterations();\n\t}", "public void setNum_solver_iterations(short num_solver_iterations) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeShort(__io__address + 18, num_solver_iterations);\n\t\t} else {\n\t\t\t__io__block.writeShort(__io__address + 10, num_solver_iterations);\n\t\t}\n\t}", "public void setCounter(int value) { \n\t\tthis.count = value;\n\t}", "public final void setNbThread(final int nbThread) {\n this.nbThread = nbThread;\n }", "public void setCount(int count){\n\t\tthis.count = count;\n\t}", "public void setIteracion(int iteracion) {\n this.iteracion = iteracion;\n }", "public void resetIteration(){\n\t\titeration = 0;\n\t}", "public static void setNumberOfInputs(int _n)\r\n {\r\n numberOfInputs = _n;\r\n }", "public void testGet() {\n\t//int i = 5;\n\ttitle();\n\tfor (int i = 1; i <= TestEnv.parallelism; i++) {\n\t this.parallelism = i;\n\t super.testGet();\n\t}\n }", "public void setOneNewWanted () {\r\n numWanted ++;\r\n }", "@Override public void init_loop() {\n loop_cnt_++;\n }", "@Test\n public void setFetchCount() throws Exception {\n //Given we have a new Fectch count\n\n final int NEW_FETCH_COUNT =15;\n\n //when we set the timeline fetchCount to New_Fetch_Count\n\n timeline.setFetchCount(NEW_FETCH_COUNT);\n\n //Then the New_Fetch_Count is equal to timeline.getFetchCount()\n assertTrue(timeline.getFetchCount()==NEW_FETCH_COUNT);\n\n }", "public int runCount() {\n return testCount;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public int getIterations() {\r\n\t\treturn iterations;\r\n\t}", "@Before\r\n public void setUp() {\r\n it = new EvenIterator(new int[]{1, 2, 3, 4, 5, 6, 7});\r\n }", "public void set_count(int c);", "public void setCounter(int number){\n this.counter = number;\n }", "@Before\n public void setUp() throws Exception {\n fileFinder = new FileFinder();\n testFiles = new ArrayList<>(10);\n }", "public final void setBatchSize(int batch) {\n batchSize = batch;\n }", "public void setIteration(final String iteration) {\n\n this.iteration = iteration;\n }", "int getIterations();", "public void increaseScenarioCountBy(int amount) {\n this.scenarioCount += amount;\n }", "public void nextIteration()\n {\n actuelIteration++;\n }", "public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }", "public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}", "public void setCount(final int count) {\n\t\t_count = count;\n\t}", "protected void runBeforeIterations() {}", "public int getIterations() {\n return iterations;\n }" ]
[ "0.79665947", "0.76534885", "0.7320081", "0.7161475", "0.69401884", "0.69032073", "0.6886845", "0.6715848", "0.6654028", "0.6539268", "0.6519837", "0.6509794", "0.64623886", "0.64416814", "0.6245486", "0.6237083", "0.62320954", "0.6178401", "0.61645967", "0.6159463", "0.61091", "0.6102574", "0.6100656", "0.6100656", "0.6100656", "0.6092955", "0.6080902", "0.6065596", "0.6054145", "0.6049377", "0.60336655", "0.6012881", "0.59975326", "0.59825927", "0.596488", "0.59606916", "0.59606916", "0.59586865", "0.5953064", "0.59502", "0.5919804", "0.5907402", "0.58978057", "0.5891528", "0.58878416", "0.5884794", "0.5883127", "0.5878939", "0.58402276", "0.5838947", "0.58365905", "0.58365905", "0.58365905", "0.58365905", "0.58365905", "0.5834925", "0.5827012", "0.5826987", "0.5800494", "0.57960504", "0.5788301", "0.5785855", "0.57823926", "0.5769863", "0.5766094", "0.57605034", "0.5760199", "0.5758428", "0.5755307", "0.5739839", "0.5708764", "0.57070094", "0.5706044", "0.57043767", "0.570075", "0.5697479", "0.5696558", "0.5696215", "0.56903845", "0.5689102", "0.5689102", "0.5689102", "0.5689102", "0.5689102", "0.5689102", "0.5685445", "0.56819534", "0.56759995", "0.56691027", "0.56690305", "0.56649935", "0.5661179", "0.5650868", "0.56445885", "0.5642256", "0.5641226", "0.5640965", "0.56325024", "0.5618125", "0.5618102" ]
0.7086493
4
Creates a MapSchema that is a subschema.
public MapSchema( Schema parentSchema, String name, Expression expression) { this( parentSchema, parentSchema.getQueryProvider(), parentSchema.getTypeFactory(), name, expression); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MapSchema create(\n MutableSchema parentSchema,\n String name) {\n MapSchema schema =\n new MapSchema(\n parentSchema,\n name,\n parentSchema.getSubSchemaExpression(name, Object.class));\n parentSchema.addSchema(name, schema);\n return schema;\n }", "public void setSubSchema(String subSchema) {\n this.subSchema = subSchema;\n }", "public Builder localSchemaMap(final Map<String, BsonDocument> localSchemaMap) {\n this.localSchemaMap = localSchemaMap;\n return this;\n }", "Schema createSchema();", "SchemaDefinition createSchemaDefinition();", "@Override\n\tpublic void buildSchema() {\n\t\tchild.buildSchema();\n\t\tschema = child.schema;\n\t}", "@Override\n public Schema outputSchema(Schema input) {\n\t\tClass<T> typeOfT = (Class<T>)\n ((ParameterizedType)getClass()\n .getGenericSuperclass())\n .getActualTypeArguments()[0];\n\n return new Schema(new Schema.FieldSchema(null, DataType.findType(typeOfT)));\t\t\t\t\n\t}", "@Override\r\n protected Schema generateSchema() {\r\n Operator child = getChild();\r\n if (child == null) {\r\n return null;\r\n }\r\n Schema inputSchema = child.getSchema();\r\n if (inputSchema == null) {\r\n return null;\r\n }\r\n\r\n groupSchema = inputSchema.getSubSchema(gfields);\r\n\r\n /* Build the output schema from the group schema and the aggregates. */\r\n final ImmutableList.Builder<Type> aggTypes = ImmutableList.<Type>builder();\r\n final ImmutableList.Builder<String> aggNames = ImmutableList.<String>builder();\r\n\r\n try {\r\n for (Aggregator agg : AggUtils.allocateAggs(factories, inputSchema)) {\r\n Schema curAggSchema = agg.getResultSchema();\r\n aggTypes.addAll(curAggSchema.getColumnTypes());\r\n aggNames.addAll(curAggSchema.getColumnNames());\r\n }\r\n } catch (DbException e) {\r\n throw new RuntimeException(\"unable to allocate aggregators to determine output schema\", e);\r\n }\r\n aggSchema = new Schema(aggTypes, aggNames);\r\n return Schema.merge(groupSchema, aggSchema);\r\n }", "ExpRunGroupMapTable createRunGroupMapTable(String name, UserSchema schema, ContainerFilter cf);", "private static void createTypeMap() {\n\n }", "public abstract void createMap();", "public JsonSchemaMappingLookup() {\n // initialize all mappings from URLs to the respective schema\n businessObjectToJsonSchema.put(\"/rules\", DCC_VALIDATION_RULE_JSON_CLASSPATH);\n businessObjectToJsonSchema.put(\"/bnrules\", DCC_VALIDATION_RULE_JSON_CLASSPATH);\n businessObjectToJsonSchema.put(\"/cclrules\", CCL_JSON_SCHEMA);\n }", "protected ApplicationMap createAppMapInstance (String mapname){\n\t\treturn new ApplicationMap(mapname);\t\t\n\t}", "public static <T> RuntimeSchema<T> createFrom(Class<T> typeClass, \r\n Map<String,String> declaredFields)\r\n {\r\n if(typeClass.isInterface() || Modifier.isAbstract(typeClass.getModifiers()))\r\n {\r\n throw new RuntimeException(\"The root object can neither be an abstract \" +\r\n \t\t\"class nor interface: \\\"\" + typeClass.getName());\r\n }\r\n \r\n ArrayList<Field<T>> fields = new ArrayList<Field<T>>(declaredFields.size());\r\n int i = 0;\r\n for(Map.Entry<String, String> entry : declaredFields.entrySet())\r\n {\r\n java.lang.reflect.Field f;\r\n try\r\n {\r\n f = typeClass.getDeclaredField(entry.getKey());\r\n }\r\n catch (Exception e)\r\n {\r\n throw new IllegalArgumentException(\"Exception on field: \" + entry.getKey(), e);\r\n }\r\n \r\n int mod = f.getModifiers();\r\n if(!Modifier.isStatic(mod) && !Modifier.isTransient(mod))\r\n {\r\n RuntimeFieldFactory<?> rff = RuntimeFieldFactory.getFieldFactory(f.getType());\r\n if(rff!=null)\r\n {\r\n Field<T> field = rff.create(i+1, entry.getValue(), f);\r\n if(field!=null)\r\n {\r\n i++;\r\n fields.add(field);\r\n }\r\n }\r\n }\r\n }\r\n if(fields.isEmpty())\r\n {\r\n throw new RuntimeException(\"Not able to map any fields from \" + \r\n typeClass + \". All fields are either transient/static. \" +\r\n \"Two dimensional array fields are excluded. \" +\r\n \"Collection/Map fields whose generic type is another \" +\r\n \"Collection/Map or another generic type, are excluded.\");\r\n }\r\n return new RuntimeSchema<T>(typeClass, fields, i);\r\n }", "private Document createMapping() {\n return getIndexOperations().createMapping();\n }", "public MappingType createMappingType() {\n\t\treturn mappingFactory.createMappingType();\n\t}", "protected Map createMapMatchingType(MappingContext mappingContext) {\n Class<?> mapType = mappingContext.getTypeInformation().getSafeToWriteClass();\n if (mapType.isAssignableFrom(LinkedHashMap.class)) {\n return new LinkedHashMap();\n } else if (mapType.isAssignableFrom(TreeMap.class)) {\n return new TreeMap();\n } else {\n throw new ConfigMeMapperException(mappingContext, \"Unsupported map type '\" + mapType + \"'\");\n }\n }", "public DomainInner withInputSchemaMapping(InputSchemaMapping inputSchemaMapping) {\n this.inputSchemaMapping = inputSchemaMapping;\n return this;\n }", "SchemaBuilder withFactory(String factoryClassName);", "public IQueryAtomContainer createHyperstructure( Map<IAtom, IAtom> mapping ) {\n\n\t\t\n\t\t/* \n\t\t * Construct a hash which translates the \"old\" index from the chromosome to the newly assigned\n\t\t * index in the hyperstructure, for an unmapped atom that's been added to the hyperstructure\n\t\t */\n\t\t\n\t\tMap<IBond, IBond> mappedBonds = ConvenienceTools.makeBondMapOfAtomMap(queryMol, hs, mapping, false); // bad practice, not the same as the actual bond mapping\n\t\t\n\t\treturn createHyperstructure( mapping, mappedBonds );\n\t\t\n\t}", "public String createMapSchemaType(MapSchemaTypeProperties schemaTypeProperties,\n String mapFromSchemaTypeGUID,\n String mapToSchemaTypeGUID) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n if (apiManagerIsHome)\n {\n return apiManagerClient.createMapSchemaType(userId, apiManagerGUID, apiManagerName, schemaTypeProperties, mapFromSchemaTypeGUID, mapToSchemaTypeGUID);\n }\n else\n {\n return apiManagerClient.createMapSchemaType(userId, null, null, schemaTypeProperties, mapFromSchemaTypeGUID, mapToSchemaTypeGUID);\n }\n }", "public MetaSchema getMetaSchema(String sName);", "SchemaComponentType createSchemaComponentType();", "static <S, T> PType<T> derived(Class<T> clazz, MapFn<S, T> inputFn, MapFn<T, S> outputFn,\n PType<S> base, PType[] subTypes) {\n WritableType<S, ?> wt = (WritableType<S, ?>) base;\n MapFn input = new CompositeMapFn(wt.getInputMapFn(), inputFn);\n MapFn output = new CompositeMapFn(outputFn, wt.getOutputMapFn());\n return new WritableType(clazz, wt.getSerializationClass(), input, output, subTypes);\n }", "private Builder() {\n super(com.politrons.avro.AvroPerson.SCHEMA$);\n }", "public JSONSchema clone() {\n JSONSchema clonedSchema = new JSONSchema().id(_id).title(_title).description(_description).required(_required).\n types(Collections2.transform(_types.values(), JSONSchemaTypes.CloningFunction.INSTANCE));\n\n if (_referencesSchema != null) {\n clonedSchema.setReferencesSchema(_referencesSchema);\n } else if (_referencesSchemaID != null) {\n clonedSchema.setReferencesSchemaID(_referencesSchemaID);\n }\n\n if (_extendsSchema != null) {\n clonedSchema.setExtendsSchema(_extendsSchema);\n } else if (_extendsSchemaID != null) {\n clonedSchema.setExtendsSchemaID(_extendsSchemaID);\n }\n\n return clonedSchema;\n }", "public SchemaDto() {\n }", "public Map<String, BsonDocument> getLocalSchemaMap() {\n return localSchemaMap;\n }", "public static MapObject createMapObject(){\n\t\treturn new MapObject();\n\t}", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "private void createSubmodelURIandNameMap(){\n\t\tfor(Submodel sub : semsimmodel.getSubmodels()){\n\t\t\t\n\t\t\tResource subres = null;\n\t\t\t\n\t\t\tif(sub.hasMetadataID()) subres = rdf.createResource(\"#\" + sub.getMetadataID());\n\t\t\telse subres = createNewResourceForSemSimObject(\"submodel\");\n\t\t\t\n\t\t\tsubmodelNameAndURImap.put(sub.getName(), subres.getURI());\n\t\t}\n\t}", "MAP createMAP();", "private XContentBuilder createMappingObject() throws IOException {\n return XContentFactory.jsonBuilder()\n .startObject()\n .startObject(type)\n .startObject(ES_PROPERTIES)\n .startObject(\"externalId\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"sourceUri\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"kind\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"name\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"fields\")\n .field(ES_TYPE, ES_TYPE_NESTED)\n .startObject(ES_PROPERTIES)\n .startObject(\"name\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"value\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .endObject()\n .endObject()\n .endObject()\n .endObject()\n .endObject();\n }", "public Map<String,SecondaryTableSource> getSecondaryTableMap();", "public abstract mapnik.Map createMap(Object recycleTag);", "@Test\n public void testMapWithSchema() {\n String json =\n \"{a: 6}\\n\" +\n \"{a: 5, m: null}\\n\" +\n \"{a: 4, m: {}}\\n\" +\n \"{a: 2, m: {b: 110}}\\n\" +\n \"{a: 3, m: {c: 220}}\\n\" +\n \"{a: 1, m: {b: 10, c: 20}}\\n\" +\n \"{a: 7, m: {b: 710, c: 720}}\";\n\n TupleMetadata schema = new SchemaBuilder()\n .addNullable(\"a\", MinorType.BIGINT)\n .addMap(\"m\")\n .addNullable(\"b\", MinorType.BIGINT)\n .addNullable(\"c\", MinorType.BIGINT)\n .resumeSchema()\n .build();\n\n JsonLoaderFixture loader = new JsonLoaderFixture();\n loader.builder.providedSchema(schema);\n loader.open(json);\n RowSet results = loader.next();\n assertNotNull(results);\n\n RowSet expected = fixture.rowSetBuilder(schema)\n .addRow(6L, mapValue(null, null))\n .addRow(5L, mapValue(null, null))\n .addRow(4L, mapValue(null, null))\n .addRow(2L, mapValue(110L, null))\n .addRow(3L, mapValue(null, 220L))\n .addRow(1L, mapValue(10L, 20L))\n .addRow(7L, mapValue(710L, 720L))\n .build();\n RowSetUtilities.verify(expected, results);\n assertNull(loader.next());\n loader.close();\n }", "public Mapping addMapping() {\n\t\tMapping newType = new Mapping();\n\t\tgetMapping().add(newType);\n\t\treturn newType; \n\t}", "private void createSchemaInfo() {\n\t\tfor (String tableName : tableSchemas.keySet()) {\n\t\t\tERWinSchemaInfo schemaInfo = new ERWinSchemaInfo();\n\t\t\tschemaInfo.setType(\"user\");\n\t\t\tschemaInfo.setUniqueName(tableName);\n\t\t\tschemaInfos.put(tableName, schemaInfo);\n\t\t}\n\n\t\tinitCache();\n\t\tparseKeyGroupGroups();\n\n\t\tparseEntityProps();\n\t\tparseRelationGroups();\n\t\tparseAttributes();\n\n\t\tcreateSchemaDDL();\n\t}", "private TableSchema createTableSchema(Node entity) {\n\t\tString physicalName = handler.getChildValueByProperty(entity,\n\t\t\t\t\"EntityProps.Physical_Name\");\n\t\tString name = entity.getAttributes().getNamedItem(\"Name\").getNodeValue().trim();\n\t\tString id = entity.getAttributes().getNamedItem(\"id\").getNodeValue().trim();\n\t\tnodeMap.put(id, entity);\n\t\tTableSchema tableSchema = new TableSchema(\"\", \"\");\n\t\tif (physicalName != null) {\n\t\t\tphysicalNameMap.put(id, physicalName);\n\t\t\ttableSchema.setName(physicalName);\n\t\t} else {\n\t\t\ttableSchema.setName(name);\n\t\t}\n\n\t\treturn tableSchema;\n\t}", "public MetaSchema getMetaSchema(int iSchema);", "public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}", "public List<ResourceMapping> getSubMappings()\n {\n return f_subMappings;\n }", "public Schema() {\n\t\tsuper();\n\t}", "static SchemaBuilder newInstance() {\n return new SchemaBuilderImpl();\n }", "GraphQLSchema transform(GraphQLSchema originalSchema);", "List<GlobalSchema> schemas();", "S getSchema();", "public void setSubTreeNodeInMOMap(Map<String, Node> subTreeNodeInMOMap) {\n\t\tthis.subTreeNodeInMOMap = subTreeNodeInMOMap;\n\t}", "public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }", "public PropertyMap createChildPropertyMap(XMLName elementTypeName)\n throws XMLMiddlewareException\n {\n checkState();\n return super.createChildPropertyMap(elementTypeName);\n }", "private void createMapOfSecondType(){\n\n this.typeOfMap=2;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = createSquare( ColorOfFigure_Square.GREEN, true,0,3);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.YELLOW, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.YELLOW, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, false,2,3);\n\n\n }", "private Builder() {\n super(sparqles.avro.discovery.DGETInfo.SCHEMA$);\n }", "private void createMapOfFirstType() {\n\n this.typeOfMap=1;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true, 0, 0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false, 0, 1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.RED, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n\n }", "private Builder() {\n super(com.twc.bigdata.views.avro.viewing_info.SCHEMA$);\n }", "public void createTapSchema(SchemaConfig schemaConfig) throws ConfigurationException;", "@Nonnull\n private static Optional<Map<String, PayloadType>> generateMapPayloadSchema(\n @Nonnull final List<Payload> payloads) {\n if (payloads.isEmpty()) {\n return Optional.empty();\n }\n\n final Set<String> emptyListValuePayloadKeys = new HashSet<>();\n final List<Map<String, PayloadType>> schemas =\n payloads.stream()\n .map(p -> inferSchemaForPayload(p, emptyListValuePayloadKeys))\n .collect(Collectors.toList());\n final Map<String, PayloadType> resultPayloadMapSchema = mergeSchemas(schemas);\n\n for (final String key : emptyListValuePayloadKeys) {\n if (!resultPayloadMapSchema.containsKey(key)\n || !resultPayloadMapSchema.get(key).isArrayType()) {\n throw new IllegalArgumentException(\"Cannot infer map schema type for key \" + key);\n }\n }\n // do not return an Optional of emptyMap\n return Optional.ofNullable(\n resultPayloadMapSchema.isEmpty() ? null : resultPayloadMapSchema);\n }", "public ASTQuery subCreate(){\r\n\t\tASTQuery ast = create();\r\n\t\tast.setGlobalAST(this);\r\n\t\tast.setNSM(getNSM());\r\n\t\treturn ast;\r\n\t}", "public static Schema buildFromDBTable(Connection conn, String tableName,\n String newSchemaName)\n {\n try\n {\n DatabaseMetaData DBMeta = conn.getMetaData();\n ResultSet rset = DBMeta.getColumns(null, null,\n tableName, null);\n\n Schema schema = new Schema(newSchemaName);\n\n /*\n * Actually, this code is not needed if we return the\n * result set. But, I am just doing it for the sake!\n */\n while (rset.next())\n {\n String columnName = rset\n .getString(\"COLUMN_NAME\");\n // Get the java.sql.Types type to which this database-specific type is mapped\n short dataType = rset.getShort(\"DATA_TYPE\");\n // Get the name of the java.sql.Types value.\n String columnType = JDBCUtils.getJdbcTypeName(dataType);\n\n schema.addAttribute(columnName, columnType, columnType);\n }\n return schema;\n }\n\n catch (Exception e)\n {\n System.out.println(\" Cannot retrieve the schema : \"\n + e.toString());\n e.printStackTrace();\n return null;\n }\n }", "public FeatureTypeSchema_Impl() {\r\n schema = XMLTools.create();\r\n }", "public ObjectSchema() {\n }", "@Test\n public void testAlteringUserTypeNestedWithinMap() throws Throwable\n {\n String[] columnTypePrefixes = {\"frozen<map<text, \", \"map<text, frozen<\"};\n for (String columnTypePrefix : columnTypePrefixes)\n {\n String ut1 = createType(\"CREATE TYPE %s (a int)\");\n String columnType = columnTypePrefix + KEYSPACE + \".\" + ut1 + \">>\";\n\n createTable(\"CREATE TABLE %s (x int PRIMARY KEY, y \" + columnType + \")\");\n\n execute(\"INSERT INTO %s (x, y) VALUES(1, {'firstValue':{a:1}})\");\n assertRows(execute(\"SELECT * FROM %s\"), row(1, map(\"firstValue\", userType(1))));\n flush();\n\n execute(\"ALTER TYPE \" + KEYSPACE + \".\" + ut1 + \" ADD b int\");\n execute(\"INSERT INTO %s (x, y) VALUES(2, {'secondValue':{a:2, b:2}})\");\n execute(\"INSERT INTO %s (x, y) VALUES(3, {'thirdValue':{a:3}})\");\n execute(\"INSERT INTO %s (x, y) VALUES(4, {'fourthValue':{b:4}})\");\n\n assertRows(execute(\"SELECT * FROM %s\"),\n row(1, map(\"firstValue\", userType(1))),\n row(2, map(\"secondValue\", userType(2, 2))),\n row(3, map(\"thirdValue\", userType(3, null))),\n row(4, map(\"fourthValue\", userType(null, 4))));\n\n flush();\n\n assertRows(execute(\"SELECT * FROM %s\"),\n row(1, map(\"firstValue\", userType(1))),\n row(2, map(\"secondValue\", userType(2, 2))),\n row(3, map(\"thirdValue\", userType(3, null))),\n row(4, map(\"fourthValue\", userType(null, 4))));\n }\n }", "MappedDatatype createMappedDatatype();", "public SchemaCustom getSchemaCustom() {\n return m_schemaCustom;\n }", "Map<String, Set<String>> mapSecondaryTablesToPrimaryGroups();", "public MapOther() {\n }", "AstroSchema getSchema();", "public DynamicSchemaTable() {\n this(\"dynamic_schema\", null);\n }", "public Schema getOutputSchema(Schema inputSchema) {\n\n\t\tList<Schema.Field> fields = new ArrayList<>();\n\t\t\n\t\tfields.add(Schema.Field.of(\"ante_token\", Schema.of(Schema.Type.STRING)));\n\t\tfields.add(Schema.Field.of(\"ante_tag\", Schema.of(Schema.Type.STRING)));\n\t\t\n\t\tfields.add(Schema.Field.of(\"cons_token\", Schema.of(Schema.Type.STRING)));\n\t\tfields.add(Schema.Field.of(\"cons_tag\", Schema.of(Schema.Type.STRING)));\n\t\t\n\t\tfields.add(Schema.Field.of(\"toc_score\", Schema.of(Schema.Type.DOUBLE)));\n\t\tfields.add(Schema.Field.of(\"doc_score\", Schema.of(Schema.Type.DOUBLE)));\n\t\t\n\t\treturn Schema.recordOf(inputSchema.getRecordName() + \".related\", fields);\n\n\t}", "RecordDataSchema getCollectionCustomMetadataSchema();", "public static <T> RuntimeSchema<T> createFrom(Class<T> typeClass)\r\n {\r\n return createFrom(typeClass, NO_EXCLUSIONS);\r\n }", "public static MapType MAP(FieldType keyType, FieldType valueType) {\n return new MapType(keyType, valueType);\n }", "@BmsSchema\npublic interface BmsDdAtsAdScheMapper {\n\n void insertAtsAdSche(BmsDdAtsAdSche bmsDdAtsAdSche);\n\n void insertAtsAdSche(Map<String, Object> param);\n}", "private void buildMap(int count, char type, String typeName) {\r\n\t\tfor (int i = 1; i <= count; i++) {\r\n\t\t\toriginalMaps.add(new MapType(\"map_\" + type + i, typeName, \"colony/map_\" + type + i));\r\n\t\t}\r\n\t}", "public void updateTapSchema(SchemaConfig newSchema, boolean createOnly) throws ConfigurationException;", "public void createPolygonMap(){\n Log.d(\"POLYGON MAP\",\"SETTING\");\n PolygonManager.getIstance().putPolygonRegion(gMap);\n }", "private SchemaTupleFactory internalNewSchemaTupleFactory(Schema s, boolean isAppendable, GenContext context) {\n return newSchemaTupleFactory(Triple.make(new SchemaKey(s), isAppendable, context));\n }", "private void createLookup() {\r\n\t\tcreateLooupMap(lookupMap, objectdef, objectdef.getName());\r\n\t\tcreateChildIndex(childIndex, objectdef, objectdef.getName());\r\n\r\n\t}", "public InputSchemaMapping inputSchemaMapping() {\n return this.inputSchemaMapping;\n }", "public Rule simpleMapType()\n \t{\n \t\treturn sequence(nonSimpleMapTypes(), noNl(), SP_COL, noNl(), nonSimpleMapTypes(),\n \t\t\t\toptional(\n \t\t\t\t// Not enforcing [] because of problems with maps like this Str:int[\"\":5]\n \t\t\t\tsequence(noNl(), optional(SP_QMARK), noNl(), SQ_BRACKET_L, SQ_BRACKET_R)), // list of '?[]'\n \t\t\t\toptional(sequence(noNl(), SP_QMARK))); // nullable\n \t}", "public void addVendor_Scheme_Plan_Map() {\n\t\tboolean flg = false;\n\n\t\ttry {\n\n\t\t\tvspmDAO = new Vendor_Scheme_Plan_MapDAO();\n\t\t\tflg = vspmDAO.saveVendor_Scheme_Plan_Map(vspm);\n\t\t\tif (flg) {\n\t\t\t\tvspm = new Vendor_Scheme_Plan_Map();\n\t\t\t\tMessages.addGlobalInfo(\"New mapping has been added!\");\n\t\t\t} else {\n\t\t\t\tMessages.addGlobalInfo(\"Failed to add new mapping! Please try again later.\");\n\t\t\t}\n\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t} finally {\n\t\t\tvspmDAO = null;\n\t\t}\n\t}", "private static Map<String, Field> schemaToMap(Set<Field> schema){\r\n\t\tMap<String, Field> map = new LinkedHashMap<String, Field>(schema.size());\r\n\t\t\r\n\t\tfor(Field f: schema)\r\n\t\t\tmap.put(f.name, f);\r\n\t\t\r\n\t\treturn map;\r\n\t}", "public Map() {\n\n\t\t}", "public org.apache.spark.sql.catalyst.ScalaReflection.Schema schemaFor (org.apache.spark.sql.catalyst.ScalaReflection.universe tpe) ;", "public OpenClusterManagementAppsSchema() {\n }", "public static SchemaTable buildSchema(String schemaName, String tableName, Class<?> keyClass, Class<?> valueClass) {\n // TODO IGNITE-13749: implement schema generation from classes.\n\n return null;\n }", "private Builder() {\n super(com.autodesk.ws.avro.Call.SCHEMA$);\n }", "public Map instantiateBackingMap(String sName);", "public Map(){\r\n map = new Square[0][0];\r\n }", "private Schema generateDirectiveOutputSchema(Schema inputSchema)\n throws RecordConvertorException {\n List<Schema.Field> outputFields = new ArrayList<>();\n for (Map.Entry<String, Object> field : outputFieldMap.entrySet()) {\n String fieldName = field.getKey();\n Object fieldValue = field.getValue();\n\n Schema existing = inputSchema.getField(fieldName) != null ? inputSchema.getField(fieldName).getSchema() : null;\n Schema generated = fieldValue != null && !isValidSchemaForValue(existing, fieldValue) ?\n schemaGenerator.getSchema(fieldValue, fieldName) : null;\n\n if (generated != null) {\n outputFields.add(Schema.Field.of(fieldName, generated));\n } else if (existing != null) {\n if (!existing.getType().equals(Schema.Type.NULL) && !existing.isNullable()) {\n existing = Schema.nullableOf(existing);\n }\n outputFields.add(Schema.Field.of(fieldName, existing));\n } else {\n outputFields.add(Schema.Field.of(fieldName, Schema.of(Schema.Type.NULL)));\n }\n }\n return Schema.recordOf(\"output\", outputFields);\n }", "@Nonnull\n private static MultimapBuilder.SetMultimapBuilder<Comparable, Object> newMapBuilder()\n {\n return MultimapBuilder.SetMultimapBuilder\n .treeKeys()\n .hashSetValues();\n }", "private void generateSchema(final ODatabaseSession session, final Class<?> clazz,\n final Map<String, OClass> processed, final Map<String, Consumer<OClass>> postProcess) {\n String className = getClassName(clazz);\n String superClassName = null;\n if (processed.containsKey(className)) {\n return;\n }\n if (!clazz.getSuperclass().equals(Object.class)) {\n generateSchema(session, clazz.getSuperclass(), processed, postProcess);\n superClassName = getClassName(clazz.getSuperclass());\n }\n\n // If schema is generated add the OClass and return\n OClass existed = session.getClass(className);\n if (existed != null) {\n processed.put(className, existed);\n return;\n }\n\n OClass oClass = getOClass(session, clazz, className, superClassName);\n\n // Set property\n ReflectionUtils.doWithFields(clazz, field -> {\n // If the field inherits from super class, should not set it again.\n if (!field.getDeclaringClass().equals(clazz)) {\n return;\n }\n field.setAccessible(true);\n OProperty oProperty = null;\n OType oType = OType.getTypeByClass(field.getType());\n if (oType == null) {\n oType = Constants.TYPES_BY_CLASS.getOrDefault(field.getType(), OType.EMBEDDED);\n }\n\n EntityProperty entityProperty = field.getAnnotation(EntityProperty.class);\n String propertyName = getPropertyName(entityProperty, field.getName());\n\n if (field.getAnnotation(Edge.class) != null) {\n\n // edge is not a OClass property but a Edge OClass\n handleEdgeProperty(session, field.getAnnotation(Edge.class), field, processed);\n\n } else if (field.getAnnotation(FromVertex.class) != null\n || field.getAnnotation(ToVertex.class) != null\n || field.getAnnotation(OrientdbId.class) != null) {\n // fromVertex, toVertex, ID are not the Entity's property\n } else if (Constants.OBJECT_TYPE.containsKey(oType)) {\n OType actualType = getActualType(oType, field);\n OClass relateClass = processed.get(getClassName(field.getType()));\n if (relateClass != null) {\n oProperty = oClass.createProperty(propertyName, actualType, relateClass);\n } else {\n // If the relate class has not create put the processing to postProcess map\n Consumer<OClass> postCreateProperty = oc -> {\n OProperty op = oClass.createProperty(propertyName, actualType, oc);\n setPropertyConstraints(op, entityProperty);\n };\n postProcess.put(getClassName(field.getType()), postCreateProperty);\n }\n } else {\n oProperty = oClass.createProperty(propertyName, oType);\n }\n if (oProperty != null) {\n setPropertyConstraints(oProperty, entityProperty);\n }\n\n });\n processed.put(className, oClass);\n }", "@Override\n public Type visit(MapType mapType) {\n Type keyType = mapType.getKeyType().accept(this);\n Type valueType = mapType.getValueType().accept(this);\n if (mapType.getValueType().isNullable()) {\n return Types.MapType.ofOptional(getNextId(), getNextId(), keyType, valueType);\n } else {\n return Types.MapType.ofRequired(getNextId(), getNextId(), keyType, valueType);\n }\n }", "public Schema getSchema();", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }" ]
[ "0.7717234", "0.57176065", "0.557655", "0.55608135", "0.5541722", "0.5361982", "0.5297049", "0.52474636", "0.5213642", "0.5183086", "0.5107818", "0.5046863", "0.48606426", "0.48530078", "0.48334348", "0.47974265", "0.47829044", "0.4781223", "0.47794214", "0.47776246", "0.47748703", "0.47672534", "0.47663227", "0.47077844", "0.46918863", "0.46867657", "0.46760118", "0.46735448", "0.4671308", "0.46664912", "0.4634399", "0.46315616", "0.4576373", "0.45726818", "0.45677227", "0.45566595", "0.452951", "0.4518539", "0.4501716", "0.45013696", "0.4495691", "0.4489158", "0.44842952", "0.44823897", "0.4469659", "0.4468551", "0.44619143", "0.44554773", "0.44397584", "0.44376796", "0.44301066", "0.44154698", "0.44053894", "0.44035298", "0.44000238", "0.4396149", "0.43784368", "0.43749216", "0.43736133", "0.4368022", "0.43655622", "0.43557054", "0.43539345", "0.43532547", "0.43524095", "0.43517542", "0.4345876", "0.4335283", "0.43313238", "0.43230036", "0.43105513", "0.43101004", "0.43098873", "0.4306919", "0.42926252", "0.42902258", "0.428937", "0.42864066", "0.42821413", "0.42789018", "0.42786616", "0.4275603", "0.42727354", "0.4265542", "0.42646047", "0.42550382", "0.42514145", "0.42507565", "0.42504984", "0.42470938", "0.42391902", "0.42302954", "0.42250985", "0.42225206", "0.42225206", "0.42225206", "0.42225206", "0.42225206", "0.42225206", "0.42225206" ]
0.6304215
1
Creates a MapSchema within another schema.
public static MapSchema create( MutableSchema parentSchema, String name) { MapSchema schema = new MapSchema( parentSchema, name, parentSchema.getSubSchemaExpression(name, Object.class)); parentSchema.addSchema(name, schema); return schema; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MapSchema(\n Schema parentSchema,\n String name,\n Expression expression) {\n this(\n parentSchema,\n parentSchema.getQueryProvider(),\n parentSchema.getTypeFactory(),\n name,\n expression);\n }", "public Builder localSchemaMap(final Map<String, BsonDocument> localSchemaMap) {\n this.localSchemaMap = localSchemaMap;\n return this;\n }", "SchemaDefinition createSchemaDefinition();", "Schema createSchema();", "public String createMapSchemaType(MapSchemaTypeProperties schemaTypeProperties,\n String mapFromSchemaTypeGUID,\n String mapToSchemaTypeGUID) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n if (apiManagerIsHome)\n {\n return apiManagerClient.createMapSchemaType(userId, apiManagerGUID, apiManagerName, schemaTypeProperties, mapFromSchemaTypeGUID, mapToSchemaTypeGUID);\n }\n else\n {\n return apiManagerClient.createMapSchemaType(userId, null, null, schemaTypeProperties, mapFromSchemaTypeGUID, mapToSchemaTypeGUID);\n }\n }", "protected Map createMapMatchingType(MappingContext mappingContext) {\n Class<?> mapType = mappingContext.getTypeInformation().getSafeToWriteClass();\n if (mapType.isAssignableFrom(LinkedHashMap.class)) {\n return new LinkedHashMap();\n } else if (mapType.isAssignableFrom(TreeMap.class)) {\n return new TreeMap();\n } else {\n throw new ConfigMeMapperException(mappingContext, \"Unsupported map type '\" + mapType + \"'\");\n }\n }", "public JsonSchemaMappingLookup() {\n // initialize all mappings from URLs to the respective schema\n businessObjectToJsonSchema.put(\"/rules\", DCC_VALIDATION_RULE_JSON_CLASSPATH);\n businessObjectToJsonSchema.put(\"/bnrules\", DCC_VALIDATION_RULE_JSON_CLASSPATH);\n businessObjectToJsonSchema.put(\"/cclrules\", CCL_JSON_SCHEMA);\n }", "public abstract void createMap();", "private Document createMapping() {\n return getIndexOperations().createMapping();\n }", "private static void createTypeMap() {\n\n }", "public MappingType createMappingType() {\n\t\treturn mappingFactory.createMappingType();\n\t}", "SchemaBuilder withFactory(String factoryClassName);", "ExpRunGroupMapTable createRunGroupMapTable(String name, UserSchema schema, ContainerFilter cf);", "public DomainInner withInputSchemaMapping(InputSchemaMapping inputSchemaMapping) {\n this.inputSchemaMapping = inputSchemaMapping;\n return this;\n }", "protected ApplicationMap createAppMapInstance (String mapname){\n\t\treturn new ApplicationMap(mapname);\t\t\n\t}", "public Mapping addMapping() {\n\t\tMapping newType = new Mapping();\n\t\tgetMapping().add(newType);\n\t\treturn newType; \n\t}", "private XContentBuilder createMappingObject() throws IOException {\n return XContentFactory.jsonBuilder()\n .startObject()\n .startObject(type)\n .startObject(ES_PROPERTIES)\n .startObject(\"externalId\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"sourceUri\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"kind\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"name\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"fields\")\n .field(ES_TYPE, ES_TYPE_NESTED)\n .startObject(ES_PROPERTIES)\n .startObject(\"name\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"value\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .endObject()\n .endObject()\n .endObject()\n .endObject()\n .endObject();\n }", "MAP createMAP();", "@BmsSchema\npublic interface BmsDdAtsAdScheMapper {\n\n void insertAtsAdSche(BmsDdAtsAdSche bmsDdAtsAdSche);\n\n void insertAtsAdSche(Map<String, Object> param);\n}", "public abstract mapnik.Map createMap(Object recycleTag);", "public Map<String, BsonDocument> getLocalSchemaMap() {\n return localSchemaMap;\n }", "public static MapObject createMapObject(){\n\t\treturn new MapObject();\n\t}", "public IQueryAtomContainer createHyperstructure( Map<IAtom, IAtom> mapping ) {\n\n\t\t\n\t\t/* \n\t\t * Construct a hash which translates the \"old\" index from the chromosome to the newly assigned\n\t\t * index in the hyperstructure, for an unmapped atom that's been added to the hyperstructure\n\t\t */\n\t\t\n\t\tMap<IBond, IBond> mappedBonds = ConvenienceTools.makeBondMapOfAtomMap(queryMol, hs, mapping, false); // bad practice, not the same as the actual bond mapping\n\t\t\n\t\treturn createHyperstructure( mapping, mappedBonds );\n\t\t\n\t}", "public SchemaDto() {\n }", "@Test\n public void testMapWithSchema() {\n String json =\n \"{a: 6}\\n\" +\n \"{a: 5, m: null}\\n\" +\n \"{a: 4, m: {}}\\n\" +\n \"{a: 2, m: {b: 110}}\\n\" +\n \"{a: 3, m: {c: 220}}\\n\" +\n \"{a: 1, m: {b: 10, c: 20}}\\n\" +\n \"{a: 7, m: {b: 710, c: 720}}\";\n\n TupleMetadata schema = new SchemaBuilder()\n .addNullable(\"a\", MinorType.BIGINT)\n .addMap(\"m\")\n .addNullable(\"b\", MinorType.BIGINT)\n .addNullable(\"c\", MinorType.BIGINT)\n .resumeSchema()\n .build();\n\n JsonLoaderFixture loader = new JsonLoaderFixture();\n loader.builder.providedSchema(schema);\n loader.open(json);\n RowSet results = loader.next();\n assertNotNull(results);\n\n RowSet expected = fixture.rowSetBuilder(schema)\n .addRow(6L, mapValue(null, null))\n .addRow(5L, mapValue(null, null))\n .addRow(4L, mapValue(null, null))\n .addRow(2L, mapValue(110L, null))\n .addRow(3L, mapValue(null, 220L))\n .addRow(1L, mapValue(10L, 20L))\n .addRow(7L, mapValue(710L, 720L))\n .build();\n RowSetUtilities.verify(expected, results);\n assertNull(loader.next());\n loader.close();\n }", "private void createMapOfSecondType(){\n\n this.typeOfMap=2;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = createSquare( ColorOfFigure_Square.GREEN, true,0,3);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.YELLOW, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.YELLOW, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, false,2,3);\n\n\n }", "MappedDatatype createMappedDatatype();", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "public MapOther() {\n }", "public static MapType MAP(FieldType keyType, FieldType valueType) {\n return new MapType(keyType, valueType);\n }", "private static Map<String, Field> schemaToMap(Set<Field> schema){\r\n\t\tMap<String, Field> map = new LinkedHashMap<String, Field>(schema.size());\r\n\t\t\r\n\t\tfor(Field f: schema)\r\n\t\t\tmap.put(f.name, f);\r\n\t\t\r\n\t\treturn map;\r\n\t}", "GraphQLSchema transform(GraphQLSchema originalSchema);", "public ProductSpecificationMapping create(\n\t\tlong productSpecificationMappingId);", "@Override\n public Schema outputSchema(Schema input) {\n\t\tClass<T> typeOfT = (Class<T>)\n ((ParameterizedType)getClass()\n .getGenericSuperclass())\n .getActualTypeArguments()[0];\n\n return new Schema(new Schema.FieldSchema(null, DataType.findType(typeOfT)));\t\t\t\t\n\t}", "public RelatedClassMap createRelatedClassMap(XMLName elementTypeName)\n throws XMLMiddlewareException\n {\n checkState();\n return super.createRelatedClassMap(elementTypeName);\n }", "public static <T> RuntimeSchema<T> createFrom(Class<T> typeClass, \r\n Map<String,String> declaredFields)\r\n {\r\n if(typeClass.isInterface() || Modifier.isAbstract(typeClass.getModifiers()))\r\n {\r\n throw new RuntimeException(\"The root object can neither be an abstract \" +\r\n \t\t\"class nor interface: \\\"\" + typeClass.getName());\r\n }\r\n \r\n ArrayList<Field<T>> fields = new ArrayList<Field<T>>(declaredFields.size());\r\n int i = 0;\r\n for(Map.Entry<String, String> entry : declaredFields.entrySet())\r\n {\r\n java.lang.reflect.Field f;\r\n try\r\n {\r\n f = typeClass.getDeclaredField(entry.getKey());\r\n }\r\n catch (Exception e)\r\n {\r\n throw new IllegalArgumentException(\"Exception on field: \" + entry.getKey(), e);\r\n }\r\n \r\n int mod = f.getModifiers();\r\n if(!Modifier.isStatic(mod) && !Modifier.isTransient(mod))\r\n {\r\n RuntimeFieldFactory<?> rff = RuntimeFieldFactory.getFieldFactory(f.getType());\r\n if(rff!=null)\r\n {\r\n Field<T> field = rff.create(i+1, entry.getValue(), f);\r\n if(field!=null)\r\n {\r\n i++;\r\n fields.add(field);\r\n }\r\n }\r\n }\r\n }\r\n if(fields.isEmpty())\r\n {\r\n throw new RuntimeException(\"Not able to map any fields from \" + \r\n typeClass + \". All fields are either transient/static. \" +\r\n \"Two dimensional array fields are excluded. \" +\r\n \"Collection/Map fields whose generic type is another \" +\r\n \"Collection/Map or another generic type, are excluded.\");\r\n }\r\n return new RuntimeSchema<T>(typeClass, fields, i);\r\n }", "private void createSchemaInfo() {\n\t\tfor (String tableName : tableSchemas.keySet()) {\n\t\t\tERWinSchemaInfo schemaInfo = new ERWinSchemaInfo();\n\t\t\tschemaInfo.setType(\"user\");\n\t\t\tschemaInfo.setUniqueName(tableName);\n\t\t\tschemaInfos.put(tableName, schemaInfo);\n\t\t}\n\n\t\tinitCache();\n\t\tparseKeyGroupGroups();\n\n\t\tparseEntityProps();\n\t\tparseRelationGroups();\n\t\tparseAttributes();\n\n\t\tcreateSchemaDDL();\n\t}", "public JSONSchema clone() {\n JSONSchema clonedSchema = new JSONSchema().id(_id).title(_title).description(_description).required(_required).\n types(Collections2.transform(_types.values(), JSONSchemaTypes.CloningFunction.INSTANCE));\n\n if (_referencesSchema != null) {\n clonedSchema.setReferencesSchema(_referencesSchema);\n } else if (_referencesSchemaID != null) {\n clonedSchema.setReferencesSchemaID(_referencesSchemaID);\n }\n\n if (_extendsSchema != null) {\n clonedSchema.setExtendsSchema(_extendsSchema);\n } else if (_extendsSchemaID != null) {\n clonedSchema.setExtendsSchemaID(_extendsSchemaID);\n }\n\n return clonedSchema;\n }", "public void createTapSchema(SchemaConfig schemaConfig) throws ConfigurationException;", "JavaTypeMapping getMapping(Class javaType, boolean serialised, boolean embedded, String fieldName);", "private void createMapOfFirstType() {\n\n this.typeOfMap=1;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true, 0, 0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false, 0, 1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.RED, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n\n }", "SchemaComponentType createSchemaComponentType();", "public void setTableSchema(List<String> tableNames, List<String> oringinalTableNames){\n tableSchemaMap = new HashMap<>();\n tableSchemaDir = databaseDir + File.separator + \"schema.txt\";\n HashMap<String,String> tableNamesOringinalTableNamesMap = new HashMap<>();\n for(int i = 0; i < tableNames.size(); i++) {\n tableNamesOringinalTableNamesMap.put(tableNames.get(i),oringinalTableNames.get(i));\n }\n //System.out.println(\"tableNamesOringinalTableNamesMap:\"+tableNamesOringinalTableNamesMap);\n try\n {\n FileReader fr = new FileReader(tableSchemaDir);\n BufferedReader br = new BufferedReader(fr);\n String nextline;\n String[] oneSchema;\n while((nextline = br.readLine()) != null)\n {\n oneSchema = nextline.split(\" \");\n String SchemaName = oneSchema[0];\n for(String tableNamesOringinalTableNamesMapKey:tableNamesOringinalTableNamesMap.keySet())\n {\n if(tableNamesOringinalTableNamesMap.get(tableNamesOringinalTableNamesMapKey).equals(SchemaName)){\n String[] newSchema = oneSchema.clone();\n newSchema[0] = tableNamesOringinalTableNamesMapKey;\n for(int i = 1; i < oneSchema.length; i++)\n newSchema[i] = tableNamesOringinalTableNamesMapKey + \".\" + newSchema[i];\n //String newSchemaName = tableNamesOringinalTableNamesMap.get(tableNamesOringinalTableNamesMapKey);\n tableSchemaMap.put(newSchema[0],newSchema);\n //System.out.println(\"tableSchemaMap:\"+ tableSchemaMap);\n }\n }\n }\n }\n catch (Exception e)\n {\n System.err.println(\"Failed to open file\");\n e.printStackTrace();\n }\n }", "public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}", "@Test\n public void testDisconnectMapReferenceFromClassType() throws Exception {\n // Define type for map value.\n AtlasStructDef.AtlasAttributeDef[] mapValueAttributes = new AtlasStructDef.AtlasAttributeDef[]{\n new AtlasStructDef.AtlasAttributeDef(\"biMapOwner\", \"MapOwner\",\n true,\n AtlasStructDef.AtlasAttributeDef.Cardinality.SINGLE, 0, 1,\n false, false,\n new ArrayList<AtlasStructDef.AtlasConstraintDef>() {{\n add(new AtlasStructDef.AtlasConstraintDef(\n AtlasStructDef.AtlasConstraintDef.CONSTRAINT_TYPE_INVERSE_REF, new HashMap<String, Object>() {{\n put(AtlasStructDef.AtlasConstraintDef.CONSTRAINT_PARAM_ATTRIBUTE, \"biMap\");\n }}));\n }})};\n\n AtlasEntityDef mapValueContainerDef =\n new AtlasEntityDef(\"MapValue\", \"MapValue_desc\", \"1.0\",\n Arrays.asList(mapValueAttributes), Collections.<String>emptySet());\n\n // Define type with unidirectional and bidirectional map references,\n // where the map value is a class reference to MapValue.\n\n AtlasStructDef.AtlasAttributeDef[] mapOwnerAttributes = new AtlasStructDef.AtlasAttributeDef[]{\n new AtlasStructDef.AtlasAttributeDef(\"map\", \"map<string,MapValue>\",\n true,\n AtlasStructDef.AtlasAttributeDef.Cardinality.SINGLE, 0, 1,\n false, false,\n Collections.<AtlasStructDef.AtlasConstraintDef>emptyList()),\n new AtlasStructDef.AtlasAttributeDef(\"biMap\", \"map<string,MapValue>\",\n true,\n AtlasStructDef.AtlasAttributeDef.Cardinality.SINGLE, 0, 1,\n false, false,\n new ArrayList<AtlasStructDef.AtlasConstraintDef>() {{\n add(new AtlasStructDef.AtlasConstraintDef(\n AtlasStructDef.AtlasConstraintDef.CONSTRAINT_TYPE_INVERSE_REF, new HashMap<String, Object>() {{\n put(AtlasStructDef.AtlasConstraintDef.CONSTRAINT_PARAM_ATTRIBUTE, \"biMapOwner\");\n }}));\n }})};\n\n AtlasEntityDef mapOwnerContainerDef =\n new AtlasEntityDef(\"MapOwner\", \"MapOwner_desc\", \"1.0\",\n Arrays.asList(mapOwnerAttributes), Collections.<String>emptySet());\n\n AtlasTypesDef typesDef = AtlasTypeUtil.getTypesDef(ImmutableList.<AtlasEnumDef>of(),\n ImmutableList.<AtlasStructDef>of(),\n ImmutableList.<AtlasClassificationDef>of(),\n ImmutableList.<AtlasEntityDef>of(mapValueContainerDef, mapOwnerContainerDef));\n\n typeDefStore.createTypesDef(typesDef);\n\n // Create instances of MapOwner and MapValue.\n // Set MapOwner.map and MapOwner.biMap with one entry that references MapValue instance.\n AtlasEntity mapOwnerInstance = new AtlasEntity(\"MapOwner\");\n AtlasEntity mapValueInstance = new AtlasEntity(\"MapValue\");\n\n mapOwnerInstance.setAttribute(\"map\", Collections.singletonMap(\"value1\", AtlasTypeUtil.getAtlasObjectId(mapValueInstance)));\n mapOwnerInstance.setAttribute(\"biMap\", Collections.singletonMap(\"value1\", AtlasTypeUtil.getAtlasObjectId(mapValueInstance)));\n // Set biMapOwner reverse reference on MapValue.\n mapValueInstance.setAttribute(\"biMapOwner\", AtlasTypeUtil.getAtlasObjectId(mapOwnerInstance));\n\n AtlasEntity.AtlasEntitiesWithExtInfo entities = new AtlasEntity.AtlasEntitiesWithExtInfo();\n entities.addReferredEntity(mapValueInstance);\n entities.addEntity(mapOwnerInstance);\n\n final EntityMutationResponse response = entityStore.createOrUpdate(new AtlasEntityStream(entities), false);\n Assert.assertEquals(response.getCreatedEntities().size(), 2);\n final List<AtlasEntityHeader> mapOwnerCreated = response.getCreatedEntitiesByTypeName(\"MapOwner\");\n AtlasEntity.AtlasEntityWithExtInfo mapOwnerEntity = entityStore.getById(mapOwnerCreated.get(0).getGuid());\n\n String edgeLabel = AtlasGraphUtilsV1.getAttributeEdgeLabel(typeRegistry.getEntityTypeByName(\"MapOwner\"), \"map\");\n String mapEntryLabel = edgeLabel + \".\" + \"value1\";\n AtlasEdgeLabel atlasEdgeLabel = new AtlasEdgeLabel(mapEntryLabel);\n\n // Verify MapOwner.map attribute has expected value.\n String mapValueGuid = null;\n AtlasVertex mapOwnerVertex = null;\n for (String mapAttrName : Arrays.asList(\"map\", \"biMap\")) {\n Object object = mapOwnerEntity.getEntity().getAttribute(mapAttrName);\n Assert.assertNotNull(object);\n Assert.assertTrue(object instanceof Map);\n Map<String, AtlasObjectId> map = (Map<String, AtlasObjectId>)object;\n Assert.assertEquals(map.size(), 1);\n AtlasObjectId value1Id = map.get(\"value1\");\n Assert.assertNotNull(value1Id);\n mapValueGuid = value1Id.getGuid();\n mapOwnerVertex = GraphHelper.getInstance().getVertexForGUID(mapOwnerEntity.getEntity().getGuid());\n object = mapOwnerVertex.getProperty(atlasEdgeLabel.getQualifiedMapKey(), Object.class);\n Assert.assertNotNull(object);\n }\n\n // Delete the map value instance.\n // This should disconnect the references from the map owner instance.\n entityStore.deleteById(mapValueGuid);\n assertEntityDeleted(mapValueGuid);\n assertTestDisconnectMapReferenceFromClassType(mapOwnerEntity.getEntity().getGuid());\n }", "@Test\n public void mapNew() {\n check(MAPNEW);\n query(EXISTS.args(MAPNEW.args(\"()\")), true);\n query(MAPSIZE.args(MAPNEW.args(\"()\")), 0);\n query(COUNT.args(MAPNEW.args(\"()\")), 1);\n query(MAPSIZE.args(MAPNEW.args(MAPNEW.args(\"()\"))), 0);\n }", "private BeanMapping createMapping(Object bean, String name) {\n // first\n BeanMapping mapping = new BeanMapping(name);\n return mapping;\n }", "public int addMap(NodePositionsSet otherMap, int otherID){\r\n\t\tif(otherMap.getMap() == null){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tallMaps.put(otherID, otherMap);\r\n\t\tsynced = -1;\r\n\t\treturn 0;\r\n\t}", "@Test\n public void map() {\n \n /*\n * Construct the mapper factory;\n */\n MapperFactory mapperFactory = new DefaultMapperFactory.Builder().build();\n \n /*\n * Register mappings for the fields whose names done match; 'byDefault' covers the matching ones\n */\n mapperFactory.classMap(A.class, B1.class)\n .field(\"a1.Pa11\", \"Pb11\")\n .field(\"a1.Pa12\", \"Pb12\")\n .byDefault()\n .register();\n \n mapperFactory.classMap(A.class, B2.class)\n .field(\"a2.Pa21\", \"Pb21\")\n .field(\"a2.Pa22\", \"Pb22\")\n .byDefault()\n .register();\n \n /*\n * Construct some test object\n */\n A source = new A();\n source.p1 = new Property(\"p1\", \"p1.value\");\n source.p2 = new Property(\"p2\", \"p2.value\");\n source.a1 = new A1();\n source.a1.Pa11 = new Property(\"Pa11\", \"Pa11.value\");\n source.a1.Pa12 = new Property(\"Pa12\", \"Pa12.value\");\n source.a2 = new A2();\n source.a2.Pa21 = new Property(\"Pa21\", \"Pa21.value\");\n source.a2.Pa22 = new Property(\"Pa22\", \"Pa22.value\");\n \n MapperFacade mapper = mapperFactory.getMapperFacade();\n \n Collection<A> collectionA = new ArrayList<>();\n collectionA.add(source);\n\n /*\n * Map the collection of A into a collection of B1 using 'mapAsList'\n */\n Collection<B1> collectionB1 = mapper.mapAsList(collectionA, B1.class);\n \n Assert.assertNotNull(collectionB1);\n B1 b1 = collectionB1.iterator().next();\n Assert.assertEquals(source.p1, b1.p1);\n Assert.assertEquals(source.p2, b1.p2);\n Assert.assertEquals(source.a1.Pa11, b1.Pb11);\n Assert.assertEquals(source.a1.Pa12, b1.Pb12);\n \n /*\n * Map the collection of A into a collection of B2 using 'mapAsList'\n */\n Collection<B2> collectionB2 = mapper.mapAsList(collectionA, B2.class);\n \n B2 b2 = collectionB2.iterator().next();\n Assert.assertNotNull(b2);\n Assert.assertEquals(source.p1, b2.p1);\n Assert.assertEquals(source.p2, b2.p2);\n Assert.assertEquals(source.a2.Pa21, b2.Pb21);\n Assert.assertEquals(source.a2.Pa22, b2.Pb22);\n }", "private void mergeJavaWsdlMapping(JavaWsdlMapping source)\n {\n for (PackageMapping packageMapping : source.getPackageMappings())\n {\n String name = packageMapping.getPackageType();\n String namespaceURI = packageMapping.getNamespaceURI();\n\n addPackageMapping(name, namespaceURI);\n }\n\n for (JavaXmlTypeMapping type : source.getJavaXmlTypeMappings())\n {\n QName name = type.getRootTypeQName();\n if (name == null)\n name = type.getAnonymousTypeQName();\n\n if (mappedTypes.containsKey(name))\n continue;\n\n mappedTypes.put(name, type);\n\n JavaXmlTypeMapping typeCopy = new JavaXmlTypeMapping(javaWsdlMapping);\n typeCopy.setQNameScope(type.getQnameScope());\n typeCopy.setAnonymousTypeQName(type.getAnonymousTypeQName());\n typeCopy.setJavaType(type.getJavaType());\n typeCopy.setRootTypeQName(type.getRootTypeQName());\n\n for (VariableMapping variable : type.getVariableMappings())\n {\n VariableMapping variableCopy = new VariableMapping(typeCopy);\n variableCopy.setDataMember(variable.isDataMember());\n variableCopy.setJavaVariableName(variable.getJavaVariableName());\n variableCopy.setXmlAttributeName(variable.getXmlAttributeName());\n variableCopy.setXmlElementName(variable.getXmlElementName());\n variableCopy.setXmlWildcard(variable.getXmlWildcard());\n\n typeCopy.addVariableMapping(variableCopy);\n }\n\n javaWsdlMapping.addJavaXmlTypeMappings(typeCopy);\n }\n }", "public Mapping createInstance(List<Document> xbrlDocuments) {\n Mapping mapping = buildXmlBasedMapping();\n MappingDiscoverer discoverer = buildBasicDiscoverer(xbrlDocuments, mapping);\n discoverer.discoverMapping();\n return mapping;\n }", "public Map<String,SecondaryTableSource> getSecondaryTableMap();", "@Nonnull\n private static Optional<Map<String, PayloadType>> generateMapPayloadSchema(\n @Nonnull final List<Payload> payloads) {\n if (payloads.isEmpty()) {\n return Optional.empty();\n }\n\n final Set<String> emptyListValuePayloadKeys = new HashSet<>();\n final List<Map<String, PayloadType>> schemas =\n payloads.stream()\n .map(p -> inferSchemaForPayload(p, emptyListValuePayloadKeys))\n .collect(Collectors.toList());\n final Map<String, PayloadType> resultPayloadMapSchema = mergeSchemas(schemas);\n\n for (final String key : emptyListValuePayloadKeys) {\n if (!resultPayloadMapSchema.containsKey(key)\n || !resultPayloadMapSchema.get(key).isArrayType()) {\n throw new IllegalArgumentException(\"Cannot infer map schema type for key \" + key);\n }\n }\n // do not return an Optional of emptyMap\n return Optional.ofNullable(\n resultPayloadMapSchema.isEmpty() ? null : resultPayloadMapSchema);\n }", "@Nullable\n @SuppressWarnings(\"unchecked\")\n protected Map createMap(MappingContext context, Object value) {\n if (value instanceof Map<?, ?>) {\n if (context.getGenericTypeInfoOrFail(0).getSafeToWriteClass() != String.class) {\n throw new ConfigMeMapperException(context, \"The key type of maps may only be of String type\");\n }\n TypeInformation mapValueType = context.getGenericTypeInfoOrFail(1);\n\n Map<String, ?> entries = (Map<String, ?>) value;\n Map result = createMapMatchingType(context);\n for (Map.Entry<String, ?> entry : entries.entrySet()) {\n Object mappedValue = convertValueForType(\n context.createChild(\"[k=\" + entry.getKey() + \"]\", mapValueType), entry.getValue());\n if (mappedValue == null) {\n context.registerError(\"Cannot map value for key \" + entry.getKey());\n } else {\n result.put(entry.getKey(), mappedValue);\n }\n }\n return result;\n }\n return null;\n }", "public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }", "SchemaBuilder withClassLoader(ClassLoader classLoader);", "@Override\n\tpublic void buildSchema() {\n\t\tchild.buildSchema();\n\t\tschema = child.schema;\n\t}", "private TableSchema createTableSchema(Node entity) {\n\t\tString physicalName = handler.getChildValueByProperty(entity,\n\t\t\t\t\"EntityProps.Physical_Name\");\n\t\tString name = entity.getAttributes().getNamedItem(\"Name\").getNodeValue().trim();\n\t\tString id = entity.getAttributes().getNamedItem(\"id\").getNodeValue().trim();\n\t\tnodeMap.put(id, entity);\n\t\tTableSchema tableSchema = new TableSchema(\"\", \"\");\n\t\tif (physicalName != null) {\n\t\t\tphysicalNameMap.put(id, physicalName);\n\t\t\ttableSchema.setName(physicalName);\n\t\t} else {\n\t\t\ttableSchema.setName(name);\n\t\t}\n\n\t\treturn tableSchema;\n\t}", "public Mapper newInstance() {\n Mapper mapper;\n\n mapper = new Mapper(name, parser.newInstance(), oag.newInstance());\n mapper.setLogging(logParsing, logAttribution);\n return mapper;\n }", "public SchemaDef getSourceSchema();", "private static void addBreedToShapeMapping(String breedName, String breedShape){\n if(breedToShapeMapping == null){\n breedToShapeMapping = new XMLStringWriter(4);\n breedToShapeMapping.beginXMLString(\"BreedShapeMappings\");\n }\n \n breedToShapeMapping.beginElement(\"BtoSMapping\", false);\n breedToShapeMapping.addDataElement(\"BreedName\", breedName);\n breedToShapeMapping.addDataElement(\"BreedShape\", breedShape);\n breedToShapeMapping.endElement(\"BtoSMapping\");\n }", "public void updateTapSchema(SchemaConfig newSchema, boolean createOnly) throws ConfigurationException;", "public interface MapCreator {\n\t\n\t/**\n\t * @param configurationManager that holds references to general ledger source\n\t * and metadata about BPA sources.\n\t * @param sc a scanner to capture the BPA driver provided by the user to map to\n\t * each unique set of general ledger dimension(s) of interest.\n\t * @param mapName specifies the name to provide to the map destination created.\n\t * @return Boolean true if the mapping operation succeeded, false if the process\n\t * failed.\n\t */\n\tboolean createMap(ConfigurationManagerAbstract configurationManager, Scanner sc, String mapName);\n\n}", "Hashtable createTypeMapping()\n {\n Hashtable mapping = new Hashtable();\n \n mapping.put(TypeFactory.getType(\"Double\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n StratmasDecimal sObj = (StratmasDecimal) o;\n if (isBadDecimal(sObj)) {\n return null;\n } else {\n return new StratmasDecimalParameter((StratmasDecimal) o);\n }\n }\n });\n mapping.put(TypeFactory.getType(\"double\", \"http://www.w3.org/2001/XMLSchema\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n StratmasDecimal sObj = (StratmasDecimal) o;\n if (isBadDecimal(sObj)) {\n return null;\n } else {\n return new StratmasDecimalParameter((StratmasDecimal) o);\n }\n }\n });\n mapping.put(TypeFactory.getType(\"NonNegativeInteger\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n return new StratmasIntegerParameter((StratmasInteger) o);\n }\n });\n // Ground type type hiearchy.\n mapping.put(TypeFactory.getType(\"anyType\", \"http://www.w3.org/2001/XMLSchema\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n return null;\n }\n });\n\n return mapping;\n }", "public Mapping createInstance(Document xbrlDocument) {\n List<Document> docList = new ArrayList<>();\n docList.add(xbrlDocument);\n return createInstance(docList);\n }", "public Map<String, NodeType> generateSchema(\n CompilationSource source,\n String... doPaths) throws DataObjectException, NullPointerException, IllegalArgumentException {\n\n //\n return new DataObjectCompiler(source, doPaths).generateSchema();\n }", "@Override\r\n protected Schema generateSchema() {\r\n Operator child = getChild();\r\n if (child == null) {\r\n return null;\r\n }\r\n Schema inputSchema = child.getSchema();\r\n if (inputSchema == null) {\r\n return null;\r\n }\r\n\r\n groupSchema = inputSchema.getSubSchema(gfields);\r\n\r\n /* Build the output schema from the group schema and the aggregates. */\r\n final ImmutableList.Builder<Type> aggTypes = ImmutableList.<Type>builder();\r\n final ImmutableList.Builder<String> aggNames = ImmutableList.<String>builder();\r\n\r\n try {\r\n for (Aggregator agg : AggUtils.allocateAggs(factories, inputSchema)) {\r\n Schema curAggSchema = agg.getResultSchema();\r\n aggTypes.addAll(curAggSchema.getColumnTypes());\r\n aggNames.addAll(curAggSchema.getColumnNames());\r\n }\r\n } catch (DbException e) {\r\n throw new RuntimeException(\"unable to allocate aggregators to determine output schema\", e);\r\n }\r\n aggSchema = new Schema(aggTypes, aggNames);\r\n return Schema.merge(groupSchema, aggSchema);\r\n }", "@Test\n public void testAlteringUserTypeNestedWithinMap() throws Throwable\n {\n String[] columnTypePrefixes = {\"frozen<map<text, \", \"map<text, frozen<\"};\n for (String columnTypePrefix : columnTypePrefixes)\n {\n String ut1 = createType(\"CREATE TYPE %s (a int)\");\n String columnType = columnTypePrefix + KEYSPACE + \".\" + ut1 + \">>\";\n\n createTable(\"CREATE TABLE %s (x int PRIMARY KEY, y \" + columnType + \")\");\n\n execute(\"INSERT INTO %s (x, y) VALUES(1, {'firstValue':{a:1}})\");\n assertRows(execute(\"SELECT * FROM %s\"), row(1, map(\"firstValue\", userType(1))));\n flush();\n\n execute(\"ALTER TYPE \" + KEYSPACE + \".\" + ut1 + \" ADD b int\");\n execute(\"INSERT INTO %s (x, y) VALUES(2, {'secondValue':{a:2, b:2}})\");\n execute(\"INSERT INTO %s (x, y) VALUES(3, {'thirdValue':{a:3}})\");\n execute(\"INSERT INTO %s (x, y) VALUES(4, {'fourthValue':{b:4}})\");\n\n assertRows(execute(\"SELECT * FROM %s\"),\n row(1, map(\"firstValue\", userType(1))),\n row(2, map(\"secondValue\", userType(2, 2))),\n row(3, map(\"thirdValue\", userType(3, null))),\n row(4, map(\"fourthValue\", userType(null, 4))));\n\n flush();\n\n assertRows(execute(\"SELECT * FROM %s\"),\n row(1, map(\"firstValue\", userType(1))),\n row(2, map(\"secondValue\", userType(2, 2))),\n row(3, map(\"thirdValue\", userType(3, null))),\n row(4, map(\"fourthValue\", userType(null, 4))));\n }\n }", "public void addVendor_Scheme_Plan_Map() {\n\t\tboolean flg = false;\n\n\t\ttry {\n\n\t\t\tvspmDAO = new Vendor_Scheme_Plan_MapDAO();\n\t\t\tflg = vspmDAO.saveVendor_Scheme_Plan_Map(vspm);\n\t\t\tif (flg) {\n\t\t\t\tvspm = new Vendor_Scheme_Plan_Map();\n\t\t\t\tMessages.addGlobalInfo(\"New mapping has been added!\");\n\t\t\t} else {\n\t\t\t\tMessages.addGlobalInfo(\"Failed to add new mapping! Please try again later.\");\n\t\t\t}\n\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t} finally {\n\t\t\tvspmDAO = null;\n\t\t}\n\t}", "private void copyMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tif (map[i][j] instanceof Player) {\n\t\t\t\t\tnewMap[i][j] = new Player(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof BlankSpace) {\n\t\t\t\t\tnewMap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof Mho) {\n\t\t\t\t\tnewMap[i][j] = new Mho(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof Fence) {\n\t\t\t\t\tnewMap[i][j] = new Fence(i, j, board);\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "private void createLookup() {\r\n\t\tcreateLooupMap(lookupMap, objectdef, objectdef.getName());\r\n\t\tcreateChildIndex(childIndex, objectdef, objectdef.getName());\r\n\r\n\t}", "private void createMapView() {\n try {\n if (null == mMap) {\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();\n\n /**\n * If the map is still null after attempted initialisation,\n * show an error to the user\n */\n if (null == mMap) {\n Toast.makeText(getApplicationContext(),\n \"Error creating map\", Toast.LENGTH_SHORT).show();\n }\n }\n } catch (NullPointerException exception) {\n Log.e(\"mapApp\", exception.toString());\n }\n }", "void setSchema(S schema);", "private void buildMap(int count, char type, String typeName) {\r\n\t\tfor (int i = 1; i <= count; i++) {\r\n\t\t\toriginalMaps.add(new MapType(\"map_\" + type + i, typeName, \"colony/map_\" + type + i));\r\n\t\t}\r\n\t}", "public static Schema buildFromDBTable(Connection conn, String tableName,\n String newSchemaName)\n {\n try\n {\n DatabaseMetaData DBMeta = conn.getMetaData();\n ResultSet rset = DBMeta.getColumns(null, null,\n tableName, null);\n\n Schema schema = new Schema(newSchemaName);\n\n /*\n * Actually, this code is not needed if we return the\n * result set. But, I am just doing it for the sake!\n */\n while (rset.next())\n {\n String columnName = rset\n .getString(\"COLUMN_NAME\");\n // Get the java.sql.Types type to which this database-specific type is mapped\n short dataType = rset.getShort(\"DATA_TYPE\");\n // Get the name of the java.sql.Types value.\n String columnType = JDBCUtils.getJdbcTypeName(dataType);\n\n schema.addAttribute(columnName, columnType, columnType);\n }\n return schema;\n }\n\n catch (Exception e)\n {\n System.out.println(\" Cannot retrieve the schema : \"\n + e.toString());\n e.printStackTrace();\n return null;\n }\n }", "public XmiCasSerializer(TypeSystem ts, Map<String, String> nsUriToSchemaLocationMap) {\n this(ts, nsUriToSchemaLocationMap, false);\n }", "@Override\n protected GSONWorkUnit createGSONWorkUnit(\n final DocWorkUnit workUnit,\n final List<Map<String, String>> groupMaps,\n final List<Map<String, String>> featureMaps)\n {\n GATKGSONWorkUnit gatkGSONWorkUnit = new GATKGSONWorkUnit();\n gatkGSONWorkUnit.setWalkerType((String)workUnit.getRootMap().get(WALKER_TYPE_MAP_ENTRY));\n return gatkGSONWorkUnit;\n }", "public Mapper newMapper(PathResolver pathResolver, boolean useInvalidations) {\n return backend.newMapper(pathResolver, useInvalidations);\n }", "private Map<String, AttributeInfo> getUserSchemaMap() {\n if (userSchemaMap == null) {\n schema();\n }\n return userSchemaMap;\n }", "private void setUpMapIfNeeded() {\n if (map == null) {\n map = fragMap.getMap();\n if (map != null) {\n setUpMap();\n }\n }\n }", "public static Schema fromMetaData(Map<String, String> properties) throws IOException {\n Preconditions.checkNotNull(properties);\n String jsonArrowSchema = properties.get(DREMIO_ARROW_SCHEMA);\n String jsonArrowSchema2_1 = properties.get(DREMIO_ARROW_SCHEMA_2_1);\n\n // check in order\n // DREMIO_ARROW_SCHEMA - if found it is pre 2.1.0 generated file - use it\n // if DREMIO_ARROW_SCHEMA is not found\n // check DREMIO_ARROW_SCHEMA_2_1\n // if found - it is 2.1.0+ generated file - use it\n\n if (jsonArrowSchema != null) {\n return fromJSON(jsonArrowSchema);\n }\n if (jsonArrowSchema2_1 != null) {\n return fromJSON(jsonArrowSchema2_1);\n }\n return null;\n }", "public ObjectSchema() {\n }", "Rule MapType() {\n // Push 1 MapTypeNode onto the value stack\n return Sequence(\n \"map \",\n Optional(CppType()),\n \"<\",\n FieldType(),\n \", \",\n FieldType(),\n \"> \",\n actions.pushMapTypeNode());\n }", "private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}", "public static Map createMap(int xDim, int yDim){\n\t\treturn new Map(xDim,yDim);\n\t}", "public HibernateMappingsConverter(CatalogSchema catalogSchema, Configuration configuration) {\n this(catalogSchema, configuration, configuration.buildMapping());\n }", "public InputSchemaMapping inputSchemaMapping() {\n return this.inputSchemaMapping;\n }", "public static CodeBlock generateFromModelForMap(Field field, GenerationPackageModel generationInfo) throws DefinitionException, InnerClassGenerationException {\n if (field.getGenericType().getTypeName().equals(CLASS_MAP) || field.getGenericType().getTypeName().matches(PATTERN_FOR_GENERIC_INNER_TYPES))\n throw new DefinitionException(format(UNABLE_TO_DEFINE_GENERIC_TYPE,\n field.getGenericType().getTypeName(),\n field.getName(),\n field.getDeclaringClass().getSimpleName(),\n FROM_MODEL + field.getDeclaringClass().getSimpleName()));\n String getField = GET + String.valueOf(field.getName().charAt(0)).toUpperCase() + field.getName().substring(1);\n Type genericType = field.getGenericType();\n ParameterizedType parameterizedType = (ParameterizedType) genericType;\n Type keyType = parameterizedType.getActualTypeArguments()[0];\n Type valueType = parameterizedType.getActualTypeArguments()[1];\n String mapBuilder = calculateMapBuilder(keyType.getTypeName(), valueType.getTypeName());\n\n Class keyClass = (Class) keyType;\n Class valueClass = (Class) valueType;\n\n switch (mapBuilder) {\n case MAP_FIELD_PRIMITIVE_KEY:\n createMapperForInnerClassIfNeeded(valueClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapBuilder,\n field.getName(),\n getField,\n PrimitiveMapping.class,\n getFromModelMappingFromType(keyType),\n getFromModelMappingFromType(valueType)))\n .build();\n case MAP_FIELD_PRIMITIVE_VALUE:\n createMapperForInnerClassIfNeeded(keyClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapBuilder,\n field.getName(),\n getField,\n getFromModelMappingFromType(keyType),\n PrimitiveMapping.class,\n getFromModelMappingFromType(valueType)))\n .build();\n case MAP_FIELD_PRIMITIVE_KEY_VALUE:\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapBuilder,\n field.getName(),\n getField,\n PrimitiveMapping.class,\n getFromModelMappingFromType(keyType),\n PrimitiveMapping.class,\n getFromModelMappingFromType(valueType)))\n .build();\n default:\n createMapperForInnerClassIfNeeded(valueClass, generationInfo);\n createMapperForInnerClassIfNeeded(keyClass, generationInfo);\n return CodeBlock.builder()\n .add(of(DOUBLE_TABULATION + mapBuilder,\n field.getName(),\n getField,\n getFromModelMappingFromType(keyType),\n getFromModelMappingFromType(valueType)))\n .build();\n }\n }", "Mapper<T, T2> from(T source);", "private void createMapOfFourthType() {\n\n this.typeOfMap=4;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.RED, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, true,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.PURPLE, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.PURPLE, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = createSquare( ColorOfFigure_Square.GREY, true,2,0);\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n }", "public Schema(String name, String location, String year_established, String area){\n this.name = name;\n this.location = location;\n this.year_established = year_established;\n this.area = area;\n }", "public interface MapObjectType {\n}", "public <T extends Map<?,?>> Registry registerMap(\n MapSchema.MessageFactory factory, int id);", "private void setUpMapIfNeeded() {\n\t\tif (mMap == null) {\n\t\t\t// Try to obtain the map from the SupportMapFragment.\n\t\t\tmMap = ((SupportMapFragment) getSupportFragmentManager()\n\t\t\t\t\t.findFragmentById(R.id.map1)).getMap();\n\t\t\t// Check if we were successful in obtaining the map.\n\t\t\tif (mMap != null) {\n\t\t\t\tsetUpMap();\n\t\t\t}\n\t\t}\n\t}", "public Schema getOutputSchema(Schema inputSchema) {\n\n\t\tList<Schema.Field> fields = new ArrayList<>();\n\t\t\n\t\tfields.add(Schema.Field.of(\"ante_token\", Schema.of(Schema.Type.STRING)));\n\t\tfields.add(Schema.Field.of(\"ante_tag\", Schema.of(Schema.Type.STRING)));\n\t\t\n\t\tfields.add(Schema.Field.of(\"cons_token\", Schema.of(Schema.Type.STRING)));\n\t\tfields.add(Schema.Field.of(\"cons_tag\", Schema.of(Schema.Type.STRING)));\n\t\t\n\t\tfields.add(Schema.Field.of(\"toc_score\", Schema.of(Schema.Type.DOUBLE)));\n\t\tfields.add(Schema.Field.of(\"doc_score\", Schema.of(Schema.Type.DOUBLE)));\n\t\t\n\t\treturn Schema.recordOf(inputSchema.getRecordName() + \".related\", fields);\n\n\t}", "AstroSchema getSchema();", "public interface MappingManager\r\n{\r\n public static final String METADATA_EXTENSION_INSERT_FUNCTION = \"insert-function\";\r\n public static final String METADATA_EXTENSION_UPDATE_FUNCTION = \"update-function\";\r\n public static final String METADATA_EXTENSION_SELECT_FUNCTION = \"select-function\";\r\n\r\n /**\r\n * Accessor for whether a java type is supported as being mappable.\r\n * @param javaTypeName The java type name\r\n * @return Whether the class is supported (to some degree)\r\n */\r\n boolean isSupportedMappedType(String javaTypeName);\r\n\r\n /**\r\n * Accessor for the JavaTypeMapping class for the supplied java type.\r\n * @param javaTypeName The java type name\r\n * @return The JavaTypeMapping class to use\r\n */\r\n Class<? extends JavaTypeMapping> getMappingType(String javaTypeName);\r\n\r\n /**\r\n * Method to create the column mapping for a java type mapping at a particular index.\r\n * @param mapping The java mapping\r\n * @param fmd MetaData for the field\r\n * @param index Index of the column\r\n * @param column The column\r\n * @return The column mapping\r\n */\r\n ColumnMapping createColumnMapping(JavaTypeMapping mapping, AbstractMemberMetaData fmd, int index, Column column);\r\n\r\n /**\r\n * Method to create the column mapping for a particular column and java type.\r\n * @param mapping The java mapping\r\n * @param column The column\r\n * @param javaType The java type (isn't this stored in the java mapping ?)\r\n * @return The column mapping\r\n */\r\n ColumnMapping createColumnMapping(JavaTypeMapping mapping, Column column, String javaType);\r\n\r\n /**\r\n * Accessor for a mapping, for a java type.\r\n * Same as calling \"getMapping(c, false, false, (String)null);\"\r\n * @param javaType The java type\r\n * @return The mapping\r\n */\r\n JavaTypeMapping getMapping(Class javaType);\r\n\r\n /**\r\n * Accessor for a mapping, for a java type.\r\n * @param javaType The java type\r\n * @param serialised Whether the type is serialised\r\n * @param embedded Whether the type is embedded\r\n * @param fieldName Name of the field (for logging only)\r\n * @return The mapping\r\n */\r\n JavaTypeMapping getMapping(Class javaType, boolean serialised, boolean embedded, String fieldName);\r\n\r\n /**\r\n * Accessor for a mapping, for a java type complete with the column mapping.\r\n * @param javaType The java type\r\n * @param serialised Whether the type is serialised\r\n * @param embedded Whether the type is embedded\r\n * @param clr ClassLoader resolver\r\n * @return The mapping\r\n */\r\n JavaTypeMapping getMappingWithColumnMapping(Class javaType, boolean serialised, boolean embedded, ClassLoaderResolver clr);\r\n\r\n /**\r\n * Accessor for the mapping for the field of the specified table.\r\n * Can be used for fields of a class, elements of a collection of a class, elements of an array of a class, keys of a map of a class, values of a map of a class. \r\n * This is controlled by the final argument \"roleForMember\".\r\n * @param table Table to add the mapping to\r\n * @param mmd MetaData for the field/property to map\r\n * @param clr The ClassLoaderResolver\r\n * @param fieldRole Role that this mapping plays for the field/property\r\n * @return The mapping for the field.\r\n */\r\n JavaTypeMapping getMapping(Table table, AbstractMemberMetaData mmd, ClassLoaderResolver clr, FieldRole fieldRole);\r\n\r\n /**\r\n * Method to create a column in a container (table).\r\n * @param mapping The java mapping\r\n * @param javaType The java type\r\n * @param datastoreFieldIndex The index of the column to create\r\n * @return The column\r\n */\r\n Column createColumn(JavaTypeMapping mapping, String javaType, int datastoreFieldIndex);\r\n\r\n /**\r\n * Method to create a column in a container (table).\r\n * To be used for serialised PC element/key/value in a join table.\r\n * @param mapping The java mapping\r\n * @param javaType The java type\r\n * @param colmd MetaData for the column to create\r\n * @return The column\r\n */\r\n Column createColumn(JavaTypeMapping mapping, String javaType, ColumnMetaData colmd);\r\n\r\n /**\r\n * Method to create a column for a persistable mapping.\r\n * @param fmd MetaData for the field\r\n * @param table Table in the datastore\r\n * @param mapping The java mapping\r\n * @param colmd MetaData for the column to create\r\n * @param referenceCol The column to reference\r\n * @param clr ClassLoader resolver\r\n * @return The column\r\n */\r\n Column createColumn(AbstractMemberMetaData fmd, Table table, JavaTypeMapping mapping, ColumnMetaData colmd, Column referenceCol, ClassLoaderResolver clr);\r\n}", "private static TableMapper buildTableMapper(Class<?> dtoClass) {\r\n\r\n\t\tMap<String, FieldMapper> fieldMapperCache = null;\r\n\t\tField[] fields = dtoClass.getDeclaredFields();\r\n\r\n\t\tFieldMapper fieldMapper = null;\r\n\t\tTableMapper tableMapper = null;\r\n\t\ttableMapper = tableMapperCache.get(dtoClass);\r\n\t\tif (tableMapper != null) {\r\n\t\t\treturn tableMapper;\r\n\t\t}\r\n\t\ttableMapper = new TableMapper();\r\n\t\ttableMapper.setClazz(dtoClass);\r\n\t\tList<FieldMapper> uniqueKeyList = new LinkedList<FieldMapper>();\r\n\t\tList<FieldMapper> opVersionLockList = new LinkedList<FieldMapper>();\r\n\t\tAnnotation[] classAnnotations = dtoClass.getDeclaredAnnotations();\r\n\t\tfor (Annotation an : classAnnotations) {\r\n\t\t\tif (an instanceof TableMapperAnnotation) {\r\n\t\t\t\ttableMapper.setTableMapperAnnotation((TableMapperAnnotation) an);\r\n\t\t\t} else if (an instanceof Table) {\r\n\t\t\t\ttableMapper.setTable((Table) an);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfieldMapperCache = new WeakHashMap<String, FieldMapper>(16);\r\n\t\tfor (Field field : fields) {\r\n\t\t\tfieldMapper = new FieldMapper();\r\n\t\t\tboolean b = fieldMapper.buildMapper(field);\r\n\t\t\tif (!b) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tswitch (fieldMapper.getOpLockType()) {\r\n\t\t\tcase Version:\r\n\t\t\t\tfieldMapper.setOpVersionLock(true);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (fieldMapper.isUniqueKey()) {\r\n\t\t\t\tuniqueKeyList.add(fieldMapper);\r\n\t\t\t}\r\n\r\n\t\t\tif (fieldMapper.getIgnoreTag().length > 0) {\r\n\t\t\t\tfor (String t : fieldMapper.getIgnoreTag()) {\r\n\t\t\t\t\tfieldMapper.getIgnoreTagSet().add(t);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!\"\".equals(fieldMapper.getDbAssociationUniqueKey())) {\r\n\t\t\t\tfieldMapper.setForeignKey(true);\r\n\t\t\t}\r\n\r\n\t\t\tif (fieldMapper.isForeignKey()) {\r\n\t\t\t\tif (!tableMapperCache.containsKey(field.getType())) {\r\n\t\t\t\t\tbuildTableMapper(field.getType());\r\n\t\t\t\t}\r\n\t\t\t\tTableMapper tm = tableMapperCache.get(field.getType());\r\n\t\t\t\tString foreignFieldName = getFieldMapperByDbFieldName(tm.getFieldMapperCache(),\r\n\t\t\t\t\t\tfieldMapper.getDbAssociationUniqueKey()).getFieldName();\r\n\t\t\t\tfieldMapper.setForeignFieldName(foreignFieldName);\r\n\t\t\t}\r\n\r\n\t\t\tif (!\"\".equals(fieldMapper.getDbCrossedAssociationUniqueKey())) {\r\n\t\t\t\tfieldMapper.setCrossDbForeignKey(true);\r\n\t\t\t}\r\n\r\n\t\t\tif (fieldMapper.isCrossDbForeignKey()) {\r\n\t\t\t\tif (!tableMapperCache.containsKey(field.getType())) {\r\n\t\t\t\t\tbuildTableMapper(field.getType());\r\n\t\t\t\t}\r\n\t\t\t\tTableMapper tm = tableMapperCache.get(field.getType());\r\n\t\t\t\tString foreignFieldName = getFieldMapperByDbFieldName(tm.getFieldMapperCache(),\r\n\t\t\t\t\t\tfieldMapper.getDbCrossedAssociationUniqueKey()).getFieldName();\r\n\t\t\t\tfieldMapper.setForeignFieldName(foreignFieldName);\r\n\t\t\t}\r\n\r\n\t\t\tif (fieldMapper.isOpVersionLock()) {\r\n\t\t\t\topVersionLockList.add(fieldMapper);\r\n\t\t\t}\r\n\t\t\tfieldMapperCache.put(fieldMapper.getDbFieldName(), fieldMapper);\r\n\t\t}\r\n\t\ttableMapper.setFieldMapperCache(fieldMapperCache);\r\n\t\ttableMapper.setUniqueKeyNames(uniqueKeyList.toArray(new FieldMapper[uniqueKeyList.size()]));\r\n\t\ttableMapper.setOpVersionLocks(opVersionLockList.toArray(new FieldMapper[opVersionLockList.size()]));\r\n\t\ttableMapper.buildTableName();\r\n\t\ttableMapperCache.put(dtoClass, tableMapper);\r\n\t\treturn tableMapper;\r\n\t}", "public interface Mapper<T, T2> {\n\n /**\n * Sets the source object.\n *\n * @param source the source instance.\n * @return a <b>IOMap</b> instance.\n */\n Mapper<T, T2> from(T source);\n\n /**\n * Sets the target class.\n *\n * @param target the target class.\n * @return a <b>IOMap</b> instance.\n */\n Mapper<T, T2> to(Class<T2> target);\n\n /**\n * Sets an ignorable object with the ignorable fields for mapping operation.\n *\n * @param ignorable the ignorable instance.\n * @return a <b>IOMap</b> instance.\n */\n Mapper<T, T2> ignoring(Ignorable ignorable);\n\n /**\n * Sets a customizable object with the fields for the explicit mapping.\n *\n * @param customizable the customizable instance.\n * @return a <b>IOMap</b> instance.\n */\n Mapper<T, T2> relate(Customizable customizable);\n\n /**\n * Starts with the building target object\n *\n * @return a target object instance.\n */\n T2 build();\n\n}", "public T withSchema(final String schemaName) {\n requireNonNull(schemaName);\n with(Schema.class, s -> s.mutator().setName(schemaName));\n return self();\n }" ]
[ "0.64232385", "0.6251483", "0.58752733", "0.58700746", "0.5837492", "0.5621647", "0.56216174", "0.559332", "0.55782354", "0.55575883", "0.54036176", "0.52741265", "0.5170673", "0.5138532", "0.511967", "0.5095396", "0.50846106", "0.50705326", "0.5020029", "0.5001479", "0.4986129", "0.4936038", "0.4930283", "0.4929513", "0.4916558", "0.49064553", "0.48860264", "0.48797137", "0.4877358", "0.48609716", "0.48447174", "0.4835109", "0.48200527", "0.48161453", "0.4804606", "0.47968856", "0.47866198", "0.47636476", "0.47632927", "0.4761368", "0.47508436", "0.47205377", "0.4719851", "0.4697731", "0.4685106", "0.4673093", "0.46672907", "0.46581423", "0.46540663", "0.46513402", "0.46501994", "0.46349454", "0.46215197", "0.46174932", "0.46108642", "0.46002123", "0.4588736", "0.458133", "0.45708328", "0.45654735", "0.45652243", "0.4564061", "0.45604694", "0.45586902", "0.45566824", "0.45485127", "0.45412987", "0.4536122", "0.4523851", "0.45186603", "0.4508923", "0.4504981", "0.44976914", "0.449281", "0.44857386", "0.44852173", "0.44768608", "0.4473018", "0.44644642", "0.4461129", "0.44593638", "0.44573802", "0.44524485", "0.44500878", "0.44484818", "0.44395977", "0.4434647", "0.44346008", "0.44149542", "0.44095263", "0.44016746", "0.4400229", "0.43902406", "0.4386019", "0.4385595", "0.43839684", "0.43838075", "0.43813512", "0.43807134", "0.43735835" ]
0.76065046
0
Called by Optiq after creation, before loading tables explicitly defined in a JSON model.
public void initialize() { for (TableInSchema tableInSchema : initialTables()) { addTable(tableInSchema); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void configureTables();", "protected abstract void initialiseTable();", "private void initTables() {\n insert(\"CREATE TABLE IF NOT EXISTS `player_info` (`player` VARCHAR(64) PRIMARY KEY NOT NULL, `json` LONGTEXT)\");\n }", "public void initTable();", "protected abstract void initTable() throws RemoteException, NotBoundException, FileNotFoundException;", "private void init() {\n try {\n renderer = new TableNameRenderer(tableHome);\n if (listId != null) {\n model = new DefaultComboBoxModel(listId);\n }\n else {\n Object[] idList = renderer.getTableIdList(step, extraTableRef);\n model = new DefaultComboBoxModel(idList);\n }\n setRenderer(renderer);\n setModel(model);\n }\n catch (PersistenceException ex) {\n ex.printStackTrace();\n }\n }", "protected abstract void addTables();", "private JsonSQLite createJsonTables(JsonSQLite sqlObj) {\n boolean success = true;\n JsonSQLite retObj = new JsonSQLite();\n SQLiteDatabase db = null;\n ArrayList<JsonTable> jsonTables = new ArrayList<>();\n long syncDate = 0;\n\n try {\n db = getConnection(true, secret);\n String stmt = \"SELECT name,sql FROM sqlite_master WHERE type = 'table' \";\n stmt += \"AND name NOT LIKE 'sqlite_%' AND name NOT LIKE 'sync_table';\";\n JSArray tables = selectSQL(db, stmt, new ArrayList<String>());\n if (tables.length() == 0) {\n throw new Exception(\"Error get table's names failed\");\n }\n JSObject modTables = new JSObject();\n ArrayList<String> modTablesKeys = new ArrayList<>();\n if (sqlObj.getMode().equals(\"partial\")) {\n syncDate = getSyncDate(db);\n if (syncDate == -1) {\n throw new Exception(\"Error did not find a sync_date\");\n }\n modTables = getTablesModified(db, tables, syncDate);\n modTablesKeys = getJSObjectKeys(modTables);\n }\n List<JSObject> lTables = tables.toList();\n for (int i = 0; i < lTables.size(); i++) {\n String tableName = lTables.get(i).getString(\"name\");\n String sqlStmt = lTables.get(i).getString(\"sql\");\n if (\n sqlObj.getMode().equals(\"partial\") &&\n (modTablesKeys.size() == 0 || modTablesKeys.indexOf(tableName) == -1 || modTables.getString(tableName).equals(\"No\"))\n ) {\n continue;\n }\n JsonTable table = new JsonTable();\n boolean isSchema = false;\n boolean isIndexes = false;\n boolean isValues = false;\n table.setName(tableName);\n if (\n sqlObj.getMode().equals(\"full\") ||\n (sqlObj.getMode().equals(\"partial\") && modTables.getString(tableName).equals(\"Create\"))\n ) {\n // create the schema\n ArrayList<JsonColumn> schema = new ArrayList<JsonColumn>();\n // get the sqlStmt between the parenthesis sqlStmt\n sqlStmt = sqlStmt.substring(sqlStmt.indexOf(\"(\") + 1, sqlStmt.lastIndexOf(\")\"));\n String[] sch = sqlStmt.split(\",\");\n // for each element of the array split the first word as key\n for (int j = 0; j < sch.length; j++) {\n String[] row = sch[j].split(\" \", 2);\n JsonColumn jsonRow = new JsonColumn();\n if (row[0].toUpperCase().equals(\"FOREIGN\")) {\n Integer oPar = sch[j].indexOf(\"(\");\n Integer cPar = sch[j].indexOf(\")\");\n row[0] = sch[j].substring(oPar + 1, cPar);\n row[1] = sch[j].substring(cPar + 2, sch[j].length());\n jsonRow.setForeignkey(row[0]);\n } else {\n jsonRow.setColumn(row[0]);\n }\n jsonRow.setValue(row[1]);\n schema.add(jsonRow);\n }\n table.setSchema(schema);\n isSchema = true;\n\n // create the indexes\n stmt = \"SELECT name,tbl_name,sql FROM sqlite_master WHERE \";\n stmt += \"type = 'index' AND tbl_name = '\" + tableName + \"' AND sql NOTNULL;\";\n JSArray retIndexes = selectSQL(db, stmt, new ArrayList<String>());\n List<JSObject> lIndexes = retIndexes.toList();\n if (lIndexes.size() > 0) {\n ArrayList<JsonIndex> indexes = new ArrayList<JsonIndex>();\n for (int j = 0; j < lIndexes.size(); j++) {\n JsonIndex jsonRow = new JsonIndex();\n if (lIndexes.get(j).getString(\"tbl_name\").equals(tableName)) {\n jsonRow.setName(lIndexes.get(j).getString(\"name\"));\n String sql = lIndexes.get(j).getString(\"sql\");\n Integer oPar = sql.lastIndexOf(\"(\");\n Integer cPar = sql.lastIndexOf(\")\");\n jsonRow.setColumn(sql.substring(oPar + 1, cPar));\n indexes.add(jsonRow);\n } else {\n success = false;\n throw new Exception(\"createJsonTables: Error indexes table name doesn't match\");\n }\n }\n table.setIndexes(indexes);\n isIndexes = true;\n }\n }\n\n JSObject tableNamesTypes = getTableColumnNamesTypes(db, tableName);\n ArrayList<String> rowNames = (ArrayList<String>) tableNamesTypes.get(\"names\");\n ArrayList<String> rowTypes = (ArrayList<String>) tableNamesTypes.get(\"types\");\n // create the data\n if (\n sqlObj.getMode().equals(\"full\") ||\n (sqlObj.getMode().equals(\"partial\") && modTables.getString(tableName).equals(\"Create\"))\n ) {\n stmt = \"SELECT * FROM \" + tableName + \";\";\n } else {\n stmt = \"SELECT * FROM \" + tableName + \" WHERE last_modified > \" + syncDate + \";\";\n }\n JSArray retValues = selectSQL(db, stmt, new ArrayList<String>());\n List<JSObject> lValues = retValues.toList();\n if (lValues.size() > 0) {\n ArrayList<ArrayList<Object>> values = new ArrayList<>();\n for (int j = 0; j < lValues.size(); j++) {\n ArrayList<Object> row = new ArrayList<>();\n for (int k = 0; k < rowNames.size(); k++) {\n if (rowTypes.get(k).equals(\"INTEGER\")) {\n if (lValues.get(j).has(rowNames.get(k))) {\n row.add(lValues.get(j).getLong(rowNames.get(k)));\n } else {\n row.add(\"NULL\");\n }\n } else if (rowTypes.get(k).equals(\"REAL\")) {\n if (lValues.get(j).has(rowNames.get(k))) {\n row.add(lValues.get(j).getDouble(rowNames.get(k)));\n } else {\n row.add(\"NULL\");\n }\n } else {\n if (lValues.get(j).has(rowNames.get(k))) {\n row.add(lValues.get(j).getString(rowNames.get(k)));\n } else {\n row.add(\"NULL\");\n }\n }\n }\n values.add(row);\n }\n table.setValues(values);\n isValues = true;\n }\n if (table.getKeys().size() < 1 || (!isSchema && !isIndexes && !isValues)) {\n success = false;\n throw new Exception(\"Error table is not a jsonTable\");\n }\n jsonTables.add(table);\n }\n } catch (Exception e) {\n success = false;\n Log.d(TAG, \"Error: createJsonTables failed: \", e);\n } finally {\n if (db != null) db.close();\n if (success) {\n retObj.setDatabase(sqlObj.getDatabase());\n retObj.setMode(sqlObj.getMode());\n retObj.setEncrypted(sqlObj.getEncrypted());\n retObj.setTables(jsonTables);\n }\n\n return retObj;\n }\n }", "protected void createInitialTables() throws SQLException {\n\t\n\t\t// create one table per type with the corresponding attributes\n\t\tfor (String type: entityType2attributes.keySet()) {\n\t\t\tcreateTableForEntityType(type);\n\t\t}\n\t\t\n\t\t// TODO indexes !\n\t\t\n\t}", "void prepareTables();", "@Override\n public void setUp() {\n setUp(DROP_TABLES, Person.class, TblChild.class, TblGrandChild.class, TblParent.class);\n }", "protected Collection<TableInSchema> initialTables() {\n return Collections.emptyList();\n }", "private void addTables() {\r\n for (SQLTable table : getType().getTables()) {\r\n if (getExpr4Tables().get(table) == null) {\r\n getExpr4Tables().put(table, new HashMap<String,AttributeTypeInterface>());\r\n }\r\n }\r\n\r\n }", "void initTable();", "@Override\n protected void initResultTable() {\n }", "private void initTables() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.CREATE_CITIES.toString());\n statement.execute(INIT.CREATE_ROLES.toString());\n statement.execute(INIT.CREATE_MUSIC.toString());\n statement.execute(INIT.CREATE_ADDRESS.toString());\n statement.execute(INIT.CREATE_USERS.toString());\n statement.execute(INIT.CREATE_USERS_TO_MUSIC.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "public void setup() {\r\n // These setters could be used to override the default.\r\n // this.setDatabasePolicy(new null());\r\n // this.setJDBCHelper(JDBCHelperFactory.create());\r\n this.setTableName(\"chm62edt_habitat_syntaxa\");\r\n this.setTableAlias(\"A\");\r\n this.setReadOnly(true);\r\n\r\n this.addColumnSpec(\r\n new CompoundPrimaryKeyColumnSpec(\r\n new StringColumnSpec(\"ID_HABITAT\", \"getIdHabitat\",\r\n \"setIdHabitat\", DEFAULT_TO_ZERO, NATURAL_PRIMARY_KEY),\r\n new StringColumnSpec(\"ID_SYNTAXA\", \"getIdSyntaxa\",\r\n \"setIdSyntaxa\", DEFAULT_TO_EMPTY_STRING,\r\n NATURAL_PRIMARY_KEY)));\r\n this.addColumnSpec(\r\n new StringColumnSpec(\"RELATION_TYPE\", \"getRelationType\",\r\n \"setRelationType\", DEFAULT_TO_NULL));\r\n this.addColumnSpec(\r\n new StringColumnSpec(\"ID_SYNTAXA_SOURCE\", \"getIdSyntaxaSource\",\r\n \"setIdSyntaxaSource\", DEFAULT_TO_EMPTY_STRING, REQUIRED));\r\n\r\n JoinTable syntaxa = new JoinTable(\"chm62edt_syntaxa B\", \"ID_SYNTAXA\",\r\n \"ID_SYNTAXA\");\r\n\r\n syntaxa.addJoinColumn(new StringJoinColumn(\"NAME\", \"setSyntaxaName\"));\r\n syntaxa.addJoinColumn(new StringJoinColumn(\"AUTHOR\", \"setSyntaxaAuthor\"));\r\n this.addJoinTable(syntaxa);\r\n\r\n JoinTable syntaxasource = new JoinTable(\"chm62edt_syntaxa_source C\",\r\n \"ID_SYNTAXA_SOURCE\", \"ID_SYNTAXA_SOURCE\");\r\n\r\n syntaxasource.addJoinColumn(new StringJoinColumn(\"SOURCE\", \"setSource\"));\r\n syntaxasource.addJoinColumn(\r\n new StringJoinColumn(\"SOURCE_ABBREV\", \"setSourceAbbrev\"));\r\n syntaxasource.addJoinColumn(new IntegerJoinColumn(\"ID_DC\", \"setIdDc\"));\r\n this.addJoinTable(syntaxasource);\r\n }", "@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void init() {\n\n\t\tConnection connection = null;\n\t\tStatement statement = null;\n\n\t\ttry {\n\n\t\t\tconnection = DatabaseInteractor.getConnection();\n\t\t\tstatement = connection.createStatement();\n\n\t\t} catch (SQLException exception) {\n\t\t\texception.printStackTrace();\n\t\t\treturn;\n\t\t} catch (ClassNotFoundException exception) {\n\t\t\texception.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\n\t\t\tDatabaseInteractor.createTable(StringConstants.USERS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.QUESTIONS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.ANSWERS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.TOPICS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_QUESTION_VOTES_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_ANSWER_VOTES_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_TOPIC_RANKS_TABLE, statement);\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public abstract void createTables() throws DataServiceException;", "public void initialize()\r\n\t{\r\n\t\tdatabaseHandler = DatabaseHandler.getInstance();\r\n\t\tfillPatientsTable();\r\n\t}", "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 CreateTables() {\n\t\ttry {\n\t\t\tString schema = Schema.META;\n\t\t\tInstall_DBMS_MetaData(schema.getBytes(),0);\n\n\t\t\t// load and install QEPs\n\t\t\tClass<?>[] executionPlans = new Class[] { QEP.class };\n\t\t\tQEPng.loadExecutionPlans(TCell_QEP_IDs.class, executionPlans);\n\t\t\tQEPng.installExecutionPlans(db);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void tryInitTable(SyncClient syncClient) {\n TableMeta tableMeta = new TableMeta(TABLE_NAME_INC);\n tableMeta.addPrimaryKeyColumn(PK1, PK1_TYPE);\n tableMeta.addPrimaryKeyColumn(PK2, PK2_TYPE);\n tableMeta.addPrimaryKeyColumn(PK3, PK3_TYPE, PrimaryKeyOption.AUTO_INCREMENT);\n\n TableOptions tableOptions = new TableOptions();\n tableOptions.setTimeToLive(TTL);\n tableOptions.setMaxVersions(MAX_VERSION);\n CreateTableRequest createTableRequest = new CreateTableRequest(tableMeta, tableOptions);\n\n try {\n syncClient.createTable(createTableRequest);\n } catch (Exception e) {\n if (!\"Requested table already exists.\".equals(e.getMessage())) {\n System.out.println(\"Init Table Exception: \" + e.getMessage());\n e.printStackTrace();\n return;\n }\n }\n\n System.out.println(String.format(\"Init Table Succeed!\\n\\tTableMeta: %s\\n\\tTableOptions: %s\",\n tableMeta.toString(),\n tableOptions.toString()));\n }", "public void createTable() {\r\n\t\tclient.createTable();\r\n\t}", "public void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\t// if we are auto-creating our schema, check and create\n\t\t\tif (m_autoDdl)\n\t\t\t{\n\t\t\t\tm_sqlService.ddl(this.getClass().getClassLoader(), \"ctools_dissertation\");\n\t\t\t}\n\n\t\t\tsuper.init();\n\t\t}\n\t\tcatch (Throwable t)\n\t\t{\n\t\t\tm_logger.warn(this +\".init(): \", t);\n\t\t}\n\t}", "private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }", "@Test\n public void testTableDependencies() throws Exception {\n Table table = database.findTableByName(\"programs_with_twitter_tags\");\n assertDependentTables(table, \"programs\", \"broadcasts\", \"clusters\");\n }", "@Test\n public void testTableFactoryCreateNoOtherTables() {\n TableController tableController = tableFactory.getTableController();\n tableController.addTable(2);\n assertNull(tableController.getTableMap().get(1));\n assertNotNull(tableController.getTableMap().get(2));\n assertNull(tableController.getTableMap().get(3));\n }", "@Before\r\n\tpublic void setup() {\n\t\tH2Bootstrap.loadSchema(\r\n\t\t\t\tdataSourceLondon, \r\n\t\t\t\t\"/sql/create_bnk_database_h2.sql\", \r\n\t\t\t\t\"/sql/insert_bnk_static_data.sql\",\r\n\t\t\t\t\"/sql/drop_bnk_database.sql\");\r\n\r\n\t\t// H2Boostrap will create and insert the schema just once\r\n\t\tH2Bootstrap.loadSchema(\r\n\t\t\t\tdataSourceNewYork, \r\n\t\t\t\t\"/sql/create_bnk_database_h2.sql\", \r\n\t\t\t\t\"/sql/insert_bnk_static_data.sql\",\r\n\t\t\t\t\"/sql/drop_bnk_database.sql\");\r\n\t}", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "public void updateTableName() {\n\t\tif (!isDeserializing && getHibernateModel() != null) {\n\t\t\tsetTableName(getHibernateModel().getHibernateImplementation().getDbObjectName(getName()));\n\t\t}\n\t}", "protected void sequence_DEFINE_DefinitionTable_TABLE(ISerializationContext context, DefinitionTable semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "void setupTable(TableName tablename) throws Exception {\n setupTableWithRegionReplica(tablename, 1);\n }", "private Tables() {\n\t\tsuper(\"TABLES\", org.jooq.util.mysql.information_schema.InformationSchema.INFORMATION_SCHEMA);\n\t}", "private void preloadDb() {\n String[] branches = getResources().getStringArray(R.array.branches);\n //Insertion from xml\n for (String b : branches)\n {\n dataSource.getTherapyBranchTable().insertTherapyBranch(b);\n }\n String[] illnesses = getResources().getStringArray(R.array.illnesses);\n for (String i : illnesses)\n {\n dataSource.getIllnessTable().insertIllness(i);\n }\n String[] drugs = getResources().getStringArray(R.array.drugs);\n for (String d : drugs)\n {\n dataSource.getDrugTable().insertDrug(d);\n }\n }", "@Override\r\n\tpublic void onLoad() {\n\t\tRunnable onLoadCallback = new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tTable table = new Table(createTable(), createOptions());\r\n\t\t\t\tmainPanel.add(table);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// Load the visualization api, passing the onLoadCallback to be called\r\n\t\t// when loading is done.\r\n\t\tVisualizationUtils.loadVisualizationApi(onLoadCallback, Table.PACKAGE);\r\n\r\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "private void createTables() {\n\n\t\tAutoDao.createTable(db, true);\n\t\tAutoKepDao.createTable(db, true);\n\t\tMunkaDao.createTable(db, true);\n\t\tMunkaEszkozDao.createTable(db, true);\n\t\tMunkaKepDao.createTable(db, true);\n\t\tMunkaTipusDao.createTable(db, true);\n\t\tPartnerDao.createTable(db, true);\n\t\tPartnerKepDao.createTable(db, true);\n\t\tProfilKepDao.createTable(db, true);\n\t\tSoforDao.createTable(db, true);\n\t\tTelephelyDao.createTable(db, true);\n\t\tPushMessageDao.createTable(db, true);\n\n\t}", "private void loadTable() {\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n try {\n String sql = \"select * from tb_mahasiswa\";\n Statement n = a.createStatement();\n ResultSet rs = n.executeQuery(sql);\n while (rs.next()) {\n Object[] o = new Object[6];\n o[0] = rs.getString(\"id_mahasiswa\");\n o[1] = rs.getString(\"nama\");\n o[2] = rs.getString(\"tempat\");\n o[3] = rs.getString(\"waktu\");\n o[4] = rs.getString(\"status\");\n model.addRow(o);\n }\n } catch (Exception e) {\n }\n }", "protected void entityInit() {}", "@Override\n\tpublic void willCreateTables(Connection con, DataMap map) throws Exception {\n\t\tDbEntity e = map.getDbEntity(\"PRIMITIVES_TEST\");\n\t\tif (e != null) {\n\t\t\te.getAttribute(\"BOOLEAN_COLUMN\").setMandatory(true);\n\t\t}\n\t\tDbEntity e1 = map.getDbEntity(\"INHERITANCE_SUB_ENTITY3\");\n\t\tif (e1 != null) {\n\t\t\te1.getAttribute(\"SUBENTITY_BOOL_ATTR\").setMandatory(true);\n\t\t}\n\t\tDbEntity e2 = map.getDbEntity(\"MT_TABLE_BOOL\");\n\t\tif (e2 != null) {\n\t\t\te2.getAttribute(\"BOOLEAN_COLUMN\").setMandatory(true);\n\t\t}\n\t\tDbEntity e3 = map.getDbEntity(\"QUALIFIED1\");\n\t\tif (e3 != null) {\n\t\t\te3.getAttribute(\"DELETED\").setMandatory(true);\n\t\t}\n\n\t\tDbEntity e4 = map.getDbEntity(\"QUALIFIED2\");\n\t\tif (e4 != null) {\n\t\t\te4.getAttribute(\"DELETED\").setMandatory(true);\n\t\t}\n\n\t\tDbEntity e5 = map.getDbEntity(\"Painting\");\n\t\tif (e5 != null) {\n\t\t\tif (e5.getAttribute(\"NEWCOL2\") != null) {\n\t\t\t\te5.getAttribute(\"DELETED\").setMandatory(true);\n\t\t\t}\n\t\t}\n\n\t\tDbEntity e6 = map.getDbEntity(\"SOFT_TEST\");\n\t\tif (e6 != null) {\n\t\t\te6.getAttribute(\"DELETED\").setMandatory(true);\n\t\t}\n\n\t}", "@Override\n public void init() {\n this.shapes = new DatabaseShape();\n }", "@FXML\n @Override\n public void initialize() {\n populateTable();\n\n }", "@GetMapping(\"/init\")\n\t@CrossOrigin(origins = \"http://localhost:3000\")\n\tpublic String initTables() {\n\t\tprojectService.initTables();\n\t\treturn Constants.SUCCESS;\n\t}", "public Creator_4_tables() {\n// this.sourceUnits = sourceUnits;\n sourceUnits = new HashMap<String, PojoSourceCreatorUnit>();\n sourceTemplatePool.logEnvOnSrcCreate = app.cfg.getCfgBean().logEnvOnSrcCreate;\n env.setLogLeading(\"--cfenv--\");\n }", "private void repopulateTableForAdd()\n {\n clearTable();\n populateTable(null);\n }", "@SuppressWarnings(\"unchecked\")\n private void initOthers() {\n resetTable(tblLowSock);\n resetTable(tblReceiptRealization);\n resetTable(tblVoucherRealization);\n loadVoucherRealization();\n loadReceiptRealization();\n loadLowStock();\n tblVoucherRealization.setShowHorizontalLines(false);\n tblReceiptRealization.setShowHorizontalLines(false);\n tblLowSock.setShowHorizontalLines(false);\n }", "public boolean tableRequired()\n {\n return true;\n }", "public void doCreateTable();", "abstract void initializeNeededData();", "public void load() {\n\t\tif (!dbNode.isLogined()) {\n\t\t\treturn;\n\t\t}\n\n\t\tString tablesFolderId = dbNode.getId()\n\t\t\t\t+ CubridTablesFolderLoader.TABLES_FULL_FOLDER_SUFFIX_ID;\n\t\tfinal ICubridNode tablesFolder = dbNode.getChild(tablesFolderId);\n\t\tif (null == tablesFolder) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (tablesFolder.getChildren().size() < 1) {\n\t\t\tfinal TreeViewer tv = getTreeView();\n\t\t\tDisplay.getDefault().syncExec(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttv.expandToLevel(tablesFolder, 1);\n\t\t\t\t}\n\t\t\t});\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}", "@Override\n\tprotected void setupV3Tables(Connection connection) throws SQLException {\n\t\tStatement create = connection.createStatement();\n\n\t\t// Create new empty tables if they do not exist\n\t\tString lm = plugin.getConfigManager().learningMode ? \"1\" : \"0\";\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Players \" + \"(UUID CHAR(40) ,\" + \" NAME VARCHAR(20),\"\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL AUTO_INCREMENT,\" + \" LEARNING_MODE INTEGER NOT NULL DEFAULT \" + lm + \",\"\n\t\t\t\t+ \" MUTE_MODE INTEGER NOT NULL DEFAULT 0,\" + \" PRIMARY KEY (PLAYER_ID))\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Mobs \" + \"(MOB_ID INTEGER NOT NULL AUTO_INCREMENT,\"\n\t\t\t\t+ \" PLUGIN_ID INTEGER NOT NULL,\" + \" MOBTYPE VARCHAR(30),\" + \" PRIMARY KEY(MOB_ID))\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Daily \" + \"(ID CHAR(7) NOT NULL,\"\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\" + \" PLAYER_ID INTEGER NOT NULL,\" + \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\" + \" TOTAL_ASSIST INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\" + \" KEY `MOB_ID` (`MOB_ID`),\"\n\t\t\t\t+ \" KEY `mh_Daily_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Daily_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Daily_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Weekly \" + \"(ID CHAR(6) NOT NULL,\"\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\" + \" PLAYER_ID INTEGER NOT NULL,\" + \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\" + \" TOTAL_ASSIST INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\" + \" KEY `MOB_ID` (`MOB_ID`),\"\n\t\t\t\t+ \" KEY `mh_Weekly_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Weekly_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Weekly_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Monthly \" + \"(ID CHAR(6) NOT NULL,\"\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\" + \" PLAYER_ID INTEGER NOT NULL,\" + \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\" + \" TOTAL_ASSIST INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\" + \" KEY `MOB_ID` (`MOB_ID`),\"\n\t\t\t\t+ \" KEY `mh_Monthly_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Monthly_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Monthly_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Yearly \" + \"(ID CHAR(4) NOT NULL,\"\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\" + \" PLAYER_ID INTEGER NOT NULL,\" + \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\" + \" TOTAL_ASSIST INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\" + \" KEY `MOB_ID` (`MOB_ID`),\"\n\t\t\t\t+ \" KEY `mh_Yearly_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Yearly_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Yearly_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_AllTime \" + \"(MOB_ID INTEGER NOT NULL,\"\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL,\" + \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\" + \" TOTAL_ASSIST INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" PRIMARY KEY(MOB_ID, PLAYER_ID),\" + \" KEY `MOB_ID` (`MOB_ID`),\"\n\t\t\t\t+ \" KEY `mh_AllTime_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_AllTime_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_AllTime_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Achievements \" + \"(PLAYER_ID INTEGER NOT NULL,\"\n\t\t\t\t+ \" ACHIEVEMENT VARCHAR(64) NOT NULL,\" + \" DATE DATETIME NOT NULL,\" + \" PROGRESS INTEGER NOT NULL,\"\n\t\t\t\t+ \" PRIMARY KEY(PLAYER_ID, ACHIEVEMENT),\"\n\t\t\t\t+ \" CONSTRAINT mh_Achievements_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Bounties (\" + \"BOUNTYOWNER_ID INTEGER NOT NULL, \"\n\t\t\t\t+ \"MOBTYPE CHAR(6), \" + \"WANTEDPLAYER_ID INTEGER NOT NULL, \" + \"NPC_ID INTEGER, \"\n\t\t\t\t+ \"MOB_ID VARCHAR(40), \" + \"WORLDGROUP VARCHAR(20) NOT NULL, \" + \"CREATED_DATE BIGINT NOT NULL, \"\n\t\t\t\t+ \"END_DATE BIGINT NOT NULL, \" + \"PRIZE FLOAT NOT NULL, \" + \"MESSAGE VARCHAR(64), \"\n\t\t\t\t+ \"STATUS INTEGER NOT NULL DEFAULT 0, \" + \"PRIMARY KEY(WORLDGROUP, WANTEDPLAYER_ID, BOUNTYOWNER_ID), \"\n\t\t\t\t+ \"KEY `mh_Bounties_Player_Id_1` (`BOUNTYOWNER_ID`),\"\n\t\t\t\t+ \"KEY `mh_Bounties_Player_Id_2` (`WANTEDPLAYER_ID`),\"\n\t\t\t\t+ \"CONSTRAINT mh_Bounties_Player_Id_1 FOREIGN KEY(BOUNTYOWNER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE, \"\n\t\t\t\t+ \"CONSTRAINT mh_Bounties_Player_Id_2 FOREIGN KEY(WANTEDPLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\"\n\t\t\t\t+ \")\");\n\n\t\t// Setup Database triggers\n\t\tcreate.executeUpdate(\"DROP TRIGGER IF EXISTS `mh_DailyInsert`\");\n\t\tcreate.executeUpdate(\"DROP TRIGGER IF EXISTS `mh_DailyUpdate`\");\n\t\tcreate.close();\n\t\tconnection.commit();\n\n\t\tinsertMissingVanillaMobs();\n\n\t\tplugin.getMessages().debug(\"MobHunting V3 Database created/updated.\");\n\t}", "public abstract void loadFromDatabase();", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "@Override\r\n\tpublic void initializeTableContents() {\n\t\t\r\n\t}", "@BeforeEach\n void setUp() {\n\n\n // repopulate the table I'm testing\n com.lukebusch.test.util.Database database = com.lukebusch.test.util.Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n genericDao = new GenericDao( User.class );\n\n }", "public TableObject()\r\n {\r\n\tsuper(ObjectType.Table);\r\n\tglobal = false;\r\n }", "@Override\n public void createTable() throws Exception {\n }", "@Override\n protected void loadAndFormatData()\n {\n // Place the data into the table model along with the column\n // names, set up the editors and renderers for the table cells,\n // set up the table grid lines, and calculate the minimum width\n // required to display the table information\n setUpdatableCharacteristics(getScriptAssociationData(allowSelectDisabled, parent),\n AssociationsTableColumnInfo.getColumnNames(),\n null,\n new Integer[] {AssociationsTableColumnInfo.AVAILABLE.ordinal()},\n null,\n AssociationsTableColumnInfo.getToolTips(),\n true,\n true,\n true,\n true);\n }", "@Override\n\tpublic void initDemoDB() {\n\t}", "@SuppressWarnings({ \"unchecked\", \"null\" })\n public static void createTableDefinition() throws Exception{\n\n if(OBJECT.isAnnotationPresent(Table.class)){\n Annotation annotation = OBJECT.getAnnotation(Table.class);\n Method method = annotation.getClass().getMethod(\"name\");\n Object object = method.invoke(annotation);\n\n TABLE_NAME = object.toString().toUpperCase();\n\n CREATE_STATEMENT = new StringBuilder();\n FOREIGN_KEY = new StringBuilder();\n COLUMNS = new StringBuilder();\n LIST_FIELD_MODEL = new ArrayList<FieldModel>();\n\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Annotation @Table not declared in class \"+OBJECT.getSimpleName());\n }\n\n\n FIELD_DEFINITION = OBJECT.getDeclaredFields();\n\n ARRAY_COLUMNS = new String[FIELD_DEFINITION.length];\n\n for (int i = 0; i < FIELD_DEFINITION.length ; i++){\n Field field = FIELD_DEFINITION[i];\n Annotation annotation = null;\n Method methodName = null;\n Method methodSize = null;\n Object objectName = null;\n Object sizeField = null;\n String type;\n String primaryKeyText = \"\";\n\n\n if(field.isAnnotationPresent(Column.class)){\n annotation = field.getAnnotation(Column.class);\n methodName = annotation.getClass().getMethod(\"name\");\n methodSize = annotation.getClass().getMethod(\"size\");\n sizeField = methodSize.invoke(annotation);\n objectName = methodName.invoke(annotation);\n if(objectName == null || objectName.toString() == \"\"){\n objectName = field.getName();\n }\n\n\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Annotation @Column not declared in the field --> \"+field.getName());\n }\n\n if(field.isAnnotationPresent(PrimaryKey.class)){\n PK = objectName.toString();\n\n Annotation pKey_annotation = field.getAnnotation(PrimaryKey.class);\n Method pkey_methodAutoIncrement = pKey_annotation.getClass().getMethod(\"autoIncrement\");\n Object pkey_autoIncrement = pkey_methodAutoIncrement.invoke(pKey_annotation);\n\n primaryKeyText = \" PRIMARY KEY \";\n\n if(Boolean.valueOf(pkey_autoIncrement.toString())){\n primaryKeyText = primaryKeyText + \" AUTOINCREMENT \";\n }\n\n }\n if(field.isAnnotationPresent(Codigo.class)){\n setCOD(objectName.toString());\n }\n if(field.isAnnotationPresent(ForeignKey.class)){\n Annotation fkey_annotation = field.getAnnotation(ForeignKey.class);\n Method fkey_methodTableReference = fkey_annotation.getClass().getMethod(\"tableReference\");\n Object fkey_tableReferenceName = fkey_methodTableReference.invoke(fkey_annotation);\n\n Method fkey_methodOnUpCascade = fkey_annotation.getClass().getMethod(\"onUpdateCascade\");\n Object fkey_OnUpCascadeValue = fkey_methodOnUpCascade.invoke(fkey_annotation);\n\n Method fkey_methodOnDelCascade = fkey_annotation.getClass().getMethod(\"onDeleteCascade\");\n Object fkey_OnDelCascadeValue = fkey_methodOnDelCascade.invoke(fkey_annotation);\n\n Method fkey_methodColumnReference = fkey_annotation.getClass().getMethod(\"columnReference\");\n Object fkey_columnReference = fkey_methodColumnReference.invoke(fkey_annotation);\n\n String columnReference = fkey_columnReference.toString();\n if(columnReference == \"\"){\n columnReference = \"_id\";\n }\n\n FOREIGN_KEY.append(\", FOREIGN KEY (\"+objectName.toString()+\") REFERENCES \"+fkey_tableReferenceName.toString().toUpperCase()+\" (\"+columnReference+\")\");\n\n if(Boolean.valueOf(fkey_OnUpCascadeValue.toString())){\n FOREIGN_KEY.append(\" ON UPDATE CASCADE \");\n }\n if(Boolean.valueOf(fkey_OnDelCascadeValue.toString())){\n FOREIGN_KEY.append(\" ON DELETE CASCADE \");\n }\n\n\n }\n\n\n if(field.getType() == int.class || field.getType() == Integer.class || field.getType() == Long.class || field.getType() == long.class){\n type = \" INTEGER \";\n }else\tif(field.getType() == String.class || field.getType() == char.class ){\n type = \" TEXT \";\n }else\tif(field.getType() == Double.class || field.getType() == Float.class || field.getType() == double.class){\n type = \" REAL \";\n }else if(field.getType() == BigDecimal.class){\n type = \" REAL \";\n }else if(field.getType() == Date.class){\n type = \" TIMESTAMP \";\n }\n else if(field.getType() == java.sql.Timestamp.class){\n type = \" TIMESTAMP \";\n }else if(field.getType() == Boolean.class || field.getType() == boolean.class){\n type = \" BOOLEAN \";\n }else{\n type = \" NONE \";\n }\n if(!sizeField.equals(\"\") ){\n type = type+\"(\"+sizeField.toString()+\") \";\n setSIZE(Integer.parseInt(sizeField.toString()));\n }\n // Log.d(\"afalOG\", \"TAMANHO\" + type+sizeField.toString());\n if(i == FIELD_DEFINITION.length-1){\n if(objectName != null){\n CREATE_STATEMENT.append(objectName.toString()+\" \"+type+primaryKeyText);\n COLUMNS.append(objectName.toString());\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Property 'name' not declared in the field --> \"+field.getName());\n }\n }else{\n if(objectName != null){\n CREATE_STATEMENT.append(objectName.toString()+\" \"+type+primaryKeyText+\", \");\n COLUMNS.append(objectName.toString()+\" , \");\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Property 'name' not declared in the field --> \"+field.getName());\n }\n }\n ARRAY_COLUMNS[i] = objectName.toString();\n if(! primaryKeyText.contains(\"AUTOINCREMENT\")){\n FieldModel fieldModel = new FieldModel();\n fieldModel.setColumnName(objectName.toString());\n fieldModel.setFieldName(field.getName());\n LIST_FIELD_MODEL.add(fieldModel);\n }\n }\n\n if(FOREIGN_KEY.toString() != \"\"){\n CREATE_STATEMENT.append(FOREIGN_KEY);\n }\n CREATE_STATEMENT.append(\");\");\n\n\n if(getPK() == \"\"){\n StringBuilder sb = new StringBuilder();\n sb.append(\"CREATE TABLE \" + TABLE_NAME + \" (\");\n sb.append(BaseColumns._ID +\" INTEGER PRIMARY KEY AUTOINCREMENT, \" );\n sb.append(CREATE_STATEMENT);\n\n String[] columns = new String[ARRAY_COLUMNS.length+1];\n columns[0] = BaseColumns._ID;\n for(int i = 0; i < ARRAY_COLUMNS.length; i++){\n columns[i+1] = ARRAY_COLUMNS[i];\n }\n\n ARRAY_COLUMNS = columns;\n\n CREATE_STATEMENT = sb;\n }else{\n StringBuilder sb = new StringBuilder();\n sb.append(\"CREATE TABLE \" + TABLE_NAME + \" (\");\n sb.append(CREATE_STATEMENT);\n\n CREATE_STATEMENT = sb;\n }\n }", "void setTables(Object tables);", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "@Override\n public boolean isTableFactory() {\n return true;\n }", "private void initTable() {\n \t\t// init table\n \t\ttable.setCaption(TABLE_CAPTION);\n \t\ttable.setPageLength(10);\n \t\ttable.setSelectable(true);\n \t\ttable.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);\n \t\ttable.setColumnCollapsingAllowed(true);\n \t\ttable.setColumnReorderingAllowed(true);\n \t\ttable.setSelectable(true);\n \t\t// this class handles table actions (see handleActions method below)\n \t\ttable.addActionHandler(this);\n \t\ttable.setDescription(ACTION_DESCRIPTION);\n \n \t\t// populate Toolkit table component with test SQL table rows\n \t\ttry {\n \t\t\tQueryContainer qc = new QueryContainer(\"SELECT * FROM employee\",\n \t\t\t\t\tsampleDatabase.getConnection());\n \t\t\ttable.setContainerDataSource(qc);\n \t\t} catch (SQLException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\t// define which columns should be visible on Table component\n \t\ttable.setVisibleColumns(new Object[] { \"FIRSTNAME\", \"LASTNAME\",\n \t\t\t\t\"TITLE\", \"UNIT\" });\n \t\ttable.setItemCaptionPropertyId(\"ID\");\n \t}", "@Override\npublic void setup(TableRefFilterContext context) {\n\t\n}", "private void loadTableProperties(Annotated instance) {\n parseClass(instance);\n DefaultTableModel model = createTableModel(properties);\n jTable1.setModel(model);\n }", "public void initView() {\n tableModel.containerInitialized(peripheralJobsContainer.getPeripheralJobs());\n }", "private void initializeModel() {\n\t\t\n\t}", "@SideOnly(Side.CLIENT)\n public static void initModels() {\n }", "@SuppressWarnings(\"unused\")\n private AddTable() {\n }", "private void loadRules() throws DataNormalizationException {\n\t\tloadRules(TableVersion.COMMITTED);\n\t}", "public void initializeOnInstantiation() \n\t\t\t\tthrows PersistenceException{\n\n\t}", "public AllFieldsTableHandler(){}", "private void init() {\n\t\tthis.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\tthis.model.setNsPrefixes(INamespace.NAMSESPACE_MAP);\n\n\t\t// create classes and properties\n\t\tcreateClasses();\n\t\tcreateDatatypeProperties();\n\t\tcreateObjectProperties();\n\t\t// createFraktionResources();\n\t}", "public JSObject importFromJson(JsonSQLite jsonSQL) throws JSONException {\n Log.d(TAG, \"importFromJson: \");\n JSObject retObj = new JSObject();\n int changes = Integer.valueOf(-1);\n // create the database schema\n changes = createDatabaseSchema(jsonSQL);\n if (changes != -1) {\n changes = createTableData(jsonSQL);\n }\n retObj.put(\"changes\", changes);\n return retObj;\n }", "tbls createtbls();", "private void createTables() throws SQLException\r\n {\r\n createTableMenuItems();\r\n createTableOrdersWaiting();\r\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n fillTable();\n // TODO\n }", "public JSObject importFromJson(JsonSQLite jsonSQL) {\n Log.d(TAG, \"importFromJson: \");\n JSObject retObj = new JSObject();\n int changes = Integer.valueOf(-1);\n // create the database schema\n changes = fromJson.createDatabaseSchema(this, jsonSQL, secret);\n if (changes != -1) {\n changes = fromJson.createTableData(this, jsonSQL, secret);\n }\n retObj.put(\"changes\", changes);\n return retObj;\n }", "@Before\n public void setUp() throws SQLException {\n modelUnderTest = new Model();\n }", "@PostConstruct\n public void loadSchema() throws IOException {\n\n loadDataIntoHSQL();\n\n //get the schema\n File schemaFile = resource.getFile();\n\n //parse the schema\n //Register the schema file\n TypeDefinitionRegistry typeDefinitionRegistry = new SchemaParser().parse(schemaFile);\n\n //build the wiring to connect\n RuntimeWiring wiring = buildRuntimeWiring();\n\n //Generate the schema using registered file and wiring which is nothing but reference.\n GraphQLSchema schema = new SchemaGenerator().makeExecutableSchema(typeDefinitionRegistry, wiring);\n\n //build the graphQL\n graphQL = GraphQL.newGraphQL(schema).build();\n\n List<Vehicle> list = vehicleService.findAll();\n\n for (Vehicle vehicle : list) {\n System.out.println(vehicle.getMake().toString());\n }\n\n }", "@Override\n\tprotected void setupV4Tables(Connection connection) throws SQLException {\n\t\tStatement create = connection.createStatement();\n\n\t\t// Create new empty tables if they do not exist\n\t\tString lm = plugin.getConfigManager().learningMode ? \"1\" : \"0\";\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Players \"//\n\t\t\t\t+ \"(UUID CHAR(40) ,\"//\n\t\t\t\t+ \" NAME VARCHAR(20),\"//\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL AUTO_INCREMENT,\"//\n\t\t\t\t+ \" LEARNING_MODE INTEGER NOT NULL DEFAULT \" + lm + \",\"//\n\t\t\t\t+ \" MUTE_MODE INTEGER NOT NULL DEFAULT 0,\"//\n\t\t\t\t+ \" PRIMARY KEY (PLAYER_ID))\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Mobs \"//\n\t\t\t\t+ \"(MOB_ID INTEGER NOT NULL AUTO_INCREMENT,\"//\n\t\t\t\t+ \" PLUGIN_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" MOBTYPE VARCHAR(30),\"//\n\t\t\t\t+ \" PRIMARY KEY(MOB_ID))\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Daily \"//\n\t\t\t\t+ \"(ID CHAR(7) NOT NULL,\"//\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_ASSIST INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_CASH REAL DEFAULT 0,\"//\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\"//\n\t\t\t\t+ \" KEY `MOB_ID` (`MOB_ID`),\" + \" KEY `mh_Daily_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Daily_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Daily_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Weekly \"//\n\t\t\t\t+ \"(ID CHAR(6) NOT NULL,\"//\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_ASSIST INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_CASH REAL DEFAULT 0,\"//\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\"//\n\t\t\t\t+ \" KEY `MOB_ID` (`MOB_ID`),\"//\n\t\t\t\t+ \" KEY `mh_Weekly_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Weekly_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Weekly_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Monthly \"//\n\t\t\t\t+ \"(ID CHAR(6) NOT NULL,\"//\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_ASSIST INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_CASH REAL DEFAULT 0,\"//\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\"//\n\t\t\t\t+ \" KEY `MOB_ID` (`MOB_ID`),\"//\n\t\t\t\t+ \" KEY `mh_Monthly_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Monthly_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Monthly_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Yearly \"//\n\t\t\t\t+ \"(ID CHAR(4) NOT NULL,\"//\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_ASSIST INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_CASH REAL DEFAULT 0,\"//\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\"//\n\t\t\t\t+ \" KEY `MOB_ID` (`MOB_ID`),\"//\n\t\t\t\t+ \" KEY `mh_Yearly_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Yearly_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Yearly_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_AllTime \"//\n\t\t\t\t+ \"(MOB_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_ASSIST INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_CASH REAL DEFAULT 0,\"//\n\t\t\t\t+ \" PRIMARY KEY(MOB_ID, PLAYER_ID),\"//\n\t\t\t\t+ \" KEY `MOB_ID` (`MOB_ID`),\"//\n\t\t\t\t+ \" KEY `mh_AllTime_Player_Id` (`PLAYER_ID`),\"//\n\t\t\t\t+ \" CONSTRAINT mh_AllTime_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_AllTime_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Achievements \"//\n\t\t\t\t+ \"(PLAYER_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" ACHIEVEMENT VARCHAR(64) NOT NULL,\"//\n\t\t\t\t+ \" DATE DATETIME NOT NULL,\"//\n\t\t\t\t+ \" PROGRESS INTEGER NOT NULL,\"//\n\t\t\t\t+ \" PRIMARY KEY(PLAYER_ID, ACHIEVEMENT),\"\n\t\t\t\t+ \" CONSTRAINT mh_Achievements_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Bounties (\"//\n\t\t\t\t+ \"BOUNTYOWNER_ID INTEGER NOT NULL, \"//\n\t\t\t\t+ \"MOBTYPE CHAR(6), \"//\n\t\t\t\t+ \"WANTEDPLAYER_ID INTEGER NOT NULL, \"//\n\t\t\t\t+ \"NPC_ID INTEGER, \"//\n\t\t\t\t+ \"MOB_ID VARCHAR(40), \"//\n\t\t\t\t+ \"WORLDGROUP VARCHAR(20) NOT NULL, \"//\n\t\t\t\t+ \"CREATED_DATE BIGINT NOT NULL, \" + \"END_DATE BIGINT NOT NULL, \"//\n\t\t\t\t+ \"PRIZE FLOAT NOT NULL, \"//\n\t\t\t\t+ \"MESSAGE VARCHAR(64), \"//\n\t\t\t\t+ \"STATUS INTEGER NOT NULL DEFAULT 0, \"//\n\t\t\t\t+ \"PRIMARY KEY(WORLDGROUP, WANTEDPLAYER_ID, BOUNTYOWNER_ID), \"\n\t\t\t\t+ \"KEY `mh_Bounties_Player_Id_1` (`BOUNTYOWNER_ID`),\"\n\t\t\t\t+ \"KEY `mh_Bounties_Player_Id_2` (`WANTEDPLAYER_ID`),\"\n\t\t\t\t+ \"CONSTRAINT mh_Bounties_Player_Id_1 FOREIGN KEY(BOUNTYOWNER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE, \"\n\t\t\t\t+ \"CONSTRAINT mh_Bounties_Player_Id_2 FOREIGN KEY(WANTEDPLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\"\n\t\t\t\t+ \")\");\n\n\t\t// Setup Database triggers\n\t\tcreate.executeUpdate(\"DROP TRIGGER IF EXISTS `mh_DailyInsert`\");\n\t\tcreate.executeUpdate(\"DROP TRIGGER IF EXISTS `mh_DailyUpdate`\");\n\t\tcreate.close();\n\t\tconnection.commit();\n\n\t}", "private void createTable() {\n\t\t// Tao dataModel & table \n\t\tdataModel = new DefaultTableModel(headers, 0);\n\t\ttable.setModel(dataModel);\n\t\t\n\t\tnapDuLieuChoBang();\n\t}", "public void initializeOnCreation() \n\t\t\t\tthrows PersistenceException{\n\n\t}", "void load(String table_name, boolean read_only) throws IOException;", "public DynamicSchemaTable() {\n this(\"dynamic_schema\", null);\n }", "private void fillTableNameToList(String dsName) {\n if (dsName.length() > 0) {\n utils = new DataMetaUtils(AppConfig.getDSConfig(dsName));\n final List<String> tableNameList = utils.getTableNameList();\n lstSrcTableName.setModel(new StringListModel(tableNameList));\n } else {\n this.lstSrcTableName.setModel(new StringListModel());\n }\n\n }", "void fillDatabase() {\n Type.type( \"FOOD\" );\n Type.type( \"HOT\" );\n Type.type( \"SNACK\" );\n }", "@Test(timeout = 4000)\n public void test060() throws Throwable {\n DBSchema dBSchema0 = new DBSchema(\"Er\");\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"Er\", dBSchema0);\n List<DBTable> list0 = DBUtil.dependencyOrderedTables(dBSchema0);\n assertFalse(list0.isEmpty());\n }", "@FXML\n\tprivate void initialize() {\n\t\t// Initialize the person table with the two columns.\n\t\t\n\t\tloadDataFromDatabase();\n\n\t\tsetCellTable();\n\n\t\tstagiereTable.setItems(oblist);\n\t\tshowPersonDetails(null);\n\n\t\t// Listen for selection changes and show the person details when\n\t\t// changed.\n\t\tstagiereTable\n\t\t\t\t.getSelectionModel()\n\t\t\t\t.selectedItemProperty()\n\t\t\t\t.addListener(\n\t\t\t\t\t\t(observable, oldValue, newValue) -> showPersonDetails(newValue));\n\t}", "private void initDefaultTableModel() {\n defaultTableModel = new DefaultTableModel();\n defaultTableModel.addColumn(LocaleBundle.getResourceBundle().getString(\"name\"));\n defaultTableModel.addColumn(LocaleBundle.getResourceBundle().getString(\"sex\"));\n defaultTableModel.addColumn(LocaleBundle.getResourceBundle().getString(\"age\"));\n defaultTableModel.addColumn(LocaleBundle.getResourceBundle().getString(\"position\"));\n defaultTableModel.addColumn(LocaleBundle.getResourceBundle().getString(\"address\"));\n defaultTableModel.addColumn(LocaleBundle.getResourceBundle().getString(\"phone\"));\n defaultTableModel.addColumn(LocaleBundle.getResourceBundle().getString(\"email\"));\n defaultTableModel.addColumn(\"Tên tài khoản\");\n }", "@Override\n public boolean requiresSchemaQualifiedTableNames(final SqlGenerationContext context) {\n return true;\n }", "public void doUpdateTable() {\r\n\t\tlogger.info(\"Actualizando tabla books\");\r\n\t\tlazyModel = new LazyBookDataModel();\r\n\t}", "private void init() {\n dao = new ProductDAO();\n model = new DefaultTableModel();\n \n try {\n showAll();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n \n }", "SqlTables(String tableName){\n\t\t\t this.tableName = tableName; \n\t\t}", "private void initialData() {\n\n// if (MorphiaObject.datastore.createQuery(SecurityRole.class).countAll() == 0) {\n// for (final String roleName : Arrays\n// .asList(controllers.Application.USER_ROLE)) {\n// final SecurityRole role = new SecurityRole();\n// role.roleName = roleName;\n// MorphiaObject.datastore.save(role);\n// }\n// }\n }", "public void formDatabaseTable() {\n }" ]
[ "0.65808135", "0.65528697", "0.6533772", "0.6322555", "0.6207919", "0.6185295", "0.60704315", "0.60260564", "0.59899026", "0.59692466", "0.59679514", "0.59466636", "0.5910989", "0.58896536", "0.5884301", "0.5874145", "0.5820588", "0.5789334", "0.5719614", "0.571818", "0.5673636", "0.5664382", "0.56605", "0.5658628", "0.56554204", "0.5649659", "0.564111", "0.56355643", "0.5624486", "0.56242883", "0.55921084", "0.55813324", "0.55542207", "0.553429", "0.5509287", "0.55005056", "0.5496061", "0.54863906", "0.54581183", "0.54427856", "0.5441699", "0.54217523", "0.5405195", "0.540077", "0.5398756", "0.53884184", "0.53765345", "0.53700805", "0.53593755", "0.53557825", "0.5351235", "0.5348882", "0.5348422", "0.5345656", "0.53310764", "0.53237367", "0.53233206", "0.53211933", "0.53161836", "0.53110033", "0.5310567", "0.52966785", "0.52962255", "0.52934307", "0.5279404", "0.5278578", "0.5274747", "0.5272826", "0.52689224", "0.5267601", "0.52541536", "0.5251237", "0.5248237", "0.524018", "0.5239989", "0.52395344", "0.52343875", "0.5232925", "0.52321464", "0.52303153", "0.5225401", "0.521884", "0.52166116", "0.52105004", "0.5206906", "0.5204212", "0.520253", "0.5196936", "0.5191943", "0.51899856", "0.51807827", "0.5177402", "0.5167873", "0.51663285", "0.51658016", "0.5163875", "0.5158503", "0.5156627", "0.5155614", "0.515554" ]
0.6530954
3
TODO: check elementType matches table.elementType
public <E> Table<E> getTable(String name, Class<E> elementType) { assert elementType != null; // First look for a table. TableInSchema table = tableMap.get(name); if (table != null) { return table.getTable(elementType); } // Then look for a table-function with no arguments. Collection<TableFunctionInSchema> tableFunctions = membersMap.get(name); if (tableFunctions != null) { for (TableFunctionInSchema tableFunctionInSchema : tableFunctions) { TableFunction tableFunction = tableFunctionInSchema.getTableFunction(); if (tableFunction.getParameters().isEmpty()) { //noinspection unchecked return tableFunction.apply(Collections.emptyList()); } } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isTable(ElementType elementType)\n {\n\n return (!elementType.children.isEmpty() ||\n !elementType.attributes.isEmpty());\n }", "public abstract Map<String, Integer> getColumnTypes(String tableName);", "TableType getTableType()\n {\n return tableType;\n }", "public Class<?>[] getColumnTypes();", "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 }", "private void addTableProperty(ElementType elementType, boolean multiValued)\n throws Exception\n {\n if (!multiValued)\n {\n // out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n out.write(\" VARCHAR(50)\");\n createAllTablesQuery+=NEWLINE+INDENT+\"m_\"+elementType.name.getLocalName()+\" VARCHAR(50)\";\n\n }else\n {\n // out.write(\",\");\n /* out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(elementType.name.getLocalName());\n */\n }\n \n }", "private void processElementType(ElementType elementType)\n throws Exception\n {\n\n out = new FileWriter(elementType.name.getLocalName() + \".sql\");\n\n // Write a 'create table' query for the element type.\n \n out.write(NEWLINE);\n out.write(\"CREATE TABLE \");\n out.write(elementType.name.getLocalName());\n out.write(\"(\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"ID INT IDENTITY(1,1) PRIMARY KEY,\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"RTN_ID INT FOREIGN KEY REFERENCES RTN(ID),\");\n out.write(NEWLINE);\n out.write(INDENT);\n createAllTablesQuery+=\"CREATE TABLE \"+elementType.name.getLocalName()+\"(\"+NEWLINE+INDENT+\"ID INT IDENTITY(1,1) PRIMARY KEY,\"+NEWLINE+INDENT;\n createAllTablesQuery+=\"RTN_ID INT FOREIGN KEY REFERENCES RTN(ID),\"+NEWLINE+INDENT;\n Hashtable<Enumeration,Collections> hash= elementType.parents;\n Enumeration en =hash.elements();\n while( en. hasMoreElements() )\n {\n ElementType ee= (ElementType) en.nextElement();\n out.write(ee.name.getLocalName()+\"_ID\");\n out.write(\" INT FOREIGN KEY REFERENCES \"+ee.name.getLocalName() +\"(ID)\");\n out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n createAllTablesQuery+=ee.name.getLocalName()+\"_ID\"+\" INT FOREIGN KEY REFERENCES \"+ee.name.getLocalName() +\"(ID),\"+NEWLINE+INDENT;\n\n\n \n }\n out.write(\"DEW_POS VARCHAR(MAX)\");\n out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"DOC_ID INT\");\n out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n createAllTablesQuery+=\"DEW_POS VARCHAR(MAX),\"+NEWLINE+INDENT+\"DOC_ID INT,\"+NEWLINE+INDENT;\n \n //out.write(NEWLINE);\n\n // Process the attributes, adding one property for each.\n\n processAttributes(elementType.attributes);\n\n // Process the content, adding properties for each child element.\n\n switch (elementType.contentType)\n {\n case ElementType.CONTENT_ANY:\n case ElementType.CONTENT_MIXED:\n throw new Exception(\"Can't process element types with mixed or ANY content: \" + elementType.name.getUniversalName());\n\n /* case ElementType.CONTENT_ELEMENT:\n processElementContent(elementType.content, elementType.children);\n break;*/\n\n case ElementType.CONTENT_PCDATA:\n processPCDATAContent(elementType);\n break;\n\n case ElementType.CONTENT_EMPTY:\n // No content to process.\n break;\n }\n\n // Close the Table.\n out.write(NEWLINE);\n out.write(\")\");\n out.write(NEWLINE);\n out.write(NEWLINE);\n createAllTablesQuery+=NEWLINE+\")\"+NEWLINE+NEWLINE;\n // Close the file\n\n out.close();\n }", "public Column.Type getType();", "@Test public void getBaseTypeShouldReturnCorrectType() throws SQLException {\n\t\tList<Object> list = new ArrayList<>();\n\t\tArray array;\n\t\tfor (int type : Array.TYPES_SUPPORTED) {\n\t\t\tarray = new ListArray(list, type);\n\t\t\tassertEquals(type, array.getBaseType());\n\t\t}\n\t}", "public TableTypes getTableTypes() {\n return tableTypes;\n }", "public String getElementType()\n {\n return elementType;\n }", "@Override\n\tpublic int getColumnType(int col) throws SQLException {\n\n\t\tif (col <= width && col >= 1) {\n\t\t\tcol--;\n\n\t\t\tString str = table[0][col];\n\t\t\tStringTokenizer token = new StringTokenizer(str, \",\");\n\t\t\tString name = token.nextToken();\n\t\t\tString type = token.nextToken();\n\t\t\t/*\n\t\t\t * possible errors here according . we should check accurately the\n\t\t\t * name of types returned by amr to make sure they match the words\n\t\t\t * here . anyway I wrote them now and can be modified in\n\t\t\t * logartithmic time easily :P :D\n\t\t\t */\n\n\t\t\tif (type.equals(\"double\"))\n\t\t\t\treturn java.sql.Types.DOUBLE;\n\t\t\telse if (type.equals(\"integer\"))\n\t\t\t\treturn java.sql.Types.INTEGER;\n\t\t\telse if (type.equals(\"string\"))\n\t\t\t\treturn java.sql.Types.VARCHAR;\n\t\t\telse if (type.equals(\"boolean\"))\n\t\t\t\treturn java.sql.Types.BOOLEAN;\n\t\t\telse if (type.equals(\"date\"))\n\t\t\t\treturn java.sql.Types.DATE;\n\t\t\telse\n\t\t\t\treturn java.sql.Types.NULL;\n\n\t\t} else\n\t\t\tthrow new SQLException(\"column requested out of table bounds\");\n\n\t}", "Type getElementType();", "public List<? extends BeanType<?>> beanTypes(String tableName) {\n return tableToDescMap.get(tableName.toLowerCase());\n }", "public void setElementType(QName elementType) {\n this.fieldElementType = elementType;\n }", "@Test void testInterpretTableFunctionWithDynamicType() {\n SchemaPlus schema = rootSchema.add(\"s\", new AbstractSchema());\n final TableFunction table1 =\n TableFunctionImpl.create(Smalls.DYNAMIC_ROW_TYPE_TABLE_METHOD);\n schema.add(\"dynamicRowTypeTable\", table1);\n final String sql = \"select *\\n\"\n + \"from table(\\\"s\\\".\\\"dynamicRowTypeTable\\\"('\"\n + \"{\\\"nullable\\\":false,\\\"fields\\\":[\"\n + \" {\\\"name\\\":\\\"i\\\",\\\"type\\\":\\\"INTEGER\\\",\\\"nullable\\\":false},\"\n + \" {\\\"name\\\":\\\"d\\\",\\\"type\\\":\\\"DATE\\\",\\\"nullable\\\":true}\"\n + \"]}', 0))\\n\"\n + \"where \\\"i\\\" < 0 and \\\"d\\\" is not null\";\n sql(sql).returnsRows();\n }", "private boolean switchTypes(String colType, Object obj) throws BPlusEngineException {\n switch (colType) {\n case \"INT\":\n if (obj instanceof Integer) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n break;\n case \"VARCHAR\":\n if (obj instanceof String) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n break;\n case \"Double\":\n if (obj instanceof Double) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n break;\n case \"Boolean\":\n if (obj instanceof Boolean) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n break;\n case \"DATE\":\n if (obj instanceof Date) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n break;\n default:\n throw new BPlusEngineException(\"Either You spelled the Type incorectly or the type does not exist, \"\n + \"Supported types: Integer, String, Double, Boolean, Date\");\n }\n return false;\n }", "public String getTableTypeString() {\n \t\treturn \"\";\n \t}", "private boolean isMultiTable() {\n\t\treturn fromElement.getQueryable() != null &&\n\t\t\t\tfromElement.getQueryable().isMultiTable();\n\t}", "@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}", "void checkColumnType(\n String sql,\n String expected);", "@Override\r\n \tpublic int getElementType() {\r\n \t\treturn 0; \r\n \t}", "public int getSqlType() { return _type; }", "RelDataType getColumnType(String sql);", "@Override\n public int getType() throws SQLException {\n return ResultSet.TYPE_FORWARD_ONLY;\n }", "AlgDataType getRowType();", "ElementType getElementType();", "public void load() throws Throwable\n {\n // addCompositeTypes();\n\n Db typeRecordTable = new Db(null, 0);\n typeRecordTable.set_error_stream(System.err);\n typeRecordTable.set_errpfx(\"Catalog Retrieval Error\");\n typeRecordTable.open(CatalogManager.getCurrentDirectory()+\n File.separator+\n CompositeTypeRecord.databaseFileName, \n null, Db.DB_BTREE, Db.DB_CREATE, 0644);\n \n Db typeFieldRecordTable = new Db(null, 0);\n typeFieldRecordTable.set_error_stream(System.err);\n typeFieldRecordTable.set_errpfx(\"Catalog Retrieval Error\");\n typeFieldRecordTable.open(CatalogManager.getCurrentDirectory()+\n File.separator+\n TypeFieldRecord.databaseFileName, \n null, Db.DB_BTREE, Db.DB_CREATE, 0644);\n \n // Acquire an iterator for the table.\n Dbc outerIterator;\n outerIterator = typeRecordTable.cursor(null, 0);\n \n Dbc innerIterator;\n innerIterator = typeFieldRecordTable.cursor(null, 0);\n \n IntegerDbt outerKey = new IntegerDbt();\n CompositeTypeRecord typeRecord = new CompositeTypeRecord();\n \n while (outerIterator.get(outerKey, typeRecord, Db.DB_NEXT) == 0) {\n typeRecord.parse();\n if (Constants.VERBOSE) System.out.println(typeRecord);\n\t // if(!typeRecord.getIsInferred()) {\n\t\tCompositeType t = new CompositeType(typeRecord.getTypeName(), \n\t\t\t\t\t\t typeRecord.getIsInferred());\n\t\t\n\t\tIntegerArrayDbt innerKey = new IntegerArrayDbt(new int[] {outerKey.getInteger(), 0});\n\t\tTypeFieldRecord typeFieldRecord = new TypeFieldRecord();\n\t\t\n\t\tif (innerIterator.get(innerKey, typeFieldRecord, Db.DB_SET_RANGE) == 0) {\n\t\t int[] indices = innerKey.getIntegerArray();\n\t\t if (indices[0] == outerKey.getInteger()) {\n\t\t\ttypeFieldRecord.parse();\n\t\t\tif (Constants.VERBOSE) System.out.println(typeFieldRecord);\n\t\t\tt.addAttribute(typeFieldRecord.getFieldName(), \n\t\t\t\t findPrimitiveType(typeFieldRecord.getFieldType()),\n\t\t\t\t typeFieldRecord.getSize());\n\t\t\t\n\t\t\twhile (innerIterator.get(innerKey, typeFieldRecord, Db.DB_NEXT) == 0) {\n\t\t\t indices = innerKey.getIntegerArray();\n\t\t\t if (indices[0] != outerKey.getInteger()) break;\n\t\t\t typeFieldRecord.parse();\n\t\t\t if (Constants.VERBOSE) System.out.println(typeFieldRecord);\n\t\t\t t.addAttribute(typeFieldRecord.getFieldName(), \n\t\t\t\t\t findPrimitiveType(typeFieldRecord.getFieldType()),\n\t\t\t\t\t typeFieldRecord.getSize());\n\t\t\t}\n\t\t }\n\t\t}\n\t\taddCompositeType(t);\n\t\t//}\n }\n\n innerIterator.close();\n outerIterator.close();\n typeRecordTable.close(0);\n typeFieldRecordTable.close(0);\n }", "@Test\r\n public void testGetType() {\r\n System.out.println(\"getType\");\r\n Table instance = new Table(\"S\",2);\r\n String expResult = \"S\";\r\n String result = instance.getType();\r\n assertEquals(expResult, result);\r\n \r\n }", "Table getBaseTable();", "private void addTables() {\r\n for (SQLTable table : getType().getTables()) {\r\n if (getExpr4Tables().get(table) == null) {\r\n getExpr4Tables().put(table, new HashMap<String,AttributeTypeInterface>());\r\n }\r\n }\r\n\r\n }", "Type getResultType();", "public void setElementType(QName elementType) {\n\t\tmFieldElementType = elementType;\n\t}", "@Test\n\tpublic void selectAllFromCourseTable_typed() {\n\t\tList arrayList = em.createNamedQuery(\"query_get_all_courses\",Course.class).getResultList();\n\t\tlogger.info(\"\\n\\n>>>>>>> Select c FROM Course c , entity type explicitly given -> {}\", arrayList);\n\t}", "ResultColumn getTypeIdColumn(TableReference tableReference);", "private Class[] typifyCells() {\n int ncol = ((List) rows.get( 0 )).size();\n int nrow = rows.size();\n Class[] classes = new Class[ ncol ];\n \n /* For each column in the table, go through each row and see what\n * is the most restrictive datatype that all rows are compatible \n * with. */\n for ( int icol = 0; icol < ncol; icol++ ) {\n boolean maybeBoolean = true;\n boolean maybeInteger = true;\n boolean maybeFloat = false;\n boolean maybeDouble = true;\n boolean maybeLong = true;\n for ( Iterator it = rows.iterator(); it.hasNext(); ) {\n List row = (List) it.next();\n String value = (String) row.get( icol );\n if ( value == null || value.length() == 0 ) {\n continue;\n }\n boolean done = false;\n if ( ! done && maybeBoolean ) {\n if ( value.equalsIgnoreCase( \"false\" ) ||\n value.equalsIgnoreCase( \"true\" ) ||\n value.equalsIgnoreCase( \"f\" ) ||\n value.equalsIgnoreCase( \"t\" ) ) {\n done = true;\n }\n else {\n maybeBoolean = false;\n }\n }\n if ( ! done && maybeInteger ) {\n try {\n Integer.parseInt( value );\n done = true;\n }\n catch ( NumberFormatException e ) {\n maybeInteger = false;\n }\n }\n if ( ! done && maybeFloat ) {\n try {\n Float.parseFloat( value );\n done = true;\n }\n catch ( NumberFormatException e ) {\n maybeFloat = false;\n }\n }\n if ( ! done && maybeDouble ) {\n try {\n Double.parseDouble( value );\n done = true;\n }\n catch ( NumberFormatException e ) {\n maybeDouble = false;\n }\n }\n if ( ! done && maybeLong ) {\n try {\n Long.parseLong( value );\n done = true;\n }\n catch ( NumberFormatException e ) {\n maybeLong = false;\n }\n }\n }\n \n /* Set the type we will use, and an object which can convert from\n * a string to the type in question. */\n abstract class Converter {\n abstract Object convert( String value);\n }\n Converter conv;\n Class clazz;\n if ( maybeBoolean ) {\n clazz = Boolean.class;\n conv = new Converter() {\n Object convert( String value ) {\n char v1 = value.charAt( 0 );\n return ( v1 == 't' || v1 == 'T' ) ? Boolean.TRUE \n : Boolean.FALSE;\n }\n };\n }\n else if ( maybeInteger ) {\n clazz = Integer.class;\n conv = new Converter() {\n Object convert( String value ) {\n return new Integer( Integer.parseInt( value ) );\n }\n };\n }\n else if ( maybeFloat ) {\n clazz = Float.class;\n conv = new Converter() {\n Object convert( String value ) {\n return new Float( Float.parseFloat( value ) );\n }\n };\n }\n else if ( maybeDouble ) {\n clazz = Double.class;\n conv = new Converter() {\n Object convert( String value ) {\n return new Double( Double.parseDouble( value ) );\n }\n };\n }\n else if ( maybeLong ) {\n clazz = Long.class;\n conv = new Converter() {\n Object convert( String value ) {\n return new Long( Long.parseLong( value ) );\n }\n };\n }\n else {\n clazz = String.class;\n conv = new Converter() {\n Object convert( String value ) {\n return value;\n }\n };\n }\n classes[ icol ] = clazz;\n \n /* Do the conversion for each row. */\n for ( Iterator it = rows.iterator(); it.hasNext(); ) {\n List row = (List) it.next();\n String value = (String) row.get( icol );\n if ( value == null || value.length() == 0 ) {\n row.set( icol, null );\n }\n else {\n row.set( icol, conv.convert( value ) );\n }\n }\n }\n \n /* Return the types. */\n return classes;\n }", "public boolean isSetTableType() {\n return this.tableType != null;\n }", "@Override\n public RelDataType getRowType(final RelDataTypeFactory typeFactory) {\n final Schema kuduSchema = this.getKuduTable().getSchema();\n final RelDataTypeFactory.Builder builder = new RelDataTypeFactory.Builder(typeFactory);\n\n for (int i = 0; i < kuduSchema.getColumnCount(); i++) {\n final ColumnSchema currentColumn = kuduSchema.getColumnByIndex(i);\n switch (currentColumn.getType()) {\n case INT8:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TINYINT).nullable(currentColumn.isNullable());\n break;\n case INT16:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.SMALLINT).nullable(currentColumn.isNullable());\n break;\n case INT32:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.INTEGER).nullable(currentColumn.isNullable());\n break;\n case INT64:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BIGINT).nullable(currentColumn.isNullable());\n break;\n case BINARY:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARBINARY).nullable(currentColumn.isNullable());\n break;\n case STRING:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARCHAR).nullable(currentColumn.isNullable());\n break;\n case BOOL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BOOLEAN).nullable(currentColumn.isNullable());\n break;\n case FLOAT:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.FLOAT).nullable(currentColumn.isNullable());\n break;\n case DOUBLE:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DOUBLE).nullable(currentColumn.isNullable());\n break;\n case UNIXTIME_MICROS:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TIMESTAMP).nullable(currentColumn.isNullable());\n break;\n case DECIMAL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DECIMAL).nullable(currentColumn.isNullable());\n break;\n }\n }\n\n return builder.build();\n }", "@Override\n public int getResultSetType() throws SQLException {\n throw new SQLException(\"tinySQL does not support getResultSetType.\");\n }", "@Override\n\tpublic void getFields(List<String> table) {\n\t\t\n\t}", "private JSObject getTableColumnNamesTypes(SQLiteDatabase db, String tableName) throws JSONException {\n JSObject ret = new JSObject();\n ArrayList<String> names = new ArrayList<String>();\n ArrayList<String> types = new ArrayList<String>();\n String query = new StringBuilder(\"PRAGMA table_info(\").append(tableName).append(\");\").toString();\n JSArray resQuery = this.selectSQL(db, query, new ArrayList<String>());\n List<JSObject> lQuery = resQuery.toList();\n if (resQuery.length() > 0) {\n for (JSObject obj : lQuery) {\n names.add(obj.getString(\"name\"));\n types.add(obj.getString(\"type\"));\n }\n ret.put(\"names\", names);\n ret.put(\"types\", types);\n }\n return ret;\n }", "@Test\n @Named(\"Specifying column types\")\n @Order(6)\n public void _specifyingColumnTypes() throws Exception {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"import java.util.ArrayList\");\n _builder.newLine();\n _builder.append(\"import java.util.LinkedList\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"describe \\\"Example Tables\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"def examplesWithType{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| Iterable<String> list |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| new ArrayList<String>() |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| new LinkedList<String>() |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"fact \\\"computes the common super type\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"examplesWithType.forEach[\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"assert list.empty\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"]\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"}\");\n _builder.newLine();\n this._behaviorExecutor.executesSuccessfully(_builder);\n }", "private Map<String, Integer> getUserTableTypeMetaData(Connection conn, String name) throws SQLException{\n\t\t\n\t\tMap<String, Integer> colNameType = new HashMap<String, Integer>();\n\t\tPreparedStatement preparedStatement = conn.prepareStatement(TestCDTAnyDB.USER_TABLE_TYPE_QUERY);\n\t\tpreparedStatement.setString(1, name);\n\t\tResultSet rs = preparedStatement.executeQuery();\n\n\t while (rs.next()) {\n\t String colName = rs.getString(\"name\");\n\t String colType = rs.getString(\"type\");\n\t if (TYPE_MAPPING.get(colType) == null ) {\n\t \tLOG.error(\"SQL Server type \" + colType + \" hasn't been mapped in JDBC types \");\n\t \t//throw new Exception(\"wsef\");\n\t }\n\t colNameType.put(colName, TYPE_MAPPING.get(colType));\n\t }\n\t \n\t return colNameType;\t \n\t}", "private int getSubjTypeIdx() {\n return this.colStartOffset + 6;\n }", "<E> ProcessOperation<E> firstColumn(Class<E> elementType);", "public JType elementType() {\n throw new IllegalArgumentException(\"Not an array type\");\n }", "public boolean isTableField()\n {\n boolean ret = false;\n try {\n ret = getField().getCollection() instanceof Table;\n } catch (final CacheReloadException e) {\n LOG.error(\"CacheReloadException\", e);\n }\n return ret;\n }", "Object getTables();", "@Override\n\tpublic boolean isSqlTypeExpected() {\n\t\treturn false;\n\t}", "Table getTable();", "private void UpdateTable() {\n\t\t\t\t\n\t\t\t}", "boolean hasStoredType();", "public LuaObject getcoltypes() throws SQLException\n {\n L.newTable();\n LuaObject table = L.getLuaObject(-1);\n \n ResultSetMetaData md = rs.getMetaData();\n \n for (int i = 1; i <= md.getColumnCount(); i++)\n {\n String name = md.getColumnTypeName(i);\n \n L.pushNumber(i);\n L.pushString(name);\n L.setTable(-3);\n }\n L.pop(1);\n \n return table;\n }", "public ATExpression base_tableExpression();", "public boolean supportsTableCheck() {\n \t\treturn true;\n \t}", "String getTypeFilter(String column, Collection<FxType> types);", "@Test public void getBaseTypeNameShouldReturnCorrectType() throws SQLException {\n\t\tList<Object> list = new ArrayList<>();\n\t\tArray array = new ListArray(list, Types.VARCHAR);\n\t\tassertEquals(\"VARCHAR\", array.getBaseTypeName());\n\t\tarray = new ListArray(list, Types.INTEGER);\n\t\tassertEquals(\"INTEGER\", array.getBaseTypeName());\n\t\tarray = new ListArray(list, Types.DOUBLE);\n\t\tassertEquals(\"DOUBLE\", array.getBaseTypeName());\n\t\tarray = new ListArray(list, Types.BOOLEAN);\n\t\tassertEquals(\"BOOLEAN\", array.getBaseTypeName());\n\t\tarray = new ListArray(list, Types.JAVA_OBJECT);\n\t\tassertEquals(\"JAVA_OBJECT\", array.getBaseTypeName());\n\t}", "public SchemaAttribute getEmptyTabularColumn()\n {\n SchemaAttribute schemaAttribute = new SchemaAttribute();\n\n ElementType elementType = new ElementType();\n\n elementType.setElementOrigin(ElementOrigin.LOCAL_COHORT);\n elementType.setElementTypeId(SchemaElementMapper.TABULAR_COLUMN_TYPE_GUID);\n elementType.setElementTypeName(SchemaElementMapper.TABULAR_COLUMN_TYPE_NAME);\n\n schemaAttribute.setType(elementType);\n\n return schemaAttribute;\n }", "public static void findElemInTable(XSComplexTypeDecl type, XSElementDecl elem, SymbolHash elemDeclHash) throws XMLSchemaException {\n/* 572 */ String name = elem.fName + \",\" + elem.fTargetNamespace;\n/* */ \n/* 574 */ XSElementDecl existingElem = null;\n/* 575 */ if ((existingElem = (XSElementDecl)elemDeclHash.get(name)) == null) {\n/* */ \n/* 577 */ elemDeclHash.put(name, elem);\n/* */ }\n/* */ else {\n/* */ \n/* 581 */ if (elem == existingElem) {\n/* */ return;\n/* */ }\n/* 584 */ if (elem.fType != existingElem.fType)\n/* */ {\n/* 586 */ throw new XMLSchemaException(\"cos-element-consistent\", new Object[] { type.fName, elem.fName });\n/* */ }\n/* */ } \n/* */ }", "@Override\n public Class<MytableRecord> getRecordType() {\n return MytableRecord.class;\n }", "public int typeIndex();", "public int getType() throws SQLException {\n\n try {\n debugCodeCall(\"getType\");\n checkClosed();\n return stat == null ? ResultSet.TYPE_FORWARD_ONLY : stat.resultSetType;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "private ColumnInfo testColumnTypeDetection(String var, Node value, boolean allowNulls, int jdbcType, String className) throws SQLException {\n ColumnInfo info = JdbcCompatibility.detectColumnType(var, value, allowNulls);\n Assert.assertEquals(var, info.getLabel());\n if (allowNulls) {\n Assert.assertEquals(ResultSetMetaData.columnNullable, info.getNullability());\n } else {\n Assert.assertEquals(ResultSetMetaData.columnNoNulls, info.getNullability());\n }\n Assert.assertEquals(jdbcType, info.getType());\n Assert.assertEquals(className, info.getClassName());\n Assert.assertEquals(Node.class.getCanonicalName(), info.getTypeName());\n return info;\n }", "public String getSelectedTableType() {\n\t\treturn selectedTableType;\n\t}", "public interface TableStructure extends Structure {\n FieldStructure getFieldByJava(String javaName);\n\n\n FieldStructure getFieldBySql(String sqlName);\n\n\n int getFieldCount();\n\n\n Map getFieldsByJavaKey();\n\n\n Map getFieldsBySqlKey();\n\n\n String getJavaName();\n\n\n String getType();\n\n\n List<String> getFunctionalKeyFields();\n\n\n List<String> getSqlPrimaryKeyFields();\n}", "private ColumnType typeOf(DataType type) {\n switch (type) {\n case _class:\n return ColumnType.nominal;\n case _float:\n return ColumnType.continuous;\n case _order:\n return ColumnType.ordinal;\n default:\n throw new IllegalArgumentException(\"Unknown type: \" + type);\n }\n }", "private Object getTable() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void checkColumnType(\n String sql,\n String expected)\n {\n tester.checkColumnType(sql, expected);\n }", "public VariableTableModel(OpenRocketDocument doc){\n \t\t\n\t\tCollections.addAll(types, FlightDataType.ALL_TYPES);\n \t\t\n\t\tfor (CustomExpression expression : doc.getCustomExpressions()){\n\t\t\ttypes.add(expression.getType());\n\t\t}\n \t}", "protected abstract Map<String, String> getColumnValueTypeOverrides();", "public interface MultiValueTableAdapter {\n\t//public void setComplexTable( ComplexTable table );\n\tpublic Object[] extract( Object o );\n\tpublic Object extractEvenNoValueExist( Object o );\n\tpublic void combine( Object o, Object[] extractValues );\n\tpublic ObjectNewer getObjectNewer();\n}", "void checkType(int i, DataType.Name name) {\n DataType defined = getType(i);\n if (name != defined.getName())\n throw new InvalidTypeException(String.format(\"Column %s is of type %s\", getName(i), defined));\n }", "int getOneof1066();", "public String toXML() {\n StringBuffer ret = new StringBuffer();\n ret.append(\"<table name=\\\"MTBTypes\\\">\\n\");\n ret.append(\" <column name=\\\"_MTBTypes_key\\\"\\n\");\n ret.append(\" value=\\\"\").append((MTBTypesKey_is_initialized ? ((MTBTypesKey == null ? null : MTBTypesKey.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"type\\\"\\n\");\n ret.append(\" value=\\\"\").append((type_is_initialized ? ((type == null ? null : type)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"description\\\"\\n\");\n ret.append(\" value=\\\"\").append((description_is_initialized ? ((description == null ? null : description)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"tableName\\\"\\n\");\n ret.append(\" value=\\\"\").append((tableName_is_initialized ? ((tableName == null ? null : tableName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"columnName\\\"\\n\");\n ret.append(\" value=\\\"\").append((columnName_is_initialized ? ((columnName == null ? null : columnName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((createUser_is_initialized ? ((createUser == null ? null : createUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((createDate_is_initialized ? ((createDate == null ? null : createDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateUser_is_initialized ? ((updateUser == null ? null : updateUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateDate_is_initialized ? ((updateDate == null ? null : updateDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\"</table>\");\n return ret.toString();\n }", "@Test\n public void test_column_type_detection_byte_02() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"123\", XSDDatatype.XSDunsignedByte), true, Types.TINYINT, Byte.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertFalse(info.isSigned());\n }", "public Object getExtensionType(String columnName) {\n FieldVector vector = table.getVector(columnName);\n return vector.getObject(rowNumber);\n }", "@Test\n public void testAlteringUserTypeNestedWithinList() throws Throwable\n {\n String[] columnTypePrefixes = {\"frozen<list<\", \"list<frozen<\"};\n for (String columnTypePrefix : columnTypePrefixes)\n {\n String ut1 = createType(\"CREATE TYPE %s (a int)\");\n String columnType = columnTypePrefix + KEYSPACE + \".\" + ut1 + \">>\";\n\n createTable(\"CREATE TABLE %s (x int PRIMARY KEY, y \" + columnType + \")\");\n\n execute(\"INSERT INTO %s (x, y) VALUES(1, [1] )\");\n assertRows(execute(\"SELECT * FROM %s\"), row(1, list(userType(1))));\n flush();\n\n execute(\"ALTER TYPE \" + KEYSPACE + \".\" + ut1 + \" ADD b int\");\n execute(\"INSERT INTO %s (x, y) VALUES(2, [{a:2, b:2}])\");\n execute(\"INSERT INTO %s (x, y) VALUES(3, [{a:3}])\");\n execute(\"INSERT INTO %s (x, y) VALUES(4, [{b:4}])\");\n\n assertRows(execute(\"SELECT * FROM %s\"),\n row(1, list(userType(1))),\n row(2, list(userType(2, 2))),\n row(3, list(userType(3, null))),\n row(4, list(userType(null, 4))));\n\n flush();\n\n assertRows(execute(\"SELECT * FROM %s\"),\n row(1, list(userType(1))),\n row(2, list(userType(2, 2))),\n row(3, list(userType(3, null))),\n row(4, list(userType(null, 4))));\n }\n }", "RelDataType getParameterRowType();", "@Override\n public String getTableTypeString() {\n return super.getTableTypeString() + \" DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci\";\n }", "private boolean checkColumnTypes(ArrayList<String> types, ArrayList<Object> values) {\n boolean isType = true;\n for (int i = 0; i < values.size(); i++) {\n isType = this.isType(types.get(i), values.get(i));\n if (!isType) break;\n }\n return isType;\n }", "private static String getColumnClassDataType (String windowName2) {\n\r\n\t\tString classType = \"@Override \\n public Class getColumnClass(int column) { \\n switch (column) {\\n\";\r\n\t\tVector<WindowTableModelMapping> maps = getMapColumns(windowName2);\r\n\t\tfor (int i = 0; i < maps.size(); i++) {\r\n\t\t\tWindowTableModelMapping mp = maps.get(i);\r\n\t\t\tclassType = classType + \" case \" + i + \":\\n\";\r\n\t\t\tif(mp.getColumnDataType().equalsIgnoreCase(\"Boolean\")) {\r\n\t\t\t\tclassType = classType + \" return Boolean.class; \\n\";\r\n\t\t\t} else \tif(mp.getColumnDataType().equalsIgnoreCase(\"Integer\")) {\r\n\t\t\t\tclassType = classType + \" return Integer.class; \\n\";\r\n\t\t\t} else \t\t\tif(mp.getColumnDataType().equalsIgnoreCase(\"Double\")) {\r\n\t\t\t\tclassType = classType + \" return Double.class; \\n\";\r\n\t\t\t} else {\r\n\t\t\t\tclassType = classType + \" return String.class; \\n\";\r\n\t\t\t}\r\n\t\t\r\n \r\n\r\n\t\t}\r\n\t\tclassType = classType + \" default: \\n return String.class;\\n }\\n}\";\r\n\t\treturn classType;\r\n\t}", "private ArrayList<String> getJoinedAttributeTypes(List<Table> tables) {\n\t\tArrayList<String> rtn = new ArrayList<String>(); \n\n\t\ttry {\n\t\t\tfor(int iterator = 0; iterator < tables.size(); iterator++) {\n\t\t\t\tTable table = tables.get(iterator);\n\t\t\t\tFile root = new File(\"src\");\n\t\t\t\tURLClassLoader classLoader = URLClassLoader.newInstance(new URL[] { root.toURI().toURL() });\n\t\t\t\tClass<?> cl = Class.forName(table.getName(), true, classLoader);\n\t\t\t\t\n\t\t\t\tField fields[] = cl.getDeclaredFields();\n\t\t\t\tfor(int i = 0; i < fields.length; i++) {\n\t\t\t\t\tField field = fields[i];\n\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\trtn.add(field.getType().getName());\n\t\t\t\t\tfield.setAccessible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (MalformedURLException e)\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn rtn;\n\t}", "public Class getAttributeType();", "String getBaseTable();", "@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}", "@Test\n public void test_column_type_detection_byte_01() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"123\", XSDDatatype.XSDbyte), true, Types.TINYINT, Byte.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertTrue(info.isSigned());\n }", "@Override\r\n\tpublic List<Type> selectType() {\n\t\treturn gd.selectType();\r\n\t}", "public void setTableTypes(TableTypes tableTypes) {\n this.tableTypes = tableTypes;\n }", "fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();", "private TableModel resultSetToTableModel(ResultSet UpdateJTable) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "FeatureType getType();", "public static ArrayList<String> getMainTableColumns()\r\n {\r\n ArrayList<String> cols = new ArrayList<String>();\r\n Course.CourseTable[] columns = Course.CourseTable.class.getEnumConstants();\r\n\r\n for (int i = 0; i < columns.length; i++)\r\n {\r\n if (columns[i].isMainTableColumn())\r\n {\r\n cols.add(columns[i].getName());\r\n }\r\n }\r\n return cols;\r\n }", "UserType getUserTypes(int index);", "public void creatTable(String tableName,LinkedList<String> columnsName,LinkedList<String> columnsType );", "@Test\n public void test_level_behaviours_columns_01() {\n Assert.assertFalse(JdbcCompatibility.shouldTypeColumnsAsString(JdbcCompatibility.LOW));\n Assert.assertFalse(JdbcCompatibility.shouldDetectColumnTypes(JdbcCompatibility.LOW));\n }", "public int getColumnType() {\n return (this.option >> 6) & 3;\n }", "public void ach_doc_type_csv_test () {\n\t\t\n\t}", "public int getResultSetType() throws SQLException {\n return 0;\r\n }", "@Override\n public Class<?> getColumnClass(int aColumn) {\n return model.getColumnClass(aColumn); \n }", "@Override\n\tpublic String[] getTableColumns() {\n\t\treturn null;\n\t}" ]
[ "0.72774875", "0.6356732", "0.6089991", "0.60085034", "0.5961774", "0.5884993", "0.5848366", "0.58469987", "0.5770383", "0.5726025", "0.55749655", "0.5565291", "0.5549384", "0.55254626", "0.5518563", "0.55030197", "0.5491122", "0.5465322", "0.5463782", "0.5448081", "0.544283", "0.543533", "0.5403343", "0.53999424", "0.5373479", "0.5363152", "0.53625774", "0.5348869", "0.5347405", "0.53440356", "0.5340812", "0.5334282", "0.53121847", "0.52939034", "0.5292764", "0.5292112", "0.52894396", "0.5284561", "0.5250719", "0.5224695", "0.52242196", "0.5217215", "0.5202294", "0.5201514", "0.51860785", "0.5170118", "0.5170089", "0.5163984", "0.5161792", "0.51610655", "0.5155257", "0.5147705", "0.5146389", "0.5122723", "0.5115951", "0.51121306", "0.51005656", "0.510016", "0.50988144", "0.509614", "0.508856", "0.5087606", "0.5085894", "0.50816566", "0.5081595", "0.5079173", "0.5069017", "0.5055711", "0.5052746", "0.50505817", "0.5043855", "0.50393444", "0.5038882", "0.5037888", "0.50327456", "0.50287944", "0.5025395", "0.5018375", "0.50167674", "0.5005214", "0.4982575", "0.4978967", "0.49762762", "0.49746728", "0.49624354", "0.49615878", "0.4960608", "0.49564502", "0.49495015", "0.49490574", "0.4945614", "0.49449673", "0.49442533", "0.49437493", "0.4937468", "0.49363297", "0.49303105", "0.49258873", "0.49228016", "0.4922742" ]
0.53482395
28
Returns the initial set of tables. The default implementation returns an empty list. Derived classes may override this method to create tables based on their schema type. For example, a CSV provider might scan for all ".csv" files in a particular directory and return a table for each.
protected Collection<TableInSchema> initialTables() { return Collections.emptyList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Table> getTables() {\n List<Table> tables = new ArrayList<>();\n\n DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n Query query = new Query(\"Table\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n String firstName = (String) entity.getProperty(\"firstName\");\n String lastName = (String) entity.getProperty(\"lastName\");\n String email = (String) entity.getProperty(\"email\");\n String phoneNumber = (String) entity.getProperty(\"phoneNumber\");\n String restName = (String) entity.getProperty(\"restName\");\n String restAdd = (String) entity.getProperty(\"restAdd\");\n String restDescrip = (String) entity.getProperty(\"restDescrip\");\n String dateTime = (String) entity.getProperty(\"dateTime\");\n String maxSize = (String) entity.getProperty(\"maxSize\");\n String otherNotes = (String) entity.getProperty(\"otherNotes\");\n List members = (List) entity.getProperty(\"members\");\n double lat = (double) entity.getProperty(\"lat\");\n double lng = (double) entity.getProperty(\"lng\");\n\n\n \n\n Table table = new Table(firstName, lastName, email, phoneNumber, restName, restAdd, restDescrip, dateTime, maxSize, otherNotes, members, lat, lng);\n tables.add(table);\n }\n return tables;\n }", "Object getTables();", "@Override\n public java.util.List<Table> getTablesList() {\n return tables_;\n }", "public ArrayList<Table> getAllTables() {\r\n\t\treturn tables;\r\n\t}", "java.util.List<Table>\n getTablesList();", "public ArrayList<Table> getTables(String schema) {\r\n try {\r\n Statement stmt = conexion.createStatement();\r\n String sql;\r\n sql = \"SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '\" + schema + \"'\";\r\n ResultSet rs = stmt.executeQuery(sql);\r\n ArrayList<Table> tables = new ArrayList();\r\n while (rs.next()) {\r\n Table_Base table = new Table_Base();\r\n table.setTitle(rs.getString(3));//TABLE_NAME\r\n table.setDescription(rs.getString(21));//TABLE_COMMENT\r\n System.out.println(\"isuued table.. \"+rs.getString(15)+\"/\"+rs.getString(3));\r\n table.setIssued(rs.getString(15));//CREATE_TIME\r\n if(rs.getString(16) != null){\r\n table.setModified(rs.getString(16));//UPDATE_TIME\r\n \r\n }else\r\n {\r\n table.setModified(\"\");//UPDATE_TIME\r\n \r\n }\r\n table.setMediaType(\"application/sql\");\r\n table.setFormat(\"application/sql\");\r\n table.setByteSize(getByteSizeDBTable(rs.getString(10), rs.getString(12)));\r\n table.setCharacterSet(getCharacterSetTableDB(schema, rs.getString(3)));\r\n table.setDefaultDecimalSeparator(\".\");//default standard mysql\r\n table.setOverrallRecordCount(rs.getString(8));\r\n ArrayList<Column> columns = getColumns(schema, table.getTitle());\r\n table.setColumnas(columns);\r\n tables.add(table);\r\n }\r\n return tables;\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\r\n }", "public List<String> tables() {\n return this.tables;\n }", "public List<TableMetadata> tables()\n {\n if (version == UNDEFINED) {\n return Collections.emptyList();\n }\n if (version == NOT_FETCHED) {\n synchronized (this) {\n List<TableMetadata> catalogTables = base.tablesForSchema(schema.name());\n for (TableMetadata table : catalogTables) {\n cache.put(table.id().name(), new TableEntry(table));\n }\n }\n }\n List<TableMetadata> orderedTables = new ArrayList<>();\n\n // Get the list of actual tables; excluding any cached \"misses\".\n cache.forEach((k, v) -> {\n if (v.table != null) {\n orderedTables.add(v.table);\n }\n });\n orderedTables.sort((e1, e2) -> e1.id().name().compareTo(e2.id().name()));\n return orderedTables;\n }", "public abstract String [] listTables();", "public Tables getTables(){\n\t\tTables result=null;\n\t\tTable t1=(column1==null || column1.getTableName()==null)?(null):new Table(column1.getTableName());\t\t\n\t\tTable t2=(column2==null || column2.getTableName()==null)?(null):new Table(column2.getTableName());\n\t\tif (t1!=null) { \n\t\t\tresult=new Tables(t1);\n\t\t\tresult.add(t2);\n\t\t} else if(t2!=null){\n\t\t\tresult=new Tables(t2);\n\t\t}\n\t\treturn result;\n\t}", "public void initialize() {\n for (TableInSchema tableInSchema : initialTables()) {\n addTable(tableInSchema);\n }\n }", "public ArrayList<Table> getTableEmpty() {\n \tArrayList<Table> fetchedTables = new ArrayList<Table>();\n \tfetchedTables = getTable(tableEmpty);\n \treturn fetchedTables;\n }", "private List<Table> getTableFromStringTableName(String tableName) throws HyracksDataException {\n\n // Get all the tables\n if (generateAllTables) {\n // Remove the DBGEN_VERSION table and all children tables, parent tables will generate them\n return Table.getBaseTables().stream()\n .filter(table -> !table.equals(Table.DBGEN_VERSION) && !table.isChild())\n .collect(Collectors.toList());\n }\n\n // Search for the table\n List<Table> matchedTables = Table.getBaseTables().stream()\n .filter(table -> tableName.equalsIgnoreCase(table.getName())).collect(Collectors.toList());\n\n // Ensure the table was found\n if (matchedTables.isEmpty()) {\n throw new RuntimeDataException(ErrorCode.TPCDS_INVALID_TABLE_NAME, getFunctionIdentifier().getName(),\n tableName);\n }\n\n return matchedTables;\n }", "@Override\n public List<TableDefinition> getTableDefinitions()\n {\n return tableDefinitions;\n }", "private Tables() {\n\t\tsuper(\"TABLES\", org.jooq.util.mysql.information_schema.InformationSchema.INFORMATION_SCHEMA);\n\t}", "public DataTableCollection tables() {\r\n return _tables;\r\n }", "private List getMappingTablesInternal() {\n MappingTable primary = getPrimaryMappingTable();\n List tables = new ArrayList();\n\n if (primary != null) {\n MappingReferenceKey[] refKeys = primary.getMappingReferenceKeys();\n int i, count = ((refKeys != null) ? refKeys.length : 0);\n\n tables.add(primary);\n\n for (i = 0; i < count;i++) {\n MappingTable secondaryTable = refKeys[i].getMappingTable();\n\n if (secondaryTable != null)\n tables.add(secondaryTable);\n }\n }\n\n return tables;\n }", "@Override\n\tpublic ResultSet getTables(String catalog, String schemaPattern,\n\t\t\tString tableNamePattern, String[] types) throws SQLException {\n\t\t\n\t\tPreparedStatement ps = con.prepareStatement(\"SELECT tbl_name FROM sqlite_master WHERE tbl_name = ?\");\n\t\tps.setString(1, tableNamePattern);\n\t\tResultSet rs = ps.executeQuery();\n\t\t\n\t\treturn rs;\n\t}", "private String[] getTables() {\r\n\t\tString[] returnedValue = null;\r\n\t\tList<String> tablesList = new ArrayList<String>();\r\n\t\t\r\n\t\tif (getDatabse() != null && getDatabse().isOpen()) {\r\n\t\t\tCursor cursor = getDatabse().rawQuery(\"SELECT DISTINCT tbl_name FROM sqlite_master\", null);\r\n\t\t\tif (cursor != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcursor.moveToLast();\r\n\t\t\t\t\tcursor.moveToFirst();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (cursor.getCount() > 0) {\r\n\t\t\t\t\t\tdo{\r\n\t\t\t\t\t\t\tString tableName = cursor.getString(0);\r\n\t\t\t\t\t\t\tif (tableName != null && tableName.trim() != \"\") {\r\n\t\t\t\t\t\t\t\tif (!tableName.trim().toLowerCase().equals(\"android_metadata\") &&\r\n\t\t\t\t\t\t\t\t\t!tableName.trim().toLowerCase().equals(\"sqlite_sequence\")) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\ttablesList.add(tableName);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} while(cursor.moveToNext());\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tcursor.close();\r\n\t\t\t\t\tcursor = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (tablesList.size() > 0) {\r\n\t\t\treturnedValue = tablesList.toArray(new String[tablesList.size()]);\r\n\t\t}\r\n\t\ttablesList.clear();\r\n\t\ttablesList = null;\r\n\t\t\r\n\t\treturn returnedValue;\r\n\t}", "public java.util.List<Table> getTablesList() {\n if (tablesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(tables_);\n } else {\n return tablesBuilder_.getMessageList();\n }\n }", "@Override\n public List<String> ListTables() throws IOException {\n\n LOGGER.info(\": {}\", hbaseDmlDao);\n\n// return listTables;\n return null;\n }", "public Collection<TapTable> findAllTables();", "public String[] getTableList() {\n\t\treturn adapter.getTableList(adapter.queryToArray());\n\t}", "public List<DefaultSchemaNode> getAllTablesNode() {\n\t\tList<DefaultSchemaNode> nodes = new ArrayList<DefaultSchemaNode>();\n\t\tif (!dbNode.isLogined()) {\n\t\t\treturn nodes;\n\t\t}\n\n\t\tString tablesFolderId = dbNode.getId()\n\t\t\t\t+ CubridTablesFolderLoader.TABLES_FULL_FOLDER_SUFFIX_ID;\n\t\tICubridNode tablesFolder = dbNode.getChild(tablesFolderId);\n\t\tif (null == tablesFolder) {\n\t\t\treturn nodes;\n\t\t}\n\n\t\tList<ICubridNode> children = tablesFolder.getChildren();\n\t\tfor (ICubridNode node : children) {\n\t\t\tif (NodeType.USER_TABLE.equals(node.getType())\n\t\t\t\t\t&& node instanceof DefaultSchemaNode) {\n\t\t\t\tnodes.add((DefaultSchemaNode) node);\n\t\t\t}\n\t\t}\n\n\t\treturn nodes;\n\t}", "public List<String> getTableNames() throws IOException {\n List<String> tableList = new ArrayList<String>();\n TableName[] tableNames = hBaseAdmin.listTableNames();\n for (TableName tableName : tableNames) {\n //if (pattern.matcher(tableName.toString()).find()) {\n tableList.add(tableName.toString());\n //}\n }\n return tableList;\n }", "public List<SchemaInfo> getAllUserTablesInfo() {\n\t\tList<DefaultSchemaNode> tableNodes = getAllTablesNode();\n\t\tList<SchemaInfo> tables = new ArrayList<SchemaInfo>();\n\n\t\tfor (DefaultSchemaNode node : tableNodes) {\n\t\t\tSchemaInfo table = dbNode.getDatabaseInfo().getSchemaInfo(\n\t\t\t\t\tnode.getName());\n\t\t\tif (null != table) {\n\t\t\t\ttables.add(table);\n\t\t\t}\n\t\t}\n\n\t\treturn tables;\n\t}", "public HashMap<Integer, FlexTable> getTables() {\n if (tables == null) {\n tables = new HashMap<Integer, FlexTable>();\n }\n return tables;\n }", "public void showTables(){\n\t\tSchema schemaTable = Schema.getSchemaInstance();\n\t\tString currentSchemaName = schemaTable.getCurrentSchema();\n\n\t\ttry{\n\t\t\tArrayList<String> tableList = new ArrayList<String>();\n\n\t\t\tRandomAccessFile tableFile = new RandomAccessFile(\"information_schema.table.tbl\",\"rw\");\n\n\t\t\twhile(tableFile.getFilePointer() < tableFile.length()){\n\t\t\t\tString readSchemaName = \"\";\n\t\t\t\tString readTableName = \"\";\n\n\t\t\t\t//Looks for matching schema name\n\t\t\t\tbyte varcharLength = tableFile.readByte();\n\t\t\t\tfor(int j = 0; j < varcharLength; j++)\n\t\t\t\t\treadSchemaName += (char)tableFile.readByte();\n\n\t\t\t\tbyte varcharTableLength = tableFile.readByte();\n\t\t\t\tfor(int k = 0; k < varcharTableLength; k++)\n\t\t\t\t\treadTableName += (char)tableFile.readByte();\n\t\t\t\t//Looks for matching table name\n\t\t\t\tif(readSchemaName.equals(currentSchemaName)){\t\n\t\t\t\t\ttableList.add(readTableName);\n\t\t\t\t}\n\t\t\t\t//To skip the number of rows part\n\t\t\t\ttableFile.readLong();\n\t\t\t}\n\n\t\t\tif(tableList.size() != 0){\n\t\t\t\t//Printing current Tables in the schema\n\t\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\t\tSystem.out.println(\"Table_in_\" + currentSchemaName);\n\t\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\t\tfor(int i = 0; i < tableList.size() ; i++)\n\t\t\t\t\tSystem.out.println(tableList.get(i));\n\t\t\t\tSystem.out.println(\"------------------------------------------------\");\n\n\t\t\t\t//Clearing table list contents\n\t\t\t\ttableList.removeAll(tableList);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Empty Set...\");\n\t\t\t}\n\n\t\t\t//Closing the file\n\t\t\ttableFile.close();\n\t\t}catch(FileNotFoundException e){\n\t\t\te.printStackTrace();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "ArrayList<String> getTables() throws SQLException {\n\t\tArrayList<String> tables = new ArrayList<String>();\n\t\tDatabaseMetaData md = con.getMetaData();\n\t\tfor (ResultSet rs = md.getTables(null, null, \"%\", null); rs.next(); tables\n\t\t\t\t.add(rs.getString(3)))\n\t\t\t;\n\t\treturn tables;\n\t}", "protected void createInitialTables() throws SQLException {\n\t\n\t\t// create one table per type with the corresponding attributes\n\t\tfor (String type: entityType2attributes.keySet()) {\n\t\t\tcreateTableForEntityType(type);\n\t\t}\n\t\t\n\t\t// TODO indexes !\n\t\t\n\t}", "public String[] getTableNames()\n {\n return tableNames;\n }", "String getBaseTable();", "@Override\n public Table getTables(int index) {\n return tables_.get(index);\n }", "@Override\n public int getTablesCount() {\n return tables_.size();\n }", "public List<String> getUserTables() {\n\t\ttry (Connection con = getReadOnlyConnection()) {\n\t\t\treturn dbFacade.getUserTables(con);\n\t\t} catch (SQLException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public static ColumnData listTables(File home, String catalog, String schemaPattern, String tableNamePattern, String[] types) {\n Column[] columns = {new Column(\"Table1\"), new Column(\"Table2\"), new Column(\"Table3\"), new Column(\"Table4\")};\n Data data = new Data(columns);\n CSVFileFilter ff = new CSVFileFilter();\n for (String type : types) {\n if (type.equalsIgnoreCase(\"table\")) {\n for (File f : home.listFiles((FileFilter) ff)) {\n String name = f.getName();\n String tableName = name.substring(0, name.length() - 4);\n data.add(new String[]{tableName, tableName, tableName, tableName});\n }\n } else if (type.equalsIgnoreCase(\"view\")) {\n for (File f : home.listFiles(new SqlQueryFileFilter())) {\n String name = f.getName();\n String tableName = name.substring(0, name.length() - 4);\n data.add(new String[]{tableName, tableName, tableName, tableName});\n }\n }\n }\n return data;\n }", "@Override\n\tpublic ArrayList<String> getTablesNames() {\n\t\tArrayList<String> arrTblNames = new ArrayList<String>();\n\t\tCursor c = ourDatabase.rawQuery(\n\t\t\t\t\"SELECT name FROM sqlite_master WHERE type='table'\", null);\n\n\t\tif (c.moveToFirst()) {\n\t\t\twhile (!c.isAfterLast()) {\n\t\t\t\tarrTblNames.add(c.getString(c.getColumnIndex(\"name\")));\n\t\t\t\tc.moveToNext();\n\t\t\t}\n\t\t}\n\t\treturn arrTblNames;\n\t}", "@Override\n public java.util.List<? extends TableOrBuilder>\n getTablesOrBuilderList() {\n return tables_;\n }", "protected abstract void initialiseTable();", "public HTableDescriptor[] listTables() throws IOException {\n return getAdmin().listTables();\n }", "private void get_tables_from_db() {\n\t\t\n\t\tDBUtils dbu = new DBUtils(this, MainActv.dbName);\n\t\t\n\t\tSQLiteDatabase rdb = dbu.getReadableDatabase();\n\n\t\t// Log\n\t\tLog.d(\"TNActv.java\" + \"[\"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \"]\", \"rdb.getPath(): \" + rdb.getPath());\n\t\t\n\t\t\n\t\t// REF=> http://stackoverflow.com/questions/82875/how-do-i-list-the-tables-in-a-sqlite-database-file\n\t\tString sql = \"SELECT * FROM sqlite_master WHERE type='table'\";\n\t\t\n\t\tCursor c = rdb.rawQuery(sql, null);\n\t\t\n\t\tstartManagingCursor(c);\n\t\t\n\t\t// Log\n\t\tLog.d(\"TNActv.java\" + \"[\"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \"]\", \"Tables: c.getCount()\" + c.getCount());\n\t\t\n\t\tc.moveToFirst();\n\t\t\n\t\tfor (int i = 0; i < c.getCount(); i++) {\n\t\t\t\n\t\t\t// Log\n\t\t\tLog.d(\"TNActv.java\" + \"[\"\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t\t+ \"]\", \"name: \" + c.getString(1));\n\t\t\t\n\t\t\tc.moveToNext();\n\t\t\t\n\t\t}//for (int i = 0; i < c.getCount(); i++)\n\t\t\n\t\trdb.close();\n\t\t\n\t}", "public DBTableDescriptor[] listTables() throws IOException {\n return this.connection.listTables();\n }", "public TablesGenerator()\n {\n }", "public void listTables() {\r\n\t\tfor (Table table : tables) {\r\n\t\t\tSystem.out.println(table.getName());\r\n\t\t}\r\n\t}", "Table getTables(int index);", "public List<String> get_table_names() {\n LinkedList<String> res = new LinkedList<>();\n\n //the table name information is stored in sqlite_master\n ResultSet resultSet = execute_statement(\"SELECT name FROM sqlite_master WHERE type='table'\" +\n \"AND name <> 'sqlite_sequence' AND name <> 'relationship'\", true);\n\n try {\n while (resultSet.next()) {\n res.add(resultSet.getString(1));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return res;\n }", "String getTableName();", "public TableTypes getTableTypes() {\n return tableTypes;\n }", "Table getBaseTable();", "public abstract DataSet getTablesByType(String catalog, String schema,\r\n String pattern, String type)\r\n throws Exception;", "public void initTable();", "private void createTables() {\n\n\t\tAutoDao.createTable(db, true);\n\t\tAutoKepDao.createTable(db, true);\n\t\tMunkaDao.createTable(db, true);\n\t\tMunkaEszkozDao.createTable(db, true);\n\t\tMunkaKepDao.createTable(db, true);\n\t\tMunkaTipusDao.createTable(db, true);\n\t\tPartnerDao.createTable(db, true);\n\t\tPartnerKepDao.createTable(db, true);\n\t\tProfilKepDao.createTable(db, true);\n\t\tSoforDao.createTable(db, true);\n\t\tTelephelyDao.createTable(db, true);\n\t\tPushMessageDao.createTable(db, true);\n\n\t}", "public List<String> getTableNames() {\r\n\t\tList<String> TBL_LIST = new ArrayList<String>();\r\n\t\tConnection con = null;\r\n\t\tString sql = \"select LOGIC_TBL_NM from TBL_DTL\";\r\n\t\ttry {\r\n\r\n\t\t\tcon = ConnectionMgt.getConnectionObject();\r\n\t\t\tsql = \"select * from tbl_dtl order by PHYS_TBL_NM\";\r\n\t\t\tPreparedStatement stmt = null;\r\n\t\t\tstmt = con.prepareStatement(sql);\r\n\t\t\tResultSet rst = stmt.executeQuery();\r\n\t\t\twhile (rst.next()) {\r\n\t\t\t\tTBL_LIST.add(rst.getString(\"LOGIC_TBL_NM\"));\r\n\t\t\t}\r\n\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\t\treturn TBL_LIST;\r\n\r\n\t}", "@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}", "public Set<TableName> getIncrementalBackupTableSet() throws IOException {\n return systemTable.getIncrementalBackupTableSet(backupInfo.getBackupRootDir());\n }", "protected TableHelper[] getTableHelpers() {\n\t\treturn getDbFactory().getTableHelpers();\n\t}", "List<PhysicalTable> getPhysicalTables();", "void prepareTables();", "public ArrayList<Table> getTablePayment() {\n \tArrayList<Table> fetchedTables = new ArrayList<Table>();\n \tfetchedTables = getTable(tablePayment);\n \treturn fetchedTables;\n }", "public List<String> getHeadTables() {\r\n\t\tList<String> tableNames = new ArrayList<String>();\r\n\t\tif(clearNcopy()){\r\n\t\t\ttableNames.add(getBody().get(0).toString3());\r\n\t\t}\r\n\t\ttableNames.add(getHead().toString3());\r\n\t\treturn tableNames;\r\n\t}", "public Set<Class<? extends RealmModel>> getDBTableTypes(){\n try {\n if (this.realmConfiguration == null) {\n this.realmConfiguration = DatabaseUtilities\n .buildRealmConfig(context, null, null, null);\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n\n if(realmConfiguration == null){\n return null;\n }\n return realmConfiguration.getRealmObjectClasses();\n }", "public List<Map<String, String>> getTable(String tableName) {\n return getTable(tableName, 1, 9999);\n\n }", "public TableFactory getTableFactory() { return new BasicTableFactory(); }", "protected abstract void addTables();", "public static List<DbTable> getTableList(Database database, String schemaPattern, String tablePattern) {\r\n String[] types = {\"TABLE\"};\r\n\r\n ResultSet meta = null;\r\n List<DbTable> v = new ArrayList<DbTable>();\r\n try {\r\n DatabaseMetaData db = database.getConnection().getMetaData();\r\n\r\n meta = db.getTables(null, schemaPattern, tablePattern, types );\r\n\r\n // https://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#getTables(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String[])\r\n while (meta.next()) {\r\n DbTable table = new DbTable();\r\n\r\n table.setS(meta.getString(\"TABLE_SCHEM\"));\r\n table.setT(meta.getString(\"TABLE_NAME\"));\r\n table.setR(meta.getString(\"REMARKS\"));\r\n\r\n v.add(table);\r\n }\r\n }\r\n catch (Exception e) {\r\n final String es = \"Error get list of view\";\r\n throw new DbRevisionException(es, e);\r\n }\r\n return v;\r\n }", "public ArrayList<Table> getTable(String status)\n {\n ArrayList<Table> tables = new ArrayList();\n \n \n // First open a database connnection\n DatabaseConnection connection = new DatabaseConnection();\n if(connection.openConnection())\n {\n // If a connection was successfully setup, execute the SELECT statement.\n ResultSet resultset = connection.executeSQLSelectStatement(\n \"SELECT * FROM `tafel` WHERE tafelStatus = '\"+status+\"';\");\n\n if(resultset != null)\n {\n try\n {\n while(resultset.next())\n {\n Table newTable = new Table(\n \n resultset.getInt(\"tafelNummer\"),\n resultset.getString(\"tafelStatus\"),\n resultset.getInt(\"aantalpersonen\"));\n\n tables.add(newTable);\n }\n \n }\n catch(SQLException e)\n {\n System.out.println(e);\n tables = null;\n }\n }\n\n connection.closeConnection();\n }\n \n return tables;\n }", "public List<String> getTableTypes()\r\n throws Exception\r\n {\r\n List<String> list = new ArrayList<String>();\r\n \r\n list.add(TYPE_TABLES);\r\n \r\n return list;\r\n }", "public String[] getTableSchema(String tableName){\n return tableSchemaMap.get(tableName);\n }", "public ArrayList<Table> getTableOrder() {\n \tArrayList<Table> fetchedTables = new ArrayList<Table>();\n \tfetchedTables = getTable(tableOrder);\n \treturn fetchedTables;\n }", "tbls createtbls();", "public Table getTables(int i) {\r\n\t\treturn tables.get(i);\r\n\t}", "public static List<String> getTemporaryTables(final String toAppend) {\n return appendAll(TABLES, toAppend);\n }", "public void CreateTables() {\n\t\ttry {\n\t\t\tString schema = Schema.META;\n\t\t\tInstall_DBMS_MetaData(schema.getBytes(),0);\n\n\t\t\t// load and install QEPs\n\t\t\tClass<?>[] executionPlans = new Class[] { QEP.class };\n\t\t\tQEPng.loadExecutionPlans(TCell_QEP_IDs.class, executionPlans);\n\t\t\tQEPng.installExecutionPlans(db);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract String[] createTablesStatementStrings();", "public Set<String> getTableNames(String schema)\n {\n requireNonNull(schema, \"schema is null\");\n return metaManager.getTableNames(schema);\n }", "void initTable();", "public void doCreateTable();", "private void addTables() {\r\n for (SQLTable table : getType().getTables()) {\r\n if (getExpr4Tables().get(table) == null) {\r\n getExpr4Tables().put(table, new HashMap<String,AttributeTypeInterface>());\r\n }\r\n }\r\n\r\n }", "List<GlobalSchema> schemas();", "java.util.List<com.sanqing.sca.message.ProtocolDecode.Table> \n getTableList();", "public Collection getTables(String serviceProviderCode, String callerID) throws AAException, RemoteException;", "private void initTables() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.CREATE_CITIES.toString());\n statement.execute(INIT.CREATE_ROLES.toString());\n statement.execute(INIT.CREATE_MUSIC.toString());\n statement.execute(INIT.CREATE_ADDRESS.toString());\n statement.execute(INIT.CREATE_USERS.toString());\n statement.execute(INIT.CREATE_USERS_TO_MUSIC.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "Table getTable();", "@SuppressWarnings(\"unchecked\")\n private void createTable() {\n table = (LinkedList<Item<V>>[])new LinkedList[capacity];\n for(int i = 0; i < table.length; i++) {\n table[i] = new LinkedList<>();\n }\n }", "public List<String> getAllTables() throws Exception {\n\t\tList<String> result = new ArrayList<String>();\n\n\t\tDatabaseMetaData metaData = conn.getMetaData();\n\t\tString[] types = { \"TABLE\" };\n\t\t// Retrieving the columns in the database\n\t\tResultSet tables = metaData.getTables(null, null, \"%\", types);\n\t\twhile (tables.next()) {\n\t\t\tresult.add(tables.getString(\"TABLE_NAME\"));\n\t\t}\n\t\treturn result;\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "public abstract void configureTables();", "@Override\n\tpublic List<TemplateBundle> getTemplateBundles() {\n\t\tList<TemplateBundle> templates = new ArrayList<TemplateBundle>();\t\n\t\tif (cache == null){\n\t\t\tcache = new ArrayList<TemplateBundle>();\n\t\t\tEnumeration<?> en = JaspersoftStudioPlugin.getInstance().getBundle().findEntries(\"templates/table\", \"*.jrxml\", false); //Doesn't search in the subdirectories\n\t\t\twhile (en.hasMoreElements()) {\n\t\t\t\tURL templateURL = (URL) en.nextElement();\n\t\t\t\ttry {\n\t\t\t\t\tTemplateBundle bundle = new TableTemplateBunlde(templateURL, JasperReportsConfiguration.getDefaultInstance());\n\t\t\t\t\tif (bundle != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcache.add(bundle);\n\t\t\t\t\t}\t\n\t\t\t\t} catch (Exception ex) \t{\n\t\t\t\t\t// Log error but continue...\n\t\t\t\t\tJaspersoftStudioPlugin.getInstance().getLog().log(\n\t\t\t\t\t\t\tnew Status(IStatus.ERROR,JaspersoftStudioPlugin.PLUGIN_ID,\n\t\t\t\t\t\t\t\t\tMessageFormat.format(Messages.DefaultTemplateProvider_TemplateLoadingErr,new Object[]{templateURL}), ex));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttemplates.addAll(cache);\n\t\tloadAdditionalTemplateBundles(templates);\n\t\treturn templates;\n\t}", "java.util.List<? extends TableOrBuilder>\n getTablesOrBuilderList();", "public List<Schema> getAllOf() {\n\t\treturn allOf;\n\t}", "public Builder clearTables() {\n if (tablesBuilder_ == null) {\n tables_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n tablesBuilder_.clear();\n }\n return this;\n }", "public PgPublicationTables() {\n this(DSL.name(\"pg_publication_tables\"), null);\n }", "private static ArrayList getTables (Connection c)\n\t\tthrows Exception\n\t{\n\t\tStatement s = c.createStatement();\n\t\tResultSet r = s.executeQuery(\"show tables\");\n\t\tArrayList result = new ArrayList();\n\t\twhile (r.next()) result.add(r.getString(1));\n\t\ts.close();\n\t\tCollections.sort(result);\n\t\treturn result;\n\t}", "@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}", "@Nonnull\n @Override\n public Set<ResourceType> list() {\n return getTables().stream()\n .map(Table::name)\n .map(String::toLowerCase)\n .map(LOWER_CASE_RESOURCE_NAMES::get)\n .filter(Objects::nonNull)\n .collect(Collectors.toSet());\n }", "@Override\r\n\tpublic String getTableName() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getTableName() {\n\t\treturn null;\r\n\t}", "@Override\n protected AdqlValidator.ValidatorTable[] getExtraTables() {\n TopcatModel[] tcModels = getTopcatModels();\n List<AdqlValidator.ValidatorTable> vtList =\n new ArrayList<AdqlValidator.ValidatorTable>();\n for ( int it = 0; it < tcModels.length; it++ ) {\n TopcatModel tcModel = tcModels[ it ];\n String[] aliases = getUploadAliases( tcModel );\n for ( int ia = 0; ia < aliases.length; ia++ ) {\n String tname = \"TAP_UPLOAD.\" + aliases[ ia ];\n vtList.add( toValidatorTable( tcModel, tname ) );\n }\n }\n return vtList.toArray( new AdqlValidator.ValidatorTable[ 0 ] );\n }", "private void getDbTables() throws LdvTableException, SQLException, ViewConfigException\n {\n if (db == null)\n {\n ViewerConfig vc = new ViewerConfig();\n db = vc.getDb();\n if (db == null)\n {\n throw new LdvTableException(\"Can't connect to LigoDV-web database\");\n }\n }\n if (chanTbl == null)\n {\n chanTbl = new ChannelTable(db);\n }\n }", "public org.apache.spark.sql.SchemaRDD table (java.lang.String tableName) { throw new RuntimeException(); }" ]
[ "0.73028904", "0.70951116", "0.7059913", "0.704048", "0.69924456", "0.6989556", "0.6905842", "0.6782781", "0.6674579", "0.66532683", "0.6647394", "0.6586291", "0.64772284", "0.64724994", "0.64417523", "0.64171445", "0.64096117", "0.6408953", "0.6386593", "0.6324449", "0.63029796", "0.630081", "0.6275394", "0.6257295", "0.62497145", "0.62370807", "0.6234346", "0.62167317", "0.6202197", "0.6182705", "0.6179812", "0.6177876", "0.61613643", "0.6110811", "0.61050415", "0.60995173", "0.6080984", "0.6076314", "0.6073989", "0.60273033", "0.601549", "0.60108507", "0.6009749", "0.60095435", "0.59891474", "0.59761435", "0.5950499", "0.59331834", "0.59312147", "0.5913277", "0.5896439", "0.58736604", "0.58694357", "0.5868433", "0.58682585", "0.58572876", "0.5856378", "0.58535594", "0.58455527", "0.58313066", "0.58312255", "0.58242273", "0.5813177", "0.581272", "0.5801956", "0.57990146", "0.57626784", "0.5747612", "0.57457864", "0.57358503", "0.5720374", "0.5694865", "0.5690978", "0.5690095", "0.56766826", "0.5660368", "0.5641621", "0.56230515", "0.5603486", "0.56034046", "0.55937636", "0.5582376", "0.55809283", "0.55797946", "0.5577682", "0.5567148", "0.556524", "0.5560435", "0.55575174", "0.5552134", "0.5548029", "0.554623", "0.5544195", "0.55406755", "0.5524072", "0.5523118", "0.5523118", "0.5519463", "0.55149585", "0.55141" ]
0.7857526
0
Methods: Getter method for the COM property "Application"
@DISPID(148) @PropGet com.exceljava.com4j.excel._Application getApplication();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VTID(12)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getApplication();", "@DISPID(148)\n @PropGet\n excel._Application getApplication();", "public String getApplication() {\r\n\t\treturn application;\r\n\t}", "public String getApplication() {\r\n return application;\r\n }", "@VTID(7)\r\n excel._Application getApplication();", "Application getApplication();", "public TApplication getApplication() {\n return window.getApplication();\n }", "@VTID(7)\n com.exceljava.com4j.excel._Application getApplication();", "@VTID(7)\n com.exceljava.com4j.excel._Application getApplication();", "@VTID(7)\n com.exceljava.com4j.excel._Application getApplication();", "@VTID(7)\n com.exceljava.com4j.excel._Application getApplication();", "@VTID(7)\n excel._Application getApplication();", "public Application getApplication() {\n return (Application)this.getSource();\n }", "protected Application getApplication() {\r\n\t\treturn application;\r\n\t}", "public com.atomgraph.linkeddatahub.apps.model.Application getApplication()\n {\n return (com.atomgraph.linkeddatahub.apps.model.Application)getContainerRequestContext().getProperty(LAPP.Application.getURI());\n }", "public Application getApp() {\n\t\treturn app;\n\t}", "@DISPID(1000) //= 0x3e8. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n word._Application application();", "@DISPID(1000) //= 0x3e8. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n word._Application application();", "@DISPID(1610743808) //= 0x60020000. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject application();", "public SmartApplication getSmartApplication() {\r\n\t\treturn application;\r\n\t}", "public static MIDLetParamsApp getApplication() {\n return Application.getInstance(MIDLetParamsApp.class);\n }", "protected ApplicationComponent getApplicationComponent() {\n return ((MainApp) getApplication()).getApplicationComponent();\n }", "public MauiApplication getApplication ()\n\t{\n\t\treturn application;\n\t}", "public Optional<ApplicationVersion> application() { return application; }", "public String getApp();", "public int getApplication() {\n\treturn com.hps.july.constants.Applications.DICTIONARY;\n}", "public String getApplicationName() {\n return applicationName;\n }", "@Override\n\tpublic String getApp() {\n\t\tthrow new UnsupportedOperationException(\"Not supported yet.\");\n\t}", "public String getApplicationName() {\r\n\t\treturn applicationName;\r\n\t}", "public java.lang.String getApplicationID() {\r\n return applicationID;\r\n }", "public String getApplicationdata() {\r\n return applicationdata;\r\n }", "public static Application getApp() {\n if (sApplication != null) return sApplication;\n throw new NullPointerException(\"u should init first\");\n }", "public ApplicationInfo getApplicationInfo() {\n return null;\n }", "@Key(\"application.component\")\n\tString applicationComponent();", "public org.thethingsnetwork.management.proto.HandlerOuterClass.Application getApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public Vector getApplicationProperties() {\n return appProperties;\n }", "@DISPID(3) //= 0x3. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n visiotool.IVApplication application();", "public String getApplicationID() {\n return applicationID;\n }", "public BuilderApplication getApp() {\n\t\treturn app;\n\t}", "public static ApplicationComponent component() {\n return instance().applicationComponent;\n }", "AdminApplication getApplication();", "public String getAppName( )\n\t{\n\t\treturn appName;\n\t}", "public java.lang.String getApplicationId() {\r\n return applicationId;\r\n }", "public String getAppName() {\n\t\treturn appName;\n\t}", "public String getAppName();", "public static ApplicationBase getApplication()\r\n {\r\n if (instance == null)\r\n {\r\n throw new IllegalStateException(\"Micgwaf was not (yet) initialized correctly: no instance of Application is known.\");\r\n }\r\n return instance;\r\n }", "public String getApplicationPresentation() {\n\t\treturn this.getApplicationName() + \" \" + this.getVersion();\n\t}", "public static Application getApp() {\n if (sApplication != null) {\n return sApplication;\n }\n Application app = getApplicationByReflect();\n init(app);\n return app;\n }", "@Nullable\n Application getApplication(String name);", "public OSPApplication getOSPApp();", "public String getAppCode()\n\t{\n\t\treturn appCode;\n\t}", "abstract public String getApplicationName();", "public List<Application> getApplications()\n {\n return _apps;\n }", "public static Application getInstance(){\n\t\treturn getInstance (null);\n\t}", "public IMApplicationInfo getIMApplicationInfo(){\n\t\treturn this.getApplicationContextFactory().getApplicationContext().getRequestContext().getIMApplicationInfo();\n\t}", "public String getProducerApplication();", "public static App getInstance() {\n return applicationInstance;\n }", "public final String getAppName( )\n\t{\n\t\treturn this.data.getString( \"applicationName\" );\n\t}", "public int getApplications() {\r\n return applications;\r\n }", "public static InteractiveApp getApp() {\n return (InteractiveApp) ApplicationInstance.getActive();\n }", "public String getAppId()\r\n {\r\n return getSemanticObject().getProperty(data_appId);\r\n }", "public void setApplication(AppW app) {\n\t\tthis.app = app;\n\t}", "public Application getOwningApplication()\r\n\t{\r\n\t\treturn owningApplication;\r\n\t}", "public String getApplicationPath()\n {\n return getApplicationPath(false);\n }", "public void setApplication(String application) {\r\n this.application = application;\r\n }", "public String getApplicationTitle() {\n return applicationTitle.get();\n }", "public String getTozApplicationName() {\n return (tozApplicationName);\n }", "java.lang.String getAppName();", "java.lang.String getAppName();", "java.lang.String getAppName();", "@AutoEscape\n\tpublic String getAppName();", "public Boolean applicationMap() {\n return this.applicationMap;\n }", "public ApplicationInfo getApplicationInfo() {\n return getActivityInfo().applicationInfo;\n }", "public static FFTApp getApplication() {\n return Application.getInstance(FFTApp.class);\n }", "public static BlaiseGraphicsTestApp getApplication() {\n return Application.getInstance(BlaiseGraphicsTestApp.class);\n }", "public void setApplication(String application) {\r\n\t\tthis.application = application;\r\n\t}", "public static String getAppName(){\r\n return getProperty(\"name\", \"Jin\");\r\n }", "public ApplicationVersion getApplicationVersion() {\n\t\treturn applicationVersion;\n\t}", "public static GretellaApp getApplication() {\n return Application.getInstance(GretellaApp.class);\n }", "String getComponentAppId();", "public String getAppID() {\n return appID;\n }", "public static ApplicationOptions getOptions (){\n\t\treturn _applicationOptions;\n\t}", "public void setApp(PR1 application){\n this.application = application;\n }", "public List<Application> getVisibleApplications() {\n return null;\r\n }", "public String getPortletApplicationName() {\n if(this.portletID != null) {\n return portletID.getPortletApplicationName();\n }\n return null;\n }", "@OAMany(toClass = Application.class, reverseName = Application.P_ApplicationType, createMethod = false)\n\tprivate Hub<Application> getApplications() {\n\t\treturn null;\n\t}", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n }\n }", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n }\n }", "public String getAppExt1() {\n return appExt1;\n }", "@XmlElement(required = true)\n public List<Application> getApplications() {\n return applications;\n }", "@Override\n\tpublic String getAppId() {\n\t\treturn app.getAppId();\n\t}", "@Override\r\n//\tpublic Application getModel() {\r\n//\n//\t\treturn application;\r\n//\t}\r\n\t\r\n\tpublic Application getModel() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn application;\r\n\t}", "public String getApplicationName() {\n\t\treturn this.properties.getProperty(SoundLooperProperties.KEY_APPLICATION_NAME, \"UNKNOW\");\n\t}", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n }\n }", "@Override\n\tpublic java.lang.String getAppType() {\n\t\treturn _scienceApp.getAppType();\n\t}", "public Object getApplication(String attibuteName) {\n return servletRequest.getServletContext().getAttribute(attibuteName);\n }", "public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setApp(Main application) { this.application = application;}" ]
[ "0.8436414", "0.7911141", "0.78544605", "0.78495836", "0.778835", "0.7618604", "0.75866824", "0.7549122", "0.7549122", "0.7549122", "0.7549122", "0.75064427", "0.7501411", "0.74937034", "0.74443465", "0.7432374", "0.72774047", "0.72774047", "0.7196444", "0.7090742", "0.7086743", "0.7028636", "0.7010568", "0.6944256", "0.6808046", "0.68071246", "0.6775492", "0.67642", "0.67097855", "0.6670274", "0.66279304", "0.6612744", "0.656204", "0.65345377", "0.6516197", "0.64964217", "0.6485926", "0.6479877", "0.6441389", "0.64199364", "0.64124876", "0.64118755", "0.63325584", "0.6332204", "0.6293119", "0.62667686", "0.6247328", "0.6222915", "0.62157106", "0.6214718", "0.62131906", "0.62014705", "0.62000114", "0.6188097", "0.6177318", "0.6161842", "0.6152456", "0.6135415", "0.6112317", "0.60903925", "0.60643315", "0.60571074", "0.60528886", "0.6045476", "0.60450596", "0.6043548", "0.6043374", "0.60101706", "0.60101706", "0.60101706", "0.5994046", "0.5993552", "0.59918463", "0.59840184", "0.597488", "0.59541994", "0.5952701", "0.59475684", "0.59431845", "0.5905022", "0.58939874", "0.58893126", "0.58883834", "0.5875077", "0.5874958", "0.58744717", "0.58700544", "0.58700544", "0.5868746", "0.5867865", "0.58655155", "0.58611816", "0.5859402", "0.5857876", "0.5857876", "0.5856446", "0.58558667", "0.58546317", "0.5838231", "0.5835419" ]
0.7875809
2
Getter method for the COM property "Creator"
@DISPID(149) @PropGet com.exceljava.com4j.excel.XlCreator getCreator();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCreator() {\n return getProperty(Property.CREATOR);\n }", "public String getCreator()\n\t{\n\t\treturn null;\n\t}", "public String getCreator() {\r\n return creator;\r\n }", "public String getCreator() {\r\n return creator;\r\n }", "public String getCreator() {\n return this.creator;\n }", "public String getCreator() {\n\t\treturn creator;\n\t}", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public abstract String getCreator();", "@VTID(13)\r\n int getCreator();", "@VTID(8)\r\n excel.XlCreator getCreator();", "public java.lang.String getCreatorName() {\n return creatorName;\n }", "public Integer getCreator() {\n return creator;\n }", "public String getCreatorName() {\n return creatorName;\n }", "public String getCreatorName() {\n return creatorName;\n }", "public String getCreatorName() {\n return creatorName;\n }", "@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();", "@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();", "@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();", "@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();", "public String getCreatorCode() {\n return creatorCode;\n }", "@VTID(8)\n excel.XlCreator getCreator();", "@DISPID(149)\n @PropGet\n excel.XlCreator getCreator();", "public Long getCreator() {\n return creator;\n }", "public String getCreatorGuid() {\n return creatorGuid;\n }", "@DISPID(1001) //= 0x3e9. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n int creator();", "@DISPID(1001) //= 0x3e9. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n int creator();", "public String getCreatorId() {\n return this.CreatorId;\n }", "public SystemUserBO getCreator()\n {\n if (_creator == null)\n {\n _creator = new SystemUserBO(_model.getCreator());\n }\n return _creator;\n }", "public void setCreator(String creator) {\n this.creator = creator;\n }", "public void setCreator(String creator) {\n this.creator = creator;\n }", "public void setCreator(String creator) {\n this.creator = creator;\n }", "public void setCreator(String creator) {\n this.creator = creator;\n }", "public void setCreator(String creator) {\n this.creator = creator;\n }", "public IIID getCreatorIID()\n throws ORIOException;", "public String getCreatorId() {\n return creatorId;\n }", "public String getCreatorId() {\n return creatorId;\n }", "public java.lang.Integer getCreatorId() {\n return creatorId;\n }", "public WhoAmI getCreatorID() {\r\n\t\treturn myCreatorId;\r\n\t}", "public void setCreator(String creator) {\n\t\tthis.creator = creator;\n\t}", "public void setCreator(Integer creator) {\n this.creator = creator;\n }", "String getCreatorId();", "public Date getCreatorDate() {\n return creatorDate;\n }", "public User getCreator() {\n return this.creator;\n }", "@Override\n protected String getCreatorDisplayName() {\n try {\n // DAV:creator-displayname -> use jcr:createBy if present.\n if (exists() && ((Node) item).hasProperty(Property.JCR_CREATED_BY)) {\n return ((Node) item).getProperty(Property.JCR_CREATED_BY).getString();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:createdBy property\");\n }\n\n // fallback\n return super.getCreatorDisplayName();\n }", "public String getCreatorAt(int i){\n return creator[i];\n }", "public static boolean hasComponentCreator() {\n return sCreator != null;\n }", "public void setCreator(String creator) {\r\n this.creator = creator == null ? null : creator.trim();\r\n }", "public void setCreator(String creator) {\r\n this.creator = creator == null ? null : creator.trim();\r\n }", "public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }", "public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }", "public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }", "public void setCreator(Long creator) {\n this.creator = creator;\n }", "protected Creator getCreator(ObjectInformation objectInformation) {\n\n return getCreatorRegistry().getCreator(objectInformation.getClazz(), objectInformation.getField());\n }", "public ParseUser getCreator() {\n try {\n return fetchIfNeeded().getParseUser(\"creator\");\n }\n catch(ParseException e) {\n Log.d(TAG, \"Error in retrieving the creator: \" + e);\n return null;\n }\n }", "public IUser getCreatorObject()\n throws OculusException;", "public void setCreatorName(String creatorName) {\n this.creatorName = creatorName;\n }", "public void addCreator(String value) {\n/* 106 */ addStringToSeq(\"creator\", value);\n/* */ }", "public String getClCreateBy() {\r\n\t\treturn clCreateBy;\r\n\t}", "public static DesignViewCreatorForExternal getDefault() {\n\t\tif(creator == null){\n\t\t\tcreator = new DesignViewCreatorForExternal();\n\t\t\tversions = new Hashtable();\n\t\t}\n\t\treturn creator;\n\t}", "public IBusinessObject setCreatorIID(IIID creator)\n throws ORIOException;", "public String getCreater() {\n\t\treturn creater;\n\t}", "public String getCreater() {\n\t\treturn creater;\n\t}", "public String getCreateAuthor() {\n return createAuthor;\n }", "public Calendar getCreationDate() throws IOException {\n/* 238 */ return getCOSObject().getDate(COSName.CREATION_DATE);\n/* */ }", "public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }", "public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }", "public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }", "public void setCreatorGuid(String creatorGuid) {\n this.creatorGuid = creatorGuid;\n }", "public void setCreatorName(java.lang.String creatorName) {\n this.creatorName = creatorName;\n }", "public void setCreatorId(String CreatorId) {\n this.CreatorId = CreatorId;\n }", "@Override\r\n\tpublic String creatorType() {\n\t\treturn \"ShapeViewer\";\r\n\t}", "public String getCreatorEncodedString() {\n return Hexadecimal.valueOf(this._creatorCertSeq);\n }", "public TypeSpecCreator getTSCreator() {\n\t\t\treturn this.TSCreator;\n\t\t}", "public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }", "public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }", "public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }", "public boolean _checkIfCreatorPropertyBased(AnnotationIntrospector intr, AnnotatedWithParams creator, BeanPropertyDefinition propDef) {\n Mode mode = intr.findCreatorBinding(creator);\n if (mode == Mode.PROPERTIES) {\n return true;\n }\n if (mode == Mode.DELEGATING) {\n return false;\n }\n if ((propDef != null && propDef.isExplicitlyNamed()) || intr.findInjectableValueId(creator.getParameter(0)) != null) {\n return true;\n }\n if (propDef != null) {\n String implName = propDef.getName();\n if (implName != null && !implName.isEmpty() && propDef.couldSerialize()) {\n return true;\n }\n }\n return false;\n }", "public String getCreateMethod() {\n\t\treturn createMethod;\n\t}", "public String getCreater() {\r\n return creater;\r\n }", "public String getCreater() {\n return creater;\n }", "public String getCreater() {\n return creater;\n }", "Builder addCreator(String value);", "public java.util.Calendar getCreationDate() {\n return creationDate;\n }", "private IInformationControlCreator getQuickAssistAssistantInformationControlCreator() {\n return new IInformationControlCreator() {\n @Override\n public IInformationControl createInformationControl(\n final Shell parent) {\n final String affordance = getAdditionalInfoAffordanceString();\n return new DefaultInformationControl(parent, affordance);\n }\n };\n }", "U getCreateby();", "public void setCreatorId(String creatorId) {\n this.creatorId = creatorId;\n }", "public java.util.Calendar getCreated()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CREATED$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getCalendarValue();\n }\n }", "public void setCreatorDate(Date creatorDate) {\n this.creatorDate = creatorDate;\n }", "public boolean isIsCreator() {\r\n if (ui.isIsUserAuthenticated() && recipe != null) {\r\n if(recipe.getCreator() == user)\r\n return true;\r\n else\r\n return false;\r\n } else {\r\n return false;\r\n }\r\n }", "public Date getCreationDate() {\n\t\treturn this.creationDate;\n\t\t\n\t}", "public Date getCreationDate()\r\n {\r\n return (m_creationDate);\r\n }", "public Date getCreation() {\n return creation;\n }" ]
[ "0.8177976", "0.78842163", "0.7722417", "0.7722417", "0.7698064", "0.76860243", "0.76660246", "0.76660246", "0.76660246", "0.76660246", "0.76660246", "0.76660246", "0.76660246", "0.76660246", "0.76660246", "0.7578769", "0.73777324", "0.7289319", "0.71844274", "0.7124729", "0.70957565", "0.70957565", "0.70957565", "0.70600003", "0.70600003", "0.70600003", "0.70600003", "0.697675", "0.6966232", "0.6888792", "0.6815777", "0.6776078", "0.6766817", "0.6766817", "0.67564344", "0.6746013", "0.6688191", "0.6665445", "0.6665445", "0.6665445", "0.6665445", "0.6657462", "0.6587629", "0.6587629", "0.6583756", "0.65806746", "0.6579846", "0.63812435", "0.63736737", "0.6354419", "0.63358194", "0.624286", "0.61656934", "0.6154598", "0.6137769", "0.6137769", "0.6135593", "0.6135593", "0.6135593", "0.6053035", "0.6033256", "0.6016311", "0.6014622", "0.60027295", "0.5981111", "0.594521", "0.5902802", "0.5874602", "0.58604103", "0.58604103", "0.58545357", "0.5840311", "0.5834097", "0.5834097", "0.5834097", "0.58279043", "0.5813987", "0.58010614", "0.5781634", "0.57380795", "0.570667", "0.56965196", "0.56965196", "0.56965196", "0.5632146", "0.56183726", "0.55918455", "0.5584642", "0.5584642", "0.55746293", "0.5571531", "0.55459225", "0.5545823", "0.55403924", "0.5538594", "0.5529506", "0.55287224", "0.5526764", "0.5519938", "0.54951394" ]
0.74208593
16
Getter method for the COM property "Parent"
@DISPID(150) @PropGet com4j.Com4jObject getParent();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getParent();", "@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();", "@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();", "@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();", "@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();", "public String getParent() {\n return _theParent;\n }", "IGLProperty getParent();", "public Object getParent() {\r\n return this.parent;\r\n }", "public Object getParent() {\n return this.parent;\n }", "public Object getParent() {\n return this.parent;\n }", "public Object getParent() {\n return this.parent;\n }", "public String getParent() {\n return _parent;\n }", "public int Parent() { return this.Parent; }", "public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }", "public Foo getParent() {\n return parent;\n }", "public String getParent() {\r\n return this.parent;\r\n }", "@DISPID(1002) //= 0x3ea. The runtime will prefer the VTID if present\r\n @VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject parent();", "@DISPID(1002) //= 0x3ea. The runtime will prefer the VTID if present\r\n @VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject parent();", "@DISPID(1610743809) //= 0x60020001. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject parent();", "public String getParent() {\r\n return parent;\r\n }", "public String getParentName() {\n return getProperty(Property.PARENT_NAME);\n }", "public String getParent() {\n return parent;\n }", "public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }", "public PropertySelector getParent() {\n return parent;\n }", "TMNodeModelComposite getParent() {\n return parent;\n }", "Spring getParent() {\n return parent;\n }", "public Instance getParent() {\r\n \t\treturn parent;\r\n \t}", "public ILexComponent getParent();", "public IPSComponent peekParent();", "public String getParentId() {\n return getProperty(Property.PARENT_ID);\n }", "@VTID(7)\r\n void getParent();", "final MenuContainer getParent_NoClientCode() {\n return parent;\n }", "public CompositeObject getParent(\n )\n {return (parentLevel == null ? null : (CompositeObject)parentLevel.getCurrent());}", "Object getParent();", "UIComponent getParent();", "public String getParentName() {\n return parentName;\n }", "public String getParentName() {\n return parentName;\n }", "public WidgetParent getParent() {\n return this.m_parent;\n }", "public String getParentType() {\n return this.parentType;\n }", "public int getParentID() {\n\t\treturn _parentID;\n\t}", "public RMParentShape getParent() { return _parent; }", "@JsProperty\n Element getParentElement();", "public String getParentName() {\n\t\treturn parentName;\n\t}", "public int getParentID() {\n\t\treturn parentID;\n\t}", "@JsonProperty(\"parent\")\n @ApiModelProperty(value = \"The ID of the parent dialog node (if any).\")\n public String getParent() {\n return parent;\n }", "public abstract Optional<TypeName> parent();", "public IDirectory getParent() {\n return this.parent;\n }", "public PafDimMember getParent() {\r\n\t\treturn parent;\r\n\t}", "@DerivedProperty\n\tCtElement getParent() throws ParentNotInitializedException;", "public Entity getParent() {\n return parent;\n }", "protected Directory getParent() {\n return parent;\n }", "public Integer getParentid() {\n\t\treturn parentid;\n\t}", "@DISPID(-2147418104)\n @PropGet\n ms.html.IHTMLElement parentElement();", "public VisualLexiconNode getParent() {\n \t\treturn parent;\n \t}", "@NoProxy\n @NoWrap\n @NoDump\n public BwEvent getParent() {\n return parent;\n }", "public com.vmware.converter.ManagedObjectReference getParentFolder() {\r\n return parentFolder;\r\n }", "public XMLElement getParent()\n/* */ {\n/* 323 */ return this.parent;\n/* */ }", "public Boolean getIsParent() {\n return isParent;\n }", "public int getParentType() {\r\n return parent_type;\r\n }", "public CUser getParent() {\n return this.parent;\n }", "public Node getParent(){\n return parent;\n }", "public Path getParent(\n ) {\n return this.parent;\n }", "public CarrierShape parent()\n\t{\n\t\treturn parent;\n\t}", "public final ShapeParent getShapeParent()\n {\n return parent;\n }", "public PageTreeNode getParent() {\n return parent;\n }", "public PartialSolution getParent() {\n return _parent;\n }", "public Optional<Cause> getParent() {\n return this.parent;\n }", "public String getParentLabel(){\n\t\treturn this.parentLabel;\n\t}", "@DISPID(84)\r\n\t// = 0x54. The runtime will prefer the VTID if present\r\n\t@VTID(82)\r\n\tint parentID();", "public E getParentEntity() {\n return parentEntity;\n }", "public BinomialTree<KEY, ITEM> parent()\n\t{\n\t\treturn _parent;\n\t}", "public IBuildObject getParent();", "public Node getParent() {\n return parent;\n }", "public Node getParent() {\n return parent;\n }", "public int getParent_id() {\n return this.parent_id;\n }", "public String getCodeParent() {\n\t\treturn codeParent;\n\t}", "public String getParent() {\r\n return (String) getAttributeInternal(PARENT);\r\n }", "public String getParentId() {\n return getParent() != null ? getParent().getId() : null;\n }", "public PApplet getParent() {\n\t\treturn this.parent;\n\t}", "public DrawingComposite getParent() {\n\t\treturn parent;\n\t}", "public int getParent();", "public Component getParentComponent() {\r\n\t\tif (parentComponent == null) {\r\n\t\t\tif (view != null)\r\n\t\t\t\tparentComponent = view.getComponent(parentComponentName);\r\n\t\t}\r\n\t\treturn parentComponent;\r\n\t}", "public StructuredId getParent()\r\n {\r\n return parent;\r\n }", "public Peak getParent() {\n\t\treturn parent;\n\t}", "public long getParentCode() {\n return parentCode;\n }", "public CoolBar getParent() {\n checkWidget();\n return parent;\n }", "@XmlElement\n @Nullable\n public String getParentDocumentId() {\n return this.parentDocumentId;\n }", "@DISPID(53)\r\n\t// = 0x35. The runtime will prefer the VTID if present\r\n\t@VTID(58)\r\n\tint parentID();", "public ConversionHelper getParent()\n {\n return parent;\n }", "@JsProperty\n Node getParentNode();", "public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}", "public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}", "void setParent(IGLProperty parent);", "public Folder getParentFolder() {\n\t\treturn parentFolder;\n\t}", "public Parent getVista() {\n\t\treturn null;\n\t}", "public java.lang.String getContainingParentType() {\n return containingParentType;\n }", "public java.lang.String getContainingParentType() {\n return containingParentType;\n }", "public Resource getParent()\n {\n if(parent == null)\n {\n if(parentId != -1)\n {\n try\n {\n parent = new ResourceRef(coral.getStore().getResource(parentId), coral);\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"corrupted data parent resource #\"+parentId+\n \" does not exist\", e);\n }\n }\n else\n {\n parent = new ResourceRef(null, coral);\n }\n }\n try\n {\n return parent.get();\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"in-memory data incosistency\", e);\n }\n }", "public AccessibleElement getParent();" ]
[ "0.81647867", "0.8093195", "0.8093195", "0.8093195", "0.8093195", "0.7820495", "0.77545613", "0.7717162", "0.76970285", "0.76970285", "0.76970285", "0.7685946", "0.7662928", "0.76436096", "0.76198393", "0.7584784", "0.75643355", "0.75643355", "0.75573677", "0.75491166", "0.7538418", "0.74877375", "0.74044925", "0.7373006", "0.7361728", "0.7349786", "0.7325064", "0.732315", "0.73226464", "0.7321795", "0.73211634", "0.731258", "0.73045754", "0.7273923", "0.72556615", "0.72489965", "0.7244335", "0.7204559", "0.7195084", "0.7169685", "0.7149787", "0.71439976", "0.71375763", "0.7132675", "0.71289986", "0.71169823", "0.71021616", "0.71010566", "0.70960593", "0.7090904", "0.7078354", "0.70763105", "0.7068518", "0.70547646", "0.70439255", "0.703666", "0.7032314", "0.7029912", "0.70214105", "0.70091873", "0.6988117", "0.6970216", "0.6966667", "0.6960149", "0.6957195", "0.6939978", "0.69274384", "0.6927079", "0.6920402", "0.6917498", "0.69169825", "0.69083303", "0.68984944", "0.68984944", "0.68984836", "0.6893869", "0.6893287", "0.6890835", "0.6890446", "0.68868685", "0.68859386", "0.6876731", "0.68731153", "0.68720824", "0.6863158", "0.6850675", "0.68491036", "0.68477386", "0.6847068", "0.6817064", "0.6810185", "0.6810185", "0.6802115", "0.6801635", "0.67873853", "0.67871404", "0.6786261", "0.67846376", "0.6782967" ]
0.81635064
2
This method uses predefined default values for the following parameters: com.exceljava.com4j.excel.XlQuickAnalysisMode parameter xlQuickAnalysisMode is set to 0 Therefore, using this method is equivalent to show(0);
@DISPID(496) @UseDefaultValues(paramIndexMapping = {}, optParamIndex = {0}, javaType = {com.exceljava.com4j.excel.XlQuickAnalysisMode.class}, nativeType = {NativeType.Int32}, variantType = {Variant.Type.VT_I4}, literal = {"0"}) void show();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DISPID(813)\n @UseDefaultValues(paramIndexMapping = {}, optParamIndex = {0}, javaType = {com.exceljava.com4j.excel.XlQuickAnalysisMode.class}, nativeType = {NativeType.Int32}, variantType = {Variant.Type.VT_I4}, literal = {\"0\"})\n void hide();", "public static void show() {\n\n\t}", "public static void show() {\n\t\t\n\t}", "public void show()\r\n {\r\n\tshow(\"\");\r\n }", "public void show() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "public void show() {\r\n show(\"\");\r\n }", "default void show1() {\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\r\n\tpublic void show() {\n\t}", "@Override\n\tpublic void show() {\n\t}", "@Override\n\tpublic void show() {\n\t}", "@Override\n\tpublic void show() {\n\t\tsuper.show();\n\t\t\n\t}", "@Override\r\n\tpublic void show() {\n\r\n\t}", "@Override\r\n\tpublic void show() {\n\r\n\t}", "public void show() {\n }", "@Override\n public void show() {\n }", "@Override\r\n public void show()\r\n {\r\n\r\n }", "@Override\r\n public void show()\r\n {\r\n\r\n }", "public void show() {\n visible=true;\n }", "public void show() {\n\tSystem.out.println(\"show-method\");\t\n\t}", "public void show3() {\n\t\t\n\t}", "public String show() {\n\t\treturn null;\r\n\t}", "void show();", "void show();", "void show();", "void show();", "void show();", "void show();", "@Override\n\tpublic void show4() {\n\t\t\n\t}", "@Override\n public void show() {\n\n }", "@Override\n public void show() {\n\n }", "public void show() {\n\t\tSystem.out.println(\"show..\");\n\t}", "public void show()\n\t{\n\t\tSystem.out.println(\"show\");\n\t}", "public void show();", "public void showMetrics() {\n }", "public void show() {\n numberList.show();\n }", "public void show() {\n super.show();\n }", "@Override\n public void show() {\n \n }", "@Override\n\tpublic void setDisplayShowCustomEnabled(boolean showCustom) {\n\t\t\n\t}", "public void show() {\n\t\t System.out.println(\"这是A型产品\"); \r\n\t}", "public String show() {\r\n\t\treturn \"show\";\r\n\t}", "public void show() {\n hidden = false;\n }", "private void hideComputation() {\r\n\t\tshiftLeftSc.hide();\r\n\t\tshiftRowSc.hide();\r\n\t\ttmpMatrix.hide();\r\n\t\ttmpText.hide();\r\n\t}", "default void show1() {\n \tSystem.out.println(\"show default\");\n }", "void xsetQuick(org.apache.xmlbeans.XmlBoolean quick);", "public void show() {\n\t\thidden = false;\n\t}", "@Override\r\n\tpublic void show() {\n\t\tSystem.out.println(\"Showing...\");\r\n\t}", "public String show() {\r\n return \"show\";\r\n }", "@Override\n public void resultFrameVisible(boolean yes) {\n\t\n }", "@Override\n\tprotected void show() {\n\t\tsuper.show();\n\t\tSystem.out.println(\"BBBBBBBBBBBBBBBBBBB\");\n\t}", "protected abstract void showHint();", "public void showBlank() {\n reportContainer.setVisible( false );\n url = ABOUT_BLANK;\n reportContainer.setUrl( url ); //$NON-NLS-1$\n }", "public void m36045a() {\n this.f29981a.showReportDialog();\n }", "public void showIntensity()\r\n {\r\n\tshowIntensity(\"Intensity\");\r\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[1] = intArray2;\n int[] intArray3 = new int[0];\n assertFalse(intArray3.equals((Object)intArray1));\n assertFalse(intArray3.equals((Object)intArray2));\n \n intArray0[2] = intArray3;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixGnuPlot0);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean boolean0 = resultMatrixPlainText0.isSignificance(2);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean0);\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertNotNull(resultMatrixHTML0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int int0 = resultMatrixHTML0.getColCount();\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, int0);\n \n ResultMatrixHTML resultMatrixHTML1 = new ResultMatrixHTML(444, 444);\n }", "@Test(timeout = 4000)\n public void test040() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixGnuPlot0.setCount(1, 0.0);\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(0, 122);\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(122, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(122, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertNotNull(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean boolean0 = resultMatrixLatex0.getDefaultPrintRowNames();\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(122, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(122, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(boolean0);\n }", "void showNoneParametersView();", "public void show() {\n System.out.println(\"I am the best\");\n }", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n intArray0[1] = intArray2;\n int[] intArray3 = new int[0];\n intArray0[2] = intArray3;\n int[] intArray4 = new int[6];\n intArray4[1] = 0;\n intArray4[2] = 2;\n intArray4[3] = 0;\n resultMatrixGnuPlot0.getRevision();\n resultMatrixGnuPlot0.getMean(1041, 0);\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n \n ResultMatrixGnuPlot.main((String[]) null);\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixGnuPlot0);\n resultMatrixGnuPlot1.getRowName(97);\n resultMatrixGnuPlot1.getDefaultColNameWidth();\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n }", "@Override\n protected boolean isAppropriate() {\n return true; // always show\n }", "@Test(timeout = 4000)\n public void test123() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(0, 1000);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1000, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1000, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n String string0 = resultMatrixGnuPlot0.colNameWidthTipText();\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1000, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1000, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The maximum width of the column names (0 = optimal).\", string0);\n \n int[][] intArray0 = new int[0][0];\n double double0 = resultMatrixGnuPlot0.getCount(1000);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1000, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1000, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0.0, double0, 0.01);\n \n int int0 = resultMatrixGnuPlot0.getSignificance((-1831), (-2654));\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1000, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1000, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, int0);\n \n resultMatrixGnuPlot0.setStdDevWidth(0);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1000, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n }", "void showAll();", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n intArray0[1] = intArray1;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixGnuPlot0);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertNotNull(resultMatrixLatex0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string0 = resultMatrixPlainText0.getSummaryTitle((-1419));\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"R\", string0);\n \n resultMatrixLatex0.setSummary(intArray0, intArray0);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(7, intArray0.length);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int[] intArray2 = resultMatrixCSV0.getColOrder();\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertNull(intArray2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n boolean boolean0 = resultMatrixLatex0.getDefaultPrintColNames();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean0);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixGnuPlot0);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(50, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string1 = resultMatrixCSV0.toStringSummary();\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertNotNull(string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"-summary data not set-\", string1);\n assertFalse(string1.equals((Object)string0));\n \n boolean boolean1 = resultMatrixPlainText0.isRowName(0);\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(boolean1);\n assertFalse(boolean1 == boolean0);\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertNotNull(resultMatrixHTML0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixPlainText0.setRowNameWidth(3);\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixGnuPlot0.setCount(48, 1.7976931348623157E308);\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixLatex resultMatrixLatex0 = null;\n try {\n resultMatrixLatex0 = new ResultMatrixLatex((-490), (-436));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "public void displayReport() {\n\t\treport = new ReportFrame(fitnessProg);\n\t\treport.buildReport();\n\t\treport.setVisible(true);\n\t}", "public static void main(String[] args) throws Exception {\n\t\tString dataDir = Utils.getSharedDataDir(HidingDisplayOfZeroValues.class) + \"TechnicalArticles/\";\n\n\t\t// Create a new Workbook object\n\t\tWorkbook workbook = new Workbook(dataDir + \"book1.xlsx\");\n\n\t\t// Get First worksheet of the workbook\n\t\tWorksheet sheet = workbook.getWorksheets().get(0);\n\n\t\t// Hide the zero values in the sheet\n\t\tsheet.setDisplayZeros(false);\n\n\t\t// Save the workbook\n\t\tworkbook.save(dataDir + \"HDOfZeroValues_out.xls\");\n\n\t}", "boolean isSetQuick();", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(50, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertNotNull(resultMatrixHTML0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.setRowNameWidth(3);\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n boolean boolean0 = resultMatrixHTML0.getShowAverage();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean0);\n \n boolean boolean1 = resultMatrixPlainText0.isSignificance(0);\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean1);\n assertTrue(boolean1 == boolean0);\n \n int int0 = resultMatrixHTML0.getColCount();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, int0);\n \n int[] intArray2 = resultMatrixHTML0.getRowOrder();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertNull(intArray2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(1065, 1);\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixCSV0.setMeanPrec(2);\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String[][] stringArray0 = resultMatrixPlainText0.toArray();\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertNotNull(stringArray0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(3, stringArray0.length);\n \n String string0 = resultMatrixCSV0.getSummaryTitle(1);\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"b\", string0);\n \n String string1 = resultMatrixCSV0.toStringRanking();\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertNotNull(string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"-ranking data not set-\", string1);\n assertFalse(string1.equals((Object)string0));\n \n double double0 = resultMatrixGnuPlot0.getAverage(554);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0.0, double0, 0.01);\n \n resultMatrixPlainText0.assign(resultMatrixCSV0);\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1065, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(1065, resultMatrixPlainText0.getVisibleColCount());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean boolean2 = resultMatrixGnuPlot0.isAverage(0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean2);\n assertTrue(boolean2 == boolean1);\n assertTrue(boolean2 == boolean0);\n }", "public boolean hasQuickFix() {\n\t\t\treturn false;\n\t\t}", "boolean getQuick();", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n intArray0[1] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n int[] intArray3 = new int[6];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray3[1] = 0;\n intArray3[2] = 2;\n intArray3[3] = 0;\n intArray3[4] = 2;\n intArray3[5] = 0;\n intArray0[3] = intArray3;\n int[] intArray4 = new int[0];\n assertFalse(intArray4.equals((Object)intArray1));\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray2));\n \n intArray0[4] = intArray4;\n int[] intArray5 = new int[3];\n assertFalse(intArray5.equals((Object)intArray4));\n assertFalse(intArray5.equals((Object)intArray1));\n assertFalse(intArray5.equals((Object)intArray2));\n assertFalse(intArray5.equals((Object)intArray3));\n \n intArray5[1] = 1;\n intArray5[2] = 0;\n intArray0[5] = intArray5;\n int[] intArray6 = new int[2];\n assertFalse(intArray6.equals((Object)intArray1));\n assertFalse(intArray6.equals((Object)intArray5));\n assertFalse(intArray6.equals((Object)intArray3));\n assertFalse(intArray6.equals((Object)intArray2));\n assertFalse(intArray6.equals((Object)intArray4));\n \n intArray6[0] = 1;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixGnuPlot0);\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixPlainText0.setRowNameWidth(586);\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(586, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String[] stringArray0 = resultMatrixPlainText0.getOptions();\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(586, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertNotNull(stringArray0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(18, stringArray0.length);\n }", "public void show() {\n/* 104 */ Component component = getComponent();\n/* */ \n/* 106 */ if (component != null) {\n/* 107 */ component.show();\n/* */ }\n/* */ }", "@Override\n\tpublic void show()\n\t{\n\t\tsuper.show();\n\t\tSystem.out.println(\"with a pistol\");\n\t}", "@Test(timeout = 4000)\n public void test004() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n // Undeclared exception!\n try { \n resultMatrixGnuPlot0.assign((ResultMatrix) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }" ]
[ "0.8152515", "0.6257752", "0.6205378", "0.61646307", "0.61607295", "0.607127", "0.60227317", "0.5970693", "0.5970693", "0.5970693", "0.5959112", "0.59399045", "0.59399045", "0.59399045", "0.59399045", "0.59399045", "0.59399045", "0.59399045", "0.59399045", "0.5937438", "0.5937438", "0.5937438", "0.5937438", "0.5937438", "0.5937438", "0.5937438", "0.5937438", "0.5937438", "0.5937438", "0.5937438", "0.5937438", "0.5937438", "0.5937438", "0.5937438", "0.5929534", "0.58834493", "0.58834493", "0.58419645", "0.5826324", "0.5826324", "0.5815158", "0.5805798", "0.5750923", "0.5750923", "0.57081205", "0.56916445", "0.5691067", "0.5690185", "0.5660868", "0.5660868", "0.5660868", "0.5660868", "0.5660868", "0.5660868", "0.5660241", "0.56555206", "0.56555206", "0.5638826", "0.5616554", "0.5616111", "0.55686414", "0.55662787", "0.55274516", "0.5517144", "0.54742986", "0.5474022", "0.5447857", "0.5437491", "0.54362774", "0.5409442", "0.5387057", "0.5370405", "0.5366161", "0.536469", "0.5331142", "0.5313785", "0.52893186", "0.52813464", "0.5280468", "0.527815", "0.5250968", "0.52496886", "0.5243816", "0.5241014", "0.523629", "0.5230009", "0.5229847", "0.5217294", "0.52156657", "0.51910967", "0.5182976", "0.5176835", "0.5174224", "0.51582026", "0.51576334", "0.5143284", "0.51413494", "0.513463", "0.5124496", "0.5113087" ]
0.87630284
0
This method uses predefined default values for the following parameters: com.exceljava.com4j.excel.XlQuickAnalysisMode parameter xlQuickAnalysisMode is set to 0 Therefore, using this method is equivalent to hide(0);
@DISPID(813) @UseDefaultValues(paramIndexMapping = {}, optParamIndex = {0}, javaType = {com.exceljava.com4j.excel.XlQuickAnalysisMode.class}, nativeType = {NativeType.Int32}, variantType = {Variant.Type.VT_I4}, literal = {"0"}) void hide();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DISPID(496)\n @UseDefaultValues(paramIndexMapping = {}, optParamIndex = {0}, javaType = {com.exceljava.com4j.excel.XlQuickAnalysisMode.class}, nativeType = {NativeType.Int32}, variantType = {Variant.Type.VT_I4}, literal = {\"0\"})\n void show();", "private void hideComputation() {\r\n\t\tshiftLeftSc.hide();\r\n\t\tshiftRowSc.hide();\r\n\t\ttmpMatrix.hide();\r\n\t\ttmpText.hide();\r\n\t}", "private void hide() {\n\t}", "public void hide() {\n }", "void hide();", "default void hide() { }", "@Override\r\n public void hide() {\n }", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\n\tpublic void hide() {\n\t\t\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "@Override\n\tpublic void hide() {\n\n\t}", "public void hide() {\n visible=false;\n }", "@Override\n\tpublic void hide() {\n\t}", "@Override\n\tpublic void hide() {\n\t}", "@Override\n\tpublic void hide() {\n\t}", "@Override\n\tpublic void hide() {\n\t}", "@Override\r\n public void hide() {\r\n\r\n }", "@Override\r\n\tpublic void hide() {\n\r\n\t}", "@Override\r\n\tpublic void hide() {\n\r\n\t}", "@Override\r\n\tpublic void hide() {\n\r\n\t}", "@Override\r\n\tpublic void hide() {\n\r\n\t}", "@Override\n\tpublic void hide()\n\t{\n\n\t}", "@Override\n\tpublic void hide()\n\t{\n\n\t}", "@Override\n public void hide() {\n\n }", "@Override\n public void hide() {\n\n }", "@Override\n public void hide() {\n\n }", "public void hide() {\n hidden = true;\n }", "public void hide() {\n super.hide();\n }", "@Override\n public void hide() {\n \n }", "public void setSheetHidden(int arg0, int arg1) {\n\n\t}", "public void hide() {\n\t\thidden = true;\n\t}", "protected void hide() {\n fQuickAssistAssistantImpl.closeBox();\n }", "public void setSheetHidden(int arg0, boolean arg1) {\n\n\t}", "@Override\n\t\t\t\tpublic void hideCross() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic void hideCross() {\n\n\t}", "void hideNoneParametersView();", "protected void hideViewContents() {\n\t\tnoData.heightHint = -1;\n\t\tyesData.heightHint = 0;\n\n\t\tnoData.exclude = false;\n\t\tyesData.exclude = true;\n\n\t\tnoLabel.setVisible(true);\n\t\tyesComposite.setVisible(false);\n\t\tredraw();\n\t}", "public void hideIt(){\n this.setVisible(false);\n }", "public void hideDetails () {\n\t\tdetailDisplay.show(\"empty\");\n\t}", "public void hide() {\n energy = 0;\n redBull = 1;\n gun = 0;\n target = 1;\n }", "@Override\n public void wasHidden() {\n hide();\n }", "public boolean isSheetVeryHidden(int arg0) {\n\t\treturn false;\n\t}", "public void hide(){\n developmentGroup.setVisible(false);\n }", "@Override\n\tpublic void hide() {\n\t\tdispose();\n\n\t}", "public void show() {\n hidden = false;\n }", "@Override\n\tpublic void hide() {\n\t\tdispose();\n\t}", "private void hideTemporaryUntilFixed() {\n //\n// jButton8.setVisible(false);// Add cursors button (cursors for the graph to the right)\n// jButton9.setVisible(false);// Remove cursors button (cursors for the graph to the right)\n //\n }", "private void hideAdvanceFeatures() {\n sourceLabel.setVisible(false);\n sourceTextField.setVisible(false);\n threadsTextField.setEnabled(false);\n adminLabel.setVisible(false);\n adminTextField.setVisible(false);\n tracerPanel.setVisible(false);\n simulateCheckBox.setVisible(false);\n useScriptCheckBox.setVisible(false);\n editScriptButton.setVisible(false);\n batchImportCheckBox.setVisible(false);\n numResourceToCopyLabel.setVisible(false);\n numResourceToCopyTextField.setVisible(false);\n recordURIComboBox.setVisible(false);\n paramsLabel.setVisible(false);\n paramsTextField.setVisible(false);\n viewRecordButton.setVisible(false);\n testRecordButton.setVisible(false);\n basicUIButton.setVisible(false);\n\n isBasicUI = true;\n }", "@Override\r\n\tpublic void hide() {\n\t\tthis.dispose();\r\n\t\t\r\n\t}", "public void showHideCrossHairs(MimsChartPanel chartpanel) {\n Plot plot = chartpanel.getChart().getPlot();\n if (!(plot instanceof MimsXYPlot)) {\n return;\n }\n\n // Show/Hide XHairs\n MimsXYPlot xyplot = (MimsXYPlot) plot;\n xyplot.setDomainCrosshairVisible(!xyplot.isDomainCrosshairVisible());\n xyplot.setRangeCrosshairVisible(!xyplot.isRangeCrosshairVisible());\n if (!xyplot.isDomainCrosshairVisible()) {\n removeOverlay();\n }\n xyplot.showXHairLabel(xyplot.isDomainCrosshairVisible() || xyplot.isDomainCrosshairVisible());\n }", "public boolean isSheetHidden(int arg0) {\n\t\treturn false;\n\t}", "public void hide() throws DeviceException;", "@Override\n\tpublic void hideContents() {\n\t\tprogram.removeAll();\n\t}", "void hideTop() {\n }", "@Override\r\n public void hide() {\r\n dispose();\r\n }", "public void hide() {\n\t\t// Useless if called in outside animation loop\n\t\tactive = false;\n\t}", "public abstract BossBar hide();", "void hideToolbars();", "public boolean isHidden();", "public void hide() {\n \t\tmContext.unregisterReceiver(mHUDController.mConfigChangeReceiver);\n \t\tmHighlighter.hide();\n \t\tmHUDController.hide();\n \t}", "void unsetQuick();", "@Override\n\tpublic void hideLaneInfo() {\n\n\t}", "@Override\n\t\t\t\tpublic void hideLaneInfo() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic void onHide() {\n\n\t}" ]
[ "0.745068", "0.67512083", "0.67292124", "0.6585478", "0.65210116", "0.65129703", "0.64719164", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.64671725", "0.6450575", "0.6450575", "0.6450575", "0.6450575", "0.6450575", "0.6450575", "0.6450575", "0.6450575", "0.64309365", "0.64309365", "0.64309365", "0.64309365", "0.64309365", "0.64309365", "0.64309365", "0.64309365", "0.64309365", "0.64309365", "0.6430657", "0.64259976", "0.64259976", "0.64259976", "0.64259976", "0.6372725", "0.63630754", "0.63630754", "0.63630754", "0.63630754", "0.6325659", "0.6325659", "0.62772554", "0.62772554", "0.62772554", "0.62404853", "0.6220687", "0.61767983", "0.6106002", "0.60654795", "0.6062965", "0.6055474", "0.58456063", "0.58095944", "0.57830197", "0.57546383", "0.57360333", "0.5718764", "0.5712247", "0.5700746", "0.56742275", "0.56585", "0.5653766", "0.5652962", "0.56410384", "0.5634788", "0.5615689", "0.5580287", "0.5563276", "0.5551356", "0.55504894", "0.55397487", "0.55377376", "0.55319035", "0.5473379", "0.54553986", "0.5453974", "0.54498786", "0.541506", "0.54131126", "0.5399878", "0.53680825", "0.53668916" ]
0.8954172
0
/ renamed from: a
public final void mo118712a() { f97549f = System.currentTimeMillis(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public final void mo118718a(boolean z) { f97545b = z; if (f97545b) { f97546c.clear(); return; } Iterator<T> it = f97546c.iterator(); while (it.hasNext()) { f97544a.mo118713a((EventMessage) it.next()); } f97546c.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: d
private final void m134908d(String str) { if (!TextUtils.isEmpty(str)) { String str2 = C6969H.m41409d("G738BDC12AA7FAF3BE7039107E4B48CDA6C8ED71FAD7F") + str + '/'; VideoXOnlineLog.f101073b.mo121420a(C6969H.m41409d("G6887D15AAA23AE3BA61A9F58FBE6838D2998C8"), str2); MQTTClient a = MQTTClientManager.m55413a(C6969H.m41409d("G4DA6F33B8A1C9F16C522B96DDCD1")); if (a != null) { ProtoAdapter<EventMessage> gVar = EventMessage.f96677a; C32569u.m150513a((Object) gVar, C6969H.m41409d("G4C95D014AB1DAE3AF50F974DBCC4E7F659B7F028")); f97550g = a.mo57249a(str2, new MQTTWirePbConverter(gVar)); MQTTTopic<EventMessage> oVar = f97550g; if (oVar == null) { C32569u.m150511a(); } oVar.mo57278a((MQTTTopicListener<EventMessage>) f97552i, true); MQTTTopic<EventMessage> oVar2 = f97550g; if (oVar2 == null) { C32569u.m150511a(); } oVar2.mo57274a(MQTTQosLevel.LEVEL_1, true); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void d() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }", "public abstract int d();", "private void m2248a(double d, String str) {\n this.f2954c = d;\n this.f2955d = (long) d;\n this.f2953b = str;\n this.f2952a = ValueType.doubleValue;\n }", "public int d()\n {\n return 1;\n }", "public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }", "void mo21073d();", "@Override\n public boolean d() {\n return false;\n }", "int getD();", "public void dor(){\n }", "public int getD() {\n\t\treturn d;\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public String getD() {\n return d;\n }", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "public final void mo91715d() {\n }", "public D() {}", "void mo17013d();", "public int getD() {\n return d_;\n }", "void mo83705a(C32458d<T> dVar);", "public void d() {\n\t\tSystem.out.println(\"d method\");\n\t}", "double d();", "public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }", "protected DNA(Population pop, DNA d) {\n\t\t// TODO: implement this\n\t}", "public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }", "public abstract C17954dh<E> mo45842a();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void visitTdetree(Tdetree p) {\n\n\t}", "public abstract void mo56925d();", "void mo54435d();", "public void mo21779D() {\n }", "public void d() {\n this.f20599d.a(this.f20598c);\n this.f20598c.a(this);\n this.f20601f = new a(new d());\n d.a(this.f20596a, this.f20597b, this.f20601f);\n this.f20596a.setLayoutManager(new NPALinearLayoutManager(getContext()));\n ((s) this.f20596a.getItemAnimator()).setSupportsChangeAnimations(false);\n this.f20596a.setAdapter(this.f20601f);\n this.f20598c.a(this.f20602g);\n }", "@Override\r\n public String getStringRepresentation()\r\n {\r\n return \"D\";\r\n }", "void mo28307a(zzgd zzgd);", "List<String> d();", "d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }", "public int getD() {\n return d_;\n }", "public void addDField(String d){\n\t\tdfield.add(d);\n\t}", "public void mo3749d() {\n }", "public a dD() {\n return new a(this.HG);\n }", "public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }", "public void mo130970a(double d) {\n SinkDefaults.m149818a(this, d);\n }", "public abstract int getDx();", "public void mo97908d() {\n }", "public com.c.a.d.d d() {\n return this.k;\n }", "private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }", "public boolean d() {\n return false;\n }", "void mo17023d();", "String dibujar();", "@Override\n\tpublic void setDurchmesser(int d) {\n\n\t}", "public void mo2470d() {\n }", "public abstract VH mo102583a(ViewGroup viewGroup, D d);", "public abstract String mo41079d();", "public void setD ( boolean d ) {\n\n\tthis.d = d;\n }", "public Dx getDx() {\n/* 32 */ return this.dx;\n/* */ }", "DoubleNode(int d) {\n\t data = d; }", "DD createDD();", "@java.lang.Override\n public float getD() {\n return d_;\n }", "public void setD(String d) {\n this.d = d == null ? null : d.trim();\n }", "public int d()\r\n {\r\n return 20;\r\n }", "float getD();", "public static int m22546b(double d) {\n return 8;\n }", "void mo12650d();", "String mo20732d();", "static void feladat4() {\n\t}", "void mo130799a(double d);", "public void mo2198g(C0317d dVar) {\n }", "@Override\n public void d(String TAG, String msg) {\n }", "private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}", "public void d(String str) {\n ((b.b) this.b).g(str);\n }", "public abstract void mo42329d();", "public abstract long mo9229aD();", "public abstract String getDnForPerson(String inum);", "public interface ddd {\n public String dan();\n\n}", "@Override\n public void func_104112_b() {\n \n }", "public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}", "public void mo5117a(C0371d c0371d, double d) {\n new C0369b(this, c0371d, d).start();\n }", "public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}", "public final void m22595a(double d) {\n mo4383c(Double.doubleToRawLongBits(d));\n }", "public void d() {\n this.f23522d.a(this.f23521c);\n this.f23521c.a(this);\n this.i = new a();\n this.i.a(new ae(this.f23519a));\n this.f23519a.setAdapter(this.i);\n this.f23519a.setOnItemClickListener(this);\n this.f23521c.e();\n this.h.a(hashCode(), this.f23520b);\n }", "public Vector2d(double d) {\n\t\tthis.x = d;\n\t\tthis.y = d;\n\t}", "DomainHelper dh();", "private Pares(PLoc p, PLoc s, int d){\n\t\t\tprimero=p;\n\t\t\tsegundo=s;\n\t\t\tdistancia=d;\n\t\t}", "static double DEG_to_RAD(double d) {\n return d * Math.PI / 180.0;\n }", "@java.lang.Override\n public float getD() {\n return d_;\n }", "private final VH m112826b(ViewGroup viewGroup, D d) {\n return mo102583a(viewGroup, d);\n }", "public Double getDx();", "public void m25658a(double d) {\n if (d <= 0.0d) {\n d = 1.0d;\n }\n this.f19276f = (float) (50.0d / d);\n this.f19277g = new C4658a(this, this.f19273c);\n }", "boolean hasD();", "public abstract void mo27386d();", "MergedMDD() {\n }", "@ReflectiveMethod(name = \"d\", types = {})\n public void d(){\n NMSWrapper.getInstance().exec(nmsObject);\n }", "@Override\n public Chunk d(int i0, int i1) {\n return null;\n }", "public void d(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 47: */ {\r\n/* 48: 68 */ BlockPosition localdt = paramdt.offset(((EnumDirection)parambec.getData(a)).opposite());\r\n/* 49: 69 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 50: 70 */ if (((localbec.getType() instanceof bdq)) && (((Boolean)localbec.getData(bdq.b)).booleanValue())) {\r\n/* 51: 71 */ paramaqu.g(localdt);\r\n/* 52: */ }\r\n/* 53: */ }", "double defendre();", "public static int setDimension( int d ) {\n int temp = DPoint.d;\n DPoint.d = d;\n return temp;\n }", "public Datum(Datum d) {\n this.dan = d.dan;\n this.mesec = d.mesec;\n this.godina = d.godina;\n }", "public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}" ]
[ "0.63810617", "0.616207", "0.6071929", "0.59959275", "0.5877492", "0.58719957", "0.5825175", "0.57585526", "0.5701679", "0.5661244", "0.5651699", "0.56362265", "0.562437", "0.5615328", "0.56114155", "0.56114155", "0.5605659", "0.56001145", "0.5589302", "0.5571578", "0.5559222", "0.5541367", "0.5534182", "0.55326", "0.550431", "0.55041796", "0.5500838", "0.54946786", "0.5475938", "0.5466879", "0.5449981", "0.5449007", "0.54464436", "0.5439673", "0.543565", "0.5430978", "0.5428843", "0.5423923", "0.542273", "0.541701", "0.5416963", "0.54093426", "0.53927654", "0.53906536", "0.53793144", "0.53732955", "0.53695524", "0.5366731", "0.53530186", "0.535299", "0.53408253", "0.5333639", "0.5326304", "0.53250664", "0.53214055", "0.53208005", "0.5316437", "0.53121597", "0.52979535", "0.52763224", "0.5270543", "0.526045", "0.5247397", "0.5244388", "0.5243049", "0.5241726", "0.5241194", "0.523402", "0.5232349", "0.5231111", "0.5230985", "0.5219358", "0.52145815", "0.5214168", "0.5209237", "0.52059376", "0.51952434", "0.5193699", "0.51873696", "0.5179743", "0.5178796", "0.51700175", "0.5164517", "0.51595956", "0.5158281", "0.51572365", "0.5156627", "0.5155795", "0.51548296", "0.51545656", "0.5154071", "0.51532024", "0.5151545", "0.5143571", "0.5142079", "0.5140048", "0.51377696", "0.5133826", "0.5128858", "0.5125679", "0.5121545" ]
0.0
-1
/ renamed from: e
private final void m134909e(String str) { if (!TextUtils.isEmpty(str)) { String str2 = C6969H.m41409d("G738BDC12AA7FAF3BE7039107E4B48CC36186D40EBA22E4") + str + '/'; VideoXOnlineLog.f101073b.mo121420a(C6969H.m41409d("G6887D15ABC3FA624E900D05CFDF5CAD429D99501A2"), str2); MQTTClient a = MQTTClientManager.m55413a(C6969H.m41409d("G4DA6F33B8A1C9F16C522B96DDCD1")); if (a != null) { ProtoAdapter<EventMessage> gVar = EventMessage.f96677a; C32569u.m150513a((Object) gVar, C6969H.m41409d("G4C95D014AB1DAE3AF50F974DBCC4E7F659B7F028")); f97551h = a.mo57249a(str2, new MQTTWirePbConverter(gVar)); MQTTTopic<EventMessage> oVar = f97551h; if (oVar == null) { C32569u.m150511a(); } oVar.mo57278a((MQTTTopicListener<EventMessage>) f97552i, true); MQTTTopic<EventMessage> oVar2 = f97551h; if (oVar2 == null) { C32569u.m150511a(); } oVar2.mo57274a(MQTTQosLevel.LEVEL_1, true); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void e() {\n\n\t}", "public void e() {\n }", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n public void e(String TAG, String msg) {\n }", "public String toString()\r\n {\r\n return e.toString();\r\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 Object element() { return e; }", "@Override\n public void e(int i0, int i1) {\n\n }", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "private static Throwable handle(final Throwable e) {\r\n\t\te.printStackTrace();\r\n\r\n\t\tif (e.getCause() != null) {\r\n\t\t\te.getCause().printStackTrace();\r\n\t\t}\r\n\t\tif (e instanceof SAXException) {\r\n\t\t\t((SAXException) e).getException().printStackTrace();\r\n\t\t}\r\n\t\treturn e;\r\n\t}", "void event(Event e) throws Exception;", "Event getE();", "public int getE() {\n return e_;\n }", "@Override\n\tpublic void onException(Exception e) {\n\n\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(2));\r\n\t\t\t}", "public byte e()\r\n/* 84: */ {\r\n/* 85:86 */ return this.e;\r\n/* 86: */ }", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(1));\r\n\t\t\t}", "public void toss(Exception e);", "private void log(IndexObjectException e) {\n\t\t\r\n\t}", "public int getE() {\n return e_;\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "private String getStacktraceFromException(Exception e) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tPrintStream ps = new PrintStream(baos);\n\t\te.printStackTrace(ps);\n\t\tps.close();\n\t\treturn baos.toString();\n\t}", "protected void processEdge(Edge e) {\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"E \" + super.toString();\n\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(0));\r\n\t\t\t}", "public Element getElement() {\n/* 78 */ return this.e;\n/* */ }", "@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }", "void mo57276a(Exception exc);", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "public Throwable getOriginalException()\n/* 28: */ {\n/* 29:56 */ return this.originalE;\n/* 30: */ }", "@Override\r\n\t\t\tpublic void onError(Throwable e) {\n\r\n\t\t\t}", "private void sendOldError(Exception e) {\n }", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected void processMouseEvent(MouseEvent e) {\n super.processMouseEvent(e);\n }", "private void printInfo(SAXParseException e) {\n\t}", "@Override\n\t\tpublic void onError(Throwable e) {\n\t\t\tSystem.out.println(\"onError\");\n\t\t}", "String exceptionToStackTrace( Exception e ) {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter);\n e.printStackTrace( printWriter );\n return stringWriter.toString();\n }", "public <E> E getE(E e){\n return e;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@PortedFrom(file = \"tSignatureUpdater.h\", name = \"vE\")\n private void vE(NamedEntity e) {\n sig.add(e);\n }", "@Override\n\t\tpublic void onException(Exception arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}", "protected E eval()\n\t\t{\n\t\tE e=this.e;\n\t\tthis.e=null;\n\t\treturn e;\n\t\t}", "void showResultMoError(String e);", "public int E() {\n \treturn E;\n }", "@Override\r\n public void processEvent(IAEvent e) {\n\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "static public String getStackTrace(Exception e) {\n java.io.StringWriter s = new java.io.StringWriter(); \n e.printStackTrace(new java.io.PrintWriter(s));\n String trace = s.toString();\n \n if(trace==null || trace.length()==0 || trace.equals(\"null\"))\n return e.toString();\n else\n return trace;\n }", "@Override\n public String toString() {\n return \"[E]\" + super.toString() + \"(at: \" + details + \")\";\n }", "public static void error(boolean e) {\n E = e;\n }", "public void out_ep(Edge e) {\r\n\r\n\t\tif (triangulate == 0 & plot == 1) {\r\n\t\t\tclip_line(e);\r\n\t\t}\r\n\r\n\t\tif (triangulate == 0 & plot == 0) {\r\n\t\t\tSystem.err.printf(\"e %d\", e.edgenbr);\r\n\t\t\tSystem.err.printf(\" %d \", e.ep[le] != null ? e.ep[le].sitenbr : -1);\r\n\t\t\tSystem.err.printf(\"%d\\n\", e.ep[re] != null ? e.ep[re].sitenbr : -1);\r\n\t\t}\r\n\r\n\t}", "public void m58944a(E e) {\n this.f48622a = e;\n }", "void mo43357a(C16726e eVar) throws RemoteException;", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "@Override\n\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t}", "static String getElementText(Element e) {\n if (e.getChildNodes().getLength() == 1) {\n Text elementText = (Text) e.getFirstChild();\n return elementText.getNodeValue();\n }\n else\n return \"\";\n }", "public RuntimeException processException(RuntimeException e)\n\n {\n\treturn new RuntimeException(e);\n }", "@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t}", "@java.lang.Override\n public java.lang.String getE() {\n java.lang.Object ref = e_;\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 e_ = s;\n return s;\n }\n }", "protected void onEvent(DivRepEvent e) {\n\t\t}", "protected void onEvent(DivRepEvent e) {\n\t\t}", "protected void logException(Exception e) {\r\n if (log.isErrorEnabled()) {\r\n log.logError(LogCodes.WPH2004E, e, e.getClass().getName() + \" processing field \");\r\n }\r\n }", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(2));\r\n\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t}", "com.walgreens.rxit.ch.cda.EIVLEvent getEvent();", "@Override\n protected void getExras() {\n }", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(4));\r\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\r\n\t\t\t}", "public e o() {\r\n return k();\r\n }", "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}" ]
[ "0.72328156", "0.66032064", "0.6412127", "0.6362734", "0.633999", "0.62543726", "0.6232265", "0.6159535", "0.61226326", "0.61226326", "0.60798717", "0.6049423", "0.60396963", "0.60011584", "0.5998842", "0.59709895", "0.59551716", "0.5937381", "0.58854383", "0.5870234", "0.5863486", "0.58606255", "0.58570576", "0.5832809", "0.57954526", "0.5784194", "0.57723534", "0.576802", "0.57466", "0.57258075", "0.5722709", "0.5722404", "0.57134414", "0.56987166", "0.5683048", "0.5671214", "0.5650087", "0.56173986", "0.56142104", "0.56100404", "0.5604611", "0.55978096", "0.5597681", "0.55941516", "0.55941516", "0.55941516", "0.5578516", "0.55689955", "0.5568649", "0.5564652", "0.5561944", "0.5561737", "0.5560318", "0.555748", "0.5550611", "0.5550611", "0.5550611", "0.5550611", "0.5547971", "0.55252135", "0.5523029", "0.55208814", "0.5516037", "0.5512", "0.55118424", "0.55118424", "0.55118424", "0.55118424", "0.55118424", "0.55118424", "0.55118424", "0.55118424", "0.55118424", "0.55118424", "0.55118227", "0.5509796", "0.5509671", "0.5503605", "0.55015326", "0.5499632", "0.54921895", "0.54892236", "0.5483562", "0.5483562", "0.5482999", "0.54812574", "0.5479943", "0.54787004", "0.54778624", "0.5472073", "0.54695076", "0.54695076", "0.54695076", "0.54695076", "0.54695076", "0.54695076", "0.54695076", "0.54695076", "0.5468417", "0.54673034", "0.54645115" ]
0.0
-1